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

BOND:通过 Best-of-N Distillation 对齐 LLM

BOND: Aligning LLMs with Best-of-N Distillation

Google DeepMind(谷歌DeepMind)
Pier Giuseppe Sessa, Robert Dadashi, Léonard Hussenot, Johan Ferret, Nino Vieillard, Alexandre Ramé, Bobak Shariari, Sarah Perrin, Abe Friesen, Geoffrey Cideron… 展开作者

Pier Giuseppe Sessa, Robert Dadashi, Léonard Hussenot, Johan Ferret, Nino Vieillard, Alexandre Ramé, Bobak Shariari, Sarah Perrin, Abe Friesen, Geoffrey Cideron, Sertan Girgin, Piotr Stanczyk, Andrea Michi, Danila Sinopalnikov, Sabela Ramos, Amélie Héliou, Aliaksei Severyn, Matt Hoffman, Nikola Momchev, Olivier Bachem

AI总结:

提出BOND算法,通过分布匹配模拟Best-of-N采样并利用Jeffreys散度平衡模式行为,在避免推理开销的同时有效提升了Gemma模型在多个基准上的RLHF对齐效果。

摘要:

人类反馈强化学习(RLHF)是当前最先进的大型语言模型中质量和安全性的关键驱动因素。然而,一种出人意料地简单且强大的推理时策略是 Best-of-N 采样,它从 N 个候选生成中选择最佳的一个。在本文中,我们提出了 Best-of-N Distillation(BOND),这是一种新颖的 RLHF 算法,旨在模拟 Best-of-N,但避免了其在推理时的巨大计算开销。具体而言,BOND 是一种分布匹配算法,它强制策略生成的分布更接近 Best-of-N 分布。我们使用 Jeffreys 散度(前向 KL 和后向 KL 的线性组合)来平衡覆盖模式和寻找模式的行为,并推导出一种利用移动锚点以提高效率的迭代公式。我们通过在生成式摘要和 Gemma 模型上的实验,证明了我们的方法及若干设计选择的有效性。使用 BOND 对齐 Gemma 策略优于其他 RLHF 算法,在多个基准测试上提升了结果。

英文摘要:

Reinforcement learning from human feedback (RLHF) is a key driver of quality and safety in state-of-the-art large language models. Yet, a surprisingly simple and strong inference-time strategy is Best-of-N sampling that selects the best generation among N candidates. In this paper, we propose Best-of-N Distillation (BOND), a novel RLHF algorithm that seeks to emulate Best-of-N but without its significant computational overhead at inference time. Specifically, BOND is a distribution matching algorithm that forces the distribution of generations from the policy to get closer to the Best-of-N distribution. We use the Jeffreys divergence (a linear combination of forward and backward KL) to balance between mode-covering and mode-seeking behavior, and derive an iterative formulation that utilizes a moving anchor for efficiency. We demonstrate the effectiveness of our approach and several design choices through experiments on abstractive summarization and Gemma models. Aligning Gemma policies with BOND outperforms other RLHF algorithms by improving results on several benchmarks.

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

↑