arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.35388cs.LGcs.AIcs.CL
收藏

基于上下文价值学习的令牌级信用分配

Token-Level Credit Assignment via In-Context Value Learning

UC Berkeley(加州大学伯克利分校)

Rohin Manvi, Joey Hong, Kevin Frans, Sergey Levine

AI总结:

本研究针对长程任务中强化学习的稀疏奖励导致的令牌级信用分配问题,提出通过上下文价值学习结合辅助轨迹与奖励的方法,提升价值函数准确性,实现更密的信用分配,加快策略改进。

摘要:

强化学习已被证明在微调大型语言模型以对齐人类偏好、激发推理能力方面极为有效。然而,在训练用于长程任务的策略时,稀疏的结果奖励会导致信用分配效果差,进而造成学习不稳定且效率低下。在这类场景中,价值函数是提供令牌级训练信号、稳定学习的天然工具。本研究聚焦于如何学习强大到足以执行此类令牌级信用分配的价值函数,核心洞见在于价值函数能充分利用可在上下文提供给基础语言模型的特权信息。所提方法允许价值函数访问多个辅助 rollout(轨迹)及其奖励,使模型能利用反事实未来和语义结构生成更有意义的价值估计。研究表明,价值函数的准确性随上下文 rollout 数量增加而提升,在足够规模下,这能解锁准确的令牌级优势估计,其信用分配密度比仅用结果奖励高出数个数量级。这些价值估计可与现成的策略改进方法结合用于微调。实验显示,通过本方法学习的价值函数能实现更准确的令牌级信用分配,进而带来更快的策略改进;尤其值得注意的是,价值函数可在离线数据上可靠预训练,之后通过为策略学习提供更低方差的目标,用有限的在线样本实现快速适配。

英文摘要:

Reinforcement learning has proven extraordinarily effective at fine-tuning large language models to align to human preferences and elicit reasoning capabilities. However, when training policies for long-horizon tasks, a sparse outcome reward provides poor credit assignment, resulting in unstable and inefficient learning. In such settings, value functions are a natural tool for providing token-level training signals and stabilizing learning. Our work addresses how to learn value functions that are powerful enough to perform such token-level credit assignment. Our key insight is that value functions make strong usage of privileged information, which can be provided in-context to base language models. In our approach, we allow the value function access to multiple auxiliary rollouts and their rewards, such that the model can leverage counterfactual futures and semantic structure to produce more meaningful value estimates. We show that value function accuracy scales with the number of in-context rollouts. At sufficient scale, this unlocks accurate per-token advantage estimates: orders of magnitude denser credit assignment than outcome reward alone. These value estimates can then be combined with an off-the-shelf policy improvement method to perform fine-tuning. Empirically, we demonstrate that value functions learned via our approach perform more accurate token-level credit assignment and accordingly result in faster policy improvement. Especially motivating, we find that value functions can be reliably pretrained on offline data, and then later used for rapid adaptation from limited online samples by providing lower variance targets for policy learning.

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

↑