Introduction
In deep learning, a long-standing "dogma" suggests that flat minima in the loss landscape lead to better generalization, while sharp minima indicate overfitting. This intuition is often linked to Occam’s Razor: simpler, "flatter" solutions should be more robust. However, recent research from King's College London and Queen Mary University of London challenges this conventional wisdom. By proposing a function-centric perspective, the authors argue that sharpness is not a bug but a feature of complex, well-regularized models.
The Problem: Flatness as a Proxy for Generalization
For decades, the "flatness" of a local minimum—measured by how much the loss changes under slight weight perturbations—has served as a proxy for unseen data performance. Yet, this connection is theoretically shaky. Previous work demonstrated that a flat minimum could be "sharpened" through simple weight reparameterization without altering the model's actual output. Despite the introduction of "invariant" metrics, the field has largely maintained the "flatter is better" assumption. This paper addresses the growing discrepancy between this theory and the empirical reality where high-performing, regularized models often reside in sharp regions of the loss landscape.
Methodology
The researchers investigated the geometry-performance relationship through several lenses:
- Toy Optimization: Training Multi-Layer Perceptrons (MLPs) on standard optimization functions (e.g., Sphere, Rosenbrock, Himmelblau). Since global minima for these are known, they compared the "intrinsic" sharpness required by the task against the sharpness achieved by the model.
- High-Dimensional Deep Learning: Extensive experiments were conducted using ResNet-18, VGG-19, and Vision Transformers (ViT) on CIFAR-10, CIFAR-100, and TinyImageNet.
- Training Controls: Baselines were compared against models using Weight Decay, Data Augmentation, and Sharpness Aware Minimization (SAM).
- Invariant Metrics: To avoid mathematical artifacts, the study employed reparameterization-invariant metrics: the Fisher-Rao Norm (functional complexity), Relative Flatness (based on the Hessian trace), and SAM-Sharpness.
Key Insights: Geometry Follows Function
A central finding is that geometry follows function. In toy problems, if a target function is inherently complex (like the Rosenbrock function), the optimal solution must be sharp. Forcing a model toward a flat minimum in such cases can be counterproductive, as it prevents the model from capturing the necessary functional complexity.
Furthermore, the study identifies a "Regularization Paradox." Techniques like Data Augmentation and SAM, designed to improve generalization, were traditionally thought to find flatter minima. Instead, the authors found that regularized models often converge to significantly sharper minima than unregularized baselines, yet they perform better across all metrics.
Empirical Results
The results across various architectures were remarkably consistent. On CIFAR-10 with ResNet-18, the unregularized "Baseline" produced the flattest minima but the lowest test accuracy (72.0%). Conversely, the "Augmentation + SAM" regime produced the sharpest minima but achieved the highest accuracy (90.8%).
Beyond accuracy, sharper minima coincided with better calibration and higher robustness. Regularized (sharper) models showed lower Expected Calibration Error (ECE). For instance, on TinyImageNet, Augmentation + SAM reduced ECE to 0.044, compared to 0.257 for the Baseline. These models were also more resilient to data corruptions in the CIFAR-10-C benchmark, suggesting that sharp minima represent "tighter" and more precise decision boundaries.
Conclusion and Future Directions
The authors conclude that there is no universal "ideal" level of sharpness; the optimal geometry is task- and architecture-dependent. This makes sharpness a difficult simple diagnostic tool. They suggest a shift in focus toward how specific inductive biases shape the loss landscape, rather than pursuing flatness for its own sake. Future research should explore the nuanced relationship between local robustness—the stability targeted by SAM—and the broader global geometry of the loss surface.
Summary updated