paper-with-me

홈 › Papers

Revisiting inverse Hessian vector products for calculating influence functions

2024-09-25 · Yegor Klochkov, Yang Liu

Influence functions are a popular tool for attributing a model's output to training data. The traditional approach relies on the calculation of inverse Hessian-vector products (iHVP), but the classical solver "Linear time Stochastic Second-order Algorithm" (LiSSA, Agarwal et al. (2017)) is often deemed impractical for large models due to expensive computation and hyperparameter tuning. We show that the three hyperparameters -- the scaling factor, the batch size, and the number of steps -- can be chosen depending on the spectral properties of the Hessian, particularly its trace and largest eigenvalue. By evaluating with random sketching (Swartworth and Woodruff, 2023), we find that the batch size has to be sufficiently large for LiSSA to converge; however, for all of the models we consider, the requirement is mild. We confirm our findings empirically by comparing to Proximal Bregman Retraining Functions (PBRF, Bae et al. (2022)). Finally, we discuss what role the inverse Hessian plays in calculating the influence.

📄 PDF Abstract BibTeX arXiv:2409.17357

Code (1)

yklochkov-bytedance/gnhtools 공식 구현 pytorch

Similar Papers 제목 키워드 기반

The Hessian of tall-skinny networks is easy to invert

2026-01-01 · Ali Rahimi arxiv

We describe an exact algorithm to solve linear systems of the form $Hx=b$ where $H$ is the Hessian of a deep net. The method computes Hessian-inverse-vector products without storing the Hessian or its inverse. It require…

Better Training Data Attribution via Better Inverse Hessian-Vector Products

2025-07-19 · Andrew Wang, Elisa Nguyen, Runshi Yang, Juhan Bae 외 arxiv

Training data attribution (TDA) provides insights into which training data is responsible for a learned model behavior. Gradient-based TDA methods such as influence functions and unrolled differentiation both involve a c…

SPAN: A Stochastic Projected Approximate Newton Method

2020-02-10 · Xunpeng Huang, Xianfeng Liang, Zhengyang Liu, Yitan Li 외

Second-order optimization methods have desirable convergence properties. However, the exact Newton method requires expensive computation for the Hessian and its inverse. In this paper, we propose SPAN, a novel approximat…

Series of Hessian-Vector Products for Tractable Saddle-Free Newton Optimisation of Neural Networks

2023-10-23 · Elre T. Oldewage, Ross M. Clarke, José Miguel Hernández-Lobato

Despite their popularity in the field of continuous optimisation, second-order quasi-Newton methods are challenging to apply in machine learning, as the Hessian matrix is intractably large. This computational burden is e…

M-FAC: Efficient Matrix-Free Approximations of Second-Order Information

2021-07-07 · NeurIPS 2021 12 · Elias Frantar, Eldar Kurtic, Dan Alistarh

Efficiently approximating local curvature information of the loss function is a key tool for optimization and compression of deep neural networks. Yet, most existing methods to approximate second-order information have h…

Network PruningSecond-order methods