arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.20290cs.CL
收藏

通过推测式拒绝实现快速的Best-of-N解码

Fast Best-of-N Decoding via Speculative Rejection

Fudan University(复旦大学);Princeton University(普林斯顿大学);University of California Berkeley(加州大学伯克利分校);Carnegie Mellon University(卡内基梅隆大学);Google DeepMind(谷歌DeepMind);University of Virginia(弗吉尼亚大学)

Hanshi Sun, Momin Haider, Ruiqi Zhang, Huitao Yang, Jiahao Qiu, Ming Yin, Mengdi Wang, Peter Bartlett, Andrea Zanette

AI总结:

针对主流Best-of-N推理时对齐方法计算成本过高的问题,提出名为Speculative Rejection的可行算法,在保持生成高分响应效果的同时将计算效率提升16至32倍,避免了后训练对齐的复杂流程。

摘要:

大语言模型(LLM)的安全有效部署涉及一个名为对齐的关键步骤,该步骤确保模型的响应符合人类偏好。主流的对齐技术,如DPO、PPO及其变体,通过在一个被称为后训练的阶段改变预训练模型权重来对齐LLM。这些后训练方法虽占主导地位,但在LLM部署前会大幅增加复杂度。推理时对齐方法避免了复杂的后训练步骤,转而使生成过程偏向符合人类偏好的响应。最知名的推理时对齐方法名为Best-of-N,其效果与最先进的后训练流程相当。遗憾的是,Best-of-N在推理时所需的资源远多于标准解码策略,这使其在计算上不具备可行性。在本研究中,我们提出了Speculative Rejection(推测式拒绝),这是一种在计算上可行的推理时对齐算法。它和Best-of-N一样,能根据给定的奖励模型生成高分响应,但计算效率是后者的16到32倍。

英文摘要:

The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniques, such as DPO, PPO and their variants, align LLMs by changing the pre-trained model weights during a phase called post-training. While predominant, these post-training methods add substantial complexity before LLMs can be deployed. Inference-time alignment methods avoid the complex post-training step and instead bias the generation towards responses that are aligned with human preferences. The best-known inference-time alignment method, called Best-of-N, is as effective as the state-of-the-art post-training procedures. Unfortunately, Best-of-N requires vastly more resources at inference time than standard decoding strategies, which makes it computationally not viable. In this work, we introduce Speculative Rejection, a computationally-viable inference-time alignment algorithm. It generates high-scoring responses according to a given reward model, like Best-of-N does, while being between 16 to 32 times more computationally efficient.

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

↑