2025-02-12 · 专家 · 计算机视觉 · 机器学习

Teaching Language Models to Critique via Reinforcement Learning

该论文提出了一种名为CTRL的框架,通过强化学习训练批评者模型,以实现大型语言模型在代码生成任务中的迭代改进。

更新于 2025-02-12。作者:Zhihui Xie、Jie chen、Liyu Chen、Weichao Mao、Jingjing Xu、Lingpeng Kong。

中文摘要

教授大型语言模型(LLMs)评估和改进其输出对于构建能够迭代提升的系统至关重要,但这从根本上受到提供准确判断和可操作建议能力的限制。在本研究中,我们针对代码生成领域研究了LLMs的批评者,并提出了CTRL,这是一个通过强化学习进行批评者训练的框架,该框架训练一个批评者模型,使其在没有人类监督的情况下为固定的生成器模型生成反馈,以最大化校正性能。我们的结果表明,使用CTRL训练的批评者显著提高了通过率,并在基础和更强的生成器模型中减轻了累积错误。此外,我们还表明,这些批评者模型作为准确的生成奖励模型,通过迭代批评-修订实现测试时的扩展,在具有挑战性的代码生成基准测试中实现了高达106.1%的相对改进。

英文摘要

Teaching large language models (LLMs) to critique and refine their outputs is crucial for building systems that can iteratively improve, yet it is fundamentally limited by the ability to provide accurate judgments and actionable suggestions. In this work, we study LLM critics for code generation and propose CTRL, a framework for Critic Training via Reinforcement Learning, which trains a critic model to generate feedback that maximizes correction performance for a fixed generator model without human supervision. Our results demonstrate that critics trained with CTRL significantly enhance pass rates and mitigate compounding errors across both base and stronger generator models. Furthermore, we show that these critic models act as accurate generative reward models and enable test-time scaling through iterative critique-revision, achieving up to 106.1% relative improvements across challenging code generation benchmarks.

解读

一句话总结

该论文提出了一种名为CTRL的框架,通过强化学习训练批评者模型,以实现大型语言模型在代码生成任务中的迭代改进。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt