A federated Kaczmarz algorithm

Halyun Jeong, Deanna Needell, Chi-Hao WuarXiv 2025 · DOI

Introduction

Solving large-scale linear systems of the form $Ax = b$ is a fundamental task in scientific computing, data science, and signal processing. However, as datasets grow to exascale proportions, the matrix $A$ is often too large to reside on a single machine. Furthermore, in many modern contexts, data is siloed across multiple devices or institutions that cannot share raw information due to privacy regulations like GDPR or bandwidth constraints. This paper introduces FedRK, a federated version of the randomized Kaczmarz algorithm, designed to solve global linear systems collaboratively while maintaining local data privacy.

Problem Statement: Linear Systems in a Federated World

Traditional iterative solvers, such as the classic Kaczmarz method, work by sequentially projecting a current estimate onto the solution space of individual rows of the matrix. While effective for centralized data, these methods are not natively suited for a federated learning (FL) environment. In FL, data is partitioned across $N$ clients. The challenge lies in aggregating local updates from these clients into a coherent global solution without ever transmitting the raw rows of $A$ or the entries of $b$ to a central server.

The FedRK Methodology

The authors propose FedRK (Federated Randomized Kaczmarz), which adapts the geometric intuition of the Kaczmarz method to the federated framework. The algorithm operates through a series of communication rounds consisting of the following steps:

  1. Local Computation: Each participating client performs $\tau$ iterations of the Randomized Kaczmarz (RK) algorithm on their local subset of equations.
  2. Model Change Estimation: Instead of returning a full model, clients compute a "local model change" ($\Delta_i$), which represents the direction and magnitude of the update relative to the global starting point of that round.
  3. Server-Side Projection: The central server treats these local changes as normal vectors to "approximate hyperplanes." By performing a global RK step, the server projects the current global model onto the intersection of these approximate hyperplanes.
  4. Sparsity Constraints (Optional): For problems requiring sparse signal recovery, the server applies a hard thresholding operator, retaining only the $s$ most significant components of the solution vector.

A New Theoretical Perspective

One of the paper's most significant contributions is its theoretical analysis. While many federated algorithms suffer from "client drift"—where excessive local iterations lead to divergence—FedRK demonstrates the opposite behavior. The authors prove that more local iterations actually improve the convergence rate by providing a more accurate normal vector for the server's projection. Their proof utilizes the Implicit Function Theorem to provide a modern geometric foundation for convergence, which surprisingly offers a new proof for the original 1937 Kaczmarz algorithm.

Experimental Evaluation

The effectiveness of FedRK was validated across three distinct scenarios:

  • Synthetic Gaussian Systems: Testing on $2048 \times 1024$ overdetermined systems confirmed the algorithm's linear convergence properties.
  • Sparse Signal Recovery: Using wide matrices ($256 \times 1024$), the authors demonstrated that FedRK, combined with thresholding, can accurately recover signals with few non-zero entries in a decentralized manner.
  • Real-World Clinical Data: The algorithm was applied to the Prostate Cancer dataset (Stamey et al., 1989). FedRK successfully identified the same critical clinical features—such as cancer volume and prostate weight—as the standard Lasso method, proving its utility for distributed statistical modeling.

Key Insights and Results

  • Linear Convergence: The authors mathematically establish that the error decreases exponentially, following the form $E\|X^{(t+1)}\|^2 \leq \beta^{t+1}\|X^{(0)}\|^2$.
  • Efficiency via Locality: Experiments showed that increasing the number of local iterations ($\tau$) from 1 to 40 significantly reduced the number of global communication rounds required to reach a target error, highlighting the algorithm's communication efficiency.
  • Handling Inconsistency: In systems where no perfect solution exists (inconsistent systems), the authors show that adding "noisy columns" to the matrix can shrink the convergence horizon, allowing the algorithm to get closer to the true least-squares solution than standard RK methods.

Limitations and Future Directions

While FedRK shows great promise, the authors identify several areas for future research. Currently, the algorithm assumes synchronous communication rounds; developing an asynchronous version would better accommodate "stragglers" in edge computing environments. Additionally, while the geometric projection approach is highly effective for linear systems, extending this framework to general non-linear convex optimization problems remains an open and exciting challenge.

Summary updated

BibTeX
@misc{jeong2025federated,
  author = {Halyun Jeong and Deanna Needell and Chi-Hao Wu},
  title = {{A federated Kaczmarz algorithm}},
  year = {2025},
  eprint = {2505.09061},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.09061},
}
Figure