arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.19792cs.LGcs.CLcs.ITmath.IT
收藏

InfAlign:推理感知的语言模型对齐

InfAlign: Inference-aware language model alignment

Google DeepMind(谷歌DeepMind);Google Research(谷歌研究)
Ananth Balashankar, Ziteng Sun, Jonathan Berant, Jacob Eisenstein, Michael Collins, Adrian Hutter, Jong Lee, Chirag Nagpal, Flavien Prost, Aradhana Sinha, Anand… 展开作者

Ananth Balashankar, Ziteng Sun, Jonathan Berant, Jacob Eisenstein, Michael Collins, Adrian Hutter, Jong Lee, Chirag Nagpal, Flavien Prost, Aradhana Sinha, Ananda Theertha Suresh, Ahmad Beirami

AI总结:

本文提出推理感知对齐框架 InfAlign 及 InfAlign-CTRL 算法,通过奖励校准与变换优化推理时胜率,在 best-of-N 场景下提升 3-8%。

摘要:

语言模型对齐是训练现代生成式语言模型的关键步骤。对齐的目标是提高对齐模型样本相对于基础模型的胜率。如今,我们越来越多地使用推理时算法(例如 Best-of-N、受控解码、树搜索)从语言模型中进行解码,而不是使用标准采样。我们表明,这种训练/测试不匹配使得标准 RLHF 框架在此类推理时方法下并非最优。为此,我们提出了一个推理感知对齐框架(InfAlign),旨在优化对齐策略相对于基础模型的推理时胜率。我们证明,对于任何推理时解码过程,最优对齐策略都是标准 RLHF 问题在奖励经过某种变换后的解。这促使我们提出校准-变换 RL(InfAlign-CTRL)算法来解决该问题,该算法包括一个奖励校准步骤和一个对校准后奖励进行变换的 KL 正则化奖励最大化步骤。对于 best-of-N 采样和 best-of-N 越狱攻击,我们提出了特定的变换,在推理时胜率上可带来高达 3-8% 的提升。最后,我们还表明,我们提出的奖励校准方法是优化标准胜率的强基线。

英文摘要:

Language model alignment is a critical step in training modern generative language models. Alignment targets to improve win rate of a sample from the aligned model against the base model. Today, we are increasingly using inference-time algorithms (e.g., Best-of-N, controlled decoding, tree search) to decode from language models rather than standard sampling. We show that this train/test mismatch makes standard RLHF framework sub-optimal in view of such inference-time methods. To this end, we propose a framework for inference-aware alignment (InfAlign), which aims to optimize inference-time win rate of the aligned policy against the base model. We prove that for any inference-time decoding procedure, the optimal aligned policy is the solution to the standard RLHF problem with a transformation of the reward. This motivates us to provide the calibrate-and-transform RL (InfAlign-CTRL) algorithm to solve this problem, which involves a reward calibration step and a KL-regularized reward maximization step with a transformation of the calibrated reward. For best-of-N sampling and best-of-N jailbreaking, we propose specific transformations offering up to 3-8% improvement on inference-time win rates. Finally, we also show that our proposed reward calibration method is a strong baseline for optimizing standard win rate.

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

↑