TL;DR
Researchers at Meta have developed instruction backtranslation, a scalable method for aligning large language models (LLMs) using a small amount of seed data and a massive, unlabeled web corpus. By using the model itself to both generate instructions for web text and curate the highest-quality examples, they produced Humpback, a model that outperforms all other non-distilled LLaMA-based models on the Alpaca leaderboard.
What Problem Does This Paper Address?
Aligning LLMs to follow instructions typically requires one of two expensive paths:
- Massive human annotation: Collecting thousands of high-quality (instruction, response) pairs is slow and hard to scale.
- Distillation: Training a smaller model on the outputs of a proprietary giant like GPT-4. While effective, this creates a dependency on closed-source models and may inherit their specific biases or limitations.
The authors sought a way to achieve high-quality instruction following through self-alignment—enabling a model to improve its own instruction-following abilities using the vast, unlabelled "gold" text already available on the web.
Methods
The core of the paper is an iterative, two-step process called instruction backtranslation, inspired by classical backtranslation in machine translation.
- Self-Augmentation: The researchers start with a base LLaMA model and a small "seed" set of human-annotated instruction-output pairs. They train a backward model ($M_{yx}$) to do the reverse of a standard LLM: given a response, predict the instruction that prompted it. They then run this model on a massive web corpus (ClueWeb) to generate candidate instructions for existing high-quality web documents.
- Self-Curation: Not all generated instructions are good. The authors use a seed instruction-following model ($M_0$) to score the (instruction, output) pairs on a 5-point scale. They only keep the highest-quality pairs to finetune the next iteration of the model.
- Iteration: This process is repeated. A better instruction-following model ($M_1$) is used to more accurately curate the data for the next model ($M_2$), creating a virtuous cycle of improvement.
Datasets
- Seed Data: 3,200 high-quality, human-annotated examples from the Open Assistant dataset.
- Unlabelled Data: 502,000 segments sampled from the ClueWeb corpus.
- Evaluation Benchmarks: The models were tested on a combined set of 1,130 unique prompts from sources like Vicuna, Self-instruct, and LIMA, as well as the AlpacaEval leaderboard.
Key Insights and Ideas
- Quality Trumps Quantity: Simply adding more self-augmented data without curation actually hurts performance. However, scaling up the amount of high-quality curated data leads to steady, significant improvements.
- The "Superficial Alignment Hypothesis" Refined: While prior work (like LIMA) suggested a few thousand examples are enough for alignment, this paper shows that while a few examples get you far, continuing to scale high-quality data provides further gains.
- Web Text as "Gold" Responses: The key assumption is that the web already contains the "perfect" answers to many possible instructions. The challenge isn't writing the answers, but finding the right questions for them.
- System Prompts Matter: Using specific system prompts (e.g., "Answer with knowledge from web search") to distinguish augmented data from human seed data during training helped the model better leverage the diverse web-based examples.
Key Results
The resulting model, Humpback, showed remarkable efficiency and performance:
- State-of-the-Art Self-Alignment: Humpback 65B achieved a 83.71% win rate on the Alpaca leaderboard, outperforming all other models that do not rely on distillation from GPT-4.
- Data Efficiency: As shown in Figure 3, Humpback exhibits a higher scaling coefficient ($\alpha$) than other instruction datasets, meaning it gains more performance per additional training example.
- Human Preference: In head-to-head human evaluations, Humpback was preferred over strong baselines like LIMA, Guanaco, and even the proprietary
text-davinci-003.
Limitations and Future Work
- Web Bias: Since the data comes from the web, the model can amplify existing biases found in web text. While it showed improved accuracy in detecting bias, it doesn't guarantee the model won't generate biased content.
- Safety: The training process did not include specific "red-teaming" or safety-focused demonstrations. While the model often produced cautious responses to sensitive prompts, it wasn't explicitly optimized for safety.
- Complex Formats: The authors noted the model still struggles with instructions requiring very specific formatting, such as generating ASCII art.
- Future Directions: The authors suggest that scaling to even larger unlabelled corpora could yield further gains, potentially closing the gap even further with proprietary, RLHF-tuned models.
Summary updated