AKSEL: Fast Byzantine SGD

Amine Boussetta, El Mahdi El Mhamdi, Rachid Guerraoui, Alexandre Maurer, Sébastien Rouault

TL;DR

This paper introduces AKSEL, a novel gradient aggregation rule for distributed machine learning that offers optimal Byzantine resilience and computational efficiency. AKSEL achieves state-of-the-art accuracy, performing exceptionally well even when a significant portion of workers are malicious, and it's the first to provide a logarithmic upper bound on angular error with respect to the number of workers.

What Problem Does This Paper Address?

Modern machine learning models are often trained across many machines (workers) coordinated by a central server. This distributed approach is necessary due to the massive datasets and complex models involved. However, it introduces a critical vulnerability: Byzantine workers, which can send arbitrary or malicious gradient updates to disrupt the training process. Traditional methods like simple averaging of gradients are highly susceptible to even a single Byzantine worker. While various robust gradient aggregation rules (GARs) exist, they often make trade-offs between computational complexity, the number of Byzantine workers they can tolerate (breakdown point), and the accuracy of the aggregated gradient (angular error). Many existing "full gradient" methods are computationally expensive, and "blended gradient" methods, while efficient, sacrifice accuracy, especially when the number of Byzantine workers is small but non-zero. This paper aims to bridge this gap by developing a GAR that is computationally efficient, highly resilient to Byzantine attacks, and maintains high accuracy across various attack scenarios.

Methods

The core of AKSEL is a novel median-based approach for aggregating gradients. Instead of simply averaging, AKSEL first centers the incoming gradients around a coordinate-wise median. This robust centering helps mitigate the impact of outliers. Then, it computes the squared Euclidean norm of these centered gradients. A robust interval is constructed based on the median of these squared norms. Finally, AKSEL averages only those gradients whose squared norms fall within this interval. This "filtering" mechanism, applied to the norms rather than individual coordinates, allows AKSEL to aggregate "full gradients" while indirectly leveraging the power of coordinate-wise operations for robustness. This approach is designed to achieve an optimal breakdown point (tolerating up to f Byzantine workers out of n workers, where n > 2f), optimal time complexity (O(nd)), and a low angular error (O(√d)), which is crucial for accurate and fast convergence.

Datasets

The paper reports empirical evaluations on standard classification datasets: MNIST, Fashion-MNIST, and CIFAR-10.

Key Insights and Ideas

  • Median as a Robust Anchor: Using the median as a central point for gradient aggregation is a powerful way to handle outliers and malicious updates, as it's less sensitive to extreme values than the mean.
  • Filtering by Norms for Full Gradients: Applying a filtering mechanism based on the norms of centered gradients, rather than individual coordinates, is key to achieving "full gradient" aggregation. This preserves more information about the true gradient direction compared to coordinate-wise methods.
  • Balancing Robustness and Accuracy: AKSEL demonstrates that it's possible to achieve both high Byzantine resilience (optimal breakdown point) and high accuracy (low angular error) simultaneously, a trade-off that many previous methods struggled with.
  • Logarithmic Error Growth: The theoretical analysis reveals that under normal gradient distributions, AKSEL's angular error grows only logarithmically with the number of workers (O(√d log n)), which is a significant improvement and a novel theoretical result for robust aggregation.

Key Results

  • Optimal Properties: AKSEL achieves an optimal time complexity of O(nd) and an optimal breakdown point of n > 2f.
  • High Accuracy: In empirical evaluations, AKSEL consistently achieves top accuracy, matching averaging in honest settings (no Byzantine workers) and outperforming other robust methods when Byzantine workers are present.
  • Graceful Degradation: AKSEL maintains good accuracy even in the extreme case where the number of Byzantine workers is at its maximum (s = f).
  • Theoretical Guarantees: The paper provides theoretical guarantees for AKSEL's Byzantine resilience and convergence for both non-convex and strongly convex losses. It also establishes a probabilistic upper bound on the angular error, showing it grows as O(√d log n) under normal gradient distributions.

Limitations and Future Work

  • Single Server Assumption: For simplicity, the paper focuses on a single-server architecture. However, the authors note that AKSEL can be adapted to multi-server architectures.
  • Reducing Angular Error Further: The authors suggest exploring ways to further reduce the angular error, potentially by relaxing the breakdown point or sacrificing some time complexity.
  • Biased Estimates: The current analysis assumes unbiased gradient estimates. Future work could investigate Byzantine resilience and convergence with biased estimates.
  • Leveraging Randomness: The paper suggests that exploring randomness could be another avenue to improve Byzantine resilience.

Summary updated

BibTeX
@inproceedings{boussetta2021aksel,
  author = {Amine Boussetta and El Mahdi El Mhamdi and Rachid Guerraoui and Alexandre Maurer and Sébastien Rouault},
  title = {{AKSEL: Fast Byzantine SGD}},
  booktitle = {DROPS},
  year = {2021},
  doi = {10.4230/lipics.opodis.2020.8},
}
Figure