Self-Alignment with Instruction Backtranslation

Xian Li, Ping Yu, Chunting Zhou, Timo Schick, Omer Levy, Luke Zettlemoyer, Jason E Weston, Mike Lewis

Overview

Researchers at Meta have developed Instruction Backtranslation, a scalable "self-alignment" method that turns massive amounts of unlabelled web text into high-quality instruction-tuning data. By using a language model to generate its own training prompts and then curate the best ones, they produced Humpback, a model that outperforms all other non-distilled LLaMA variants on the Alpaca leaderboard.

The Alignment Bottleneck

To make a Large Language Model (LLM) useful, we must "align" it to follow instructions. Currently, this requires two expensive or restrictive paths:

  1. Human Annotation: Hiring people to write thousands of prompt-response pairs (e.g., LIMA). This yields high-quality data but is nearly impossible to scale to millions of examples.
  2. Distillation: Training a smaller model on the outputs of a "teacher" model like GPT-4. While effective, this inherits the teacher's biases and often violates terms of service for commercial use.

The authors ask a fundamental question: Can a model improve its own instruction-following ability using the vast, unlabelled "wild" text of the internet?

Methods: Instruction Backtranslation

The authors introduce a two-step iterative process called Instruction Backtranslation, inspired by backtranslation in machine translation.

Instruction Backtranslation process overview
  1. Self-Augmentation (The "Backward" Step):
  2. They start with a base LLaMA model and a tiny "seed" set of human-annotated instructions (3,200 examples from Open Assistant).
  3. They train a backward model to do the opposite of a standard LLM: given a piece of text (the output), it must predict the instruction that would have generated it.
  4. They run this backward model on 500k segments of web text from the ClueWeb corpus, effectively "labelling" the internet with instructions.
  5. Self-Curation (The "Filter" Step):
  6. Not all web text makes for a good "answer," and not all generated instructions are sensible.
  7. They use the model itself to score these new (instruction, output) pairs on a 5-point scale. Only the highest-quality pairs (scores $\geq$ 4) are kept.
  8. Iteration: They finetune the model on this curated data, then use that stronger model to re-score and re-curate the data, repeating the process to bootstrap quality.

Key Insights

  • Quality Trumps Quantity: The researchers found that training on the full 500k uncurated "augmented" pairs actually hurt performance. However, training on a smaller, highly-curated subset (the top 10-20%) led to massive gains.
  • The "Superficial Alignment" Counter-Argument: Previous work suggested you only need 1,000 examples to align a model. This paper shows that while 1,000 is a great start, the model's performance continues to scale significantly as you add more high-quality, self-curated data.
  • Web Text as a Gold Mine: Web documents provide a level of world knowledge and stylistic diversity that human annotators rarely produce in a lab setting.

Key Results

Their resulting model, Humpback, demonstrates highly effective self-alignment, particularly when evaluated on AlpacaEval and a combined set of 1,130 prompts from sources like Vicuna, Koala, and Self-Instruct.

Win rate comparison of Humpback against other models across data sizes
  • Leaderboard Dominance: Humpback (65B) achieved an 83.71% win rate against text-davinci-003 on the Alpaca leaderboard. This is the highest score for any model that doesn't rely on distillation from GPT-4.
  • Efficiency: Humpback 33B outperformed models like Guanaco 65B, despite being half the size and using significantly less human-annotated data.
  • Scaling Efficiency: The authors calculated a "scaling coefficient" and found that their self-curated data was more efficient for improving model performance than almost any other source, including some distilled datasets.

Limitations and Future Work

While highly capable, Humpback still struggles with highly specific formatting constraints (e.g., "Write a sentence where every word starts with the letter Y" or generating complex ASCII art). Furthermore, because the data comes from the web, the model could potentially amplify biases found in unlabelled internet text, though the curation step helps mitigate this. Finally, the model has not undergone the rigorous safety red-teaming typical of proprietary models.

Future directions include scaling this approach to even larger web corpora (billions of documents) to see if the performance gains continue to climb.

Summary updated

BibTeX
@inproceedings{li2024self,
  author = {Xian Li and Ping Yu and Chunting Zhou and Timo Schick and Omer Levy and Luke Zettlemoyer and Jason E Weston and Mike Lewis},
  title = {{Self-Alignment with Instruction Backtranslation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=1oijHJBRsT},
}
Figure