用最优解引导语言模型,让推理更高效准确。
Learning to Better Search with Language Models via Guided Reinforced Self-Training
- 以最优解为路标,生成高质量搜索轨迹。
- 在计数、代码修复任务中准确率显著提升。
- 适合需要复杂推理的AI系统优化者。
尽管语言模型在各类任务中表现卓越,但在复杂推理场景下仍面临挑战。近期研究发现,基于线性化搜索轨迹而非仅最终答案进行训练的语言模型,虽轨迹可能噪声大或不优,却能提升泛化能力。然而依赖此类不完美轨迹会降低推理时的计算效率。为此,本文提出引导式强化自训练(Guided-ReST),一种用于提升模型推理阶段搜索能力的微调算法。核心思想是:最优解可作为逐步推理的宝贵路标。基于此,我们设计了一种新数据生成方法,将最优解自然融入模型搜索过程,从而生成高质量搜索轨迹。通过在这些轨迹上微调模型,有效将更优的搜索策略提炼至模型中。该方法显著提升了语言模型在算术推理与代码自修复任务(如Countdown、CodeContests、CodeForces)中的搜索能力。源代码已公开于https://github.com/snu-mllab/guided-rest。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。