Generalized Byzantine-tolerant SGD

Cong Xie, Oluwasanmi Koyejo, Indranil GuptaarXiv 2018 · OpenReview

Abstract

We propose three new robust aggregation rules for distributed synchronous Stochastic Gradient Descent (SGD) under a general Byzantine failure model. The attackers can arbitrarily manipulate the data transferred between the servers and the workers in the parameter server (PS) architecture. We prove the Byzantine resilience properties of these aggregation rules. Empirical analysis shows that the proposed techniques outperform current approaches for realistic use cases and Byzantine attack scenarios.

Introduction

Distributed machine learning typically employs a Parameter Server (PS) architecture, where worker nodes compute gradients on local data subsets and transmit them to a central server for aggregation. While standard averaging is efficient, it is highly susceptible to Byzantine failures, where malicious or faulty nodes provide arbitrary data to the server.

Existing literature primarily focuses on the "Classic Byzantine" model, which assumes an entire worker node is either honest or malicious. If a single bit is corrupted, the entire gradient vector is discarded. This paper introduces a more nuanced Generalized Byzantine Model. In this model, corruption can occur at the level of individual dimensions within the gradient matrix. As long as fewer than half the values in any single dimension are corrupted, the system should ideally remain resilient.

Comparison of Classic vs. Generalized Byzantine failure models.

Proposed Aggregation Rules

To address the limitations of distance-based aggregators like Krum, which treat gradients as indivisible units, the authors propose three median-based rules that offer "Dimensional Byzantine Resilience":

  1. Geometric Median (GeoMed): This rule finds a vector that minimizes the sum of Euclidean distances to all worker gradients. While robust, it lacks a closed-form solution and requires iterative approximation.
  2. Marginal Median (MarMed): This rule computes the median for each dimension of the gradient independently. It is computationally efficient with a complexity of $O(dn)$, matching standard averaging.
  3. Mean Around Median (MeaMed): For each dimension, this rule averages the $n-q$ values closest to the median (where $q$ is the expected number of Byzantine values). This "trimmed mean" approach combines the robustness of the median with the low variance of the mean.

Experimental Evaluation

The proposed methods were evaluated on MNIST (using an MLP) and CIFAR-10 (using a CNN) against various attack vectors, including Gaussian noise, Bit-flip attacks, and sophisticated Omniscient attacks where the attacker attempts to reverse the true gradient.

Performance of aggregation rules under an omniscient attack on MNIST.

Key results indicate that MarMed and MeaMed significantly outperform Krum and standard averaging in scenarios where corruptions are spread across dimensions. Specifically, in Bit-flip and Gambler attacks, only the median-based methods maintained convergence. Under the Omniscient attack, MeaMed demonstrated performance nearly identical to the ideal "Mean without Byzantine" baseline, highlighting its effectiveness in filtering malicious outliers while maintaining low estimation bias.

Conclusion

This work provides the first theoretical proof of convergence for median-based aggregation in non-convex settings. By shifting the focus to dimensional resilience, the proposed MarMed and MeaMed rules offer a scalable and robust solution for distributed learning in adversarial environments. Future research will explore extending these principles to asynchronous SGD and developing automated methods for tuning the $q$ parameter in MeaMed.

Summary updated

Abstract

We propose three new robust aggregation rules for distributed synchronous Stochastic Gradient Descent~(SGD) under a general Byzantine failure model. The attackers can arbitrarily manipulate the data transferred between the servers and the workers in the parameter server~(PS) architecture. We prove the Byzantine resilience properties of these aggregation rules. Empirical analysis shows that the proposed techniques outperform current approaches for realistic use cases and Byzantine attack scenarios.
BibTeX
@misc{xie2018generalized,
  author = {Cong Xie and Oluwasanmi Koyejo and Indranil Gupta},
  title = {{Generalized Byzantine-tolerant SGD}},
  year = {2018},
  eprint = {1802.10116},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.10116},
}
Figure