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

Scaling Up Influence Functions

Andrea Schioppa, Polina Zablotskaia, David Vilar, Artem Sokolov

Abstract: We address efficient calculation of influence functions for tracking predictions back to the training data. We propose and analyze a new approach to speeding up the inverse Hessian calculation based on Arnoldi iteration. With this improvement, we achieve, to the best of our knowledge, the first successful implementation of influence functions that scales to full-size (language and vision) Transformer models with several hundreds of millions of parameters. We evaluate our approach in image classification and sequence-to-sequence tasks with tens to a hundred of millions of training examples.

Introduction

Influence Functions (IFs) provide a theoretically grounded method for identifying which training examples most significantly impact a model's specific prediction. However, their application to modern deep learning has been limited by the computational cost of inverting the Hessian matrix ($H$). For a model with $p$ parameters, the Hessian is a $p \times p$ matrix; for a 300-million parameter model, this results in a matrix with 90 quadrillion entries, making direct inversion or standard approximations like LISSA impractical for large-scale deployment.

Methodology: Arnoldi Iteration for Hessian Approximation

The researchers propose a low-rank approximation of the inverse Hessian using Arnoldi iteration. Instead of computing the full Hessian, the method identifies the dominant eigenvalues and eigenvectors within a small-dimensional Krylov subspace.

By projecting the Hessian into this subspace, it can be inverted efficiently in its diagonalized form. This approach utilizes Jacobian-vector products (JVPs) to avoid materializing full gradients or Hessians in memory. A key advantage is that once the dominant eigenvectors are found and cached, calculating the influence of any new training point becomes a rapid operation.

Arnoldi iteration estimates eigenvalues with significantly lower error compared to random projections (RandProj), ensuring a more accurate Hessian approximation.

Scalability and Performance

The Arnoldi-based approach achieves a 3-4 order of magnitude speedup over traditional LISSA methods and is approximately 10x faster than gradient-only heuristics like TracIn. Crucially, the runtime scales linearly with the number of model parameters, enabling influence queries on massive architectures such as the ViT-L32 (300M parameters).

The computation time for Arnoldi iteration scales linearly with the number of model parameters, demonstrating its feasibility for large-scale Transformer models.

Empirical Evaluation

The method was tested across diverse domains, including computer vision (MNIST, ImageNet, CIFAR-10) and machine translation (WMT17, Paracrawl). In data cleaning tasks on the noisy Paracrawl dataset, filtering examples with the lowest self-influence using Arnoldi led to a 4 BLEU point improvement over standard baselines. In retrieval experiments for mislabeled MNIST digits, Arnoldi consistently outperformed random projection baselines as the number of projections increased.

Conclusion

By leveraging Arnoldi iteration, this work makes influence functions a practical diagnostic tool for modern, large-scale models. This advancement facilitates better data auditing, bias detection, and model interpretability at a scale previously considered computationally prohibitive.

Summary updated

BibTeX
@misc{schioppa2021scaling,
  author = {Andrea Schioppa and Polina Zablotskaia and David Vilar and Artem Sokolov},
  title = {{Scaling Up Influence Functions}},
  year = {2021},
  eprint = {2112.03052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.03052},
}
Figure