TL;DR
Standard large language model (LLM) self-improvement methods filter self-generated data based purely on answer correctness, often overlooking the issue of distribution shift. This paper introduces Importance Weighting-based Self-Improvement (IWSI), a framework that uses a new metric called "DS weight" to filter out correct answers derived from flawed or anomalous reasoning. By leveraging a tiny human-annotated validation set, IWSI significantly boosts LLM reasoning performance, rivaling methods that depend on expensive external reward models.
What Problem Does This Paper Address?
Fine-tuning LLMs on high-quality, human-annotated datasets is prohibitively expensive. To circumvent this, researchers use "self-improvement" paradigms where an LLM generates its own training data (reasoning paths and answers) from unlabeled questions, filters the data, and fine-tunes itself.
Existing filtering strategies focus almost entirely on correctness—usually via majority voting (self-consistency). However, the authors identify a critical gap: even if a self-generated answer is correct, the reasoning path leading to it might suffer from a severe distribution shift compared to real-world human logic. Training on these high "Distribution Shift Extent" (DSE) samples can introduce noise, degrade model performance, and accelerate model collapse. The challenge is estimating this distribution shift when the true data distribution is inaccessible.
Methods
The authors propose IWSI (Importance Weighting-based Self-Improvement), which introduces a metric called DS weight to approximate DSE.
The pipeline consists of four main steps:
- Candidate Generation & Self-Consistency Filtering: The base LLM generates multiple Chain-of-Thought (CoT) candidates for an unlabeled dataset. Majority voting retains the most consistent answer and its corresponding reasoning path, forming a filtered dataset ($D_c$).
- DS Weight Computation: Inspired by classical Importance Weighting (IW)—which corrects for covariate shift by calculating the density ratio between test and train distributions—the authors utilize a tiny validation set ($D_v$) of human-written demonstrations ($\le$ 5% of the training set size). They compute a naive weight ($w'_i$) based on the ratio of the average supervised fine-tuning (SFT) loss on the validation set to the loss on the specific training sample.
- Symmetric Adjustment: To handle bidirectional deviations symmetrically (where the weight can range from 0 to infinity, but the ideal value is 1), they define the final DS weight ($w^{DS}_i$) to penalize any deviation from 1 equally.
- Filtering & Fine-Tuning: Training samples are ranked by their DS weight. Only the top-$k\%$ samples with the lowest weights (closest to the validation distribution) are kept to fine-tune the LLM.
Datasets
The authors evaluated IWSI across six benchmark datasets spanning three distinct task types:
- Arithmetic Reasoning:
gsm8kandSVAMP - Natural Language Inference:
ANLI-A1andANLI-A2 - Commonsense Reasoning:
OpenBookQAandStrategyQA
Unlabeled questions were used for self-generation. Tiny validation sets ($\le$ 5% of the training set size) containing human-written rationales were extracted from the original datasets (or manually written, in the case of SVAMP) to compute the DS weights.
Key Insights and Ideas
- The Anatomy of "Bad" Correct Answers: The authors categorize high-DSE but correct samples into three intuitive types:
- Redundant: Contains irrelevant or looped nonsense in the reasoning chain.
- Jumping: Omits essential logical steps, leaping straight to the answer.
- Spurious: The logic is completely broken, but the model arrives at the correct answer purely by coincidence.
- Orthogonality to Uncertainty: A key finding is that DSE (DS weight) is largely independent of answer uncertainty (entropy). Filtering by distribution shift captures a completely different dimension of data quality than standard uncertainty metrics.
- Aligning Loss Distributions: As shown in the paper's analysis, the SFT loss distribution of self-generated data from a base model deviates significantly from human data. IWSI successfully shifts the trained model's loss distribution to closely match the human validation set.
Key Results
- Consistent Performance Boosts: IWSI consistently outperformed the baseline self-improvement method (LMSI) across all six datasets. On average, the base model (Llama3-8B) started at 22.1% accuracy, LMSI improved it to 34.0%, and IWSI pushed it to 40.4%.
- Rivaling External Reward Models: IWSI matched the performance of an RM-filter (40.4%), which relies on a heavy, externally pre-trained reward model (
DeBERTa-v3-large). IWSI achieves this parity without any external model supervision. - Mitigating Model Collapse: In iterative "self-consuming" loops (where a model repeatedly trains on its own outputs over multiple generations), IWSI significantly slowed down performance degradation compared to standard self-filtering methods.
Limitations and Future Work
- Dependence on a Validation Set: Although the required validation set is tiny ($\le$ 5%), IWSI is not entirely unsupervised; it still requires high-quality, human-annotated rationales tailored to the target task.
- Naive Weight Approximation: The current sample-wise loss ratio is a simplified approximation of importance weighting. It omits semantic similarities among training samples, which sometimes makes a direct weighted loss formulation (IWSI-w) noisy and less effective than hard threshold filtering.
- Slowing, Not Stopping, Collapse: While IWSI mitigates the speed of model collapse across iterative training generations, it does not completely halt the eventual downward trend. Future work is needed to completely stabilize infinite self-improvement loops.
Summary updated