Introduction
While open-source Large Language Models (LLMs) have made significant progress, a performance gap remains between them and proprietary models like GPT-4. This gap is largely attributed to a "data bottleneck"—existing open-source instruction datasets are often narrow in scope or inconsistent in quality. Furthermore, fine-tuning presents a challenge: over-training on specific instructions can lead to "catastrophic forgetting" of foundational reasoning. Researchers from BAAI and the University of Oxford address these issues with Infinity-Instruct, a high-quality, large-scale instruction dataset designed to enhance both foundational capabilities and conversational fluidity.
Methodology: The Infinity-Instruct Pipeline
The core contribution of this work is a sophisticated two-phase pipeline for data curation and synthesis.
Phase 1: Foundational Curation
The team curated InfInstruct-F-7.4M from a pool of over 100 million raw samples. They employed a hybrid selection strategy using Data Selection through Importance Resampling (DSIR). This method identifies samples that align with the distribution of high-quality reasoning benchmarks (e.g., GSM8K for math, HumanEval for code), ensuring the model retains its core logical strengths.
Phase 2: Chat Synthesis
To improve conversational ability, the researchers developed InfInstruct-G-1.5M. This phase utilizes a two-layer labeling system to categorize instructions into thousands of niche types. They then applied Instruction Evolution, iteratively rewriting seed instructions to increase complexity, and Diagnostic Filtering, using GPT-4 to identify and rectify common failure modes in open-source models.
The training follows a two-stage curriculum: models are first trained on foundational data and subsequently refined with conversational samples.
Dataset and Evaluation
The project introduces two primary resources:
- InfInstruct-F-7.4M: 7.4 million instructions focused on math, code, and general knowledge.
- InfInstruct-G-1.5M: 1.5 million high-quality, evolved chat samples.
Performance was evaluated across diverse benchmarks, including AlpacaEval 2.0 and Arena-Hard for instruction following, and MMLU, GSM8K, and HumanEval for foundational reasoning.
Key Results and Scaling Laws
The results demonstrate that InfInstruct-LLaMA3.1-70B outperforms GPT-4-0314 by 8.6% on instruction-following benchmarks. Notably, fine-tuning Mistral-7B on this dataset yielded a 12.9-point improvement in conversational performance over its official instruction-tuned counterpart.
The researchers observed clear scaling laws: performance continues to improve as instruction data scales, particularly for reasoning tasks. This suggests that the ceiling for instruction tuning has not yet been reached. Furthermore, the study highlights a "synergy effect," where improvements in foundational reasoning (like math) correlate with better conversational performance.
Conclusion and Future Work
Infinity-Instruct provides a scalable, principled approach to bridging the gap between open and proprietary LLMs. While the pipeline relies on "teacher" models like GPT-4, which may introduce biases, the resulting datasets significantly boost model performance across the board. Future work will focus on long-term capability retention and enhancing the safety and robustness of the resulting models.
The dataset and code are publicly available to foster community-driven LLM development.
Summary updated