arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16306cs.CLcs.LGstat.ML
收藏

级联奖励采样用于高效解码时对齐

Cascade Reward Sampling for Efficient Decoding-Time Alignment

Department of Computer Science(计算机科学系)

Bolian Li, Yifan Wang, Anamika Lochab, Ananth Grama, Ruqi Zhang

AI总结:

本文提出级联奖励采样(CARDS),通过段级拒绝采样和不确定性分段机制,解决解码时对齐中令牌生成与奖励评估的效率瓶颈,实现约70%解码时间减少和超90%胜平率。

摘要:

将大型语言模型(LLMs)与人类偏好对齐对其应用至关重要。近年来,解码时对齐作为一种有效的即插即用技术出现,避免了微调模型参数。这种方法保留了预训练LLMs的通用实用性,但在解码过程中常常遭受显著的效率低下问题,主要源于浪费的令牌生成和过度的奖励评估。为应对这些挑战,我们引入了级联奖励采样(CARDS)来解决解码时对齐中的两个效率瓶颈。具体而言,我们开发了一种段级拒绝采样算法,该算法最小化LLMs和奖励模型(RMs)的冗余计算。CARDS的核心是一种基于不确定性的分段机制,该机制确保了RM在不完整段上的评估准确性。此外,我们提供了对段上奖励分数的详细分析,以阐明改进后的对齐性能。实验结果表明,与现有的解码时对齐方法相比,CARDS显著提高了解码效率、对齐质量和通用实用性,实现了解码时间约70%的减少以及实用性和安全性基准中超过90%的胜平率。

英文摘要:

Aligning large language models (LLMs) with human preferences is essential for their applications. Recently, decoding-time alignment has emerged as an effective plug-and-play technique that avoids fine-tuning model parameters. This approach retains the general utility of pretrained LLMs but often suffers from significant inefficiencies during decoding, primarily due to wasted token generation and excessive reward evaluations. To address these challenges, we introduce Cascade Reward Sampling (CARDS) to resolve both efficiency bottlenecks in decoding-time alignment. Specifically, we develop a segment-level rejection sampling algorithm that minimizes redundant computations of both LLMs and reward models (RMs). Central to CARDS is an uncertainty-based segmentation mechanism, which ensures the accuracy of RMs evaluations on incomplete segments. Furthermore, we provide a detailed analysis of reward scores on segments to elucidate the improved alignment performance. Experimental results demonstrate that CARDS significantly improves decoding efficiency, alignment quality, and general utility compared to existing decoding-time alignment methods, achieving approximately a 70% reduction in decoding time and over 90% win-ties in utility and safety benchmarks.

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

↑