arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01103cs.CLcs.AI
收藏

近似对齐解码

Approximately Aligned Decoding

Khoury College of Computer Sciences Northeastern University(科里学院计算机科学系东北大学);Meta Superintelligence Labs(Meta超智能实验室);AWS NGDE;Nvidia

Daniel Melcer, Sujan Gonugondla, Pramuditha Perera, Haifeng Qian, Wen-Hao Chiang, Yanjun Wang, Nihal Jain, Pranav Garg, Xiaofei Ma, Anoop Deoras

AI总结:

本文提出近似对齐解码(AprAD)方法,在拒绝LLM不期望输出时平衡分布扭曲与计算效率,实验表明其性能与不扭曲分布的方法相当且更高效。

摘要:

拒绝大型语言模型(LLMs)的不期望输出是常见的做法;然而,当前的方法在拒绝后重新采样需要过多的计算量,或者通过将输出限制为极不可能的标记来扭曲输出分布。我们提出了一种方法,近似对齐解码(AprAD),以平衡输出分布的扭曲与计算效率,灵感来源于投机解码文献中的算法。AprAD允许生成具有难以满足约束的长文本序列,同时与现有方法相比,对低概率输出的放大程度要小得多。通过一系列实验,我们表明AprAD的任务特定性能与不扭曲输出分布的方法相当,同时计算效率更高。

英文摘要:

It is common to reject undesired outputs of Large Language Models (LLMs); however, current methods to do so require an excessive amount of computation to re-sample after a rejection, or distort the distribution of outputs by constraining the output to highly improbable tokens. We present a method, Approximately Aligned Decoding (AprAD), to balance the distortion of the output distribution with computational efficiency, inspired by algorithms from the speculative decoding literature. AprAD allows for the generation of long sequences of text with difficult-to-satisfy constraints, while amplifying low probability outputs much less compared to existing methods. We show through a series of experiments that the task-specific performance of AprAD is comparable to methods that do not distort the output distribution, while being much more computationally efficient.

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

↑