[Paper Review] The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning
The paper argues alignment tuning may be largely superficial, shows base LLMs encode most knowledge, and introduces Urial, a tuning-free in-context alignment method that can match or exceed SFT/RLHF-aligned models using minimal prompting.
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.
Motivation & Objective
- Investigate how alignment tuning (SFT and RLHF) changes base LLM behavior by analyzing token distribution shifts between base and aligned models.
- Assess whether base LLMs can be effectively aligned without tuning using in-context learning.
- Propose and evaluate Urial, a tuning-free alignment method that relies on restyled in-context demonstrations and a system prompt.
- Provide an interpretable, multi-aspect evaluation protocol to compare alignment methods on diverse tasks.
Proposed method
- Analyze token distribution shifts between base LLMs and aligned counterparts to understand what alignment tuning changes.
- Develop Urial, a tuning-free alignment method using in-context learning with three constant stylistic examples plus a system prompt.
- Create and use the just-eval-instruct dataset (1,000 instructions from 9 sources) to evaluate six aspects of output quality.
- Implement six-aspect evaluation templates evaluated via GPT-4 and ChatGPT with human verification.
- Compare Urial against SFT, RLHF, vanilla ICL, and retrieval-augmented ICL across multiple base-models.
- Report both quantitative scores and qualitative observations about knowledge retention and safety behaviors.

Experimental results
Research questions
- RQ1Does alignment tuning primarily alter stylistic tokens rather than knowledge content?
- RQ2Can base LLMs be effectively aligned without any tuning through in-context learning and prompting?
- RQ3How does Urial compare to traditional tuning-based alignment methods across diverse models and tasks?
Key findings
- Alignment tuning affects only a small fraction of tokens; most knowledge-related content is shared with the base LLMs.
- Stylistic and safety-related tokens show the largest distribution shifts during alignment.
- Urial, with as few as three constant in-context examples and a system prompt, can match or surpass SFT/RLHF on strong base LLMs.
- Urial can outperform Mistral-7b-Instruct and Llama-2-70b-chat-q in several settings, narrowing the gap with tuning-based methods.
- Finer-grained, multi-aspect evaluation supports nuanced comparisons beyond overall score.
- Fewer or more in-context examples can modulate safety and other aspects, with K=3 providing a strong balance.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.