Efficient Byzantine-Resilient Stochastic Gradient Desce

Kaiyun Li, Xiaojun Chen, Ye Dong, Peng Zhang, Dakui Wang, Shuai ZengarXiv 2021

Abstract

Distributed learning systems are highly vulnerable to Byzantine failures, where malicious or faulty worker machines provide incorrect gradient updates that can derail model training. We present BrSGD (Byzantine-resilient Stochastic Gradient Descent), a novel distributed learning algorithm designed to maintain high accuracy even when nearly half of the worker nodes are compromised. By employing a two-step filtering process involving $\ell_1$-norm constraints and matrix-based scoring, BrSGD achieves optimal statistical accuracy with a computational complexity of $O(md)$, making it significantly more efficient than existing state-of-the-art robust aggregators.

Introduction

In standard distributed learning, a central master machine averages gradients from multiple worker machines to update a global model. This architecture is inherently fragile: a single Byzantine worker—whether due to software bugs, hardware failure, or adversarial intent—can completely corrupt the training process. While robust aggregators like the coordinate-wise median or Krum have been proposed, they often introduce a significant trade-off between computational overhead and convergence rates. BrSGD addresses this by providing a solution that is both computationally efficient and theoretically guaranteed to reach an optimal solution.

Methods

The BrSGD aggregator replaces the standard averaging step at the master node with a two-stage defense mechanism:

  1. $\ell_1$-Norm Filtering: The master identifies the median gradient across all workers. It then discards any worker whose gradient vector exceeds a specific $\ell_1$ distance from this median, effectively pruning obvious outliers.
  2. Matrix-Based Scoring: To detect sophisticated attackers who mimic honest behavior near the median, the algorithm treats gradients as a matrix (workers as rows, dimensions as columns). It identifies dimensional outliers and assigns a score to each worker based on their cross-dimensional behavior. Only gradients from the highest-scoring workers are averaged.
Figure 1: Illustration of the matrix-based scoring approach where outliers in specific dimensions (e.g., dimension 4) are used to identify and filter malicious workers.

Unlike methods that require sorting every dimension, BrSGD maintains linear complexity relative to model size ($d$) and the number of machines ($m$), making it practical for large-scale deep learning.

Experimental Evaluation

The authors evaluated BrSGD using the FashionMNIST dataset and the LeNet convolutional neural network architecture. The experiments simulated a distributed environment with 20 client machines subjected to four types of Byzantine attacks: Gaussian, Model Negation, Gradient Scale, and Label Shift.

Key Results

  • Resilience to Heavy Attacks: In scenarios where 50% of workers were malicious (Gaussian attack), BrSGD maintained an accuracy of approximately 83.3%, whereas the standard "Mean" method failed completely, dropping to ~9.9% accuracy.
  • Superior Convergence: BrSGD demonstrated faster and more stable convergence compared to the Median method, which often requires more epochs to reach peak accuracy.
  • Stability vs. Krum: While the Krum algorithm's performance degrades as the number of Byzantine workers approaches 50%, BrSGD remains robust and stable across all tested attack intensities.
Figure 3: Top-1 Accuracy vs. Epochs for various aggregation methods under different Byzantine attacks and worker percentages. BrSGD (Ours) consistently outperforms or matches robust baselines across all scenarios.

Discussion and Future Work

BrSGD relies on the "Honest Majority" heuristic, assuming more than 50% of workers are behaving correctly. By analyzing worker behavior holistically across all dimensions rather than treating each dimension independently, it achieves high efficiency without sacrificing robustness.

Currently, the theoretical proofs for BrSGD's convergence are limited to strongly convex loss functions. While experimental results on non-convex neural networks are promising, formalizing these guarantees for the non-convex case remains a key area for future research. Additionally, future work may explore combining BrSGD with gradient compression to reduce communication overhead in Federated Learning environments.

Summary updated

BibTeX
@misc{li2021efficient,
  author = {Kaiyun Li and Xiaojun Chen and Ye Dong and Peng Zhang and Dakui Wang and Shuai Zeng},
  title = {{Efficient Byzantine-Resilient Stochastic Gradient Desce}},
  year = {2021},
  eprint = {2108.06658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.06658},
}
Figure