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

Kad: 一种基于代理的测试时对齐框架与背包近似延迟

Kad: A Framework for Proxy-based Test-time Alignment with Knapsack Approximation Deferral

Université Paris-Saclay, CNRS, LISN(巴黎-萨克雷大学、法国国家科学研究中心、计算机科学跨学科实验室);INSA Rennes, IRISA, CNRS, Université de Rennes(雷恩国立应用科学学院、布列塔尼大区信息科学与随机系统研究实验室、法国国家科学研究中心、雷恩大学)

Ayoub Hammal, Pierre Zweigenbaum, Caio Corro

AI总结:

Kad通过基于代理的测试时对齐方法,将令牌特定的延迟规则转化为0-1背包问题,从而降低对齐过程的计算成本,并提升任务性能和解码速度。

摘要:

先前的一些研究得出结论,大型语言模型(LLM)的大部分生成能力是在预训练阶段(早期)学习的。然而,LLM仍然需要进一步对齐以满足下游任务的要求和风格偏好等期望属性。随着LLM在规模上的持续扩大,对齐过程的计算成本会显著增加。在本工作中,我们提出了一种新的方法,通过基于代理的测试时对齐来规避这些成本,即使用一个小的对齐模型的指导。我们的方法可以描述为一种令牌特定的级联方法,其中令牌特定的延迟规则被减少为0-1背包问题。在此设定下,我们推导了最优延迟决策的对偶近似。我们实验性地展示了该方法在任务性能和推测解码速度方面的优势。

英文摘要:

Several previous works concluded that the largest part of generation capabilities of large language models (LLM) are learned (early) during pre-training. However, LLMs still require further alignment to adhere to downstream task requirements and stylistic preferences, among other desired properties. As LLMs continue to scale in terms of size, the computational cost of alignment procedures increase prohibitively. In this work, we propose a novel approach to circumvent these costs via proxy-based test-time alignment, i.e. using guidance from a small aligned model. Our approach can be described as a token-specific cascading method, where the token-specific deferral rule is reduced to 0-1 knapsack problem. In this setting, we derive primal and dual approximations of the optimal deferral decision. We experimentally show the benefits of our method both in task performance and speculative decoding speed.

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

↑