Byzantine-Resilient SGD in High Dimensions on Heterogeneous Data

Deepesh Data, Suhas DiggaviarXiv 2020

TL;DR

This paper introduces a new Byzantine-resilient Stochastic Gradient Descent (SGD) algorithm designed for high-dimensional, heterogeneous distributed learning. By leveraging advanced outlier filtering and a new matrix concentration bound, the authors prove that distributed training can remain robust and efficient even when up to a quarter of the workers are malicious and data is non-i.i.d.

What Problem Does This Paper Address?

Distributed SGD is the backbone of modern large-scale machine learning, but it is notoriously fragile. In a typical master-worker setup, a single "Byzantine" worker—one that is either faulty (software bugs, noisy data) or actively malicious—can send "garbage" gradients that prevent the model from converging or steer it toward a malicious target.

Most existing defenses against these attacks make two restrictive assumptions:

  1. Homogeneity: They assume all workers have data drawn from the same distribution (i.i.d.). In reality, especially in Federated Learning, every worker (e.g., a mobile phone) has a unique, heterogeneous dataset.
  2. Low Dimensionality: Simple filtering techniques like taking the coordinate-wise median often fail or provide poor guarantees as the number of model parameters ($d$) grows very large.

This paper tackles the challenge of making SGD robust in high-dimensional settings where data is naturally diverse across workers.

Methods

The authors propose a Byzantine-Resilient SGD algorithm that replaces the standard averaging step at the master node with a Robust Gradient Estimation (RGE) procedure.

  • Outlier Filtering: The master uses a polynomial-time filtering algorithm (originally proposed by Steinhardt et al. in 2018 for mean estimation) to identify and remove corrupt gradients. This method looks at the spectral properties of the received gradients to find outliers that "steer" the mean too far away.
  • New Matrix Concentration Bound: To apply this filtering to stochastic gradients in a heterogeneous setting, the authors derived a new theoretical bound. This bound ensures that even with noisy, diverse data, the gradients from "honest" workers will cluster together well enough for the filter to work.
  • Gradient Compression: To reduce the massive communication cost of high-dimensional gradients, they introduced a Byzantine-resilient version of rand-k sparsification. Crucially, the master dictates which $k$ random coordinates all workers should send, ensuring the robust decoding remains efficient.
The master-worker architecture with Byzantine adversaries. Honest workers ($W_1, W_3$) send true stochastic gradients, while corrupt workers ($W_2, W_R$) send arbitrary vectors to disrupt training.

Datasets

The paper is primarily a theoretical contribution and does not report experiments on standard empirical benchmarks like ImageNet or CIFAR. Instead, the authors evaluate their approach using a statistical heterogeneous data model. They provide rigorous mathematical bounds for cases where local gradients follow sub-exponential or sub-Gaussian distributions, allowing them to quantify how data diversity ($\kappa$) and local noise ($\sigma$) affect the final model accuracy.

Key Insights and Ideas

  • The Heterogeneity Floor: In non-i.i.d. settings, there is a fundamental "approximation error" ($\kappa^2$) that depends on how different the local datasets are. You cannot filter this out because it represents real data diversity, not an attack.
  • Mini-batching as a Defense: A key finding is that increasing the mini-batch size ($b$) does more than just reduce SGD noise; it actually makes the robust filtering more effective. Larger batches "tighten" the cluster of honest gradients, making malicious outliers easier to spot.
  • "Compression for Free": The authors show that by using their master-dictated coordinate selection, you can achieve a $d/k$ factor saving in communication bits and decoding complexity without hurting the overall convergence rate or increasing the final error floor.
  • Linear Speedup: Despite the presence of attackers, the algorithm matches the convergence rates of standard, attack-free SGD: it converges exponentially fast for strongly-convex problems and at a $1/T$ rate for non-convex ones.

Key Results

  • Corruption Tolerance: The algorithm can tolerate up to 25% ($\epsilon \le 1/4$) of the workers being Byzantine.
  • Convergence Guarantees: The authors provide the first convergence analysis for Byzantine-resilient SGD under standard assumptions in a heterogeneous data model for both strongly-convex and non-convex objectives.
  • Communication Efficiency: The compressed version of the algorithm provides a significant $d/k$ reduction in communication overhead, which is vital for high-dimensional models where $d$ can be in the millions.

Limitations and Future Work

  • The 25% Limit: While 25% is robust, the information-theoretic limit for such problems is 50%. Closing this gap is a primary area for future research.
  • Computational Complexity: The outlier-filtering step requires Singular Value Decompositions (SVDs). While the authors show this is polynomial-time, it is still more expensive than simple averaging, and further optimization of the decoding complexity is suggested.
  • Advanced Attacks: The current work does not explicitly address "saddle point" attacks in non-convex landscapes, where an attacker might try to trap the model in a sub-optimal state rather than just preventing convergence.
  • General Compressors: The compression results are specific to the rand-k sparsifier; extending this to arbitrary compressors remains an open problem.

Summary updated

BibTeX
@misc{data2020byzantine,
  author = {Deepesh Data and Suhas Diggavi},
  title = {{Byzantine-Resilient SGD in High Dimensions on Heterogeneous Data}},
  year = {2020},
  eprint = {2005.07866},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.07866},
}
Figure