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

基础大语言模型的解锁咒语:通过上下文学习重新思考对齐

The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning

Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学)

Bill Yuchen Lin, Abhilasha Ravichander, Ximing Lu, Nouha Dziri, Melanie Sclar, Khyathi Chandu, Chandra Bhagavatula, Yejin Choi

AI总结:

本文通过分析 token 分布偏移验证了表面对齐假说,并提出免调优的 URIAL 方法,仅靠少量上下文示例即可使基础 LLM 达到或超越 SFT/RLHF 对齐性能。

摘要:

大语言模型(LLMs)的对齐调优过程通常包括通过监督微调(SFT)进行指令学习,以及通过基于人类反馈的强化学习(RLHF)进行偏好调优。最近的一项研究 LIMA(Zhou et al. 2023)表明,仅使用 1K 个示例进行 SFT 也能取得显著的对齐性能,这提示对齐调优的效果可能是“表面性的”。这引发了关于对齐调优究竟如何转变基础 LLM 的问题。我们通过考察基础 LLM 与其对齐版本之间的 token 分布偏移来分析对齐调优的效果。我们的发现揭示,基础 LLM 及其对齐调优版本在大多数 token 位置上的解码表现几乎相同。大多数分布偏移发生在风格性 token 上。这些直接证据有力地支持了 LIMA 提出的表面对齐假说。基于这些发现,我们通过提出如下研究问题来重新思考 LLM 的对齐:在没有 SFT 或 RLHF 的情况下,我们能多有效地对齐基础 LLM?为解决这一问题,我们引入了一种简单、免调优的对齐方法 URIAL。URIAL 仅通过基础 LLM 的上下文学习(ICL)即可实现有效对齐,只需少至三个固定的风格性示例和一个系统提示。我们在一个名为 JUST-EVAL-INSTRUCT 的多样化示例集上进行了细粒度和可解释的评估。结果表明,使用 URIAL 的基础 LLM 可以匹配甚至超越经过 SFT 或 SFT+RLHF 对齐的 LLM 的性能。我们表明,通过策略性提示和 ICL,免调优与基于调优的对齐方法之间的差距可以显著缩小。我们关于对齐调优表面性本质的发现以及 URIAL 的结果表明,对对齐进行更深入的分析和理论理解对于未来 LLM 研究至关重要。

英文摘要:

The alignment tuning process of large language models (LLMs) typically involves instruction learning through supervised fine-tuning (SFT) and preference tuning via reinforcement learning from human feedback (RLHF). A recent study, LIMA (Zhou et al. 2023), shows that using merely 1K examples for SFT can achieve significant alignment performance as well, suggesting that the effect of alignment tuning might be "superficial." This raises questions about how exactly the alignment tuning transforms a base LLM. We analyze the effect of alignment tuning by examining the token distribution shift between base LLMs and their aligned counterpart. Our findings reveal that base LLMs and their alignment-tuned versions perform nearly identically in decoding on the majority of token positions. Most distribution shifts occur with stylistic tokens. These direct evidence strongly supports the Superficial Alignment Hypothesis suggested by LIMA. Based on these findings, we rethink the alignment of LLMs by posing the research question: how effectively can we align base LLMs without SFT or RLHF? To address this, we introduce a simple, tuning-free alignment method, URIAL. URIAL achieves effective alignment purely through in-context learning (ICL) with base LLMs, requiring as few as three constant stylistic examples and a system prompt. We conduct a fine-grained and interpretable evaluation on a diverse set of examples, named JUST-EVAL-INSTRUCT. Results demonstrate that base LLMs with URIAL can match or even surpass the performance of LLMs aligned with SFT or SFT+RLHF. We show that the gap between tuning-free and tuning-based alignment methods can be significantly reduced through strategic prompting and ICL. Our findings on the superficial nature of alignment tuning and results with URIAL suggest that deeper analysis and theoretical understanding of alignment is crucial to future LLM research.

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

↑