← Latest papers
🤖 machine learning

Fisher-Geometric Sharpness and the Implicit Bias of SGD toward Flat Minima

This paper resolves the reparametrization invariance critique of flat minima by defining Riemannian sharpness via the Fisher Information Matrix, proving that SGD's gradient noise induces a stationary distribution favoring these invariant flat minima, and linking this geometric bias to improved generalization through a PAC-Bayes bound.

Original authors: Md Sakir Ahmed, Kumaresh Sarmah, Hemen Dutta

Published 2026-06-19
📖 5 min read🧠 Deep dive

Original authors: Md Sakir Ahmed, Kumaresh Sarmah, Hemen Dutta

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Map" vs. The "Territory"

Imagine you are trying to find the lowest point in a vast, foggy mountain range (this represents the "loss landscape" of a neural network). You want to find a spot that is not just low, but also flat. Why? Because the authors argue that if you land in a wide, flat valley, your model will work better on new, unseen data (it will "generalize").

However, there was a major problem with how scientists measured "flatness" until now. They used a standard ruler (Euclidean geometry) to measure the shape of the valley.

The Analogy: Imagine you have a map of a valley.

  • The Old Way: You draw the map on a piece of rubber. If you stretch the rubber horizontally, the valley looks incredibly wide and flat. If you squish it vertically, the valley looks like a deep, sharp spike.
  • The Critique: A famous paper by Dinh et al. pointed out that this "ruler" is cheating. You can stretch or squish the map (reparametrize the neural network) without actually changing the valley itself. The "flatness" you measure depends entirely on how you drew the map, not on the actual terrain. This made the theory that "flat is good" shaky because the measurement wasn't real.

The Solution: The "Natural" Compass

This paper proposes a new way to measure flatness that doesn't care how you stretch the map. They use something called the Fisher Information Matrix (FIM).

The Analogy: Instead of using a rubber ruler, imagine you have a compass that is built into the terrain itself. This compass knows the "natural" shape of the ground.

  • If you stretch the rubber map, the compass moves with the terrain. It still points to the same "natural" flatness.
  • The authors define a new measurement called Riemannian Sharpness (SRS_R). This measures how curved the valley is relative to the "natural" geometry of the data, not relative to an arbitrary grid.

They prove mathematically that this new measurement is invariant. Whether you stretch the map or squish it, the "natural flatness" stays the same. This fixes the fundamental flaw in the old theory.

How SGD Finds the Flat Valleys

The paper also explains why Stochastic Gradient Descent (SGD)—the algorithm used to train AI—tends to find these flat valleys.

The Analogy: Imagine you are walking down the mountain in the fog.

  • Standard Gradient Descent: You walk perfectly straight down the steepest slope. You might get stuck in a tiny, sharp crack at the bottom.
  • SGD (Stochastic): You are walking while being gently bumped by a crowd of people (the "noise" from processing data in small batches).
  • The Discovery: The authors show that these "bumps" aren't random chaos. They are shaped like the terrain itself (guided by the FIM).
    • If you are in a sharp, narrow valley, the bumps are too wild; they knock you right out of the valley.
    • If you are in a wide, flat valley, the bumps are gentle enough that you can stay there.

Mathematically, they prove that the "noise" of SGD acts like a magnet that pulls the model toward the widest, flattest valleys. The wider the valley, the more likely the model is to settle there.

The Proof: Why Flatness Means Better Performance

The authors connect this geometry to real-world performance using a mathematical safety net called a PAC-Bayes bound.

The Analogy: Think of a safety net under a tightrope walker.

  • If the tightrope is a sharp, thin wire (a sharp minimum), a tiny wobble (a new data point) could make the walker fall.
  • If the tightrope is a wide, flat platform (a flat minimum), the walker can wobble a lot and still stay safe.

The paper proves that the "width" of this platform (measured by their new Riemarian Sharpness) directly predicts how well the model will perform on new data. The flatter the minimum, the tighter the safety net, and the better the generalization.

What the Experiments Showed

The authors tested this on two famous datasets (MNIST and CIFAR-10) using different settings:

  1. Batch Size: When they used smaller groups of data (smaller batches), the "bumps" were bigger, and the model found flatter valleys and performed better.
  2. Learning Rate: When they took bigger steps (higher learning rate), they also tended to find flatter valleys.
  3. The Metric: Their new "Natural Flatness" (SRS_R) successfully predicted which models would work best. The old "Rubber Ruler" flatness (SES_E) failed to predict this, especially when the network was re-arranged.

Important Caveats (The Fine Print)

The authors are honest about the limitations:

  • The "Perfect" vs. "Real" Compass: The math proves that the true Fisher Information Matrix is perfectly invariant. However, in real computers, they have to use an approximation (a "diagonal" version) to make the calculations fast. This approximation is almost invariant, but not 100% perfect.
  • The "Bumps" aren't always perfect: The theory assumes the "bumps" (noise) follow a specific pattern. In the real world, this pattern is very close to the theory but not exact. However, the authors show that even with these small imperfections, the main conclusion (that SGD likes flat valleys) still holds true.

Summary

This paper fixes a broken theory about why AI models generalize.

  1. The Problem: Old ways of measuring "flatness" were cheating because they depended on how you drew the map.
  2. The Fix: They introduced a "natural" measurement (Riemannian Sharpness) that stays the same no matter how you stretch the map.
  3. The Mechanism: They proved that the random noise in training (SGD) naturally pushes models into these flat, safe valleys.
  4. The Result: Flatter valleys (measured by this new method) mean better performance on new data.

In short: Don't just look for the lowest point; look for the widest, flattest valley, and use a compass that respects the terrain, not the map.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →