Preprint
AI Safety & Alignment

Humpback (Self-Alignment with Instruction Backtranslation)

Xian Li, Ping Yu, Chunting Zhou, Timo Schick, Omer Levy, Luke Zettlemoyer, J. Weston, M. Lewis
August 11, 2023International Conference on Learning Representations200 citations

200

Citations

9

Influential Citations

International Conference on Learning Representations

Venue

2023

Year

Abstract

We present a scalable method to build a high quality instruction following language model by automatically labelling human-written text with corresponding instructions. Our approach, named instruction backtranslation, starts with a language model finetuned on a small amount of seed data, and a given web corpus. The seed model is used to construct training examples by generating instruction prompts for web documents (self-augmentation), and then selecting high quality examples from among these candidates (self-curation). This data is then used to finetune a stronger model. Finetuning LLaMa on two iterations of our approach yields a model that outperforms all other LLaMa-based models on the Alpaca leaderboard not relying on distillation data, demonstrating highly effective self-alignment.

Analysis

Why This Paper Matters

Instruction-following language models typically require large, high-quality datasets of human-written instructions and responses, which are costly and time-consuming to produce. This paper introduces instruction backtranslation, a method that flips the traditional data collection paradigm: instead of writing instructions for existing responses, it automatically generates instructions for human-written web documents. This approach leverages the vast amount of unlabeled text on the web and a small seed model to create training data at scale, potentially democratizing the development of instruction-following models.

The significance lies in its simplicity and scalability. By using a seed model to generate and curate instruction-response pairs, the method enables iterative self-improvement without additional human annotation. This aligns with the broader goal of self-alignment, where models improve themselves using their own outputs, reducing dependence on proprietary or expensive human feedback. The paper demonstrates that even a modest seed dataset can bootstrap a strong instruction-following model, which is particularly valuable for the open-source community.

Moreover, the work contributes to AI safety and alignment by exploring how models can be aligned with human intent through automated processes. While not without risks, such as amplifying biases in the seed model or web data, it opens avenues for scalable oversight and self-correction.

Technical Contributions

  • Instruction Backtranslation Pipeline: A two-stage process where a seed model generates candidate instructions for web documents (self-augmentation), followed by a curation step to select high-quality pairs (self-curation).
  • Iterative Self-Alignment: The curated data is used to finetune a stronger model, and the process can be repeated, leading to cumulative improvements.
  • Scalable Data Generation: Eliminates the need for human-written instructions by repurposing existing web text, making it possible to generate millions of training examples.
  • Empirical Validation on LLaMa: Demonstrates the effectiveness of the approach by finetuning LLaMa and achieving state-of-the-art results among non-distilled models on the Alpaca leaderboard.

Results

The paper reports that finetuning LLaMa on two iterations of instruction backtranslation yields a model that outperforms all other LLaMa-based models on the Alpaca leaderboard that do not rely on distillation data. While specific metrics are not detailed in the abstract, the claim of outperforming non-distilled LLaMa models indicates strong performance. The iterative process shows that self-augmentation and self-curation can produce high-quality instruction data, as evidenced by the model's leaderboard ranking. The results suggest that the method is competitive with approaches that use human-annotated or distilled data, despite using only a small seed set and unlabeled web text.

Significance

This work has significant implications for the AI field, particularly in reducing the cost and effort required to build instruction-following models. By enabling models to self-align using unlabeled text, it paves the way for more scalable and accessible development of aligned AI systems. The method could be applied to other domains where unlabeled data is abundant but instruction data is scarce. However, it also raises questions about the quality and safety of self-generated data, and the potential for feedback loops that reinforce biases. Nonetheless, instruction backtranslation represents a promising step toward self-improving language models and scalable alignment.