Introduction
The standard paradigm for developing Large Language Models (LLMs) typically involves a two-stage pipeline: massive unsupervised pre-training on raw text followed by supervised instruction tuning on high-quality, human-annotated datasets. While unsupervised pre-training scales effectively to trillions of tokens, it does not explicitly teach models to follow instructions or solve specific tasks. Conversely, supervised multitask learning (SFT) is highly effective for generalization but suffers from data scarcity at the pre-training scale.
This paper introduces Instruction Pre-Training, a framework designed to bridge this gap by augmenting raw corpora with instruction-response pairs before the initial training phase. By transforming raw text into a supervised multitask learning objective, the authors enable smaller models to achieve performance levels previously reserved for much larger architectures.
Methodology
The core of the proposed framework is the Instruction Synthesizer. Rather than relying on costly proprietary models, the authors fine-tuned an open-source Mistral-7B model on a diverse array of existing datasets (e.g., SQuAD, HotpotQA) to generate contextually grounded Q&A pairs.
The process involves three main steps:
- Instruction Synthesis: The synthesizer processes raw text to generate multiple instruction-response pairs grounded in the provided context.
- Augmentation: These pairs are prepended to the original raw text, forming "Instruction-Augmented Corpora."
- Pre-Training: The language model is trained on this augmented data using a standard next-token prediction objective, effectively learning to solve tasks while acquiring knowledge.
Experimental Setup
The Instruction Synthesizer was trained on a reformatted collection of datasets including HotpotQA, SQuAD, RACE, and CommonsenseQA, covering over 40 task categories. For pre-training, the authors utilized a 100B token subset of RefinedWeb for general capabilities, alongside domain-specific corpora such as PubMed Abstracts (Biomedicine) and Financial News (Finance). Evaluation was conducted on standard benchmarks (MMLU, ARC, BoolQ, HellaSwag) and specialized domain tasks (PubMedQA, ConvFinQA).
Results and Discussion
Instruction Pre-Training yields significant improvements in both general and domain-specific performance. A key finding is the "Small Model Advantage": a 500M parameter model trained with this method matched the performance of a 1B parameter model trained on three times as much raw data.
Key Findings:
- Early Alignment: Including instructions during pre-training aligns internal representations with task-solving behavior from day one, making subsequent fine-tuning more efficient.
- Domain Superiority: In specialized fields like biomedicine and finance, an Instruction Pre-Trained Llama3-8B outperformed the significantly larger Llama3-70B on specific tasks, such as the Finance "Headline" benchmark (87.1 vs. 86.3).
- Faster Convergence: Models pre-trained with instructions reached peak performance faster during post-training tuning, reducing the overall "compute tax."
Conclusion and Future Work
While Instruction Pre-Training shows immense promise, challenges remain regarding the quality of synthetic data. The current synthesizer has an estimated accuracy of 70%, introducing potential noise. Future research may focus on scaling this approach to the multi-trillion token level and implementing automated verification stages to filter out low-quality synthetic pairs. Nonetheless, this framework represents a significant step toward more efficient and capable language models through supervised multitask pre-training.
Summary updated