Introduction
Fine-tuning Pretrained Language Models (PLMs) like BERT and RoBERTa has become the standard approach for downstream Natural Language Processing (NLP) tasks. However, the performance of these models is heavily dependent on the quality of the training data. In real-world scenarios, datasets often contain "noisy" or incorrect labels due to errors in automatic labeling, crowdsourcing, or data scraping. This leads to a "garbage in, garbage out" scenario where the model learns to replicate the errors present in the data rather than the underlying semantic patterns. To address this, we introduce LAFT (Large LAnguage Models for Fine-Tuning), a framework that leverages the zero-shot capabilities of Large Language Models (LLMs) to provide external guidance during the fine-tuning process.
The Problem: The Memorization Trap
PLMs are highly efficient learners, but this efficiency is a double-edged sword. Research shows that PLMs exhibit a "memorization" problem: they are so effective at fitting data that they quickly memorize noisy labels instead of ignoring them.
Traditional methods for handling label noise often rely on the model's own internal confidence to filter out suspicious samples (e.g., the "small-loss" hypothesis). However, PLMs frequently demonstrate high confidence for both clean and noisy samples in the early stages of training. This lack of initial discrimination makes it nearly impossible for the model to self-correct without external intervention. There is a critical need for an objective third party—one that is not biased by the specific noise distribution of the training set—to guide the learning process.
The LAFT Framework
LAFT solves the noise problem by using an LLM (such as GPT-4) as a teacher. Because LLMs are pretrained on massive, general-purpose corpora and are not being updated on the noisy downstream dataset, their predictions remain "unpoisoned" by the local label noise. The framework employs a two-step sample separation strategy to categorize data into three distinct sets:
1. Coarse-Grained Separation
The LLM is used to predict labels for the training data in a zero-shot or few-shot manner. If the LLM’s prediction matches the dataset's assigned label, the sample is categorized as Easy Clean (EC). These are samples where the dataset and the external judge agree, representing high-confidence clean data.
2. Fine-Grained Separation
For samples where the LLM and the dataset disagree, the framework applies a more nuanced filter. By combining the LLM’s confidence scores with an adaptive threshold based on the PLM’s own evolving confidence, the remaining data is split into:
- Hard Clean (HC): Samples that are difficult for the model but likely possess correct labels.
- True Noisy (TN): Samples where the assigned label is likely incorrect.
Learning Strategy
Once the data is separated, LAFT applies a tailored learning strategy for each subset:
- EC Samples: Trained using standard cross-entropy loss.
- HC Samples: Trained using a weighted loss that prioritizes the assigned label but adjusts the gradient based on the degree of agreement between the LLM and the PLM.
- TN Samples: Instead of using the incorrect "hard" label from the dataset, the model learns from the LLM’s soft confidence distribution. For example, if the LLM suggests a text is 70% likely to be "Politics" and 30% "Technology," the PLM learns to match this distribution, capturing useful semantic relationships even when a single label is uncertain.
Experimental Evaluation
The researchers evaluated LAFT against several state-of-the-art noise-robust baselines, including Co-teaching, Mixup, and JoCoR. Testing was conducted on both synthetic and real-world datasets:
- Synthetic Noise (20Ng, AGNews): Noise was injected via symmetric (random), asymmetric (class-similar), and instance-dependent (feature-based) flips.
- Real-World Noise (SemEval, TREC, Hausa): These datasets contain natural noise from crowdsourcing and automatic labeling.
Key Results
LAFT consistently outperformed all baselines across every noise type and intensity. Notable highlights include:
- High-Noise Resilience: On the 20Ng dataset with 60% symmetric noise, LAFT achieved 70.79% accuracy, significantly outperforming standard fine-tuning (61.87%).
- Real-World Performance: On the Hausa dataset, which features complex, feature-dependent noise, LAFT surpassed the next best baseline by approximately 3.5%.
- Ablation Studies: Removing the LLM guidance or the fine-grained separation step led to a sharp decline in performance, confirming that the synergy between the two-step separation and external guidance is essential.
Conclusion and Future Work
LAFT demonstrates that external guidance from LLMs can effectively shield smaller models from the harmful effects of label noise. By treating the LLM as a "noise-immune" judge, the framework allows PLMs to benefit from the semantic richness of noisy datasets without memorizing their flaws.
While effective, the authors acknowledge that querying large LLMs can be computationally expensive. Future research will focus on reducing these costs and expanding the framework to more complex NLP tasks beyond classification, such as sequence labeling and summarization.
Summary updated