Variance Reduction is an Antidote to Byzantines: Better Rates, Weaker Assumptions and Communication Compression as a Cherry on the Top

Eduard Gorbunov, Samuel Horváth, Peter Richtárik, Gauthier Gidel

This paper, published at ICLR 2023, tackles a major headache in distributed and federated learning: how to keep training on track when some participants are actively trying to sabotage the process. The authors propose a new algorithm, Byz-VR-MARINA, which proves that variance reduction isn't just a speed booster—it’s a powerful security tool.

TL;DR

Byz-VR-MARINA is a new distributed optimization algorithm that is robust against malicious "Byzantine" workers. By combining variance reduction with communication compression, it achieves state-of-the-art convergence rates under much weaker assumptions than previous methods, effectively "filtering out" the noise that adversaries use to hide their attacks.

The Problem: Byzantine Workers and Bottlenecks

In distributed learning, a central server aggregates updates from many "workers." This setup is vulnerable to Byzantine workers: participants who deviate from the protocol, either due to hardware failure or malicious intent. They might send "poisoned" gradients designed to slow down training or destroy the model entirely.

Existing defenses usually rely on "robust aggregation" (like taking a median instead of an average). However, these struggle with two major challenges:

  1. Data Heterogeneity: If honest workers have very different datasets, it’s hard to tell a "legitimate but unusual" update apart from a "malicious" one.
  2. The Communication Bottleneck: Sending massive gradient vectors is slow. While we use compression to save bandwidth, combining compression with Byzantine robustness is mathematically difficult and often leads to poor performance or unrealistic assumptions (like assuming gradients never get too large).

Methods: Byz-VR-MARINA

The authors introduce Byz-VR-MARINA, which builds on the MARINA framework (a state-of-the-art method for compressed distributed learning) and introduces several key innovations.

  • Variance Reduction (VR) as an "Antidote": The core idea is that Byzantine workers "hide in the noise" of stochastic gradients. By using VR, the updates from honest workers become much more precise. When the "good" signals are clear, the "bad" signals from attackers stick out like a sore thumb, making them easy to filter.
  • MARINA Framework: At each step, workers either send a full gradient (with a small probability $p$) or a compressed difference between the current and previous gradient. This significantly reduces communication costs.
  • Robust Aggregation with Bucketing: Instead of a simple average, the server uses a $(\delta, c)$-Robust Aggregator. They specifically highlight that using a "bucketing" technique (grouping workers and averaging within groups before the final robust aggregation) makes standard tools like the Coordinate-wise Median much more resilient.
  • Weaker Assumptions: Most previous proofs required "Uniformly Bounded Variance" (UBV), assuming gradients stay within a fixed box. This paper throws that out, providing a more realistic analysis that works for general non-convex functions.
Feature comparison of Byzantine-robust methods.

Key Insights and Theoretical Results

Byz-VR-MARINA offers a rare "win-win" in algorithm design: the tool used for speed (Variance Reduction) is exactly what provides the security.

  • Tight Complexity: The theoretical "rates" (how many rounds it takes to finish) are tight. This means that if you remove the attackers, Byz-VR-MARINA is just as fast as the best non-robust algorithms.
  • Non-Uniform Sampling: This is the first Byzantine-tolerant method to support non-uniform sampling of gradients, which allows the algorithm to focus more on "difficult" or "important" data points without breaking the security guarantees.
  • Compression is the "Cherry on Top": They prove that you can compress updates significantly and still maintain Byzantine robustness without a massive hit to convergence speed.
Complexity comparison of Byzantine-robust methods.

Empirical Performance

The authors evaluated their method using standard benchmarks for logistic regression (a9a and w8a datasets), simulating environments with 4 to 15 workers and up to 5 Byzantine attackers.

  • Linear Convergence: In "PŁ" settings (common in deep learning landscapes), Byz-VR-MARINA converges linearly to the exact solution when data is homogeneous. Standard SGD-based methods usually plateau and can never reach perfect accuracy in the presence of attackers.
  • Outperforming SOTA: In head-to-head tests against previous methods like Byrd-SAGA and BR-CSGD, Byz-VR-MARINA reached target accuracy significantly faster, especially when the problem was "badly conditioned."
  • Resilience to Sophisticated Attacks: The algorithm was tested against "A Little Is Enough" (ALIE) and "Inner Product Manipulation" (IPM) attacks. While these attacks successfully derailed standard SGD, Byz-VR-MARINA remained stable and continued to converge.

Limitations and Future Work

While highly effective, the authors acknowledge a theoretical "heterogeneity floor": if the honest workers have extremely different data, there is a limit to how accurate any algorithm can be in the presence of attackers. Additionally, like many advanced optimizers, Byz-VR-MARINA requires tuning hyperparameters like the probability $p$ and the step size $\gamma$. Future work could involve "auto-tuning" the robust aggregator or the VR parameters dynamically based on the level of attack detected during training.

Summary updated

BibTeX
@inproceedings{gorbunov2023variance,
  author = {Eduard Gorbunov and Samuel Horváth and Peter Richtárik and Gauthier Gidel},
  title = {{Variance Reduction is an Antidote to Byzantines: Better Rates, Weaker Assumptions and Communication Compression as a Cherry on the Top}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=pfuqQQCB34},
}
Figure