TL;DR
Standard influence functions assume training examples affect a model independently, leading to massive overestimation when evaluating groups of similar data. This paper introduces an interaction-aware influence function that uses a second-order Taylor expansion to capture whether data points are redundant or complementary. This approach significantly improves group data attribution and boosts downstream performance in LLM instruction tuning by naturally promoting data diversity.
What Problem Does This Paper Address?
Data attribution answers a fundamental question: Which training examples caused my model to make this prediction? The gold standard for answering this is "leave-one-out" retraining—removing a data point and retraining the model from scratch to see what changes. Because retraining is computationally prohibitive, researchers use influence functions to approximate this effect in closed form.
However, most real-world applications (like data valuation or subset selection) deal with groups of data rather than single points. The standard practice has been to simply sum the individual influences of a group's members. This additive approach harbors a massive blind spot: it assumes data points act independently. If you have two near-duplicate images in a training set, removing both has roughly the same effect as removing one. Simple addition double-counts their overlap, severely overestimating their collective impact and causing data selection algorithms to pick highly redundant subsets.
Methods
The authors propose an interaction-aware influence function that fixes this additive bias. Instead of looking only at how data points shift parameters, they expand the target function (e.g., validation loss) to the second order around the trained parameters.
This mathematical maneuver yields an estimator composed of two parts:
- First-order influence: The standard, additive sum of individual influences.
- Interaction term (Ours): A quadratic curvature correction that measures the alignment between two examples' effects on the target.
The pairwise interaction term decomposes into: $$\kappa(a, b) := u_a^\top H_f u_b$$ where $u_a$ and $u_b$ are the parameter shifts from individual examples, and $H_f$ is the Hessian of the target function.
To make this computationally tractable at scale, the authors employ a powerful engineering stack:
- Damped Gauss-Newton approximation to ensure Hessian invertibility.
- EK-FAC (Eigenvalue-Corrected Kronecker-Factored Approximate Curvature) for block-diagonal layer-wise Hessian inversion.
- Low-Rank Gradient Projection (LoGra) to project high-dimensional LLM gradients into a manageable subspace (dimension $d=16$), reducing the greedy selection step to simple inner products.
Using this formulation, they design a greedy data selection algorithm (Algorithm 1) that penalizes candidates that are too similar to already-selected data.
Datasets
The method was rigorously evaluated across two distinct regimes:
- Small-Scale Models: Evaluated on image classification (MNIST, FashionMNIST, CIFAR-10) and regression tasks (Concrete, Parkinsons).
- LLM Scale: Used the LESS pool (~270K instruction-tuning examples) to select data for fine-tuning Llama-3.1-8B.
- Downstream LLM Evaluation: Subsets were tested on seven benchmarks covering mathematical reasoning (GSM8K, AQuA), commonsense/science reasoning (ARC-Easy, HellaSwag, PIQA, ECQA), and reading comprehension (SQuAD).
Key Insights and Ideas
- Target Geometry Matters: Prior attempts to introduce second-order corrections (e.g., Basu et al.) only looked at how parameters shift, leading to severe numerical instability in non-convex models. This paper shows that interactions must be characterized by how they jointly affect the target function's loss surface.
- The Quality-Diversity Trade-off Emerges Naturally: In data selection, engineers often combine an influence score with an ad-hoc diversity penalty. Here, the trade-off emerges purely from the math: the linear term rewards data quality, while the quadratic interaction term penalizes redundancy.
- Mathematical Proof of Class Balance: The authors prove that for logistic regression, the interaction term $\kappa(a,b)$ is positive for same-class pairs (signaling redundancy/diminishing returns) and negative for cross-class pairs (signaling complementarity). Visually similar examples from different classes help shape the decision boundary, which the model recognizes as highly valuable.
Key Results
1. Faithfulness to Retraining
When predicting the actual effect of removing a group of highly similar data points, the interaction-aware estimator (Ours) achieved the highest Spearman rank correlation with ground-truth retraining across all six small-scale settings, outperforming standard first-order influence by up to 0.67.
2. Preventing Class Collapse
In small-scale data selection, standard first-order influence functions quickly suffer from "class collapse"—greedily selecting data from only a few classes, causing performance to drop below random selection. The interaction-aware method maintains a high class entropy, matching the diversity of random selection while picking higher-quality points.
3. LLM Instruction Tuning
When selecting a 5% subset (13,534 examples) from the LESS pool to tune Llama-3.1-8B, the proposed method outperformed all influence-based and representation-similarity baselines on 5 out of 7 downstream tasks, achieving the highest overall average score of 66.85% (compared to 63.00% for random selection and 57.31% for additive influence).
Limitations and Future Work
While powerful, the authors note two primary limitations:
- Greedy Heuristic: The data selection relies on a greedy approximation. While it performs exceptionally well in practice, it lacks formal global optimality guarantees.
- Hessian Approximation Errors: The method's accuracy is fundamentally bounded by the quality of its underlying Hessian approximations (like EK-FAC).
The authors point to scalable, more accurate inverse-Hessian estimation as the most promising direction for making group data attribution even more robust.
Summary updated