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

Transfer Q Star:用于LLM对齐的原则性解码

Transfer Q Star: Principled Decoding for LLM Alignment

University of Maryland, College Park(马里兰大学帕克分校);Princeton University(普林斯顿大学);University of Central Florida(中佛罗里达大学)

Souradip Chakraborty, Soumya Suvra Ghosal, Ming Yin, Dinesh Manocha, Mengdi Wang, Amrit Singh Bedi, Furong Huang

AI总结:

本文提出Transfer Q*解码方法,通过基线模型隐式估计目标奖励的最优价值函数,避免了传统微调的计算开销和现有解码方法对最优Q函数的依赖,在理论和实验上均显著降低次优性差距并提升对齐性能。

摘要:

对齐基础模型对于其安全且可信赖的部署至关重要。然而,传统的微调方法计算量巨大,需要更新数十亿个模型参数。一种极具前景的替代方案,即通过解码进行对齐,无需更新模型即可直接调整响应分布以最大化目标奖励 $r$,从而为对齐提供了一个轻量级且适应性强的框架。然而,原则性的解码方法依赖于对最优 Q 函数($Q^*$)的预言机访问,这在实践中通常是不可用的。因此,先前的 SoTA 方法要么使用 $Q^{π_{\ exttt{sft}}}$(源自参考 $\ exttt{SFT}$ 模型)来近似该 $Q^*$,要么依赖短期奖励,导致解码性能次优。在这项工作中,我们提出了 Transfer $Q^*$,它通过与基线奖励 $ρ_{\ exttt{BL}}$ 对齐的基线模型 $ρ_{\ exttt{BL}}$(可以不同于目标奖励 $r$),隐式地估计目标奖励 $r$ 的最优价值函数。对 Transfer $Q^*$ 的理论分析严格刻画了其最优性,推导了次优性差距的上界,并确定了一个超参数,可根据用户需求控制偏离预训练参考 $\ exttt{SFT}$ 模型的程度。我们的方法显著减少了先前 SoTA 方法中观察到的次优性差距,并在多个合成和真实数据集的广泛测试中,在连贯性、多样性和质量等关键指标上展现出卓越的实证性能。

英文摘要:

Aligning foundation models is essential for their safe and trustworthy deployment. However, traditional fine-tuning methods are computationally intensive and require updating billions of model parameters. A promising alternative, alignment via decoding, adjusts the response distribution directly without model updates to maximize a target reward $r$, thus providing a lightweight and adaptable framework for alignment. However, principled decoding methods rely on oracle access to an optimal Q-function ($Q^*$), which is often unavailable in practice. Hence, prior SoTA methods either approximate this $Q^*$ using $Q^{π_{\texttt{sft}}}$ (derived from the reference $\texttt{SFT}$ model) or rely on short-term rewards, resulting in sub-optimal decoding performance. In this work, we propose Transfer $Q^*$, which implicitly estimates the optimal value function for a target reward $r$ through a baseline model $ρ_{\texttt{BL}}$ aligned with a baseline reward $ρ_{\texttt{BL}}$ (which can be different from the target reward $r$). Theoretical analyses of Transfer $Q^*$ provide a rigorous characterization of its optimality, deriving an upper bound on the sub-optimality gap and identifying a hyperparameter to control the deviation from the pre-trained reference $\texttt{SFT}$ model based on user needs. Our approach significantly reduces the sub-optimality gap observed in prior SoTA methods and demonstrates superior empirical performance across key metrics such as coherence, diversity, and quality in extensive tests on several synthetic and real datasets.

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

↑