Lune

ICLR2024Top-tier venue

On the Effect of Batch Size in Byzantine-Robust Distributed Learning

Yi-Rui Yang, Chang-Wei Shi, Wu-Jun Li

Abstract

Byzantine-robust distributed learning (BRDL), in which computing devices are likely to behave abnormally due to accidental failures or malicious attacks, has recently become a hot research topic. However, even in the independent and identically distributed (i.i.d.) case, existing BRDL methods will suffer a significant drop on model accuracy due to the large variance of stochastic gradients. Increasing batch size is a simple yet effective way to reduce the variance. However, when the total number of gradient computation is fixed, a too-large batch size will lead to a too-small iteration number (update number), which may also degrade the model accuracy. In view of this challenge, we mainly study the effect of batch size when the total number of gradient computation is fixed in this work. In particular, we show that when the total number of gradient computation is fixed, the optimal batch size corresponding to the tightest theoretical upper bound in BRDL increases with the fraction of Byzantine workers. Therefore, compared to the case without attacks, a larger batch size is preferred when under Byzantine attacks. Motivated by the theoretical finding, we propose a novel method called Byzantine-robust stochastic gradient descent with normalized momentum (ByzSGDnm) in order to further increase model accuracy in BRDL. We theoretically prove the convergence of ByzSGDnm for general non-convex cases under Byzantine attacks. Empirical results show that when under Byzantine attacks, using a relatively large batch size can significantly increase the model accuracy, which is consistent with our theoretical results. Moreover, ByzSGDnm can achieve higher model accuracy than existing BRDL methods when under deliberately crafted attacks. In addition, we empirically show that increasing batch size has the bonus of training acceleration.

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.

1 top-tier paper has 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

  • Byzantine-Robust Learning on Heterogeneous Datasets via Bucketing cites Learning from History for Byzantine Robust Optimization
  • On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning cites Byzantine-Robust Learning on Heterogeneous Datasets via Bucketing
  • On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed Learning cites Learning from History for Byzantine Robust Optimization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. On the Tension between Byzantine Robustness and No-Attack Accuracy in Distributed LearningYi-Rui Yang, Chang-Wei Shi, Wu-Jun LiICML 2025

Builds on12

  1. Large Batch Optimization for Deep Learning: Training BERT in 76 minutesYang You, Jing Li, Sashank J. Reddi, Jonathan Hseu et al.ICLR 2020 · 1,170 citations
  2. The Non-IID Data Quagmire of Decentralized Machine LearningKevin Hsieh, Amar Phanishayee, Onur Mutlu, Phillip B. GibbonsICML 2020 · 672 citations
  3. Learning from History for Byzantine Robust OptimizationSai Praneeth Karimireddy, Lie He, Martin JaggiICML 2021 · 247 citations
  4. Byzantine-Robust Learning on Heterogeneous Datasets via BucketingSai Praneeth Karimireddy, Lie He, Martin JaggiICLR 2022 · 192 citations
  5. Momentum Improves Normalized SGDAshok Cutkosky, Harsh MehtaICML 2020 · 177 citations

Related papers

  1. Distributed Momentum for Byzantine-resilient Stochastic Gradient DescentEl Mahdi El Mhamdi, Rachid Guerraoui, Sébastien RouaultICLR 2021 · 71 citations
  2. Byzantine Machine Learning Made Easy By Resilient Averaging of MomentumsSadegh Farhadkhani, Rachid Guerraoui, Nirupam Gupta, Rafael Pinot et al.ICML 2022 · 96 citations
  3. BASGD: Buffered Asynchronous SGD for Byzantine LearningYi-Rui Yang, Wu-Jun LiICML 2021 · 33 citations
  4. Simple Minimax Optimal Byzantine Robust Algorithm for Nonconvex Objectives with Uniform Gradient HeterogeneityTomoya Murata, Kenta Niwa, Takumi Fukami, Iifan TyouICLR 2024
  5. Variance Reduction is an Antidote to Byzantines: Better Rates, Weaker Assumptions and Communication Compression as a Cherry on the TopEduard Gorbunov, Samuel Horváth, Peter Richtárik, Gauthier GidelICLR 2023 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines