对齐基础模型对于其安全且可信赖的部署至关重要。然而,传统的微调方法计算量巨大,需要更新数十亿个模型参数。一种极具前景的替代方案,即通过解码进行对齐,无需更新模型即可直接调整响应分布以最大化目标奖励 $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.
A Survey on Training-free Alignment of Large Language Models
School of Computer Science, Wuhan University, Wuhan, China(武汉大学计算机学院);Faculty of Computer Science and Technology, Qilu University of Technology, Shandong, China(青岛科技大学计算机科学与技术学院);Zhongguancun Academy, Beijing, China(中关村学院)
Impact of Decoding Methods on Human Alignment of Conversational LLMs
Birla Institute of Technology and Science, Pilani(比拉理工与科学学院(皮拉尼));National University of Singapore(新加坡国立大学);NUS Center for Trusted Internet and Community(新加坡国立大学可信互联网与社区中心);Department of Communications and New Media, National University of Singapore(新加坡国立大学传播与新媒体系)
本文研究了Beam Search、Top K Sampling和Nucleus Sampling等解码方法对LLM与人类对话对齐的影响,提出了内容、风格和心理测量导向的新衡量标准,发现较少beam数和较低P值对齐效果更好,且任务导向与开放式数据集表现不同。
Fudan University(复旦大学);Princeton University(普林斯顿大学);University of California Berkeley(加州大学伯克利分校);Carnegie Mellon University(卡内基梅隆大学);Google DeepMind(谷歌DeepMind);University of Virginia(弗吉尼亚大学)
Decoding the Multimodal Mind: Generalizable Brain-to-Text Translation via Multimodal Alignment and Adaptive Routing
State Key Laboratory of Multimodal Artificial Intelligence System, Institute of Automation, Chinese Academy of Sciences(多模态人工智能系统国家重点实验室,中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Department of Computer Science, The University of Manchester(曼彻斯特大学计算机科学系);Department of Language Science and Technology, Hong Kong Polytechnic University(香港理工大学语言科学与技术系)
AMBEDKAR-A Multi-level Bias Elimination through a Decoding Approach with Knowledge Augmentation for Robust Constitutional Alignment of Language Models
Indian Institute of Information Technology, Kalyani(印度信息技术学院,卡里尼);BITS Pilani Goa(比尔·斯图尔特学院,果阿);IIT Madras(马德拉斯理工学院);DTU(达丁理工大学);Artificial Intelligence Institute, University of South Carolina(南卡罗来纳大学人工智能研究所);Meta AI;Amazon GenAI(亚马逊生成人工智能)
Shallow Preference Signals: Large Language Model Aligns Even Better with Truncated Data?
IIIS, Tsinghua University(清华大学信息学院);AI Lab, Princeton University(普林斯顿大学人工智能实验室);Department of Computer Science & Engineering, University of Michigan(密歇根大学计算机科学与工程系)
MindAlign: Decoding Inner Speech from fMRI Signals via Multimodal Embedding Alignment under Limited Data
Graduate School of Humanities and Sciences Ochanomizu University(大仓山大学人文科学研究生院);Center for Information and Neural Networks Advanced ICT Research Institute National Institute of Information and Communications Technology(信息与神经网络中心先进信息通信研究机构信息通信技术研究所)
Gradient Flow of Energy: A General and Efficient Approach for Entity Alignment Decoding
State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications(北京邮电大学网络与交换技术国家重点实验室);China Unicom(中国联通);Huawei Translation Services Center(华为翻译中心)