Generalized Influence Functions for Better Model Change Estimates

Hyeonsu Lyu, Jonggyu Jang, Sehyun Ryu, Hyun Jong YangNeurIPS 2026

TL;DR

Suppose you trained a neural network, realized a specific subset of your data is problematic, and want to "unlearn" it without retraining the whole model from scratch. Classical Influence Functions (IFs) promise a mathematical shortcut for this, but they often wreck the model in practice by recklessly updating every single weight and relying on distorted numerical approximations. This paper fixes both issues by surgically restricting updates to only the 10% most relevant parameters and introducing a clean, bias-free solver—bringing quick, post-hoc model editing remarkably close to full retraining.

What Problem Does This Paper Address?

Influence functions estimate how a model's weights would shift if you removed or reweighted certain training examples. Mathematically, they approximate a Newton-style step using an inverse-Hessian-vector product (iHVP), $-\mathbf{H}^{-1}\mathbf{g}$, where $\mathbf{g}$ is the gradient of the target data and $\mathbf{H}$ is the Hessian (a matrix describing the local curvature of the loss landscape).

While great for figuring out which data points matter, classical IFs struggle when used to actually edit models. The authors pinpoint two compounding culprits:

  1. Collateral damage in flat directions: Neural networks localize knowledge, yet classical IFs update all parameters indiscriminately. Modern loss landscapes are full of flat, low-curvature directions (near-zero Hessian eigenvalues). Taking the inverse ($\mathbf{H}^{-1}$) blows up tiny, noisy gradients along these flat valleys into massive, destructive weight changes in parameters that had nothing to do with your target data.
  2. Solver distortion: Computing $\mathbf{H}^{-1}\mathbf{g}$ directly is intractable, so practitioners use an iterative algorithm called LiSSA. LiSSA diverges if $\mathbf{H}$ has negative eigenvalues—which deep networks almost always do. The standard fix is $\ell_2$ damping (adding $\lambda\mathbf{I}$ to $\mathbf{H}$), which keeps the math from exploding at the cost of warping the very loss landscape you are trying to navigate.
Conceptual illustration showing how classical influence functions drift along unstable, low-curvature directions, whereas generalized influence functions stay aligned with well-conditioned, high-curvature directions.

Methods

The authors tackle these two obstacles in tandem with two new tools:

  • Generalized Influence Functions (GIFs): Instead of nudging the entire network, GIFs partition weights into editable target parameters ($\boldsymbol{\theta}_J$) and frozen parameters ($\boldsymbol{\theta}_{-J}$). Because you are still trying to satisfy the full-model optimality condition using fewer knobs, the math turns into an overdetermined least-squares problem solved via the Moore-Penrose pseudoinverse of the sub-Hessian ($\mathbf{H}_J^+\mathbf{g}$). To pick the right parameter subset $J$, the authors design CAPS (Curvature-Aware Parameter Selection), which scores parameter blocks to maximize target-gradient capture while penalizing flat curvature, alongside lighter proxies like selecting the Top-$\rho\%$ gradients or outputs.
  • Pseudo-LiSSA (p-LiSSA): Because GIFs operate on the Gram matrix $\mathbf{H}_J^\top\mathbf{H}_J$—which is guaranteed to be positive-definite—p-LiSSA can iteratively solve the restricted iHVP without artificial $\ell_2$ damping. Implementing this requires two Hessian-vector products (HVPs) per step. Crucially, the authors prove that using the same mini-batch for both HVPs introduces statistical bias, so p-LiSSA draws two independent mini-batches per iteration to remain unbiased.
Figure 2: Comparison between GIFs and IFs; and between P-LiSSA and LiSSA.

Datasets

The authors evaluate class-level unlearning across five standard image and text classification benchmarks (no new datasets are introduced):

  • Vision: MNIST (FCN), CIFAR-10 (ResNet-18), and SVHN (VGG-11).
  • Text: 20 Newsgroups and PubMed 20k RCT (both using a compact BERT-L2-H128 model).

Key Insights and Ideas

  • Less is genuinely more in model editing: Updating 10% of the network isn't a compromise for speed; it mathematically tightens the approximation error bound (Theorem 1). By refusing to touch flat directions ($\theta_{-J}$), you strip out the small singular values that cause full-parameter updates to go haywire, provided your chosen subset still captures the bulk of the target gradient.
  • Subspace selection accelerates the solver: Excluding low-curvature parameters doesn't just protect retained model behavior—it shrinks the condition number $\kappa$ of $\mathbf{H}_J^\top\mathbf{H}_J$, which directly speeds up p-LiSSA's convergence rate.
  • Low activation $\neq$ safe to ignore: In ablations where the authors deliberately edited the bottom-scoring parameters, picking low-gradient or Reverse-CAPS blocks tanked accuracy. Surprisingly, editing blocks with the lowest forward-pass activations did not cause the same collapse, because low-activation units can still carry strong backward-pass gradient signals for the target loss.

Key Results

  • Near-retraining unlearning: Updating just 10% of weights, GIFs achieve the highest accuracy on retained classes across all five benchmarks (preserving accuracy up to 2.12 percentage points better than IF baselines) while dropping accuracy on the forgotten target class to 0.00%–1.61% (up to 2.73 points better unlearning). On four of five datasets, retained accuracy lands within 0.44 percentage points of full from-scratch retraining.
  • Cleaner, leaner iHVP solves: Across models scaling from 5K to 20M parameters, p-LiSSA slashes the iHVP residual error by 9.6$\times$ compared to the best baseline solver (conjugate gradient: 0.039 vs. 0.379 average residual), uses 19.8% less memory than the most memory-efficient baseline (227.5 MB vs. 283.0 MB for EKFAC), and runs in comparable time (2.75s vs. 2.82s for LiSSA).
Table 1: Data-removal results for full-parameter influence-function, restricted, and trajectory-aware baselines. Retain is the accuracy on non-target examples and should be high; Unlearn is the accuracy on target examples and should be low.

Limitations and Future Work

  • Second-order compute bottleneck: Even without damping, p-LiSSA requires two HVPs per iteration, which becomes expensive at foundation-model scale. Building cheaper restricted curvature approximations is a key next step.
  • Static subspaces for large edits: Parameter selection happens once before the edit, but large model updates can shift local curvature mid-flight, motivating adaptive subspace selection.
  • Generative models: Extending GIFs to LLMs and diffusion models remains open—not only due to scale, but because driving up training loss doesn't guarantee semantic forgetting (e.g., an LLM might still leak "unlearned" facts when paraphrased).

Summary updated

Abstract

Influence functions (IFs) approximate the effect of removing or reweighting training data on a trained model, but their linear approximation often lacks the accuracy required for reliable post hoc model editing. We identify two culprits and propose generalized influence functions (GIFs) and pseudo-LiSSA (p-LiSSA) to address each in turn. First, classical IFs update all parameters indiscriminately, leading to unnecessary updates to data-irrelevant parameters. GIFs instead restrict edits to a *data-relevant subspace* and leave the remaining parameters fixed. We theoretically show that GIFs achieve a tighter error bound than classical IFs when the parameter subset is properly selected, and that effective subspace selection requires avoiding low-curvature directions while retaining a sufficiently large component of the target gradient. Second, LiSSA iterations are destabilized by negative Hessian eigenvalues, which existing methods handle via $\\ell_2$ damping—at the cost of a biased inverse-Hessian-vector product (iHVP) estimate. p-LiSSA eliminates this bias by solving the *restricted inverse-Hessian problem* without such damping. We further show that the presence of low-curvature directions slows p-LiSSA convergence, and that the data-relevant subspace selected by GIFs mitigates this. Across five image and text unlearning benchmarks, GIFs update only 10% of the parameters yet preserve accuracy up to 2.12 percentage points better than IF-based baselines, while improving unlearning performance by up to 2.73 percentage points. Moreover, p-LiSSA improves restricted iHVP estimation by reducing the residual by $9.6\\times$ over existing iHVP baselines, while using 19.8% less memory with comparable computation time. Code is available at [https://github.com/hslyu/GIF](https://github.com/hslyu/GIF).
BibTeX
@inproceedings{lyu2026generalized,
  author = {Hyeonsu Lyu and Jonggyu Jang and Sehyun Ryu and Hyun Jong Yang},
  title = {{Generalized Influence Functions for Better Model Change Estimates}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ruWxVzBmD7},
}
Figure