mlsanityData to 14 Oct 2026

FAM: Relative Flatness Aware Minimization

arXiv 2307.02337 ↗First posted 5 Jul 2023cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Flatness of the loss curve around a model at hand has been shown to empirically correlate with its generalization ability. Optimizing for flatness has been proposed as early as 1994 by Hochreiter and Schmidthuber, and was followed by more recent successful sharpness-aware optimization techniques. Their widespread adoption in practice, though, is dubious because of the lack of theoretically grounded connection between flatness and generalization, in particular in light of the reparameterization curse - certain reparameterizations of a neural network change most flatness measures but do not change generalization. Recent theoretical work suggests that a particular relative flatness measure can be connected to generalization and solves the reparameterization curse. In this paper, we derive a regularizer based on this relative flatness that is easy to compute, fast, efficient, and works with arbitrary loss functions. It requires computing the Hessian only of a single layer of the network, which makes it applicable to large neural networks, and with it avoids an expensive mapping of the loss surface in the vicinity of the model. In an extensive empirical evaluation we show that this relative flatness aware minimization (FAM) improves generalization in a multitude of applications and models, both in finetuning and standard training. We make the code available at github.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 37 of its 53 references that are in the map. First posted on arXiv 5 Jul 2023.

Builds on

37 of 53 references.

References · 37

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
  7. 2016Wide Residual Networkscited by 3,070
  8. 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,292
  9. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  10. 2017Improved Regularization of Convolutional Neural Networks with Cutoutcited by 1,628
  11. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
  12. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
25 more
  1. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
  2. 2018AutoAugment: Learning Augmentation Policies from Datacited by 730
  3. 2019Fantastic Generalization Measures and Where to Find Themcited by 513
  4. 2017Sharp Minima Can Generalize For Deep Netscited by 466
  5. 2016Entropy-SGD: Biasing Gradient Descent Into Wide Valleyscited by 359
  6. 2020Implicit Functions in Feature Space for 3D Shape Reconstruction and Completioncited by 343
  7. 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
  8. 2019PyHessian: Neural Networks Through the Lens of the Hessiancited by 292
  9. 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 255
  10. 2018Sentence Encoders on STILTs: Supplementary Training on Intermediate Labeled-data Taskscited by 215
  11. 2022Surrogate Gap Minimization Improves Sharpness-Aware Trainingcited by 172
  12. 2022Towards Understanding Sharpness-Aware Minimizationcited by 146
  13. 2021Efficient Sharpness-aware Minimization for Improved Training of Neural Networkscited by 137
  14. 2022Towards Efficient and Scalable Sharpness-Aware Minimizationcited by 129
  15. 2017Fisher-Rao Metric, Geometry, and Complexity of Neural Networkscited by 100
  16. 2020Relative Flatness and Generalizationcited by 88
  17. 2017Shake-Shake regularizationcited by 87
  18. 2018Hessian-based Analysis of Large Batch Training and Robustness to Adversariescited by 87
  19. 2022When Do Flat Minima Optimizers Work?cited by 78
  20. 2022How Does Sharpness-Aware Minimization Minimize Sharpness?cited by 65
  21. 2020A Deeper Look at the Hessian Eigenspectrum of Deep Neural Networks and its Applications to Regularizationcited by 44
  22. 20203D Shape Reconstruction from Vision and Touchcited by 42
  23. 2021Noise Stability Regularization for Improving BERT Fine-tuningcited by 29
  24. 2020Exploring the Vulnerability of Deep Neural Networks: A Study of Parameter Corruptioncited by 26
  25. 2019A Reparameterization-Invariant Flatness Measure for Deep Neural Networkscited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.