Abstract
Standard self-training for Large Language Models (LLMs) often suffers from a distribution imbalance, where models over-sample easy problems and generate shallow reasoning for complex ones. We present DAST (Difficulty-Aware Self-Training), a framework that dynamically estimates query difficulty to up-sample challenging problems and employs difficulty-matched prompting to ensure high-quality, detailed reasoning chains. Experiments on mathematical reasoning tasks demonstrate that DAST consistently outperforms standard self-training and preference optimization baselines, particularly in out-of-domain generalization.
Introduction
Self-training has emerged as a powerful paradigm for improving LLM performance without the need for additional human-annotated data. By iteratively generating responses to unlabeled queries and fine-tuning on the correct outputs—a process known as rejection sampling—models can effectively "teach themselves." However, this process often falls into a "distribution imbalance" trap. Easy questions naturally yield more correct answers, leading the model to overfit on simple tasks. Conversely, hard questions often result in few correct samples, and those samples frequently lack the depth of reasoning required for complex problem-solving.
The DAST Framework
DAST addresses these limitations by ensuring that challenging queries are represented both in quantity and quality. The framework operates through three iterative stages:
- Difficulty Level Estimation: For each query, the model generates $K$ responses. Difficulty is estimated based on the pass rate: high pass rates indicate "Easy" (E) problems, while zero or near-zero pass rates indicate "Hard" (H) or "Unsolved" (U) problems.
- Data Augmentation:
- Proportion Control: Using a coefficient ($\beta$), DAST over-samples harder questions to balance the training distribution.
- Response Length Control (DMFS): To prevent shallow reasoning, DAST uses Difficulty-Matched Few-Shot (DMFS) prompting. Harder questions are paired with few-shot examples that demonstrate long, detailed reasoning paths, forcing the model to "think" more deeply.
- Iterative Training: The model is fine-tuned (using SFT or DPO) on this curated dataset, and the process repeats, with the model's perception of difficulty evolving each round.
Experimental Setup
The researchers evaluated DAST on mathematical reasoning, using Llama-3.1-8B as the base model. The training set combined GSM8K and MATH. Evaluation spanned In-Domain (ID) sets (GSM8K, MATH) and Out-of-Domain (OOD) sets (TAL-SCQ, College, TheoremQA) to test the model's ability to generalize to higher-level mathematics.
Results and Analysis
DAST demonstrated significant improvements over standard Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO), and other difficulty-aware methods like DART.
Key Insights
- The Goldilocks Principle of Length: Tailoring response length to difficulty is crucial. Forcing long responses for easy questions can actually degrade performance, a phenomenon termed "overthinking." Length should be tailored to the problem's inherent difficulty.
- Efficiency and Generalization: DAST achieved higher accuracy while often requiring less total training data than brute-force methods. Notably, the focus on the "tail" of difficult problems led to a substantial boost in OOD performance, particularly on the challenging "College" dataset, where vanilla self-training typically plateaus or regresses.
Conclusion
DAST provides a principled approach to self-training by acknowledging that not all data points are created equal. By balancing the difficulty distribution and matching reasoning depth to task complexity, DAST enables LLMs to break through the performance ceilings of standard rejection sampling. Future work will explore extending this framework to more subjective domains where correctness is less easily defined than in mathematics.
Summary updated