Importance Weighting Can Help Large Language Models Self-Improve

Chunyang Jiang, Chi-min Chan, Wei Xue, Qifeng Liu, Yike Guo
8/19/2024
cs.CLcs.AI

No official code found. Best implementation: rubickkcibur/IWSI (1 star, MIT, last commit 2024-12-12).

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.

View on arXivView PDF

Code Implementations(1)

rubickkcibur/IWSICommunity100%
MIT

Importance Weighting Can help LLM Self-Improve

10Shell, PythonJun 17, 20241 years agoMIT

Similar Papers

Cite this paper

@article{jiang2024importance,
  title  = {Importance Weighting Can Help Large Language Models Self-Improve},
  author = {Chunyang Jiang and Chi-min Chan and Wei Xue and Qifeng Liu and Yike Guo},
  year   = {2024},
  eprint = {2408.09849},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.09849v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.09849.svg)](https://codeofpaper.com/paper/2408.09849)

Discussion