TL;DR
Classical influence functions estimate a training example's impact on model behavior without expensive retraining, but computing the inverse Hessian matrix in deep, non-convex neural networks is computationally prohibitive and prone to error. This paper simplifies Hessian-free influence estimation into a simple inner product (IP) of gradients at the converged model checkpoint, extends the formulation to assess sample impact on group fairness and adversarial robustness, and introduces IP Ensemble—a lightweight dropout-based ensemble technique. Across vision, NLP, and adversarial defense tasks, IP Ensemble runs over 100× faster than classical Hessian approximations while consistently identifying detrimental data points more reliably.
What Problem Does This Paper Address?
In data-centric machine learning, knowing which data points help or hurt model performance enables data cleaning, relabeling, and subset selection. Influence functions estimate this by calculating the derivative of the test loss with respect to training sample weights via a first-order Taylor approximation:
$$\mathcal{I}_{\text{util}}(-z_i) \propto \nabla_\theta \ell(z_{\text{val}})^\top H^{-1} \nabla_\theta \ell(z_i)$$
However, computing and inverting the Hessian matrix ($H^{-1}$) is a major bottleneck:
- For modern deep networks with millions of parameters, $H^{-1}$ is intractable to invert directly ($O(p^3)$ or $O(np)$ via iterative approximations like LiSSA).
- Deep networks have non-convex loss landscapes, meaning the Hessian is often not positive definite or its approximations introduce massive directional errors, producing unreliable influence estimates.
Methods
The authors build on and simplify earlier gradient-based tracking methods like TracIn:
-
Inner Product (IP): The authors replace the inverse Hessian $H^{-1}$ with the identity matrix $I$, evaluating the influence strictly at the converged model checkpoint $\hat{\theta}$: $$\mathcal{I}_{\text{IP}}^{\text{util}}(-z_i) = \left( \sum_{z_j \in \mathcal{V}} \nabla_{\hat{\theta}} \ell(z_j; \hat{\theta}) \right)^\top \nabla_{\hat{\theta}} \ell(z_i; \hat{\theta})$$ Unlike TracIn, which sums gradients across training checkpoints (introducing noise from early optimization phases), IP relies solely on the final model parameters.
-
Extensions to Fairness and Robustness: Rather than only computing the inner product with the validation loss gradient ($\nabla v_{\text{util}}$), IP substitutes alternative validation impact objectives:
- Group Fairness: Using Demographic Parity (DP) differences across sensitive groups as the target objective ($\nabla v_{\text{fair}}$).
- Adversarial Robustness: Using the loss gradient over a perturbed, adversarial validation set ($\nabla v_{\text{robust}}$).
- IP Ensemble: To handle non-convex local optima without expensive model retraining or saving historical checkpoints, the authors apply parameter dropout ($U(0, 0.01)$ noise) to generate diverse parameter states from the converged model, averaging their IP scores across an ensemble of size $T$ (e.g., $T=5$).
Datasets
The authors evaluate IP and IP Ensemble across multiple modalities:
- Synthetic Datasets: 2D isotropic Gaussian blobs (linear model) and half-moons (non-linear 3-layer MLP) with artificially flipped label noise.
- Vision Benchmarks (Noisy Labels): Real-world human annotation noise benchmarks:
- CIFAR-10N (aggregate, random, and worst noise splits).
- CIFAR-100N (single noisy annotation split).
- Animal-10N (real-world web crawling label noise).
- NLP Benchmarks (GLUE): Evaluated on RTE, CoLA, and QNLI with demographic attribute perturbations generated via a sequence-to-sequence model to measure fairness and utility.
- Tabular / Attribute Classification (Evasion Attacks): Bank Telemarketing, CelebA, and Jigsaw Toxicity datasets subjected to white-box linear evasion attacks.
Key Insights and Ideas
- Why identity substitution works: In convex linear models, the angle between $H^{-1}\nabla v_{\text{util}}$ and $\nabla v_{\text{util}}$ is practically negligible (e.g., $0.66^\circ$). In non-convex neural networks, explicit or iterative approximations of $H^{-1}$ diverge significantly (often yielding obtuse angles or noise). A simple dot product between the validation gradient and sample gradient acts as a much cleaner indicator of whether a sample aligns with the validation objective.
- Order-Consistency: Even when magnitudes differ, IP largely preserves ranking order relative to the Hessian-based influence in regions where sample gradients align closely with validation gradient directions.
- Dropout as a cheap ensemble surrogate: Instead of saving checkpoints during training (TracIn/TDA) or running extra SGD steps post-convergence (GEX), applying minor dropout perturbations directly to converged weights captures local gradient variability without extra training passes.
Key Results
- Computational Speedup: On vision datasets, IP computes influences 100× to 800× faster than Hessian-based baselines like LiSSA, EKFAC, DataInf, and Self-LiSSA (e.g., Animal-10N runs in 0.03 seconds for IP vs. 23.89 seconds for EKFAC).
- Label Noise Removal: Trimming 5% of the most detrimental samples using IP Ensemble and retraining ResNet-34 boosted test accuracy across the board:
- On CIFAR-100N, IP Ensemble achieved 62.25% accuracy, outperforming the baseline cross-entropy (56.41%) and competing methods like EKFAC (59.91%) and Self-TracIn (61.99%).
- Consistent gains were reproduced across ViT and MLP-Mixer architectures.
- Pareto Gains in NLP Fine-Tuning: By filtering out 5% detrimental samples according to both fairness and utility influence on RoBERTa, IP Ensemble consistently achieved simultaneous improvements in test accuracy and Demographic Parity fairness scores on RTE, CoLA, and QNLI, avoiding the accuracy-fairness trade-offs seen with LiSSA or EKFAC.
- Adversarial Evasion Defense: Under relabeling and reweighting strategies, IP Ensemble defended against adaptive evasion attacks on Bank, CelebA, and JigsawToxicity, achieving the highest average accuracy across all methods (86.44% on Bank, 75.10% on CelebA, and 70.67% on Jigsaw under reweighting).
Limitations and Future Work
- Evaluation Scale: Due to the computational demands of multiple full retraining cycles needed for validation, experiments were conducted on moderate-sized datasets (e.g., CIFAR, GLUE) rather than large-scale vision benchmarks like ImageNet or very large LLM pretraining runs.
- Homogeneity Assumption: The authors note that the method assumes a level of data and model homogeneity that may break down in highly heterogeneous distributions or exotic architectures.
- Fairness Side Effects: While IP optimizes for explicit group fairness metrics, data trimming could inadvertently impact other unmonitored sub-populations if not audited carefully.
Summary updated