Abstract
Supervised Fine-tuning (SFT) is essential for adapting Large Language Models (LLMs) to specific domains, yet it remains highly vulnerable to noisy training data. We present RobustFT, a framework that mitigates the performance degradation caused by incorrect or hallucinated responses. By employing a multi-expert noise detection system and a context-aware relabeling process, RobustFT enables models to maintain high performance even under extreme noise conditions (up to 70%). Our evaluations across benchmarks like MMLU and PubMedQA demonstrate that RobustFT significantly outperforms standard SFT and existing denoising baselines, offering a robust solution for real-world data challenges.
The Challenge: When Noise Silently Breaks LLMs
Supervised Fine-tuning (SFT) is the standard approach for domain adaptation in LLMs. However, the quality of SFT is heavily dependent on the cleanliness of the training data. In practice, datasets often contain "noise"—incorrect or low-quality responses—stemming from human error or automated labeling flaws.
The impact of this noise is non-trivial. As shown in Figure 1, even a 30% noise ratio can lead to an 8.9% drop in MMLU performance. Unlike simple classification tasks, the generative nature of LLMs makes noise detection particularly difficult, as "incorrectness" can be subtle and open-ended.
Methodology: The RobustFT Pipeline
RobustFT addresses the noise problem through a structured two-stage "Detection and Denoising" pipeline, followed by a quality-based selection mechanism.
1. Multi-Expert Noise Detection
LLMs are often overconfident in their own errors, making self-detection unreliable. RobustFT utilizes a "Checker" that aggregates consensus from three distinct sources:
- The original (potentially noisy) label.
- A base LLM prediction.
- A "reasoning-enhanced" prediction (incorporating iterative reasoning and self-reflection).
Samples lacking consensus among these experts are flagged as noisy.
2. Context-Enhanced Denoising
Rather than discarding noisy samples—which might still contain useful query information—RobustFT attempts to "fix" them. It retrieves similar "clean" samples from the dataset to provide in-context examples for a "Reviewer Agent." This agent then synthesizes a corrected label based on the provided context and internal reasoning.
3. Entropy-Based Data Selection
To prevent low-quality relabeled data from entering the final training set, the framework applies a filtering mechanism based on response entropy (perplexity). If the model exhibits high uncertainty (high entropy) while generating a corrected label, that sample is discarded. Only the most confident relabeled samples are used for fine-tuning.
Experimental Evaluation
The authors evaluated RobustFT across five benchmarks: MMLU (general knowledge), ARC (science), PubMedQA (biomedical), Drop (numerical reasoning), and FPB (finance). Noise was artificially introduced at 30%, 50%, and 70% levels to test the limits of the framework.
Key Findings
- Superior Resilience: Under 70% noise on MMLU, standard SFT accuracy plummeted to 37.3%. In contrast, RobustFT maintained 67.6% accuracy, surpassing even the original "Vanilla" model (65.3%).
- Domain-Specific Gains: In specialized fields like medicine (PubMedQA), RobustFT achieved relative improvements exceeding 100% compared to standard SFT in high-noise scenarios.
- The Role of Model Size: Larger models (e.g., Gemma2-9B) are not inherently more robust than smaller ones (e.g., Llama3.1-8B). Without specific priors, larger models can be equally susceptible to noisy domain data.
- Denoising vs. Pruning: Fixing noisy data via context-enhanced relabeling is more effective than simple data pruning, as it preserves the utility of the training signal.
Limitations and Future Outlook
While RobustFT is highly effective, it introduces computational overhead due to the multi-stage reasoning and retrieval processes. Additionally, the optimal data selection ratio ($\beta$) may require tuning based on the specific task. Future research could explore the framework's effectiveness against "adversarial noise" specifically designed to exploit LLM vulnerabilities.
Summary updated