A simple connection from loss flatness to compressed neural representations
Shirui Chen, Stefano Recanatesi, Eric Shea-Brown
TL;DR
This paper tackles the unclear relationship between loss sharpness and generalization by reframing sharpness as a driver of local representation compression. It introduces three metrics—Local Volumetric Ratio (LVR), Maximum Local Sensitivity (MLS), and Local Dimensionality—and derives bounds that connect parameter-space flatness to feature-space geometry, extended to network-wide measures (NVR, NMLS) and reparametrization-invariant sharpness concepts. Through experiments on CNNs, MLPs, and Vision Transformers, the authors show that flatter minima constrain representation compression, with MLS showing particularly strong correlation with sharpness-related bounds, while local dimensionality behaves more independently. The dual perspective clarifies why sharpness can aid generalization in some settings but not others, and provides a practical framework to study robustness and compression across modern architectures.
Abstract
Sharpness, a geometric measure in the parameter space that reflects the flatness of the loss landscape, has long been studied for its potential connections to neural network behavior. While sharpness is often associated with generalization, recent work highlights inconsistencies in this relationship, leaving its true significance unclear. In this paper, we investigate how sharpness influences the local geometric features of neural representations in feature space, offering a new perspective on its role. We introduce this problem and study three measures for compression: the Local Volumetric Ratio (LVR), based on volume compression, the Maximum Local Sensitivity (MLS), based on sensitivity to input changes, and the Local Dimensionality, based on how uniform the sensitivity is on different directions. We show that LVR and MLS correlate with the flatness of the loss around the local minima; and that this correlation is predicted by a relatively simple mathematical relationship: a flatter loss corresponds to a lower upper bound on the compression metrics of neural representations. Our work builds upon the linear stability insight by Ma and Ying, deriving inequalities between various compression metrics and quantities involving sharpness. Our inequalities readily extend to reparametrization-invariant sharpness as well. Through empirical experiments on various feedforward, convolutional, and transformer architectures, we find that our inequalities predict a consistently positive correlation between local representation compression and sharpness.
