Saved in:
Bibliographic Details
Main Authors: Xu, Yizhou, Beneventano, Pierfrancesco, Chuang, Isaac, Ziyin, Liu
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2602.05065
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911422293737472
author Xu, Yizhou
Beneventano, Pierfrancesco
Chuang, Isaac
Ziyin, Liu
author_facet Xu, Yizhou
Beneventano, Pierfrancesco
Chuang, Isaac
Ziyin, Liu
contents A large body of theory and empirical work hypothesizes a connection between the flatness of a neural network's loss landscape during training and its performance. However, there have been conceptually opposite pieces of evidence regarding when SGD prefers flatter or sharper solutions during training. In this work, we partially but causally clarify the flatness-seeking behavior of SGD by identifying and exactly solving an analytically solvable model that exhibits both flattening and sharpening behavior during training. In this model, the SGD training has no \textit{a priori} preference for flatness, but only a preference for minimal gradient fluctuations. This leads to the insight that, at least within this model, it is data distribution that uniquely determines the sharpness at convergence, and that a flat minimum is preferred if and only if the noise in the labels is isotropic across all output dimensions. When the noise in the labels is anisotropic, the model instead prefers sharpness and can converge to an arbitrarily sharp solution, depending on the imbalance in the noise in the labels spectrum. We reproduce this key insight in controlled settings with different model architectures such as MLP, RNN, and transformers.
format Preprint
id arxiv_https___arxiv_org_abs_2602_05065
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Does SGD Seek Flatness or Sharpness? An Exactly Solvable Model
Xu, Yizhou
Beneventano, Pierfrancesco
Chuang, Isaac
Ziyin, Liu
Machine Learning
Optimization and Control
A large body of theory and empirical work hypothesizes a connection between the flatness of a neural network's loss landscape during training and its performance. However, there have been conceptually opposite pieces of evidence regarding when SGD prefers flatter or sharper solutions during training. In this work, we partially but causally clarify the flatness-seeking behavior of SGD by identifying and exactly solving an analytically solvable model that exhibits both flattening and sharpening behavior during training. In this model, the SGD training has no \textit{a priori} preference for flatness, but only a preference for minimal gradient fluctuations. This leads to the insight that, at least within this model, it is data distribution that uniquely determines the sharpness at convergence, and that a flat minimum is preferred if and only if the noise in the labels is isotropic across all output dimensions. When the noise in the labels is anisotropic, the model instead prefers sharpness and can converge to an arbitrarily sharp solution, depending on the imbalance in the noise in the labels spectrum. We reproduce this key insight in controlled settings with different model architectures such as MLP, RNN, and transformers.
title Does SGD Seek Flatness or Sharpness? An Exactly Solvable Model
topic Machine Learning
Optimization and Control
url https://arxiv.org/abs/2602.05065