On the Relevance of Byzantine Robust Optimization Against Data Poisoning

Sadegh Farhadkhani, Rachid Guerraoui, Nirupam Gupta, Rafael PinotarXiv 2024 · DOI

Abstract

In distributed machine learning, the distinction between Byzantine failures (arbitrary worker behavior) and data poisoning (corrupted training data) is often used to argue that Byzantine-robust algorithms are overly pessimistic. This paper investigates this assumption, providing a rigorous theoretical analysis of both threat models in heterogeneous environments. The authors prove that Byzantine-robust algorithms are, in fact, optimal even under the weaker data poisoning threat model. By establishing tight matching upper and lower bounds for convergence rates, the study demonstrates that the fundamental limits of learning under data poisoning are dictated by the same factors as Byzantine robustness, specifically the interaction between corruption levels and data heterogeneity.

Introduction

Distributed learning systems, such as Federated Learning, aggregate updates from multiple workers to train a global model. This decentralized structure introduces significant security vulnerabilities. Traditionally, researchers distinguish between two threat levels:

  1. Byzantine Failure (Model Poisoning): Corrupted workers behave arbitrarily, sending any vector to the server to disrupt or steer the model.
  2. Data Poisoning: Workers remain protocol-compliant but utilize corrupted local datasets.

While Byzantine robustness is mathematically more challenging to achieve, it is often criticized as "unrealistic" compared to data poisoning. This paper addresses a central question: Is the complexity of Byzantine-robust optimization an overkill for realistic scenarios, or is it a necessary baseline for any robust distributed system? This question is particularly pertinent in the context of heterogeneous data, where natural variations between honest workers' datasets make it difficult to distinguish legitimate diversity from malicious poisoning.

Methodology

The paper establishes fundamental limits and algorithmic guarantees through a comprehensive theoretical framework:

Lower Bound Analysis

The authors extend Huber’s contamination model to the distributed setting. They construct "indistinguishable" scenarios using Dirac delta distributions, demonstrating that if $f$ out of $n$ workers possess poisoned data, there exists a fundamental limit to the accuracy any algorithm can achieve. This limit is intrinsic to the problem and independent of the specific defense mechanism used.

Robust Algorithm (Upper Bound)

To provide an upper bound, the authors analyze a variant of Distributed Stochastic Gradient Descent (DSGD) equipped with two primary defenses:

  • Polyak’s Momentum: Workers compute local momentum to smooth stochastic noise before transmission.
  • Coordinate-wise Trimmed Mean: The server filters the received updates by removing the most extreme values in each dimension before performing the average.

Lyapunov Analysis

To prove convergence for non-convex functions satisfying the Polyak-Lojasiewicz (PL) condition, the authors developed a novel time-invariant Lyapunov function. This mathematical tool accounts for "momentum drift"—the divergence between an individual worker's local momentum and the global average—allowing for tighter analysis than previous methods.

Key Theoretical Insights

Byzantine Robustness is Not Overkill

The study's most significant finding is that the error floor encountered when defending against Byzantine workers is identical to the error floor encountered under data poisoning. Mathematically, this implies that Byzantine-robust schemes are "tight" for data poisoning; you cannot achieve better performance against poisoned data than you can against Byzantine workers in these settings.

The Heterogeneity Tax

In heterogeneous systems, the learning error is dominated by the term $\frac{f}{n} \cdot \frac{\zeta^2}{\mu}$, where $\zeta$ represents the degree of data heterogeneity. This "tax" suggests that as workers' data becomes more diverse, even a small fraction of poisoned data can cause significant damage because the malicious updates effectively "hide" within the natural variance of the honest updates.

Fully vs. Partially Poisonous Workers

The authors distinguish between workers with entirely corrupt datasets and those with only a fraction ($b/m$) of corrupt data. They prove that in heterogeneous environments, a small number of entirely corrupt workers is more detrimental to model performance than a large number of slightly corrupt workers.

Results and Convergence

  • Optimal Error Floor: The suboptimality gap for both Byzantine and data poisoning models is established as $\Theta(\frac{f}{n} \cdot \frac{\zeta^2}{\mu})$.
  • Convergence Rates: The authors prove a convergence rate of $O(\frac{1}{n} \cdot \frac{K\sigma^2}{\mu\epsilon} + \frac{L}{\mu} \log \frac{Q_0}{\epsilon})$. Notably, this matches the best-known rates for standard (non-robust) SGD, suggesting that implementing robustness does not necessarily slow down the speed of convergence, though it does limit the final achievable accuracy.
  • Linear Convergence: The paper provides the first tight analysis showing that robust first-order methods can achieve linear convergence (logarithmic iteration complexity) for the broad class of PL functions.

Limitations and Future Work

While the paper provides a robust foundation for understanding these threats, certain areas remain open for exploration:

  • Untargeted vs. Targeted Attacks: The analysis focuses on untargeted attacks (increasing overall loss). It does not explicitly cover "backdoor" attacks where the goal is to trigger misclassification on specific inputs.
  • Beyond PL-Conditions: While PL functions cover some non-convex problems, they do not encompass all deep learning landscapes. The authors conjecture the results hold more broadly but have not yet provided a formal proof.
  • Condition Number Tightness: There remains a minor gap regarding the condition number $K$ between the lower and upper bounds, which presents an opportunity for future refinement of the theory.

Summary updated

BibTeX
@misc{farhadkhani2024relevance,
  author = {Sadegh Farhadkhani and Rachid Guerraoui and Nirupam Gupta and Rafael Pinot},
  title = {{On the Relevance of Byzantine Robust Optimization Against Data Poisoning}},
  year = {2024},
  eprint = {2405.00491},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.00491},
}
Figure