Abstract
The Kaczmarz algorithm is an iterative method for solving systems of linear equations. We introduce a modified Kaczmarz algorithm for solving systems of linear equations in a distributed environment, i.e. the equations within the system are distributed over multiple nodes within a network. The modification we introduce is designed for a network with a tree structure that allows for passage of solution estimates between the nodes in the network. We prove that the modified algorithm converges under no additional assumptions on the equations. We demonstrate that the algorithm converges to the solution, or the solution of minimal norm, when the system is consistent. We also demonstrate that in the case of an inconsistent system of equations, the modified relaxed Kaczmarz algorithm converges to a weighted least squares solution as the relaxation parameter approaches $0$.
Introduction
In many modern applications—such as sensor networks, power grids, or large-scale machine learning—data is inherently decentralized. Solving a global linear system $Ax = b$ in these contexts is challenging because each node in the network may only possess a few rows of the matrix $A$. Traditional iterative solvers, like the Kaczmarz method, typically require a specific sequential or randomized order of equations, which necessitates heavy global communication. This paper addresses the problem of implementing a Kaczmarz-style solver over a tree topology, where communication is restricted to immediate neighbors.
Problem Formulation
We consider a system of linear equations where each equation is indexed by a vertex in a tree-structured network. Specifically, for each node $v$, we have an equation $\vec{a}_v \cdot \vec{x} = b_v$. The objective is to find a global solution estimate that satisfies these distributed constraints through local message passing.
The Distributed Kaczmarz Algorithm
The proposed algorithm utilizes a two-stage iterative process:
- Dispersion Stage: Starting from the root node, a solution estimate is propagated down the tree. As each node receives an estimate from its parent, it performs a local Kaczmarz update by projecting the current estimate onto the hyperplane defined by its local equation. The updated estimate is then passed to its children.
- Pooling Stage: Once the estimates reach the leaf nodes, they are sent back up the tree. Each parent node receives multiple estimates from its children and computes a weighted average to produce a single consolidated estimate for the next iteration.
A relaxed version of this algorithm introduces a parameter $\omega$, which is vital for handling inconsistent systems where no exact solution exists due to noise or modeling errors.
Theoretical Insights
The authors prove that for consistent systems, the algorithm converges to the solution of minimal norm. For inconsistent systems, as the relaxation parameter $\omega$ approaches zero, the algorithm converges to a weighted least squares solution.
A significant finding is the algorithm's stability. While standard Kaczmarz requires $0 < \omega < 2$, this distributed version remains stable for $\omega$ values up to nearly 4. This suggests that the pooling (averaging) step provides a stabilizing effect not found in sequential implementations. Furthermore, unlike many distributed gradient descent methods, this approach does not require strong convexity to guarantee convergence.
Numerical Results
The algorithm was validated using synthetic nonsingular matrices (Almost Orthogonal, Normal, and Uniform distributions) on small-scale systems ($3 \times 3$ and $8 \times 8$). The results confirmed linear convergence rates. For a $3 \times 3$ system with a normally distributed matrix, the distributed version achieved an error of $7.24 \times 10^{-6}$ after 10 iterations, performing comparably to the standard Kaczmarz error of $1.27 \times 10^{-6}$. The analysis also indicates that the algorithm is robust to small additive errors, with the tree depth influencing the accumulation of such noise.
Conclusion and Future Work
This paper presents a robust Kaczmarz-based approach for solving linear systems on tree topologies. While effective, the current framework is limited to trees and assumes a structured "down-then-up" flow. Future research will focus on extending the method to graphs with cycles, handling asynchronous updates to account for network delays, and exploring more complex update logic during the pooling stage to further accelerate convergence.
Summary updated