Byzantine-Robust Loopless Stochastic Variance-Reduced Gradient

Nikita Fedin, Eduard GorbunovarXiv 2023 · DOI

Abstract

Distributed machine learning systems are increasingly vulnerable to Byzantine failures, where malicious or faulty workers send arbitrary data to a central server to derail model training. While variance-reduction techniques like SAGA and SARAH have been adapted for robustness, a Byzantine-robust version of the Stochastic Variance-Reduced Gradient (SVRG) algorithm—a staple in optimization—has remained elusive. This paper introduces BR-LSVRG, the first Byzantine-robust version of Loopless SVRG. By integrating variance reduction with robust aggregation and bucketing techniques, BR-LSVRG achieves linear convergence in distributed settings even under sophisticated attacks. Our theoretical analysis and empirical results demonstrate that BR-LSVRG outperforms existing state-of-the-art robust methods across various datasets and attack scenarios.

Introduction

In distributed optimization, a central server coordinates multiple workers to minimize a global objective function. This architecture is highly efficient but inherently fragile: a single "Byzantine" worker—one that behaves unpredictably or maliciously—can provide "anti-gradients" or extreme outliers that cause standard averaging-based algorithms to diverge.

To address this, researchers have turned to robust aggregation methods. However, the stochastic noise inherent in standard SGD often makes it difficult for these aggregators to distinguish between legitimate gradient variance and malicious interference. Variance-reduction methods mitigate this by shrinking the gradient noise, but until now, the popular SVRG framework lacked a robust counterpart. We focus on the "loopless" variant (LSVRG), which replaces the rigid inner-loop structure of traditional SVRG with a probabilistic update rule, offering better practical efficiency and simpler theoretical analysis.

The BR-LSVRG Algorithm

The proposed Byzantine-Robust Loopless SVRG (BR-LSVRG) algorithm combines the efficiency of variance reduction with a multi-layered defense strategy against Byzantine actors.

1. Local Estimation and Probabilistic Updates

Each worker computes a standard LSVRG gradient estimator. Unlike traditional SVRG, which updates a reference "full gradient" at fixed intervals, LSVRG workers update their reference point with a small probability $p$ at each step. This avoids the high computational cost of frequent full-gradient passes while maintaining the benefits of variance reduction.

2. Bucketing and Robust Aggregation

To defend against malicious inputs, the server does not simply average the received gradients. Instead, it employs two key techniques:

  • Bucketing: Workers are randomly partitioned into groups (buckets). The server averages the gradients within each bucket first. This process "dilutes" the influence of Byzantine workers, as a single malicious actor can only affect one bucket's average.
  • $(\delta, c)$-Robust Aggregators: The server applies a robust aggregation function—such as the Geometric Median or a trimmed mean—to the bucketed averages. These functions are mathematically designed to remain close to the true mean of honest workers even when a significant fraction of the inputs are corrupted.

Theoretical Insights

BR-LSVRG provides several key theoretical advantages over existing robust optimization methods:

  • Linear Convergence: We prove that BR-LSVRG converges linearly to the exact solution (or a very tight neighborhood of it) under strong convexity assumptions. This is a significant milestone for SVRG-based robust optimization.
  • The Variance Reduction Advantage: Variance reduction acts as a "shield." By reducing the natural variance of honest gradients, the algorithm makes malicious outliers stand out more clearly to the robust aggregator. This allows the aggregator to be more effective than it would be in a standard SGD setting.
  • Big Data Efficiency: In the "big data regime"—where the total number of samples $m$ is much larger than the number of workers—BR-LSVRG offers superior iteration complexity compared to other state-of-the-art methods like Byz-VR-MARINA.

Experimental Evaluation

We evaluated BR-LSVRG using four standard datasets from the LIBSVM library: a9a, phishing, w8a, and mushrooms. The experiments simulated a distributed environment with 16 workers, including 3 Byzantine actors.

Resilience to Diverse Attacks

The algorithm was tested against four distinct Byzantine strategies:

  1. Bit Flipping: Malicious workers send the negative of the correct gradient.
  2. Label Flipping: Workers calculate gradients based on intentionally incorrect class labels.
  3. ALIE (A Little Is Enough): A sophisticated attack where workers send vectors slightly offset from the mean to remain undetected while slowly drifting the model.
  4. IPM (Inner Product Manipulation): An attack designed to push the global model in a harmful direction by manipulating the inner product of the gradient.

Across all datasets and attack types, BR-LSVRG consistently reached higher accuracy faster than Byrd-SAGA, the previous benchmark for robust variance reduction.

Conclusion and Future Work

BR-LSVRG fills a critical gap in the robust optimization literature, providing a theoretically sound and practically efficient version of SVRG for distributed systems. While the current analysis focuses on strongly convex problems and requires relatively large batch sizes for certain theoretical guarantees, the empirical success of the method suggests broad applicability. Future research will focus on extending these robust guarantees to non-convex landscapes, such as those found in deep learning, and further refining the batch size requirements for convergence.

Summary updated

BibTeX
@misc{fedin2023byzantine,
  author = {Nikita Fedin and Eduard Gorbunov},
  title = {{Byzantine-Robust Loopless Stochastic Variance-Reduced Gradient}},
  year = {2023},
  eprint = {2303.04560},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.04560},
}
Figure