Lune

ICML2023Top-tier venue

Decentralized SGD and Average-direction SAM are Asymptotically Equivalent

Tongtian Zhu, Fengxiang He, Kaixuan Chen, Mingli Song, Dacheng Tao

Abstract

Decentralized stochastic gradient descent (D-SGD) allows collaborative learning on massive devices simultaneously without the control of a central server. However, existing theories claim that decentralization invariably undermines generalization. In this paper, we challenge this conventional belief and present a completely new perspective for understanding decentralized learning. We prove that D-SGD implicitly minimizes the loss function of an average-direction sharpnessaware minimization (SAM) algorithm under general non-convex non-β-smooth settings. This surprising asymptotic equivalence reveals an intrinsic regularization-optimization trade-off and three advantages of decentralization: (1) there exists a free uncertainty evaluation mechanism in D-SGD to improve posterior estimation; (2) D-SGD exhibits a gradient smoothing effect; and (3) the sharpness regularization effect of D-SGD does not decrease as total batch size increases, which justifies the potential generalization benefit of D-SGD over centralized SGD (C-SGD) in large-batch scenarios. Experiments support our theory and the code is available at D-SGD and SAM.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On the Duality Between Sharpness-Aware Minimization and Adversarial Training cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Improving Generalization and Convergence by Enhancing Implicit Regularization cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Improving Generalization and Convergence by Enhancing Implicit Regularization cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Lookaround Optimizer: k steps around, 1 step average cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Lookaround Optimizer: k steps around, 1 step average cites Sharpness-aware Minimization for Efficiently Improving Generalization
  • Tackling the Objective Inconsistency Problem in Heterogeneous Federated Optimization cites Adaptive Federated Optimization
  • A Quadratic Synchronization Rule for Distributed Deep Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • A Quadratic Synchronization Rule for Distributed Deep Learning cites Adaptive Federated Optimization
  • A Quadratic Synchronization Rule for Distributed Deep Learning cites Sharpness-aware Minimization for Efficiently Improving Generalization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. On the Duality Between Sharpness-Aware Minimization and Adversarial TrainingYihao Zhang, Hangzhou He, Jingyu Zhu, Huanran Chen et al.ICML 2024 · 29 citations
  2. Improving Generalization and Convergence by Enhancing Implicit RegularizationMingze Wang, Jinbo Wang, Haotian He, Zilin Wang et al.NeurIPS 2024 · 21 citations
  3. Lookaround Optimizer: k steps around, 1 step averageJiangtao Zhang, Shunyu Liu, Jie Song, Tongtian Zhu et al.NeurIPS 2023 · 12 citations
  4. A Quadratic Synchronization Rule for Distributed Deep LearningXinran Gu, Kaifeng Lyu, Sanjeev Arora, Jingzhao Zhang et al.ICLR 2024 · 4 citations
  5. Implicit Regularization of Decentralized Gradient Descent for Sparse RegressionTongle Wu, Ying SunNeurIPS 2024 · 2 citations

Builds on47

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Tackling the Objective Inconsistency Problem in Heterogeneous Federated OptimizationJianyu Wang, Qinghua Liu, Hao Liang, Gauri Joshi et al.NeurIPS 2020 · 2,231 citations
  3. Adaptive Federated OptimizationSashank J. Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett et al.ICLR 2021 · 1,917 citations
  4. Sharpness-aware Minimization for Efficiently Improving GeneralizationPierre Foret, Ariel Kleiner, Hossein Mobahi, Behnam NeyshaburICLR 2021 · 1,861 citations
  5. Inverting Gradients - How easy is it to break privacy in federated learning?Jonas Geiping, Hartmut Bauermeister, Hannah Dröge, Michael MoellerNeurIPS 2020 · 1,822 citations

Related papers

  1. Towards Stability and Generalization Bounds in Decentralized Minibatch Stochastic Gradient DescentJiahuan Wang, Hong ChenAAAI 2024 · 3 citations
  2. Unveiling m-Sharpness Through the Structure of Stochastic Gradient NoiseHaocheng Luo, Mehrtash Harandi, Dinh Phung, Trung LeNeurIPS 2025 · 2 citations
  3. Stability and Generalization Analysis of Decentralized SGD: Sharper Bounds Beyond Lipschitzness and SmoothnessShuang Zeng, Yunwen LeiICML 2025
  4. Sharpness-Aware Minimization: General Analysis and Improved RatesDimitris Oikonomou, Nicolas LoizouICLR 2025
  5. Topology-aware Generalization of Decentralized SGDTongtian Zhu, Fengxiang He, Lan Zhang, Zhengyang Niu et al.ICML 2022 · 58 citations
Dusk over the sea between two cliffs drawn in fine vertical lines