Fast and Secure Distributed Learning in High Dimension

El-Mahdi El-Mhamdi, Rachid GuerraouiarXiv 2019

Abstract

Could a gradient aggregation rule (GAR) for distributed machine learning be both robust and fast? This paper answers in the affirmative through MULTI-BULYAN. Given $n$ workers, $f$ of which are arbitrary malicious (Byzantine) and $m=n-f$ are correct, we prove that MULTI-BULYAN ensures strong Byzantine resilience with only an $m/n$ slowdown compared to simple averaging. When $m \approx n$, MULTI-BULYAN reaches the speed of averaging. We also prove that its local computational cost is $O(d)$, matching averaging and outperforming robust alternatives that scale quadratically with dimension $d$. Experimental evaluations support these theoretical findings, highlighting the algorithm's efficiency and parallelizability.

Introduction: The Byzantine Threat in Distributed Learning

In the standard "Parameter Server" model of distributed machine learning, a central server aggregates gradients from multiple workers to update a master model. While simple averaging is efficient, it is highly vulnerable: a single "Byzantine" worker—one that is malicious or faulty—can send adversarial data that completely derails training.

Defending against such attacks typically involves a trade-off:

  1. The Speed Trap: Algorithms like Krum are robust but discard most gradients, losing variance reduction benefits and slowing convergence by a factor of $1/n$.
  2. The Curse of Dimensionality: In high-dimensional models ($d \gg 1$), attackers can inject subtle biases into specific dimensions that are hard to detect using aggregate distance metrics. This $\sqrt{d}$ "leeway" allows adversaries to steer models toward poor local minima.

Methods: The MULTI-BULYAN Algorithm

To overcome these limitations, we propose MULTI-BULYAN, a two-stage aggregation rule that combines robustness with the speed of averaging.

Algorithm pseudocode for Multi-Krum and Multi-Bulyan.

The algorithm consists of two integrated components:

  • MULTI-KRUM: Unlike the original Krum, which picks a single "winner," MULTI-KRUM selects a subset of $m$ gradients closest to their neighbors. This preserves the work of multiple correct workers, reducing variance and accelerating convergence.
  • BULYAN: This refinement step performs a coordinate-wise median and a trimmed mean on the MULTI-KRUM selection. By analyzing each dimension individually, it strips away the $\sqrt{d}$ leeway attackers use to hide malicious updates.

We prove that MULTI-BULYAN achieves Strong Byzantine Resilience, bounding the error per dimension while maintaining $O(d)$ computational complexity, making it practical for models with billions of parameters.

Experimental Results

We evaluated MULTI-BULYAN using a CNN on the Fashion-MNIST dataset with 11 workers (2 Byzantine).

Aggregation time vs. number of workers across different model scales.

Our experiments confirm the theoretical advantages:

  • Convergence Speed: In Byzantine-free settings, MULTI-BULYAN achieves accuracy nearly identical to standard averaging, whereas simpler robust methods like Median show noticeable degradation.
  • Computational Efficiency: As shown in the scaling benchmarks, MULTI-BULYAN's aggregation time scales linearly with the number of workers. On modern hardware like the Nvidia GTX 1080 Ti, its parallelizable nature allows it to outperform standard library implementations of robust rules for high-dimensional models ($d=10^7$).

Conclusion

MULTI-BULYAN resolves the conflict between robustness and speed in distributed learning. By combining selective aggregation with coordinate-wise refinement, it provides a scalable defense against Byzantine actors in high-dimensional spaces. While its performance depends on bounded gradient variance among correct workers, it represents a significant step toward secure and efficient large-scale machine learning.

Summary updated

BibTeX
@misc{elmhamdi2019fast,
  author = {El-Mahdi El-Mhamdi and Rachid Guerraoui},
  title = {{Fast and Secure Distributed Learning in High Dimension}},
  year = {2019},
  eprint = {1905.04374},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.04374},
}
Figure