Abstract
Large language models (LLMs) have shown remarkable capability in numerous tasks and applications. However, fine-tuning LLMs using high-quality datasets under external supervision remains prohibitively expensive. In response, LLM self-improvement approaches have been vibrantly developed recently. The typical paradigm of LLM self-improvement involves training LLM on self-generated data, part of which may be detrimental and should be filtered out due to the unstable data quality. While current works primarily employs filtering strategies based on answer correctness, in this paper, we demonstrate that filtering out correct but with high distribution shift extent (DSE) samples could also benefit the results of self-improvement. Given that the actual sample distribution is usually inaccessible, we propose a new metric called DS weight to approximate DSE, inspired by the Importance Weighting methods. Consequently, we integrate DS weight with self-consistency to comprehensively filter the self-generated samples and fine-tune the language model. Experiments show that with only a tiny valid set (up to 5% size of the training set) to compute DS weight, our approach can notably promote the reasoning ability of current LLM self-improvement methods. The resulting performance is on par with methods that rely on external supervision from pre-trained reward models.
Introduction: The Challenge of Self-Improvement
Fine-tuning LLMs on high-quality, human-annotated datasets is the gold standard for performance gains, yet the cost of such supervision is often prohibitive. Self-improvement—where a model generates its own training data—offers a scalable alternative. Typically, these methods rely on "self-consistency" or majority voting to filter for correct answers.
However, a critical issue remains: Distribution Shift Extent (DSE). A model may arrive at a correct answer through "weird" reasoning—logic that is redundant, skips essential steps ("jumping"), or is fundamentally spurious. Training on these high-DSE samples, even if they are technically correct, can lead to performance degradation or "model collapse." Current methods largely ignore whether synthetic data distributions match the logic and structure of real-world, human-authored data.
The IWSI Framework
To address this, we introduce IWSI (Importance Weighting-based Self-Improvement). This framework adapts the statistical concept of Importance Weighting to identify and filter out samples that deviate significantly from human-like reasoning distributions.
The IWSI pipeline consists of five key stages:
- Candidate Generation: The LLM generates multiple reasoning paths and answers for an unlabeled dataset.
- Consistency Filtering: Majority voting is used to retain only the most consistent answers.
- DS Weight Computation: Using a tiny "valid set" of human-written examples (less than 5% of the training set size), we calculate a DS weight for each self-generated sample. This metric approximates the DSE by measuring how much a sample's loss deviates from the average loss of the human-written valid set.
- Distribution Filtering: Samples are ranked by their DS weight. The top k% (the most significant outliers) are discarded, regardless of their correctness.
- Fine-tuning: The model is fine-tuned on the remaining "clean" synthetic data.
Experimental Setup and Results
We evaluated IWSI across six datasets covering arithmetic reasoning (gsm8k, SVAMP), natural language inference (ANLI-A1, ANLI-A2), and commonsense reasoning (OpenBookQA, StrategyQA).
The results demonstrate that IWSI significantly outperforms standard self-improvement baselines. For instance, using Llama3-8B, the base model's average accuracy of 22.1% improved to 34.0% with standard self-consistency, while IWSI pushed performance to 40.4%.
Notably, IWSI achieves parity with external supervision. Its performance is virtually identical to methods using a pre-trained DeBERTa-v3 reward model (RM-filter), suggesting that a tiny fraction of human data combined with importance weighting can effectively replace massive external supervisors.
Key Insights
- Correctness vs. Quality: IWSI identifies "bad" correct samples, such as those with redundant filler or lucky guesses (spurious logic), which standard filters miss.
- Orthogonality to Uncertainty: Analysis shows that DSE is largely independent of entropy. IWSI catches "confident but weird" answers that uncertainty-based filters overlook.
- Efficiency and Robustness: IWSI is computationally efficient, requiring only a simple loss calculation rather than the expensive LLM-as-a-judge evaluations. It is also robust to the specific choice of examples in the small validation set.
- Mitigating Model Collapse: In iterative training loops, IWSI significantly slows the performance decay typically seen when models train on their own data.
Conclusion and Future Directions
IWSI demonstrates that distribution shift is a vital factor in LLM self-improvement. While the current DS weight formula is simple and requires a small human-annotated valid set, it provides a powerful mechanism for aligning synthetic data with human logic. Future work will explore more sophisticated weighting schemes that incorporate semantic similarity and investigate methods to completely halt model collapse in iterative self-improvement cycles.
Summary updated