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

Fisher information and the geometry of memorization in neural networks

Daniel T. Bernstein, Chase Goddard, Luca Di Carlo, Vudtiwat Ngampruetikorn, David J. Schwab

TL;DR

This paper demonstrates that the Fisher information matrix acts as a geometric "sieve" that separates generalization from memorization in neural networks. By projecting model weights onto the top eigenvectors of the Fisher matrix, the authors show that one can selectively "de-memorize" noisy or corrupted training samples while preserving—and sometimes even improving—the model's ability to generalize to new data.

What Problem Does This Paper Address?

Modern neural networks are notoriously overparameterized, meaning they have far more capacity than needed to solve a task. This allows them to "benignly overfit": they can simultaneously learn generalizable patterns (like "what a cat looks like") and memorize idiosyncratic noise or mislabeled examples (like "this specific blurry blob is labeled as a truck").

Disentangling these two behaviors is a major challenge. Memorization leads to privacy risks (models leaking training data), copyright issues, and vulnerability to data poisoning. The authors seek a formal geometric understanding of where and how memorized information is stored within a network's weights and whether it can be surgically removed without destroying the model's utility.

Methods

The researchers leverage the Fisher Information Matrix (FIM), which measures the sensitivity of a network's output to its parameters. The core idea is that features that generalize should be "stiff" directions—they are shared across many samples and thus dominate the top of the Fisher eigenspectrum. Conversely, memorized features are sample-specific and should reside in the "bulk" of low-eigenvalue directions.

The primary technique used is Fisher Projection:

  1. Train a model to 100% accuracy on a dataset containing both clean and "noisy" (memorized) samples.
  2. Compute the per-layer Fisher Information Matrix.
  3. Project the layer's weights onto the subspace spanned by the top-$k$ eigenvectors of that Fisher matrix.
  4. Observe how the model's accuracy on clean vs. noisy data changes as $k$ varies.

The authors test this across three regimes: vision models (ResNet-20), small Transformers (GPT-2 style) performing in-context learning, and a simplified, analytically solvable linear "barcode" model.

Datasets

  • CIFAR-10 + Gaussian Noise: The standard image dataset augmented with 500 synthetic Gaussian images assigned random labels to force pure memorization.
  • CIFAR-10 + Label Noise: 10% of the training labels are randomly flipped to test if the model can recover the "true" underlying label after de-memorization.
  • Synthetic In-Context Learning (ICL): A transformer trained on a set of linear regression tasks, where it must infer a latent "task vector" from a sequence of examples.

Key Insights and Ideas

  • Memorization is Layer-Dependent: In vision models, the separation between generalization and memorization is clearest in the early layers. By the final layer, the representations of clean and noisy data have converged, making them inseparable via projection.
Layer-dependent decoupling: In the first layer (A), CIFAR accuracy (green/blue) rises much faster than Gaussian memorization (red). In the last layer (B), they merge.
  • The Data Matters: The choice of data used to compute the Fisher matrix is critical. Computing the Fisher on "clean" (non-corrupted) data yields a much sharper separation than computing it on the full, noisy training set.
  • Generalization Recovery: In the in-context learning setting, the authors found that memorization primarily lives in the MLP layers, not the attention layers. Strikingly, projecting the MLP weights onto the top Fisher modes actually improved performance on held-out tasks, effectively reversing the damage of overfitting.
In-context learning: Projecting the MLP layer (C) improves test performance (green) while degrading memorized task performance (blue).
  • The "Barcode" Mechanism: The authors propose a linear model where "barcode" features (uninformative noise) are correlated with label noise. They mathematically prove that discarding these low-variance directions reduces prediction risk.

Key Results

  • Selective De-memorization: In the first layer of a ResNet, keeping only the top ~45 Fisher eigenvectors allowed the model to maintain near-maximum CIFAR-10 accuracy while dropping accuracy on memorized Gaussian samples to ~30% (Figure 1A).
  • Label Recovery: In the label-noise experiments, Fisher projection didn't just forget the wrong label; it often increased the model's accuracy on the true (but unseen during training) labels of those corrupted samples.
  • Participation Ratios: The authors used participation ratios to show that clean samples dominate the top of the eigenspectrum, while noisy samples are relegated to the bottom, confirming the geometric intuition.
Participation ratios: Clean CIFAR images (blue) dominate the top modes, while Gaussian noise (red) is relegated to the bottom.

Limitations and Future Work

  • Scale: The experiments were conducted on relatively small models (ResNet-20, 3-block Transformers). It remains to be seen if these layer-wise geometric signatures persist in billion-parameter LLMs.
  • Non-local Perturbations: Projecting out eigenvectors is a "non-local" operation that significantly changes weights. The authors suggest this works because models exist on "hyperribbons"—manifolds where large weight changes result in small functional changes—but this requires further study.
  • Cross-layer Dynamics: The current analysis is largely layer-independent. Future work could investigate how memorization is distributed across layers and how cross-layer correlations contribute to the model's "memory."

Summary updated

BibTeX
@inproceedings{bernstein2026fisher,
  author = {Daniel T. Bernstein and Chase Goddard and Luca Di Carlo and Vudtiwat Ngampruetikorn and David J. Schwab},
  title = {{Fisher information and the geometry of memorization in neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=NirHtZJlvn},
}
Figure