Measuring which parameters in a neural network are most important is a fundamental challenge in deep learning. This sensitivity information is vital for advanced techniques like pruning (removing unimportant weights to compress models), model merging (combining fine-tuned models), and continual learning (preventing catastrophic forgetting of old tasks).
The gold standard for measuring this parameter sensitivity is the diagonal of the Fisher Information Matrix (FIM). However, calculating the FIM presents two major hurdles for practitioners:
- Computational Cost: It requires extra passes over the data, often involving slow, per-example gradient calculations that modern deep learning frameworks are not optimized to handle efficiently.
- Data Availability: Computing a Fisher requires the original training data. If you download a pre-trained model without access to its proprietary or massive original dataset, computing the FIM is impossible.
To solve this, researchers have introduced a highly efficient alternative: the Squisher (Squared gradient accumulator as an approximation of the Fisher).
The Core Idea: Recycling the Optimizer State
The Squisher relies on a clever observation about how modern neural networks are trained. Adaptive optimizers like Adam and AdamW already maintain a running tally of squared gradients (often denoted as the $v$ term) to dynamically scale learning rates during training.
While the standard Fisher is mathematically defined as a "sum of squared gradients," the Squisher repurposes the "square of the average gradient" already tracked by the optimizer. By simply extracting the optimizer's state at the end of training, practitioners can obtain a high-quality approximation of the Fisher diagonal essentially "for free."
The "Joint Fisher" Justification
How can a "hacky" optimizer statistic replace a rigorous statistical measurement? The authors provide a theoretical bridge using the concept of a Joint Fisher. They demonstrate that squaring an aggregated gradient (which is what Adam does) corresponds to a Joint Fisher framework.
While the Squisher is technically a biased estimator of the standard Fisher, it successfully captures the same underlying "importance" signal. For most practical applications, the relative importance of parameters matters far more than their absolute values. Because the Squisher preserves the ranking of parameter importance almost perfectly, it can seamlessly replace the Fisher in ranking-based tasks with zero performance loss.
Furthermore, Adam’s accumulator is an exponential moving average, meaning it contains "stale" gradient information from earlier in the training process. Surprisingly, empirical experiments show that this historical context does not degrade the sensitivity map. In certain applications, it actually performs better than a freshly computed Fisher.
Empirical Validation and Key Results
The authors validated the Squisher across a comprehensive suite of models (including T5-Large, RoBERTa, VGG-13, and BERT-Large) and benchmarks (GLUE, CIFAR-100, MNIST, and various QA datasets), covering five distinct applications. The results highlight a rare "free lunch" in deep learning:
- Massive Speedups: The computational savings are staggering. For a Task Embedding application, computing a standard Fisher took over 14 hours ($5.19 \cdot 10^4$ seconds). The Squisher provided the exact same utility in less than one second—literally just the time it takes to load the optimizer state file from disk.
- Performance Parity and Superiority: Across all five applications, the Squisher performed comparably to the standard Fisher and significantly outperformed "Fisher-free" baselines like simple weight averaging or random pruning.
- Merging Success: In Fisher Merging tasks, the Squisher actually outperformed the traditional method, achieving an average accuracy of 58.0% compared to the standard Fisher's 53.6%.
Limitations and Practical Considerations
While highly effective, the Squisher is not without its nuances:
- Training Duration: The Squisher relies on the optimizer having "seen" enough gradients for its moving average to stabilize. If a model is only trained for a handful of steps, the Squisher will yield a poor approximation.
- Scaling Sensitivity: For specific continual learning methods like Elastic Weight Consolidation (EWC), the absolute magnitude of the Fisher matters, not just the relative ranking. In these cases, the authors found that the Squisher must be manually rescaled by the dataset size ($N$) to function properly.
A Call to Action for the Open-Source Community
The introduction of the Squisher proves that immense utility is currently being discarded at the end of model training. The authors suggest a simple but impactful shift in how the AI community shares models: researchers and organizations should start sharing optimizer states (state_dicts) alongside model weights.
Doing so would democratize advanced model manipulation, allowing anyone to perform sophisticated merging, pruning, and continual learning on open-source models without needing access to the original training data or massive compute budgets.
Summary updated