Fisher information and the geometry of memorization in neural networks
Organizations: Princeton University1; Lewis-Sigler Institute · Princeton University2; Joseph Henry Laboratories · University of Sydney3; School of Physics · CUNY Graduate Center4; Initiative for the Theoretical Sciences
Abstract
A fruitful approach towards understanding generalization in machine learning involves characterizing how models separate generalizable structure from idiosyncratic or even corrupted features of training data. Fisher information has emerged as a diagnostic tool for this separation, leveraging loss geometry to distinguish generalization from memorization. Here we investigate this connection in vision models trained on CIFAR-10 with controlled noise that can be learned only through memorization. We show that projecting model weights onto the top Fisher eigenvectors decouples general task performance from noisy sample memorization, and we investigate how this decoupling presents differentially across layers. We show that the same phenomena are present in small transformers trained to solve a synthetic in-context learning task, and are reproduced in closed form in a simple, analytically solvable linear model. Our results reveal that Fisher information captures aspects of the geometric structure underlying how neural networks allocate capacity between generalization and memorization.
Figures & tables
| Gaussian model | Noisy-label model (10% noise) | ||||||||||
| Fisher source CIFAR-10 (%) | Fisher source uncorrupted (%) | ||||||||||
| CIFAR-10 train (5k samples) | 100.0 | 99.9 | 99.9 | 99.9 | 99.8 | CIFAR-10 train (5k samples) | 100.0 | 100.0 | 100.0 | 99.9 | 99.9 |
| CIFAR-10 test | 84.3 | 83.9 | 83.7 | 83.4 | 83.1 | CIFAR-10 test | 73.4 | 73.1 | 73.0 | 72.7 | 72.3 |
| Fisher source Gaussian (%) | Fisher source corrupted (%) | ||||||||||
| Gaussian set | 100.0 | 98.4 | 96.1 | 90.5 | 75.6 | Corrupted CIFAR (assigned labels) | 100.0 | 100.0 | 100.0 | 99.9 | 99.8 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Gaussian model | Noisy-label model (10% noise) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Fisher source CIFAR-10 | Fisher source uncorrupted | ||||||||||
| CIFAR-10 train (5k samples) | 100.0 | 99.9 | 99.9 | 99.9 | 99.8 | CIFAR-10 train (5k samples) | 100.0 | 100.0 | 100.0 | 99.9 | 99.9 |
| CIFAR-10 test | 84.3 | 83.9 | 83.7 | 83.4 | 83.1 | CIFAR-10 test | 73.4 | 73.1 | 73.0 | 72.7 | 72.3 |
| Gaussian set | 100.0 | 100.0 | 100.0 | 100.0 | 99.9 | Corrupted CIFAR (assigned labels) | 100.0 | 100.0 | 100.0 | 99.9 | 99.8 |
| Corrupted CIFAR (true labels) | 0.0 | 0.0 | 0.0 | 0.0 | 0.1 | ||||||
Neural Network Memorization
Neural network memorization studies how models store and retrieve training examples, how this differs from generalization, and how memory can be measured or controlled.
See all 63 papers