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

A Unified Theory of Random Projection for Influence Functions

Pingbang Hu, Yuzheng Hu, Jiaqi W. Ma, Han Zhao

TL;DR

This paper provides a rigorous theoretical framework for understanding how random projection, a technique used to scale influence function computations in large neural networks, interacts with regularization and structured curvature approximations. It reveals that the required sketch size is governed by the "effective dimension" of the curvature, not just its rank, and quantifies a "leakage" error when test gradients fall outside the curvature's range.

What Problem Does This Paper Address?

Influence functions are a powerful tool for understanding which training data points most influence a model's prediction on a test point. Mathematically, this often involves computing a bilinear form $g^\top F^{-1} g'$, where $F$ is a curvature matrix (like the Fisher Information Matrix) and $g, g'$ are gradients. In modern deep learning, $F$ is often high-dimensional and ill-conditioned, making direct computation infeasible. Random projection is a common heuristic to reduce dimensionality, but its theoretical guarantees for influence functions were lacking, especially when combined with techniques like ridge regularization (adding $\lambda I$ to $F$) or structured approximations (like Kronecker-factored curvature). This paper aims to bridge this gap by providing a unified theoretical understanding of when and why random projection works for influence functions, and how to choose the projection parameters.

Methods

The authors develop a unified theoretical analysis of random projection for influence functions under three scenarios:

  1. Unregularized Projection: They show that exact preservation of influence requires the projection matrix $P$ to be injective on the range of $F$, which implies the sketch size $m$ must be at least the rank of $F$.
  2. Regularized Projection: They demonstrate that ridge regularization ($\lambda I$) fundamentally changes the requirement. The approximation guarantee now depends on the effective dimension of $F$ at scale $\lambda$, denoted $d_\lambda(F) = \mathrm{tr}(F(F+\lambda I)^{-1})$, which can be much smaller than the rank. This provides a more scalable requirement for the sketch size.
  3. Factorized Influence: For Kronecker-factored curvatures ($F = A \otimes E$), they analyze decoupled sketches ($P = P_A \otimes P_E$) and show that guarantees still hold, even though these sketches violate standard i.i.d. assumptions. This reveals a computational-statistical trade-off inherent to factorized sketches.

Additionally, they analyze the case where test gradients $g'$ might have components outside the range of $F$ (i.e., in $\ker(F)$). They quantify a "leakage" term introduced by the projection in this scenario and provide bounds on its magnitude.

Datasets

The paper uses standard datasets for empirical evaluation:

  • MNIST-10 + LR (Logistic Regression)
  • MNIST-10 + MLP (Multi-Layer Perceptron)
  • CIFAR-2 + ResNet9

These are common benchmarks for evaluating machine learning models and data attribution methods.

Key Insights and Ideas

  • Sketch size depends on "effective dimension," not just rank: For regularized influence, the required sketch size $m$ scales with the effective dimension $d_\lambda(F)$, not the full rank of $F$. This is a crucial insight for scalability, as $d_\lambda(F)$ can be significantly smaller than $\mathrm{rank}(F)$.
  • Regularization is key for efficient sketching: Without regularization, sketching requires $m \ge \mathrm{rank}(F)$, which is often too large. Regularization allows for much smaller sketch sizes while still preserving influence.
  • Factorized sketches have a trade-off: While factorized sketches (like those used in K-FAC) offer computational savings, they can incur a higher statistical cost in terms of sketch size, leading to a trade-off between efficiency and approximation accuracy.
  • "Leakage" from $\ker(F)$ is quantifiable: When test gradients are not in the range of $F$, projection introduces an error term (leakage) that can be bounded, providing guarantees even for out-of-range gradients.

Key Results

  • Unregularized Projection: Exact preservation of influence requires $m \ge \mathrm{rank}(F)$. Without this, no uniform multiplicative approximation is possible.
  • Regularized Projection: Approximation guarantees are governed by $d_\lambda(F)$, with $m = \Omega(d_\lambda(F) / \epsilon^2)$ for $\epsilon$-accuracy. This is shown to be both sufficient and worst-case necessary for Gaussian sketches.
  • Factorized Influence: For $F = A \otimes E$ and $P = P_A \otimes P_E$, exact preservation requires $P_A$ and $P_E$ to be injective on their respective ranges. For regularized projection, the sketch sizes $m_A, m_E$ depend on the effective dimensions of $A$ and $E$.
  • Leakage Bounds: The paper quantifies the leakage error for both unregularized and regularized cases, showing it decays at a rate of $O(m^{-1/2})$ and depends on $\lambda$ and the spectrum of $F$.
  • Empirical Validation: Experiments on MNIST and CIFAR datasets support the theoretical predictions, showing that approximation error decays as predicted when $m$ scales with $d_\lambda(F)$.

Limitations and Future Work

  • More Sophisticated Curvature Approximations: Extending the theory to more complex curvature approximations like EK-FAC, which involves eigenvalue correction steps, remains a challenging open problem.
  • Influence as an Estimator: The current work focuses on the approximation quality of projected influence relative to the unprojected influence. Future work could investigate how projection, regularization, and curvature approximations affect the quality of influence functions as estimators of the true leave-one-out quantities, considering modeling bias.
  • High-Quality Influence Estimates: Recent work suggests that low-curvature directions, which are discarded by projection, might be crucial for achieving high-quality influence estimates against ground-truth LOO effects. Understanding this interplay between approximation error and modeling bias is an important future direction.

Summary updated

BibTeX
@inproceedings{hu2026unified,
  author = {Pingbang Hu and Yuzheng Hu and Jiaqi W. Ma and Han Zhao},
  title = {{A Unified Theory of Random Projection for Influence Functions}},
  booktitle = {DATA-FM @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=bXpvfNBiDR},
}
Figure