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

语言模型的受控解码

Controlled Decoding from Language Models

Google DeepMind(谷歌DeepMind);OpenAI
Sidharth Mudgal, Jong Lee, Harish Ganapathy, YaGuang Li, Tao Wang, Yanping Huang, Zhifeng Chen, Heng-Tze Cheng, Michael Collins, Trevor Strohman, Jilin Chen, Al… 展开作者

Sidharth Mudgal, Jong Lee, Harish Ganapathy, YaGuang Li, Tao Wang, Yanping Huang, Zhifeng Chen, Heng-Tze Cheng, Michael Collins, Trevor Strohman, Jilin Chen, Alex Beutel, Ahmad Beirami

AI总结:

提出受控解码(CD)方法,通过独立训练的前缀评分器在推理时控制冻结基础模型的生成,有效解决语言模型对齐中的多目标强化学习问题,并弥合best-of-K策略与逐token控制的差距。

摘要:

KL正则化强化学习(RL)是一种流行的对齐框架,用于控制语言模型的响应以获得高回报结果。我们提出一种逐token的RL目标,并为此提出一种模块化求解器,称为受控解码(CD)。CD通过一个独立的前缀评分器模块施加控制,该模块被训练来学习奖励的价值函数。该前缀评分器在推理时用于控制来自冻结基础模型的生成,可证明是从RL目标的解中采样。我们在经验上证明CD作为流行基准上的控制机制是有效的。我们还表明,多个奖励的前缀评分器可以在推理时组合,有效解决多目标RL问题而无需额外训练。我们表明,应用CD的益处也能转移到未见的基础模型上而无需进一步调整。最后,我们表明CD可以在推理时以分块解码方式应用,本质上弥合了流行的best-of-K策略与通过强化学习进行逐token控制之间的差距。这使得CD成为语言模型对齐的一种有前景的方法。

英文摘要:

KL-regularized reinforcement learning (RL) is a popular alignment framework to control the language model responses towards high reward outcomes. We pose a tokenwise RL objective and propose a modular solver for it, called controlled decoding (CD). CD exerts control through a separate prefix scorer module, which is trained to learn a value function for the reward. The prefix scorer is used at inference time to control the generation from a frozen base model, provably sampling from a solution to the RL objective. We empirically demonstrate that CD is effective as a control mechanism on popular benchmarks. We also show that prefix scorers for multiple rewards may be combined at inference time, effectively solving a multi-objective RL problem with no additional training. We show that the benefits of applying CD transfer to an unseen base model with no further tuning as well. Finally, we show that CD can be applied in a blockwise decoding fashion at inference-time, essentially bridging the gap between the popular best-of-K strategy and tokenwise control through reinforcement learning. This makes CD a promising approach for alignment of language models.

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

↑