TL;DR
Instruction fine-tuning Large Language Models (LLMs) requires selecting high-quality data, but calculating the "influence" (or value) of each data point using large models is computationally massive. This paper introduces NN-CIFT, a method that trains a tiny neural network to accurately estimate these influence scores, cutting compute costs by up to 99%. Remarkably, LLMs fine-tuned on data selected by this tiny proxy network perform just as well as those using expensive, full-scale influence functions.
The Bottleneck in Data Selection
LLMs gain their ability to follow user commands through Instruction Fine-Tuning (IFT). However, fine-tuning on massive datasets is expensive and often includes redundant or low-quality data. To solve this, researchers use "data selection" pipelines to pick only the most valuable examples.
To figure out which data points are valuable, we use data valuation metrics (or influence functions). The current state-of-the-art methods for this are highly accurate but incredibly slow. They require running forward and backward passes through the massive LLMs themselves to see how a specific data point affects the model's gradients or predictions. This doesn't scale well to large datasets, requires massive GPU memory, and forces you to recompute everything from scratch if you add new data to your pool.
Methods: Introducing NN-CIFT
The authors propose NN-CIFT (Neural Networks for effiCient Instruction Fine-Tuning). Instead of using an LLM to calculate the influence of every single data point, they distill that knowledge into a tiny, cheap proxy model.
Here is how the pipeline works:
- Collect a tiny ground-truth sample: Use existing, expensive influence functions (like DELIFT or LESS) to calculate the exact influence scores for a very small fraction of the dataset (as little as 0.25% to 5%).
- Train the "InfluenceNetwork": Train a tiny 2-layer neural network (~205,000 parameters) to predict those influence scores. The input to this network is simply the concatenated text embeddings of the data points.
- Scale up instantly: Use the trained InfluenceNetwork to predict the influence scores for the remaining 95%+ of the dataset.
- Select and Fine-tune: Use standard data selection algorithms on these predicted scores to grab the best subset of data, and fine-tune your target LLM.
What is novel here is replacing the LLM in the valuation step with a learned, embedding-based Multi-Layer Perceptron (MLP), turning an $O(N^2)$ LLM inference problem into a lightweight embedding lookup and MLP forward pass.
Key Insights and Ideas
- Influence estimation is a highly compressible task: You might assume you need a massive LLM to understand how data affects an LLM. However, mapping high-dimensional text to a single scalar "influence" value is a lossy compression task. A tiny network can learn this mapping easily because most data points have a similar, average influence; the network really just needs to learn how to spot the extreme outliers (highly valuable or highly detrimental data).
- Zero-shot generalization to new data: As shown in the error plots above, the InfluenceNetwork achieves a low Mean Squared Error even when trained on a minuscule fraction of the data. Once trained, it accurately predicts scores for unseen, out-of-distribution data. This means as you scrape new data from the web, you don't need to retrain your influence function—you just pass it through the proxy network.
- Agnostic to the valuation method: NN-CIFT isn't tied to one specific math formula. It successfully learned to mimic four different state-of-the-art influence functions (DELIFT, DELIFT-SE, LESS, and SelectIT), proving it is a versatile drop-in replacement.
Key Results
- Massive Speedups: NN-CIFT performs data valuation 77% to 99% faster than the original influence functions.
- Microscopic Footprint: The InfluenceNetwork is roughly 0.0007% the size of the LLMs it replaces (averaged across 1.5B to 22B parameter models).
- No Compromise on Quality: The authors fine-tuned Llama-3.1-8B, Qwen2.5-1.5B, and Mistral-22B on subsets chosen by NN-CIFT. The downstream performance difference compared to using the exact, expensive SOTA influence functions was negligible—averaging a mere 0.12% to 0.24% difference across metrics like ROUGE, embedding similarity, and LLM-as-a-Judge.
Limitations and Future Work
The current evaluation focuses on general instruction fine-tuning. The authors note that while the network generalizes well to new data, it has not been heavily tested against severe distributional shifts (though retraining the tiny network is so cheap it could easily be done on the fly).
Future work will expand this approach to more complex objectives, like task-specific dataset selection and continual learning (where you want to teach a model new facts without it forgetting old ones). They also suggest shifting from estimating influence between data points to estimating influence between data and specific model parameters.
Summary updated