Importance Weighting Can Help Large Language Models Self-Improve
Chunyang Jiang, Chi-min Chan, Wei Xue, Qifeng Liu, Yike Guo
TL;DR
This work addresses the challenge of expensive external supervision for fine-tuning LLMs by introducing Distribution Shift Weight (DS weight) to quantify how self-generated data diverges from true data distributions. Building the IWSI framework, it combines correctness-based filtering (self-consistency) with DS weight-based screening, using a tiny valid set to estimate distribution shift and selectively training on low-DS samples. Empirical results across multiple reasoning and NLI tasks show that IWSI improves reasoning performance and is competitive with reward-model supervision, while showing that distribution shift is largely orthogonal to correctness. The approach offers a practical, data-efficient pathway to safer and more effective self-improvement of LLMs in real-world settings.
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.
