Learning to Better Search with Language Models via Guided Reinforced Self-Training

Seungyong Moon, Bumsoo Park, Hyun Oh Song
10/3/2024
cs.AIcs.CL

Official code: snu-mllab/guided-rest (7 stars, Apache-2.0, last commit 2025-11-01). 1 more implementation below.

Abstract

While language models have shown remarkable performance across diverse tasks, they still encounter challenges in complex reasoning scenarios. Recent research suggests that language models trained on linearized search traces toward solutions, rather than solely on the final solutions, exhibit improved generalization, despite the search traces being potentially noisy or suboptimal. However, relying on such imperfect traces can result in inefficient use of test-time compute. To address this, we propose guided reinforced self-training (Guided-ReST), a fine-tuning algorithm designed to improve the model's capability for effective search during inference. The key insight behind Guided-ReST is that optimal solutions can serve as valuable step-by-step landmarks to guide the model's search process. Based on this insight, we introduce a novel data generation method that seamlessly incorporates optimal solutions into the model's search procedure, enabling the generation of high-quality search traces. By fine-tuning the model on these search traces, we effectively distill improved search strategies into the model. Our method significantly enhances the search capabilities of language models on arithmetic reasoning and code self-repair tasks, including Countdown, CodeContests, and CodeForces. We release the source code at https://github.com/snu-mllab/guided-rest.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Official implementation of "Learning to Better Search with Language Models via Guided Reinforced Self-Training" (NeurIPS 2025)

70Roff, JinjaSep 20, 202511 months agoApache-2.0
reinforcement-learning
MIT
20Shell, PythonOct 2, 20242 years agoMIT

Similar Papers

Cite this paper

@article{moon2024learning,
  title  = {Learning to Better Search with Language Models via Guided Reinforced Self-Training},
  author = {Seungyong Moon and Bumsoo Park and Hyun Oh Song},
  year   = {2024},
  eprint = {2410.02992},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.02992v2},
  journal = {NEURIPS 2024 2024}
}

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

Discussion