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

关于 best-of-n 对齐策略的理论保证

Theoretical guarantees on the best-of-n alignment policy

Google DeepMind(谷歌DeepMind);Google Research(谷歌研究院)

Ahmad Beirami, Alekh Agarwal, Jonathan Berant, Alexander D'Amour, Jacob Eisenstein, Chirag Nagpal, Ananda Theertha Suresh

AI总结:

本文推翻了文献中关于 best-of-n 策略与参考策略间 KL 散度解析式的等价性,证明其仅为上界,并提出紧密的估计器;同时推导了胜率上界,分析了在 n<1000 时胜率与 KL 散度的优异权衡。

摘要:

best-of-$n$ 采样是一种用于推理时对齐和扩展生成模型测试时计算的简单有效的方法,其中从参考策略中抽取 $n$ 个样本,基于奖励函数进行排序,并选择排名最高的一个。文献中常用的一个解析表达式声称,best-of-$n$ 策略与参考策略之间的 KL 散度等于 $\log (n) - (n-1)/n$。我们反驳了这一声明的有效性,并证明它只是实际 KL 散度的上界。我们还探讨了该上界在不同情况下的紧致性,并提出了一种新的 KL 散度估计器,通过实验证明它能提供紧密的近似。我们还证明了 best-of-$n$ 策略相对于参考策略的胜率上限为 $n/(n+1)$,并推导了该表征的紧致性界限。最后,我们分析了 best-of-$n$ 对齐策略在胜率与 KL 散度之间的权衡,结果表明在 $n < 1000$ 的情况下即可实现非常好的权衡。

英文摘要:

A simple and effective method for the inference-time alignment and scaling test-time compute of generative models is best-of-$n$ sampling, where $n$ samples are drawn from a reference policy, ranked based on a reward function, and the highest ranking one is selected. A commonly used analytical expression in the literature claims that the KL divergence between the best-of-$n$ policy and the reference policy is equal to $\log (n) - (n-1)/n.$ We disprove the validity of this claim, and show that it is an upper bound on the actual KL divergence. We also explore the tightness of this upper bound in different regimes, and propose a new estimator for the KL divergence and empirically show that it provides a tight approximation. We also show that the win rate of the best-of-$n$ policy against the reference policy is upper bounded by $n/(n+1)$ and derive bounds on the tightness of this characterization. We conclude with analyzing the tradeoffs between win rate and KL divergence of the best-of-$n$ alignment policy, which demonstrate that very good tradeoffs are achievable with $n < 1000$.

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

↑