The Randomized Kaczmarz (RK) method is one of the most intuitive algorithms in numerical linear algebra. To solve a system of equations $Ax = b$, you treat each row of the matrix as a hyperplane and iteratively project your current guess onto a randomly selected one. In a "consistent" system—where an exact solution exists—these hyperplanes all intersect at a single point. Roman Vershynin famously proved in A randomized Kaczmarz algorithm with exponential convergence that this process converges to that intersection at an exponential rate.
However, real-world data is rarely perfect. Measurement noise and modeling errors lead to inconsistent systems, where no single point satisfies every equation. In these cases, the hyperplanes do not meet at a point; they form a "cloud" or a messy intersection. Standard row-projection methods struggle here because they are designed to find a point that satisfies one equation at a time, rather than a point that "best fits" all of them.
The Convergence Horizon Problem
When you apply standard RK to an inconsistent system, the iterates do not converge to a single point. Instead, they reach a convergence horizon. As Deanna Needell and Joel A. Tropp describe in Paved with Good Intentions: Analysis of a Randomized Block Kaczmarz Method, the algorithm initially makes rapid progress toward the general vicinity of the solution, but eventually begins to oscillate indefinitely within a bounded region.
The intuition is simple: if you have two parallel lines (an inconsistent system), projecting back and forth between them will never lead to a fixed point; you will simply bounce between the lines forever. The size of this "error floor" is determined by the level of noise in the system. El Houcine Bergou and colleagues recently mapped this "final destination" in Where Have All the Kaczmarz Iterates Gone?, proving that these iterates actually orbit the least-squares solution—the point that minimizes the sum of squared distances to all hyperplanes.
Cleaning the Noise with Extended Kaczmarz
To reach the exact least-squares solution, the algorithm must account for the "noise" component of the vector $b$. Mathematically, $b$ can be split into two parts: one that lies in the range of the matrix $A$ (the signal) and one that is orthogonal to it (the noise).
The Extended Randomized Kaczmarz (ERK) method solves this by adding a "noise-cleaning" step. As introduced by Deanna Needell, Ran Zhao, and Anastasios Zouzias in Randomized Block Kaczmarz Method with Projection for Solving Least Squares, the algorithm maintains two sequences. One sequence iteratively estimates and subtracts the noise component of $b$ using the columns of $A$, while the other performs standard RK updates on the "cleaned" version of $b$. By simultaneously refining the right-hand side and the solution estimate, ERK achieves linear convergence even for highly inconsistent systems.
Washing Out Noise via Tail Averaging
If the Extended Kaczmarz method is a "surgical" approach to noise, Tail-Averaged Randomized Kaczmarz (TARK) is a "statistical" one.
In Randomized Kaczmarz with tail averaging, Ethan N. Epperly, Gil Goldshlager, and Robert J. Webber observe that while individual RK iterates oscillate, their average tends to be much closer to the true least-squares solution. By discarding the early "burn-in" iterates and averaging the later ones, the random oscillations caused by inconsistency cancel each other out. This "washes out" the noise floor, allowing the solver to reach the least-squares solution at a theoretically optimal rate without the complexity of dual-projection steps.
Speeding Up via Blocks and Greed
Beyond handling noise, researchers have focused on making these projections more efficient.
- Block Projections: Instead of projecting onto one row at a time, Randomized Block Kaczmarz (RBK) projects onto a "block" or subspace of rows. This uses more information per step and can significantly speed up convergence, especially when the matrix is well-conditioned in blocks.
- Greedy Selection: Rather than picking rows purely at random, "greedy" methods like those explored by Jamie Haddock and Deanna Needell in On Motzkin’s method for inconsistent linear systems pick the row with the largest residual (the one the current guess misses by the most). While this accelerates progress initially, it can be sensitive to noise, as the "most violated" constraint in an inconsistent system might just be the one with the most measurement error.
- Sketching: Deanna Needell also demonstrated in Acceleration of Randomized Kaczmarz Method via the Johnson-Lindenstrauss Lemma that one can "sketch" the data into lower dimensions to quickly identify the most effective projection directions, combining the benefits of greedy selection with the computational lightness of randomization.
Distributed and Federated Contexts
The simplicity of row-projection makes it ideal for decentralized environments. In Distributed Computation of Linear Matrix Equations: An Optimization Perspective, Xianlin Zeng and colleagues show how agents holding different "shards" of a matrix can reach a global least-squares solution through local updates. Similarly, Halyun Jeong and Deanna Needell recently extended this to A federated Kaczmarz algorithm, allowing multiple clients to solve a global system without ever sharing their local, potentially sensitive data. In these distributed settings, the challenge of inconsistency is amplified, as local noise can lead to conflicting gradients that the algorithm must reconcile to find the global optimum.