Genuinely Distributed Byzantine Machine Learning

El-Mahdi El-Mhamdi, Rachid Guerraoui, Arsany Guirguis, Lê Nguyên Hoang, Sébastien Rouault

TL;DR

This paper introduces ByzSGD, the first algorithm for genuinely distributed Byzantine-resilient machine learning, where neither workers nor parameter servers are trusted. ByzSGD achieves convergence even with Byzantine workers and servers, offering a practical solution for robust distributed ML without a single point of failure.

What Problem Does This Paper Address?

Modern machine learning heavily relies on distributed training to handle massive datasets. The common "parameter server" architecture, where a central server coordinates multiple workers, is vulnerable to failures. These failures can manifest as "Byzantine" behavior, where a component acts arbitrarily or maliciously. While existing methods can tolerate Byzantine workers, they still trust a central parameter server. This paper tackles the more challenging problem of "genuinely distributed" Byzantine resilience, where both workers and the parameter servers themselves can be Byzantine. This is crucial for applications in sensitive domains like finance or healthcare, where no single component can be assumed to be honest.

Methods

The core of ByzSGD lies in its novel approach to handling Byzantine failures across both workers and servers. It employs three key schemes:

  • Scatter/Gather Protocol: This communication strategy manages the flow of information. In the "scatter" phase, workers compute gradients and send them to multiple servers. In the "gather" phase, servers coordinate to consolidate their models. This protocol aims to bound the drift between models on correct servers.
  • Distributed Median Contraction (DMC): This technique leverages the geometric properties of the median in high-dimensional spaces. When servers receive models (or workers receive parameters), they use a coordinate-wise median to bring their parameter vectors closer together, ensuring convergence even with Byzantine inputs.
  • Minimum-Diameter Averaging (MDA): This is a statistically robust gradient aggregation rule designed to tolerate Byzantine workers. MDA selects a subset of gradients with the minimum diameter (smallest spread) to compute the average, making it less susceptible to malicious outliers.

ByzSGD also incorporates filtering mechanisms (Lipschitz and Outlier filters) in its synchronous variant to further enhance robustness and reduce communication overhead.

Datasets

  • MNIST
  • CIFAR-10

The paper uses these standard image classification datasets to evaluate ByzSGD across various neural network architectures, from small CNNs to large ResNets.

Key Insights and Ideas

  • No Single Point of Trust: The most significant insight is the move away from trusting any central component. By distributing the parameter server's role and making it resilient, the system becomes truly robust.
  • Median for Contraction: Using the median for model aggregation is a clever way to shrink the parameter space and bring correct servers' models closer, even when some inputs are malicious. This is a key enabler for distributed Byzantine resilience.
  • MDA's Practicality: The MDA gradient aggregation rule is highlighted for its practical advantage: it requires a looser bound on gradient variance compared to other methods like Krum, making it more applicable in real-world scenarios.
  • Synchrony Boosts Performance: While the core algorithm works asynchronously, assuming network synchrony allows for significant reductions in communication overhead, leading to faster training.

Key Results

  • Optimal Resilience: ByzSGD tolerates up to 1/3 Byzantine parameter servers and 1/3 Byzantine workers, which is shown to be optimal for asynchronous systems.
  • Convergence Overhead: In Byzantine settings, ByzSGD achieves convergence with approximately 32% overhead compared to vanilla TensorFlow in non-Byzantine environments.
  • Throughput Overhead: The synchronous version of ByzSGD shows a throughput overhead of 24-176%, while the asynchronous version has an overhead of 28-220% compared to vanilla TensorFlow.
  • Robustness: The system demonstrates resilience against various Byzantine attacks, including gradient reversal and data poisoning, on both workers and servers.

Limitations and Future Work

  • Variance-to-Norm Ratio Assumption: The paper acknowledges that guaranteeing the variance-to-norm ratio assumption for gradient aggregation rules (like MDA) remains an open question, especially with smaller batch sizes or a higher fraction of Byzantine workers.
  • Trade-offs in Synchrony: While synchrony improves performance, it introduces trade-offs. The paper suggests exploring the optimal frequency of the "gather" phase and the impact of filtering mechanisms.
  • Decentralized Settings: The authors propose extending this work to decentralized settings where there are no central servers, which presents further challenges in communication and coordination.
  • Non-IID Data: Applying these algorithms to non-IID (non-identically and independently distributed) data remains an area for future research.

Summary updated

BibTeX
@inproceedings{elmhamdi2019genuinely,
  author = {El-Mahdi El-Mhamdi and Rachid Guerraoui and Arsany Guirguis and Lê Nguyên Hoang and Sébastien Rouault},
  title = {{Genuinely Distributed Byzantine Machine Learning}},
  booktitle = {PODC},
  year = {2019},
  url = {https://openreview.net/forum?id=b7UXugZkOYj},
}
Figure