LIMA: Less Is More for Alignment

Chunting Zhou, Pengfei Liu, Puxin Xu, Srini Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, Susan Zhang, Gargi Ghosh, Mike Lewis, Luke Zettlemoyer, Omer Levy

Overview

The paper introduces LIMA (Less Is More for Alignment), a 65-billion parameter language model fine-tuned on just 1,000 highly curated examples without using Reinforcement Learning from Human Feedback (RLHF). It demonstrates that massive instruction tuning datasets and complex RLHF pipelines might be unnecessary for alignment. Instead, a model's core knowledge is acquired during pretraining, and alignment merely teaches it the desired interaction style to unlock that knowledge.

The Alignment Problem

Modern large language models (LLMs) like ChatGPT are typically trained in two stages: unsupervised pretraining on massive text corpora, followed by an alignment phase to make them helpful and harmless. The prevailing wisdom has been that this alignment phase requires massive datasets (millions of instruction-tuning examples) and complex, compute-heavy techniques like RLHF.

The authors challenge this paradigm. They investigate whether this massive scale is actually necessary, or if alignment is simply a process of teaching the model a specific conversational format to expose capabilities it already learned during pretraining.

Methods: The Superficial Alignment Hypothesis

The authors propose the Superficial Alignment Hypothesis, which posits that alignment is mostly about learning a style or format, not acquiring new knowledge.

To test this, they bypassed RLHF and massive datasets entirely. They took a pre-trained LLaMa 65B model and applied standard supervised fine-tuning (SFT) on a meticulously curated dataset of exactly 1,000 prompt-response pairs. The novelty lies entirely in the data curation. They optimized heavily for prompt diversity and response quality, ensuring a uniform, helpful AI assistant tone across all answers. They also introduced a special end-of-turn (EOT) token to help the model differentiate between user and assistant utterances.

Datasets

  • Training Data (1,000 examples): 750 examples were mined and heavily filtered for quality from community Q&A forums (Stack Exchange, wikiHow, and the r/WritingPrompts subreddit). The remaining 250 examples were manually authored by the researchers to ensure diversity, including 13 specific examples designed to teach the model how to safely reject malicious or toxic prompts.
  • Test Data (300 examples): A held-out set of 300 challenging prompts used for human and GPT-4 preference evaluations, sourced from r/AskReddit and manually authored by a separate group of researchers.
  • Development Data (50 examples): Used for manual checkpoint selection, as the authors noted that standard validation perplexity negatively correlated with generation quality.

Key Insights and Ideas

  • The Superficial Alignment Hypothesis holds up: The fact that a model can compete with state-of-the-art commercial systems after seeing only 1,000 examples strongly suggests that pretraining does the vast majority of the heavy lifting. Alignment is just the key that unlocks the door.
  • Diversity and Quality > Quantity: Through ablation studies, the authors found that simply scaling up the number of training examples yields diminishing returns if prompt diversity isn't also scaled. High-quality, diverse data is the secret to effective alignment.
Generation Quality vs. Training Volume
  • Multi-turn dialogue emerges from almost nothing: A model trained purely on single-turn interactions can surprisingly engage in zero-shot multi-turn dialogue, though it is brittle. However, adding a mere 30 multi-turn conversational chains to the training data drastically improved the model's ability to hold coherent, multi-step conversations.
  • Formatting is easily learned: By adding just 6 examples of complex formatting (e.g., generating a marketing plan with specific headers, or summarizing an article into bullet points), LIMA learned to generalize to unseen structural requirements.

Key Results

The authors conducted a controlled human preference study (corroborated by a GPT-4 preference study) comparing LIMA's single responses to baseline models.

Human Preference Evaluation
  • vs. RLHF Models: LIMA's responses were preferred or tied in 65% of cases against OpenAI's DaVinci003 (which was trained with RLHF).
  • vs. State-of-the-Art: LIMA produced equal or strictly preferred responses in 43% of cases against GPT-4, 46% against Anthropic's Claude, and 58% against Google's Bard.
  • Absolute Quality: In a manual analysis of 50 test prompts, 50% of LIMA's responses were rated as "Excellent" and 38% as "Pass" (meaning they met all prompt requirements).
  • Safety: Despite having only 13 safety-oriented examples in its training set, LIMA responded safely to 80% of potentially sensitive or malicious test prompts.

Limitations and Future Work

The authors are highly transparent about the limitations of this approach. First, curating 1,000 extremely high-quality, diverse examples requires significant mental effort and manual labor, making it difficult to scale. Second, LIMA is not as robust as product-grade models like GPT-4; it is more susceptible to adversarial prompts, and an "unlucky" sample during decoding can lead to a weak response. Future work will likely need to explore how to automate the curation of such high-quality data to improve robustness without falling back on massive, noisy datasets.

Summary updated

BibTeX
@inproceedings{zhou2023lima,
  author = {Chunting Zhou and Pengfei Liu and Puxin Xu and Srini Iyer and Jiao Sun and Yuning Mao and Xuezhe Ma and Avia Efrat and Ping Yu and LILI YU and Susan Zhang and Gargi Ghosh and Mike Lewis and Luke Zettlemoyer and Omer Levy},
  title = {{LIMA: Less Is More for Alignment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=KBMOKmX2he},
}
Figure