Catastrophic Fisher Explosion: Early Phase Fisher Matrix Impacts Generalization

Stanislaw Kamil Jastrzebski, Devansh Arpit, Oliver Åstrand, Giancarlo Kerg, Huan Wang, Caiming Xiong, richard socher, Kyunghyun Cho, Krzysztof J. Geras

TL;DR

This paper reveals that the early stages of deep learning training are crucial for generalization, and that a phenomenon called "catastrophic Fisher explosion" (a rapid increase in the Fisher Information Matrix trace) can hinder this. By showing that Stochastic Gradient Descent (SGD) implicitly penalizes this trace, the authors propose and demonstrate that explicitly penalizing it (Fisher Penalty) significantly improves generalization, especially when using suboptimal learning rates.

What Problem Does This Paper Address?

Deep neural networks (DNNs) often achieve remarkable success, but the underlying mechanisms of their generalization, particularly the role of implicit regularization during training, remain poorly understood. Prior work has suggested that the early phase of training is disproportionately important for generalization, with regularization applied later having less impact. However, the precise reasons why this early phase is so critical and how implicit regularization during this period affects the optimization process and final performance have been unclear. This paper aims to bridge this gap by investigating the connection between the loss landscape's geometry in the early training phase and the network's ability to generalize.

Methods

The core of this work revolves around the Fisher Information Matrix (FIM), a measure that approximates the local curvature of the loss surface. The authors hypothesize that SGD implicitly penalizes the trace of the FIM (Tr(F)) from the very beginning of training. To test this, they:

  • Empirically demonstrate the "catastrophic Fisher explosion": They show that without implicit or explicit regularization, Tr(F) can rapidly increase early in training, which they link to poor generalization.
  • Introduce "Fisher Penalty": They propose an explicit regularization term that directly penalizes Tr(F). This allows them to directly test the hypothesis that penalizing Tr(F) improves generalization.
  • Analyze the mechanism: They investigate why penalizing Tr(F) helps by examining its effects on memorization of noisy labels and its tendency to guide optimization towards flat minima (which are generally associated with better generalization).
  • Connect FIM to Hessian: They show that Tr(F) correlates with Tr(H) (trace of the Hessian), a known measure of flatness, suggesting that controlling Tr(F) indirectly influences the flatness of the learned minima.

Datasets

The authors used several standard image classification datasets:

  • TinyImageNet: Used for demonstrating the catastrophic Fisher explosion phenomenon.
  • ImageNet: Used for experiments involving varying learning rates.
  • CIFAR-10 and CIFAR-100: Used extensively for experiments on Fisher Penalty, batch size variations, and studying the influence of early Tr(F) on final curvature.

Key Insights and Ideas

  • The "Catastrophic Fisher Explosion": A key finding is that without regularization, Tr(F) can explode early in training, leading to poor generalization. This highlights a critical vulnerability in standard training.
  • SGD as an Implicit Regularizer of Tr(F): The paper provides strong evidence that SGD, through its inherent mechanisms (like large learning rates or small batch sizes), implicitly penalizes Tr(F) from the start.
  • Early Tr(F) Predicts Generalization: The value of Tr(F) in the initial phase of training is a strong predictor of the final generalization performance. Lower early Tr(F) generally leads to better generalization.
  • Fisher Penalty as an Explicit Regularizer: Directly penalizing Tr(F) can significantly improve generalization, especially when using suboptimal learning rates, effectively closing the gap with optimal settings.
  • Fisher Penalty Reduces Memorization: The proposed Fisher Penalty is shown to reduce the model's ability to memorize noisy labels more effectively than clean labels, suggesting it helps the model focus on more robust features.
  • Tr(F) Guides Towards Flat Minima: Lowering Tr(F) early in training biases the optimization process towards flatter minima, which are known to correlate with better generalization.

Key Results

  • Improved Generalization with Fisher Penalty: In experiments with suboptimal learning rates, applying Fisher Penalty closed the generalization gap, achieving performance comparable to or even better than optimal learning rates. For instance, in one setting, it improved test accuracy from 52.57% (baseline) to 56.73% (with Fisher Penalty) when using a suboptimal learning rate.
  • Correlation of Early Tr(F) and Test Accuracy: Figures 2 and 7 clearly show a positive correlation between early Tr(F) values and final test accuracy across various datasets and hyperparameter settings.
  • Reduced Memorization: Table 3 shows that Fisher Penalty (FP) and GPr reduced memorization competitively to mixup, achieving test accuracies around 57-60% on CIFAR-100 with 25% noisy labels, compared to a baseline of ~41-45%.
  • Fisher Penalty's Effect on Tr(F): Applying Fisher Penalty consistently reduced the peak value of Tr(F) during training, as seen in figures like Figure 3 and Figure 8.

Limitations and Future Work

  • Computational Cost: While the authors introduce approximations to make Fisher Penalty computationally feasible, it still adds overhead compared to standard SGD.
  • Hyperparameter Tuning: The effectiveness of Fisher Penalty relies on tuning the regularization coefficient $\alpha$, which requires validation.
  • Future Work: The authors suggest exploring their findings in the context of transfer learning and continual learning, hypothesizing that catastrophic Fisher explosion might negatively impact model transferability. They also suggest investigating the role of Tr(F) in other optimization algorithms beyond SGD.

Summary updated

BibTeX
@inproceedings{jastrzebski2021catastrophic,
  author = {Stanislaw Kamil Jastrzebski and Devansh Arpit and Oliver Åstrand and Giancarlo Kerg and Huan Wang and Caiming Xiong and richard socher and Kyunghyun Cho and Krzysztof J. Geras},
  title = {{Catastrophic Fisher Explosion: Early Phase Fisher Matrix Impacts Generalization}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=BuWwLZPIFz9},
}
Figure