arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.22338cs.CLcs.AI
收藏

Text2Grad:从自然语言反馈中强化学习

Text2Grad: Reinforcement Learning from Natural Language Feedback

Hanyang Wang, Lu Wang, Chaoyun Zhang, Tianjun Mao, Si Qin, Qingwei Lin, Saravan Rajmohan, Dongmei Zhang

AI总结:

Text2Grad通过将自然语言反馈转化为跨度级梯度,提升语言模型的细粒度对齐和可解释性。

摘要:

传统RLHF通过粗粒度的标量奖励来优化语言模型,这种奖励掩盖了成功或失败背后的细粒度原因,导致学习缓慢且不透明。最近的工作通过提示或反思引入文本批评,提高了可解释性,但未改变模型参数。我们介绍了Text2Grad,一种强化学习范式,将自由形式的文本反馈转换为跨度级别的梯度。给定人类(或程序化)的批评,Text2Grad将每个反馈短语与相关的token跨度对齐,将这些对齐转换为可微的奖励信号,并执行直接细化模型策略中违规部分的梯度更新。这会产生精确的、基于反馈的调整,而不是全局的调整。Text2Grad通过三个组件实现:(1)高质量的反馈标注管道,将批评与token跨度配对;(2)细粒度的奖励模型,预测答案上的跨度级奖励并生成解释性批评;(3)跨度级策略优化器,反向传播自然语言梯度。在摘要、代码生成和问答任务中,Text2Grad始终优于标量奖励RL和仅提示的基线,提供更高的任务指标和更丰富的可解释性。我们的结果表明,自然语言反馈不仅可以作为解释,还可以作为细粒度对齐的训练信号。我们的方法的代码可在https://github.com/microsoft/Text2Grad上获得。

英文摘要:

Traditional RLHF optimizes language models with coarse, scalar rewards that mask the fine-grained reasons behind success or failure, leading to slow and opaque learning. Recent work augments RL with textual critiques through prompting or reflection, improving interpretability but leaving model parameters untouched. We introduce Text2Grad, a reinforcement-learning paradigm that turns free-form textual feedback into span-level gradients. Given human (or programmatic) critiques, Text2Grad aligns each feedback phrase with the relevant token spans, converts these alignments into differentiable reward signals, and performs gradient updates that directly refine the offending portions of the model's policy. This yields precise, feedback-conditioned adjustments instead of global nudges. Text2Grad is realized through three components: (1) a high-quality feedback-annotation pipeline that pairs critiques with token spans; (2) a fine-grained reward model that predicts span-level reward on answers while generating explanatory critiques; and (3) a span-level policy optimizer that back-propagates natural-language gradients. Across summarization, code generation, and question answering, Text2Grad consistently surpasses scalar-reward RL and prompt-only baselines, providing both higher task metrics and richer interpretability. Our results suggest that natural-language feedback can serve not only as explanations, but also as actionable training signals for fine-grained alignment. The code for our method is available at https://github.com/microsoft/Text2Grad.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑