arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.02685cs.CLcs.AIcs.LG
收藏

T-REG:基于 token 级奖励正则化的偏好优化

T-REG: Preference Optimization with Token-Level Reward Regularization

Zoom Communications(Zoom 通信公司)

Wenxuan Zhou, Shujian Zhang, Lingxiao Zhao, Tao Meng

AI总结:

针对 RLHF 序列级稀疏奖励信用分配不足的问题,本文提出 T-REG,通过对比提示让 LLM 自生成 token 级奖励并作为正则化,在 Alpaca Eval 2 和 Arena-Hard 上分别最高提升 3.8% 和 4.4%。

摘要:

基于人类反馈的强化学习(RLHF)对于使大型语言模型(LLM)与人类价值观保持一致一直至关重要。传统上,RLHF 包括针对查询生成响应,并使用奖励模型为整个响应分配奖励。然而,这种方法因依赖单一、稀疏的奖励而面临挑战,使模型难以识别序列中的哪些部分对最终奖励贡献最大。近期方法试图通过引入 token 级奖励来解决这一局限。但这些方法通常依赖经过训练的信用分配模型或 AI 标注者,引发了对奖励质量和可靠性的担忧。本文提出 token 级奖励正则化(T-REG),这是一种同时利用序列级和 token 级奖励进行偏好优化的新方法。借助 LLM 的自我完善能力,该方法使用对比提示使 LLM 自行生成 token 级奖励。这些自生成奖励随后充当奖励正则化,引导模型更有效地将序列级奖励分配到各个 token。这促进了更好的 token 级信用分配,并提升了对齐性能。在包括 Alpaca Eval 2 和 Arena-Hard 在内的指令遵循基准上的实验表明,该方法相比基线方法分别持续取得最高 3.8% 和 4.4% 的提升。我们将在 https://github.com/wzhouad/T-REG 发布代码和模型。

英文摘要:

Reinforcement learning from human feedback (RLHF) has been crucial in aligning large language models (LLMs) with human values. Traditionally, RLHF involves generating responses to a query and using a reward model to assign a reward to the entire response. However, this approach faces challenges due to its reliance on a single, sparse reward, which makes it challenging for the model to identify which parts of the sequence contribute most significantly to the final reward. Recent methods have attempted to address this limitation by introducing token-level rewards. However, these methods often rely on either a trained credit assignment model or AI annotators, raising concerns about the quality and reliability of the rewards. In this paper, we propose token-level reward regularization (T-REG), a novel approach that leverages both sequence-level and token-level rewards for preference optimization. Harnessing the self-refinement capabilities of LLMs, our method uses contrastive prompting to enable LLMs to self-generate token-level rewards. These self-generated rewards then act as reward regularization, guiding the model to more effectively distribute sequence-level rewards across tokens. This facilitates better token-level credit assignment and enhances alignment performance. Experiments on the instruction following benchmarks, including Alpaca Eval 2 and Arena-Hard, show that our method consistently outperforms baseline methods by up to 3.8% and 4.4%, respectively. We will release the code and models at https://github.com/wzhouad/T-REG.

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

↑