Introduction
Instruction tuning is a critical phase in the development of Large Language Models (LLMs), transforming raw base models into interactive assistants. While the volume of instruction data has grown exponentially, research—such as the LIMA study—suggests that quality and diversity are more impactful than sheer quantity. Curating high-quality datasets manually is labor-intensive, leading to a demand for automatic data selection methods.
Existing automated approaches typically fall into two categories: quality-oriented methods, which prioritize complex or difficult instructions but often result in redundant datasets, and diversity-oriented methods, which use embedding-based clustering. The latter are often computationally prohibitive, requiring $O(N^2)$ pairwise distance calculations, and frequently fail to capture the nuanced semantic intent of instructions. To address these challenges, we present MIG (Maximize Information Gain), a framework that models the semantic space as a label graph to efficiently select the most informative data subsets.
Methodology
The MIG framework treats data selection as a submodular optimization problem within a structured semantic space. It consists of four primary components:
1. The Label Graph
Rather than representing instructions as high-dimensional embedding vectors, MIG utilizes a semantic tagger (e.g., #InsTag) to assign descriptive labels to each sample. A graph is constructed where nodes represent these labels and edges represent semantic similarity. This structure allows the system to recognize that distinct tags, such as "creative writing" and "poetry," share significant semantic overlap.
2. Information Propagation
To account for the shared meaning between labels, MIG employs an information propagation mechanism. When a specific data point is selected, its "information" is propagated along the edges of the label graph. For example, selecting a sample focused on "Calculus" provides partial information coverage for related nodes like "Algebra" or "Mathematics," preventing the redundant selection of closely related topics.
3. Submodular Information Measurement
MIG quantifies the value of a dataset using a submodular function—a mathematical approach characterized by diminishing returns. The first few examples of a specific category (e.g., Python coding) provide high marginal information gain, but as more similar examples are added, the incremental value decreases. This naturally enforces diversity without requiring expensive clustering.
4. Greedy Sampling
Due to the submodular nature of the information gain function, a greedy selection algorithm—picking the sample that offers the highest marginal information gain at each step—is guaranteed to yield a near-optimal subset. This approach is significantly faster than traditional methods.
Experimental Setup
The effectiveness of MIG was evaluated using three large-scale data pools:
- Tulu3: A million-level dataset covering math, programming, and general dialogue.
- Openhermes2.5: Approximately 1 million samples from diverse sources like MetaMath and CamelAI.
- Xsota: A 300k-sample collection of high-quality multi-turn conversations.
Models (including Llama 3.1-8B, Mistral-7B, and Qwen2.5-7B) were evaluated on knowledge-based benchmarks (MMLU, GSM8k, HumanEval) and human-preference benchmarks (AlpacaEval v2, MT-Bench, WildBench).
Key Results and Insights
Data Efficiency and Performance
MIG demonstrates remarkable data efficiency. A Llama 3.1-8B model trained on just 5% of the Tulu3 pool selected by MIG achieved performance parity with the model trained on the entire 100% dataset. On the Tulu3 pool, MIG outperformed the state-of-the-art QDIT method by an average of 2.20%, with notable gains in complex reasoning tasks like WildBench (+6.89%).
Computational Efficiency
By operating on a graph of semantic labels rather than performing pairwise comparisons between millions of embedding vectors, MIG achieves a 100x speedup in sampling time compared to previous embedding-based diversity methods. This makes it feasible to process million-scale datasets in a fraction of the time.
Mitigating Selection Bias
Traditional quality metrics often over-select long, verbose "chatty" responses. By enforcing semantic diversity through the label graph, MIG ensures a balanced representation of concise, high-utility tasks—such as logic and coding—alongside general conversational data.
Conclusion and Future Work
MIG provides a robust, scalable, and efficient solution for automatic instruction data selection. By maximizing information gain in a structured semantic space, it achieves superior performance with significantly less data.
Future research will focus on addressing current limitations, such as the sensitivity to hyperparameters (e.g., propagation weights) and the reliance on static label graphs. Developing dynamic graphs that evolve during the selection process and exploring self-supervised label discovery could further enhance the framework's generalizability and precision.
Summary updated