Introduction
Instruction Supervised Fine-Tuning (SFT) is a critical phase in the development of Large Language Models (LLMs), transforming raw base models into helpful, conversational assistants. However, the prevailing paradigm of "more data is better" has led to increasingly expensive and resource-intensive training cycles. For the open-source community and smaller research labs, scaling data indefinitely is often computationally prohibitive.
Furthermore, the quality of instruction data is highly variable. Not all training examples contribute equally to a model's performance; some may even be detrimental. This paper introduces In2Core, an algorithm designed to identify a highly effective "coreset"—a subset of the training data that maintains or even improves model performance while significantly reducing computational overhead. By leveraging influence functions, In2Core identifies the most beneficial data points ("Proponents") and filters out those that hinder generalization ("Opponents").
Methodology
Influence Functions for LLMs
The core of the In2Core algorithm is the use of influence functions to estimate the impact of a specific training point on a model’s performance at test time. Traditionally, calculating influence would require retraining a model multiple times while omitting specific data points—a task that is impossible for LLMs with billions of parameters. In2Core approximates this relationship by analyzing the model's internal gradients.
The algorithm distinguishes between two types of data:
- Proponents: Training examples that, when included, reduce the validation loss on a target set.
- Opponents: Training examples that increase validation loss, effectively hindering the model's ability to generalize.
By ranking data points based on their influence scores, In2Core selects only the top-scoring Proponents to form the coreset.
Memory and Computational Optimization
Calculating gradients for every parameter in a massive model presents a significant memory bottleneck. To address this, the authors propose a layer-limiting optimization. Their empirical findings suggest that the initial layers of an LLM capture influence signals more effectively than later layers. By restricting influence calculations to a subset of layers, In2Core drastically reduces CPU memory requirements without sacrificing the accuracy of the data ranking.
Cross-Model Transferability
A significant contribution of this work is the demonstration of cross-model transfer. The authors show that influence signals are not strictly tied to a specific architecture. A smaller, computationally cheaper "reference model" (such as Gemma-2B) can be used to select a coreset for a larger "target model" (such as Mistral-7B). This "scout" approach makes the data selection process significantly more affordable for large-scale deployments.
Experimental Setup
The researchers utilized a 50,000-sample subset of the Ultrachat-200k dataset, a collection of multi-turn dialogues, for training. Evaluation was conducted using two primary metrics:
- Perplexity: Measured on a disjoint 250-sample subset of Ultrachat to determine how well the model predicts the text.
- MMLU (Massive Multitask Language Understanding): A benchmark of 57 subjects across STEM and the humanities to test general world knowledge and reasoning.
Key Insights and Results
Addition by Subtraction
The most striking result of the study is that training on less data can yield better results. Models trained on a 25k Proponent coreset (the top 50% of the data) achieved lower mean perplexity than models trained on the full 50k dataset. By removing "Opponents" and points with negligible influence, the model avoids noise and focuses on high-utility information.
Influence vs. Semantic Similarity
Common data selection techniques often rely on semantic similarity—finding training data that looks like the test data. However, this study found that semantic similarity is a poor predictor of performance, with a correlation of only -0.087. In contrast, influence values showed a much stronger correlation (0.56) with actual model generalization, proving that the relationship between training and test data is more complex than simple textual overlap.
Benchmark Stability
On the MMLU benchmark, the 25k coreset model achieved an accuracy of 0.30, nearly matching the 0.32 accuracy of the model trained on the full 50k dataset. This suggests that half of the data can be discarded with minimal impact on general knowledge capabilities, provided the remaining data is selected strategically.
Limitations and Future Work
While In2Core represents a significant step forward in data efficiency, several challenges remain:
- Metric Proxies: The study primarily uses perplexity as a proxy for performance. While mathematically robust for influence functions, perplexity may not fully capture human-centric qualities like "helpfulness" or "safety."
- Group Influence: The current method ranks points individually. Future research is needed to understand "group influence," where clusters of data points might interact in ways that individual ranking cannot capture.
- Sequence Length Bias: The authors observed that averaging token gradients can bias the algorithm toward longer sequences. Refining the scoring mechanism to account for sequence length is a priority for future iterations.
- Computational Overhead: Although more efficient than retraining, calculating gradients for tens of thousands of points still requires substantial GPU/CPU resources (estimated at 100-200 GPU hours for this study).
Conclusion
In2Core demonstrates that for LLM instruction finetuning, data quality and influence are far more important than sheer volume. By identifying and utilizing only the most influential "Proponents," researchers can create models that are both more efficient to train and more effective at generalization, paving the way for more sustainable AI development.
Summary updated