TL;DR
This paper introduces Greedy Information Projection (GIP), a novel framework for selecting high-quality and diverse training data for large language models (LLMs). GIP achieves significant data efficiency, matching full-dataset performance with only a fraction of the data, by optimizing a mutual information objective.
What Problem Does This Paper Address?
Training large language models (LLMs) requires vast amounts of data, but simply increasing data quantity doesn't always lead to better performance. Beyond a certain point, data quality becomes the bottleneck. However, existing methods for selecting high-quality and diverse data often lack a unified theoretical foundation, relying on ad-hoc heuristics. This makes it difficult to balance the need for representative data (diversity) with data that is genuinely useful for the task (quality). The paper aims to bridge this gap by proposing a principled, information-theoretic approach to data selection that simultaneously optimizes for both quality and diversity.
Methods
The core of the paper is the Greedy Information Projection (GIP) framework. GIP frames data selection as a problem of maximizing the mutual information between the selected data points and task-specific "query signals." These query signals can be derived from various sources, such as LLM quality judgments, metadata, or even internal dataset properties.
The key innovation lies in the mathematical formulation:
- Mutual Information Objective: GIP optimizes a closed-form mutual information objective based on data and query embeddings. This objective is shown to be equivalent to maximizing the projection of the query embedding matrix onto the span of the selected data. This geometric interpretation elegantly explains how quality (alignment with query signals) and diversity (spanning new directions in the embedding space) emerge together.
- Greedy Matching Pursuit (MP) Algorithm: To efficiently solve this optimization problem, the authors propose a fast greedy matching-pursuit algorithm. This algorithm iteratively selects data points that maximally contribute to the objective, offering efficient updates and linear scaling with the dataset size.
Datasets
The paper uses the following datasets:
- Alpaca-52k: A 52,000-instruction dataset used for instruction-following experiments.
- GSM8K: A dataset of mathematical reasoning problems, used for mathematical reasoning experiments.
The paper also mentions using MT-Bench, BBH, and Alpaca-Eval-V2 as evaluation benchmarks.
Key Insights and Ideas
- Unifying Quality and Diversity: The most significant insight is the development of a single, principled objective that naturally balances data quality and diversity. This moves beyond separate heuristics for each aspect.
- Geometric Interpretation: The connection between maximizing mutual information and projecting query embeddings onto the data span provides a powerful geometric intuition for why the method works. It visually explains how selecting data that "covers" the query space leads to both quality and diversity.
- Efficiency through Greedy MP: The proposed greedy matching-pursuit algorithm is crucial for making this theoretically grounded approach practical. It allows for efficient selection without requiring extensive computation or gradient-based methods.
- Data Efficiency: The framework demonstrates remarkable data efficiency, achieving performance comparable to using the full dataset with only a small fraction of the data. This is particularly impactful for resource-constrained scenarios.
Key Results
- Performance Gains: GIP (specifically MP+MA and MP+SC variants) consistently matches or exceeds full-dataset performance on instruction-following (MT-Bench, BBH, Alpaca-Eval-V2) and mathematical reasoning (GSM8K) benchmarks.
- Data Efficiency: GIP achieves these results using only 1-20% of the training data, demonstrating substantial data efficiency. For instance, on GSM8K, GIP often narrows the gap to full-data training significantly with just 10-20% of the data.
- Robustness: The improvements are consistent across different LLM architectures (Mistral, Qwen) and benchmarks, indicating the general applicability of the method.
- Selection Stability: The selection process is shown to be robust to minor perturbations in data embeddings, preserving the core selected items even under moderate noise.
Limitations and Future Work
- Approximation: The paper uses a greedy approximation algorithm. While empirically effective, formal approximation guarantees and finite-sample analyses are suggested for future work.
- Scalability: While the greedy algorithm scales linearly with dataset size, further exploration of distributed or streaming variants for pretraining-scale datasets is proposed.
- Gaussian Assumption: The theoretical framework relies on Gaussian assumptions for deriving closed-form solutions. Extending the framework to handle non-Gaussian quality signals is a future direction.
- Multimodal and Continual Learning: Adapting the framework to multimodal data and continual learning settings are also mentioned as future research avenues.
Summary updated