Implicit Gradient Alignment in Distributed and Federated Learning
Yatin Dandi, Luis Barba, Martin Jaggi
Abstract
A major obstacle to achieving global convergence in distributed and federated learning is the misalignment of gradients across clients, or mini-batches due to heterogeneity and stochasticity of the distributed data. In this work, we show that data heterogeneity can in fact be exploited to improve generalization performance through implicit regularization. One way to alleviate the effects of heterogeneity is to encourage the alignment of gradients across different clients throughout training. Our analysis reveals that this goal can be accomplished by utilizing the right optimization method that replicates the implicit regularization effect of SGD, leading to gradient alignment as well as improvements in test accuracies. Since the existence of this regularization in SGD completely relies on the sequential use of different mini-batches during training, it is inherently absent when training with large mini-batches. To obtain the generalization benefits of this regularization while increasing parallelism, we propose a novel GradAlign algorithm that induces the same implicit regularization while allowing the use of arbitrarily large batches in each update. We experimentally validate the benefits of our algorithm in different distributed and federated learning settings. * Denotes equal contribution.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext cfe6e714-0d86-4b69-9190-ec4fbfcf6d57Cited by top-tier papers18
- Stochastic Training is Not Necessary for GeneralizationJonas Geiping, Micah Goldblum, Phillip Pope, Michael Moeller et al.ICLR 2022 · 83 citations
- FRAug: Tackling Federated Learning with Non-IID Features via Representation AugmentationHaokun Chen, Ahmed Frikha, Denis Krompass, Jindong Gu et al.ICCV 2023 · 44 citations
- Personalized Federated Learning with Feature Alignment and Classifier CollaborationJian Xu, Xinyi Tong, Shao-Lun HuangICLR 2023 · 35 citations
- Learning to Unlearn While Retaining: Combating Gradient Conflicts in Machine UnlearningGaurav Patel, Qiang QiuICCV 2025 · 21 citations
- Gradient Alignment Improves Test-Time Adaptation for Medical Image SegmentationZiyang Chen, Yiwen Ye, Yongsheng Pan, Yong XiaAAAI 2025 · 12 citations
Builds on8
- SCAFFOLD: Stochastic Controlled Averaging for Federated LearningSai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi et al.ICML 2020 · 3,875 citations
- Adaptive Federated OptimizationSashank J. Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett et al.ICLR 2021 · 1,917 citations
- Is Local SGD Better than Minibatch SGD?Blake E. Woodworth, Kumar Kshitij Patel, Sebastian U. Stich, Zhen Dai et al.ICML 2020 · 277 citations
- On the Origin of Implicit Regularization in Stochastic Gradient DescentSamuel L. Smith, Benoit Dherin, David G. T. Barrett, Soham DeICLR 2021 · 235 citations
- Implicit Gradient RegularizationDavid G. T. Barrett, Benoit DherinICLR 2021 · 235 citations
Related papers
- Local Learning Matters: Rethinking Data Heterogeneity in Federated LearningMatías Mendieta, Taojiannan Yang, Pu Wang, Minwoo Lee et al.CVPR 2022 · 176 citations
- Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks: A Feature Learning PerspectiveYajie Bao, Michael Crawshaw, Mingrui LiuICML 2024 · 6 citations
- Towards Understanding and Mitigating Dimensional Collapse in Heterogeneous Federated LearningYujun Shi, Jian Liang, Wenqing Zhang, Vincent Y. F. Tan et al.ICLR 2023 · 12 citations
- FedAvg Converges to Zero Training Loss Linearly for Overparameterized Multi-Layer Neural NetworksBingqing Song, Prashant Khanduri, Xinwei Zhang, Jinfeng Yi et al.ICML 2023 · 10 citations
- FedChain: Chained Algorithms for Near-optimal Communication Cost in Federated LearningCharlie Hou, Kiran Koshy Thekumparampil, Giulia Fanti, Sewoong OhICLR 2022 · 16 citations
