High Dimensional Distributed Gradient Descent with Arbitrary Number of Byzantine Attackers

Wenyu Liu, Tianqiang Huang, Pengfei Zhang, Zong Ke, Minghui Min, Puning Zhao

TL;DR

Distributed learning systems are highly vulnerable to Byzantine (malicious or faulty) workers, especially when attackers control a majority of the network or when the model has millions of parameters. This paper introduces a novel robust gradient aggregator that leverages a tiny, trusted auxiliary dataset to completely eliminate the "curse of dimensionality" ($\sqrt{d}$ error scaling) from the estimation error. By isolating high-variance subspaces where attackers attempt to hide their influence, the method achieves minimax optimal statistical rates even when up to 80% of the network is compromised.

What Problem Does This Paper Address?

In distributed and Federated Learning (FL), a central master server coordinates many worker machines to train a machine learning model. Workers compute local gradients on their private data and upload them to the master, which aggregates them to update the global model.

However, this setup is highly vulnerable to Byzantine failures, where compromised or faulty workers upload malicious, arbitrary gradients to derail training. Existing robust aggregation methods (like Krum, geometric median, or trimmed means) suffer from two major flaws:

  1. The 50% Breakdown Point: They typically fail if more than half of the worker machines are malicious.
  2. The Curse of Dimensionality: Their statistical error scales poorly with the model dimension $d$ (typically proportional to $\sqrt{d}$). In modern deep learning where models have millions or billions of parameters, this dimension dependence makes defenses highly ineffective.

While some recent approaches use a small, clean auxiliary dataset on the master node to handle an arbitrary number of attackers, they still suffer from the $\sqrt{d}$ dimensionality penalty. This paper addresses both challenges simultaneously.

Methods

The authors propose a novel Semi-verified Mean Estimation algorithm (Algorithm 2) and apply it as a gradient aggregator for distributed gradient descent (Algorithm 1). The master node utilizes a large, untrusted dataset from the workers alongside a very small, verified clean dataset ($X_0$).

The core mechanism operates as follows:

  1. Prefiltering: The master removes any uploaded worker gradients with anomalously large norms.
  2. Iterative Subspace Filtering: The master computes the sample covariance matrix of the remaining untrusted gradients and performs a spectral decomposition. If an eigenvalue is exceptionally large, it indicates that attackers are colluding to skew the global gradient along that specific eigenvector. The algorithm assigns a suspiciousness score to each worker based on its projection onto this high-variance subspace and removes workers probabilistically.
  3. Subspace-Based Aggregation: Once the filtering loop terminates, a projection matrix $P$ defines the remaining high-variance subspace where untrusted data cannot be fully trusted. The final gradient estimate elegantly splits the work: components inside this dangerous subspace are calculated using only the small clean dataset $X_0$, while components perpendicular to it (where attackers have minimal impact) are safely averaged from the remaining untrusted worker pool.

This process is visually mapped out in the paper's 2D illustration:

Figure 1: A two-dimensional illustration of the semi-verified mean estimation method shown in Algorithm 2. µ∗is repre- sented by the red triangle. Benign and attacked samples cor- respond to green and black dots, respectively. The orange plus sign denotes X0.

Datasets

The authors evaluated their method using two types of data:

  • Synthesized Data: Distributed linear regression datasets containing $N = 50,000$ total samples distributed across $m = 500$ worker machines, evaluated across dimensions $d = 20, 50,$ and $100$.
  • Real Data: The classic MNIST handwritten digit dataset (60,000 training images, 12,000 testing images) trained on a neural network with a 32-unit hidden layer, distributed evenly across $m = 500$ workers.

Key Insights and Ideas

  • Attackers Must Create Variance: For an attacker to significantly alter the mean gradient without being caught by simple distance-based filters, they must concentrate their malicious perturbations along a few specific directions. This inevitably creates a high-variance subspace that spectral decomposition can detect.
  • Strategic Division of Labor: Instead of throwing away all untrusted data or relying entirely on a tiny clean dataset (which would cause high variance due to its small sample size), the algorithm strategically uses clean data only where the untrusted data is compromised.
  • Breaking the Dimension Barrier: By isolating the dimensionality dependence to the clean dataset projection, the theoretical error rate completely drops the $\sqrt{d}$ factor, achieving information-theoretic minimax optimality.

Key Results

  • Theoretical Optimality: The authors prove that their aggregator matches the minimax lower bound for error rates under both additive (random) and strong (omniscent/targeted) contamination models.
  • High-Dimensional Superiority: In synthetic linear regression tests with an 80% Byzantine attacker majority ($q/m = 0.8$), baseline methods (like Zeno or Distance-Based Filtering) degraded significantly as the dimension $d$ increased from 20 to 100. The proposed method maintained low regression loss, demonstrating a widening performance gap as dimensionality grew.
  • Real-World Performance: On the MNIST dataset with 80% Byzantine workers, the proposed method converged faster and achieved lower root regression loss than standard filtering techniques. Even in a milder scenario with only 20% attackers, it performed comparably to or better than existing state-of-the-art approaches.

Limitations and Future Work

  • Clean Data Dependency: The method fundamentally relies on the master node having access to a small, uncorrupted auxiliary dataset. While usually practical, this might not be feasible in strictly decentralized peer-to-peer networks or highly sensitive privacy silos.
  • Computational Overhead: Performing spectral decomposition (PCA-like operations) on the gradient covariance matrix at every iteration can become computationally expensive for extremely large deep learning models.
  • Convexity Assumptions in Proofs: The rigorous theoretical guarantees assume a strongly convex loss landscape, though empirical results demonstrate that the method still works well on non-convex neural networks in practice. Generalizing the formal proofs to non-convex landscapes remains an open direction.

Summary updated

BibTeX
@misc{liu2023high,
  author = {Wenyu Liu and Tianqiang Huang and Pengfei Zhang and Zong Ke and Minghui Min and Puning Zhao},
  title = {{High Dimensional Distributed Gradient Descent with Arbitrary Number of Byzantine Attackers}},
  year = {2023},
  eprint = {2307.13352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.13352},
}
Figure