NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Revisit, Extend, and Enhance Hessian-Free Influence Functions

Ziao Yang, Han Yue, Jian Chen, Hongfu Liu · DOI

Abstract

Influence functions are essential for data-centric machine learning, yet their reliance on the inverse Hessian matrix makes them computationally prohibitive for modern deep models. We propose the Inner Product (IP) method, a simplified approach that replaces the Hessian with an identity matrix. Our theoretical analysis shows that IP maintains order-consistency for identifying detrimental samples while being 100x to 800x faster than traditional approximations. We further introduce an IP Ensemble strategy using dropout and extend the framework to optimize model fairness and adversarial robustness.

Introduction

In the era of data-centric AI, understanding the impact of individual training samples on model performance is critical for tasks such as identifying mislabeled data, fine-tuning subset selection, and mitigating model bias. The standard tool for this is the Influence Function, which estimates the effect of a sample using a Taylor series expansion. However, this requires calculating the inverse of the Hessian matrix—a task that is computationally expensive, numerically unstable, and often impossible for modern deep networks with millions of parameters.

Methodology: The Inner Product Approach

We propose a "naive yet aggressive" simplification called the Inner Product (IP) method. By substituting the complex Hessian matrix with a simple identity matrix, the influence of a training sample $z_i$ is reduced to a dot product between the gradient of the loss at that sample and the gradient of the loss on a validation set.

Comparison of traditional influence values vs. the proposed inner product method on linear and non-linear synthetic data.

Theoretical analysis reveals that while dropping the Hessian changes the magnitude of influence scores, the relative ranking of samples—particularly the identification of detrimental ones—remains consistent. To further enhance generalization, we introduce IP Ensemble. This technique uses dropout on a single converged model to simulate a diverse array of models, averaging the IP scores across these variations to achieve greater stability without the cost of retraining multiple models.

Experimental Evaluation

Our approach was validated across diverse domains, including computer vision (CIFAR-10N, Animal-10N), natural language processing (GLUE benchmark), and tabular data. In noisy label detection on CIFAR-100N, removing the 5% most detrimental samples identified by IP Ensemble improved model accuracy from 56.41% to 62.25%, outperforming traditional Hessian-based baselines.

Beyond accuracy, we extended IP to address fairness and robustness. In NLP tasks, removing detrimental samples identified by IP Ensemble led to models that were simultaneously more accurate and fairer (improving demographic parity). For adversarial defense, IP Ensemble achieved superior performance in protecting models against evasion attacks on datasets like JigsawToxicity.

Efficiency and Performance

The primary advantage of the IP method is its extreme efficiency. By avoiding Hessian computations, IP achieves massive speedups compared to existing approximations like LiSSA or EKFAC.

Speed improvement factors of the IP method compared to traditional Hessian-based approximations across different datasets.

On the Animal-10N dataset, IP was over 800 times faster than EKFAC while delivering superior results. This efficiency makes influence analysis practical for large-scale models where traditional methods are non-viable.

Conclusion

The Inner Product method demonstrates that simplifying influence functions by removing the Hessian matrix can lead to significant gains in both speed and robustness for non-convex deep learning. While the method assumes a degree of model homogeneity, its success across vision, NLP, and tabular tasks suggests broad applicability. Future work will explore the scalability of these Hessian-free approximations for Large Language Models (LLMs), where computational constraints are most acute.

Summary updated

BibTeX
@misc{yang2024revisit,
  author = {Ziao Yang and Han Yue and Jian Chen and Hongfu Liu},
  title = {{Revisit, Extend, and Enhance Hessian-Free Influence Functions}},
  year = {2024},
  eprint = {2405.17490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17490},
}
Figure