Thinking LLMs: General Instruction Following with Thought Generation

Tianhao Wu, Janice Lan, Weizhe Yuan, Jiantao Jiao, Jason Weston +1 more
10/14/2024
cs.CLcs.AI

No official code found. Best implementation: sanowl/THINKING-LLMS (7 stars, last commit 2024-12-22).

Abstract

LLMs are typically trained to answer user questions or follow instructions similarly to how human experts respond. However, in the standard alignment framework they lack the basic ability of explicit thinking before answering. Thinking is important for complex questions that require reasoning and planning -- but can be applied to any task. We propose a training method for equipping existing LLMs with such thinking abilities for general instruction following without use of additional human data. We achieve this by an iterative search and optimization procedure that explores the space of possible thought generations, allowing the model to learn how to think without direct supervision. For each instruction, the thought candidates are scored using a judge model to evaluate their responses only, and then optimized via preference optimization. We show that this procedure leads to superior performance on AlpacaEval and Arena-Hard, and shows gains from thinking on non-reasoning categories such as marketing, health and general knowledge, in addition to more traditional reasoning & problem-solving tasks.

View on arXivView PDF

Code Implementations(1)

this is based on the paper THINKING LLMS: GENERAL INSTRUCTION FOLLOWING WITH THOUGHT GENERATION I might add new stuff that is not related to the paper

72Python, MakefileOct 17, 20241 years ago

Similar Papers

Cite this paper

@article{wu2024thinking,
  title  = {Thinking LLMs: General Instruction Following with Thought Generation},
  author = {Tianhao Wu and Janice Lan and Weizhe Yuan and Jiantao Jiao and Jason Weston and Sainbayar Sukhbaatar},
  year   = {2024},
  eprint = {2410.10630},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.10630v1}
}

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

Discussion