Learning from History for Byzantine Robust Optimization

Sai Praneeth Karimireddy, Lie He, Martin Jaggi

In the world of distributed and federated learning, we often worry about "Byzantine" workers—nodes that aren't just slow, but are actively malicious or malfunctioning, sending garbage data to the central server to derail the training process. While many "robust" aggregation rules have been proposed to filter out these bad actors, a recent paper from researchers at EPFL reveals that these defenses are surprisingly brittle.

The Core Problem: Why Current Defenses Fail

Most existing robust distributed learning algorithms rely on "middle-seeking" aggregation rules like the coordinate-wise median or Krum. These methods assume that "good" gradients will cluster together while "bad" ones will be outliers. The authors point out two major gaps in this assumption:

  1. Distributional Brittleness: In real-world scenarios—like imbalanced datasets or heavy-tailed gradient noise—the "middle" isn't actually the "optimum." Standard robust rules can fail to converge even when there are zero attackers because they ignore the "tail" of the data distribution.
Skewed distributions cause median-based aggregators to ignore critical tail data, leading to biased models.
  1. The Memoryless Trap: Most aggregators are "permutation-invariant" or memoryless; they only look at the current round. Sophisticated attackers can exploit this by injecting tiny, undetectable perturbations in every round that accumulate over time (time-coupled attacks), eventually leading the model to diverge.

A Two-Part Defense Strategy

To solve these issues, the paper proposes a novel two-part defense strategy that provides the first provably robust method for standard stochastic optimization:

  • Iterative Centered Clipping (CC): Instead of using medians, the server performs a simple iterative clipping. It starts with an estimate of the aggregate and "clips" all worker updates that are too far from that estimate before averaging them. This is computationally efficient ($O(n)$ complexity) and, crucially, doesn't discard the "tails" of the distribution as aggressively as median-based methods.
  • Worker Momentum: To defeat time-coupled attacks, the authors move momentum from the server to the individual workers. Each worker maintains its own local history of updates. This serves two purposes: it reduces the variance of "good" workers (making them more consistent) and forces attackers to either send very large, easily detectable outliers or lose their ability to influence the model over time.

Key Insights and Results

The authors evaluated their approach using imbalanced MNIST (to test non-unimodal data distributions) and CIFAR-10 (to test against state-of-the-art attacks like ALIE and IPM).

  • The "Middle" is a Lie: In many practical settings, gradients are not Gaussian. "Middle-seeking" aggregators like Krum or Median introduce a permanent bias. On the imbalanced MNIST task, Centered Clipping achieved high accuracy while Median and Krum-based methods capped out at ~75% because they essentially "ignored" the minority classes.
  • History is a Shield: The paper proves a lower bound showing that any memoryless algorithm will have a non-zero error floor in the presence of time-coupled attacks. By "learning from history" (using momentum), the server can effectively shrink the "blind spot" where attackers hide.
  • Defeating SOTA Attacks: Against ALIE and IPM attacks on CIFAR-10, the combination of Centered Clipping and Worker Momentum stayed close to the "no-attack" baseline, while all other robust aggregators saw significant drops in accuracy or complete divergence.
The impact of worker momentum ($\beta$) on model accuracy under various attacks. Higher momentum significantly improves the robustness of Centered Clipping (CC).

Furthermore, the authors provide convergence rates showing that their method achieves the optimal error rate for robust mean estimation, scaling linearly with the number of workers when no attackers are present.

Limitations and Future Work

While highly effective, the approach has a few limitations:

  • Breakdown Point: The theoretical analysis for Centered Clipping assumes the fraction of Byzantine workers ($\delta$) is less than 0.15. While it often performs well with more attackers in practice, the theoretical guarantee is lower than the 0.5 breakdown point of the median.
  • Hyperparameter Tuning: Centered Clipping introduces a clipping radius ($\tau$) and a number of iterations ($l$). Finding the optimal $\tau$ automatically in a non-stationary environment remains an open challenge.
  • Heterogeneity: While the paper addresses imbalanced data (i.i.d. but skewed), the broader challenge of "non-i.i.d." data in federated learning—where workers have fundamentally different data distributions—is noted as a difficult, ongoing problem.

Summary updated

BibTeX
@inproceedings{karimireddy2021learning,
  author = {Sai Praneeth Karimireddy and Lie He and Martin Jaggi},
  title = {{Learning from History for Byzantine Robust Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=o2mSgQ5N9DD},
}
Figure