Influence Functions (IF) are a foundational tool in machine learning for debugging training data. They theoretically allow researchers to answer a critical question: "How would my model's prediction change if I removed this specific training sample?"—all without the computationally prohibitive step of actually retraining the model.
However, when applied to deep neural networks trained on noisy, uncurated datasets, standard IF methods often fail, yielding unreliable or highly noisy estimates. This paper reveals that the culprit isn't merely how we estimate parameter changes, but rather the "sharpness" of the validation loss surface. By optimizing for Flat Validation Minima (FVM) and employing a second-order estimation approach, the authors significantly improve the reliability of data influence tracking across vision, text, and image generation tasks.
The Problem: Sharpness in the Loss Surface
In the era of massive datasets, data debugging is essential. Standard IF methods (such as the landmark Koh & Liang 2017 approach) rely on linear approximations of the loss surface. While previous research often blamed IF failures on poor approximations of the Hessian matrix (the "curvature" of the loss), this paper argues the real issue is sharpness.
If a model converges to a "sharp" minimum on the validation set, even a microscopic change in parameters causes a massive, unpredictable spike in loss. This extreme volatility renders the linear approximations used by standard IFs highly inaccurate.
As illustrated above, in a sharp valley, a small parameter shift ($\Delta\theta$) results in a huge "estimation gap" between the predicted and actual influence. Conversely, in a flat valley, the linear or quadratic approximation stays much closer to the ground truth.
Methodology: Achieving Flat Validation Minima
The authors propose a two-pronged solution to stabilize influence estimation:
- Theoretical Error Bounds: They establish a new theoretical connection proving that influence estimation error is upper-bounded by the validation risk and its local sharpness. The core takeaway is simple: to get better influence estimates, you need a flatter validation surface.
- Flat Validation Minima (FVM) Optimization: Instead of using a standard model, the researchers apply Sharpness-Aware Minimization (SAM) on the validation set. This explicitly tunes the model toward a "flat" region where the loss remains stable despite small parameter shifts.
- Second-Order Estimator: Standard IF relies on a first-order Taylor expansion (gradients). Because gradients often vanish near convergence, the authors introduce a novel second-order estimation form. This captures the curvature of the loss surface, providing a much stronger signal for identifying influential data points. To keep the math tractable for large models, they employ a diagonal preconditioner (an approximation of the Fisher Information Matrix) to avoid the computational bottleneck of full Hessian matrices.
Key Results and Insights
The authors validated their approach across several domains, including Computer Vision (CIFAR-10N/100N), Natural Language Processing (Llama-2-13B), and Generative AI (Stable Diffusion v1.5).
- Misalignment Matters: Standard IF assumes the model is at a training minimum. However, for data cleaning, validation performance is what actually matters. Explicitly tuning the model toward a flat validation minimum is the key to unlocking accurate influence scores.
- Mislabeled Sample Detection: On the CIFAR-10N "Worst" noise setting, the proposed FVM method achieved a staggering 96.46% ROC AUC, compared to just 65.75% for standard LiSSA.
- Data Relabeling: In tasks where the goal is to fix "broken" labels, FVM reached 70.61% accuracy on CIFAR-100N. The next best baseline (TM) sat at 58.13%, while standard methods languished below 5%.
The FVM method consistently outperformed state-of-the-art baselines like LiSSA, TracIn, GEX, and DataInf. Furthermore, FVM successfully identified the most influential training images for specific styles in Stable Diffusion, proving that the "flat minima" principle scales effectively to complex, high-dimensional generative tasks.
Limitations and Future Work
While the diagonal approximation helps, finding flat minima via SAM and computing second-order terms remains more computationally expensive than simple gradient-based methods. Additionally, the method relies on a hyperparameter $\gamma$ (defining the "neighborhood" of flatness), which requires tuning depending on the dataset.
Future research will likely explore more sophisticated Hessian approximations beyond the diagonal version to further improve accuracy without sacrificing speed, paving the way for robust influence functions in even larger-scale foundation models.
Summary updated