Skip to main content
QUICK REVIEW

[Paper Review] Fisher SAM: Information Geometry and Sharpness Aware Minimisation

Minyoung Kim, Da Li|arXiv (Cornell University)|Jun 10, 2022
Optical measurement and interference techniquesComputer Science7 citations
TL;DR

This paper proposes Fisher SAM, a novel sharpness-aware minimisation method that replaces SAM's Euclidean neighborhood with ellipsoidal neighborhoods derived from the Fisher information matrix, enabling more accurate, geometry-aware optimization. The approach improves generalization and robustness on image classification, overtraining, and label-noise tasks while maintaining computational efficiency comparable to standard SGD.

ABSTRACT

Recent sharpness-aware minimisation (SAM) is known to find flat minima which is beneficial for better generalisation with improved robustness. SAM essentially modifies the loss function by reporting the maximum loss value within the small neighborhood around the current iterate. However, it uses the Euclidean ball to define the neighborhood, which can be inaccurate since loss functions for neural networks are typically defined over probability distributions (e.g., class predictive probabilities), rendering the parameter space non Euclidean. In this paper we consider the information geometry of the model parameter space when defining the neighborhood, namely replacing SAM's Euclidean balls with ellipsoids induced by the Fisher information. Our approach, dubbed Fisher SAM, defines more accurate neighborhood structures that conform to the intrinsic metric of the underlying statistical manifold. For instance, SAM may probe the worst-case loss value at either a too nearby or inappropriately distant point due to the ignorance of the parameter space geometry, which is avoided by our Fisher SAM. Another recent Adaptive SAM approach stretches/shrinks the Euclidean ball in accordance with the scale of the parameter magnitudes. This might be dangerous, potentially destroying the neighborhood structure. We demonstrate improved performance of the proposed Fisher SAM on several benchmark datasets/tasks.

Motivation & Objective

  • Address the limitation of sharpness-aware minimisation (SAM) in using Euclidean neighborhoods that ignore the intrinsic non-Euclidean geometry of neural network parameter spaces.
  • Improve generalization and robustness by replacing SAM's spherical neighborhood with ellipsoids induced by the Fisher information matrix, which better reflect the statistical manifold structure.
  • Develop a computationally efficient variant of SAM that maintains double-SGD cost while incorporating information geometry via gradient magnitude approximation of the Fisher matrix.
  • Provide a theoretical generalization bound using an ellipsoidal prior in the PAC-Bayes framework, extending SAM's spherical prior to full-covariance ellipsoids.
  • Demonstrate empirical superiority of Fisher SAM over SAM and ASAM across diverse benchmarks, including image classification, label noise, and adversarial parameter perturbation.

Proposed method

  • Replace SAM's L2-norm neighborhood with an ellipsoidal neighborhood defined by the Fisher information metric, which captures the intrinsic Riemannian geometry of the statistical manifold.
  • Define the robust loss as the maximum loss within the Fisher-induced ellipsoid: $ l^{ ext{FSAM}}( heta) = ext{max}_{ heta' ext{ s.t. } ( heta'- heta)^T I( heta) ( heta'- heta) \leq \gamma^2} l( heta') $, where $ I( heta) $ is the Fisher information matrix.
  • Approximate the Fisher information matrix using the outer product of gradients (diagonal approximation), enabling efficient computation with only a small overhead over standard SGD.
  • Introduce a hyperparameter $ \eta $ to control the impact of the Fisher metric on the neighborhood size, allowing adaptive scaling of the ellipsoid.
  • Derive a theoretical generalization bound in the PAC-Bayes framework using a full-covariance Gaussian prior with ellipsoidal support, extending SAM's spherical prior.
  • Implement the algorithm with a two-step update: first compute the perturbation direction via gradient ascent on the loss using the Fisher metric, then perform a standard SGD update in the direction of the negative gradient of the worst-case loss.

Experimental results

Research questions

  • RQ1Can information geometry-based neighborhood structures improve the generalization performance of sharpness-aware minimisation beyond Euclidean neighborhoods?
  • RQ2How does replacing the Euclidean ball with a Fisher-induced ellipsoid affect robustness to parameter perturbations and label noise?
  • RQ3What is the computational cost of incorporating the Fisher information matrix into SAM, and can it be approximated efficiently without sacrificing performance?
  • RQ4Does the theoretical generalization bound of SAM extend to a more expressive ellipsoidal prior in the PAC-Bayes framework?
  • RQ5How sensitive is the performance of Fisher SAM to hyperparameters $ \gamma $ (neighborhood size) and $ \eta $ (Fisher impact scaling)?

Key findings

  • Fisher SAM achieves state-of-the-art test accuracy on CIFAR-100 with WRN-28-10, outperforming SAM and ASAM across all label noise levels (20–80%) and demonstrating superior robustness.
  • On CIFAR-10 with ResNet-34, Fisher SAM shows the highest robustness to adversarial parameter perturbations, maintaining higher accuracy than SAM and SGD even under strong perturbations ($ \alpha = 5.0 $).
  • The method achieves a test accuracy of $ \boldsymbol{93.03 \pm 0.11} $ on CIFAR-10 with 20% label noise, matching SAM’s performance while significantly outperforming ASAM and SGD.
  • Hyperparameter sensitivity analysis shows that Fisher SAM is robust to a wide range of $ \gamma $ and $ \eta $ values, with optimal performance achieved for $ \gamma \in [0.1, 0.5] $ and $ \eta \in [0.01, 1.0] $.
  • The computational overhead of Fisher SAM is negligible: training time per batch on CIFAR-10 with WRN-28-10 is 0.2322s (SAM) vs. 0.2334s (FSAM), indicating near-identical efficiency.
  • Theoretical analysis confirms that Fisher SAM generalizes better than SAM by extending the prior set from spherical to ellipsoidal in the PAC-Bayes framework, providing a tighter generalization bound.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.