English

Flatness-Aware Stochastic Gradient Langevin Dynamics

Machine Learning 2026-05-28 v3 Optimization and Control Probability Machine Learning

Abstract

Flatness of the loss landscape has been widely studied as an important perspective for understanding the behavior and generalization of deep learning algorithms. Motivated by this view, we propose Flatness-Aware Stochastic Gradient Langevin Dynamics (fSGLD), a first-order optimization method that biases learning its dynamics toward flat basins while retaining the computational and memory efficiency of SGD and SGLD. We provide a non-asymptotic theoretical analysis showing that fSGLD targets a flatness-biased Gibbs distribution under a theoretically prescribed coupling between the noise scale σ\sigma and the inverse temperature β\beta, together with explicit excess risk guarantees. We empirically evaluate fSGLD across standard optimizer benchmarks, Bayesian image classification, uncertainty quantification, and out-of-distribution detection, demonstrating consistently strong performance and reliable uncertainty estimates. Additional experiments confirm the effectiveness of the theoretically prescribed β\beta-σ\sigma coupling compared to decoupled choices.

Keywords

Cite

@article{arxiv.2510.02174,
  title  = {Flatness-Aware Stochastic Gradient Langevin Dynamics},
  author = {Stefano Bruno and Youngsik Hwang and Jaehyeon An and Sotirios Sabanis and Dong-Young Lim},
  journal= {arXiv preprint arXiv:2510.02174},
  year   = {2026}
}

Comments

Accepted by ICML 2026

R2 v1 2026-07-01T06:13:36.198Z