Randomized Kaczmarz in Adversarial Distributed Setting

Longxiu Huang, Xia Li, Deanna Needell · DOI

TL;DR

This paper introduces a robust, adversary-tolerant variant of the Distributed Randomized Kaczmarz algorithm designed to solve large-scale linear systems. By leveraging redundancy and a novel mode-based filtering mechanism paired with a history-tracking block-list, the method achieves exact convergence even when the adversarial worker rate exceeds 50%.

What Problem Does This Paper Address?

Distributed computing is essential for modern, large-scale machine learning and optimization. However, distributing tasks across multiple "worker" machines introduces vulnerability to Byzantine attacks—scenarios where faulty or malicious workers return corrupted, noisy, or completely fabricated gradients and residuals.

While existing robust optimization techniques often rely on geometric medians or mean aggregation to mitigate these attacks, they suffer from a fundamental limitation: they typically fail if more than half of the workers are compromised (an adversary rate $p \ge 0.5$). The authors tackle this gap, seeking a method that maintains convergence guarantees and high accuracy under high adversarial rates by strategically utilizing computational redundancy.

Methods

The authors build upon the Randomized Kaczmarz (RK) method, an iterative algorithm popular for solving overdetermined linear systems ($Ax = b$) by projecting estimates onto randomly selected rows of the data matrix.

To make it resilient in a distributed architecture, they introduce two key strategies:

  1. Mode-Based Selection: The central server assigns the same row computation to multiple redundant workers. Instead of averaging the returned residuals (which outliers can easily corrupt), the server groups similar results together and selects the mode—the group with the largest plurality. As long as the adversarial errors are spread across different categories, the reliable workers will form the largest consistent group.
  2. The Block-List Strategy: To handle highly hostile environments, the algorithm tracks worker reliability over time. It maintains a counter for how often a worker's output fails to match the chosen mode during an update cycle ($S$). Workers with the highest failure rates are flagged as adversarial, placed on a block-list, and excluded from future iterations.

The mathematical framework and parameters governing this distributed setup are summarized in the paper's notation table:

Table 1: Notation Table

Datasets

The effectiveness of the proposed algorithm was evaluated using both synthetic and real-world data:

  • Synthetic Data: The authors generated row-normalized matrices $A \in \mathbb{R}^{2400 \times 100}$ and vectors $x \in \mathbb{R}^{100}$ using a normalized Gaussian distribution to establish consistent linear systems.
  • Real-World Data: The Breast Cancer Wisconsin (Diagnostic) dataset from the UCI Machine Learning Repository was used to construct a consistent linear system with a data matrix $A \in \mathbb{R}^{569 \times 10}$.

Key Insights and Ideas

  • Breaking the 50% Adversary Barrier: The core "aha moment" is that malicious workers do not always coordinate perfectly to output the exact same incorrect value. By framing the aggregation as a mode detection problem rather than a median or mean calculation, the reliable workers only need to form a plurality, not an absolute majority. This allows the system to tolerate adversary rates well above 50%.
  • Frequency-Based Isolation: Instead of trying to verify the correctness of an output cryptographically or mathematically at every single step, the block-list relies on historical consistency. Because adversarial workers repeatedly deviate from the consensus mode over multiple iterations, their malicious nature inevitably reveals itself statistically over time.

Key Results

  • Robust Convergence: In simulations featuring a high adversary rate ($p = 0.6$) and massive outliers ($\|e\|_\infty = 500$), the standard algorithm without a block-list failed to converge. However, incorporating the block-list allowed the algorithm to bypass the corrupted data entirely, converging rapidly to an exact solution accuracy of $10^{-14}$.
  • High Identification Accuracy: As the updating cycle length ($S$) increased, the accuracy of identifying and block-listing adversarial workers reached 100% (an accuracy score of 1.0 in empirical tests).
  • Real-World Performance: When tested on the Wisconsin Breast Cancer dataset, the method successfully converged within 1000 to 1500 iterations under both mild ($p=0.3$) and severe ($p=0.6$) adversarial conditions.

Limitations and Future Work

  • Linear System Focus: While the authors demonstrate that the algorithm can be adapted to certain non-linear problems (such as $\ell_1$-regularized LASSO optimization), their rigorous theoretical convergence proofs are currently limited to linear systems ($Ax = b$). Extending these formal guarantees to general non-convex optimization remains an open challenge.
  • Communication Trade-offs: Increasing the number of rows sampled per iteration ($d_0$) speeds up convergence and lowers error bounds, but it simultaneously increases the communication overhead between the central server and the workers. Finding the optimal balance to minimize both wall-clock time and communication costs is left for practical tuning and future study.

Summary updated

BibTeX
@article{huang2024randomized,
  author = {Longxiu Huang and Xia Li and Deanna Needell},
  title = {{Randomized Kaczmarz in Adversarial Distributed Setting}},
  journal = {SIAM J. Sci. Comput.},
  year = {2024},
  doi = {10.1137/23m1554357},
}
Figure