Teaching Language Models to Self-Improve through Interactive Demonstrations

Xiao Yu, Baolin Peng, Michel Galley, Jianfeng Gao, Zhou Yu
10/20/2023
cs.CL

No official code found. Best implementation: jasonyux/TriPosT (12 stars, last commit 2024-01-25).

Abstract

The self-improving ability of large language models (LLMs), enabled by prompting them to analyze and revise their own outputs, has garnered significant interest in recent research. However, this ability has been shown to be absent and difficult to learn for smaller models, thus widening the performance gap between state-of-the-art LLMs and more cost-effective and faster ones. To reduce this gap, we introduce TriPosT, a training algorithm that endows smaller models with such self-improvement ability, and show that our approach can improve a LLaMA-7b's performance on math and reasoning tasks by up to 7.13%. In contrast to prior work, we achieve this by using the smaller model to interact with LLMs to collect feedback and improvements on its own generations. We then replay this experience to train the small model. Our experiments on four math and reasoning datasets show that the interactive experience of learning from and correcting its own mistakes is crucial for small models to improve their performance.

View on arXivView PDF

Code Implementations(1)

jasonyux/TriPosTCommunity100%
121PythonOct 11, 20232 years ago

Similar Papers

Cite this paper

@article{yu2023teaching,
  title  = {Teaching Language Models to Self-Improve through Interactive Demonstrations},
  author = {Xiao Yu and Baolin Peng and Michel Galley and Jianfeng Gao and Zhou Yu},
  year   = {2023},
  eprint = {2310.13522},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.13522v2}
}

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/2310.13522.svg)](https://codeofpaper.com/paper/2310.13522)

Discussion