Abstract
Randomized Kaczmarz (RK) is a popular stochastic row-action method for solving large-scale linear systems. However, its convergence is often hindered by slow progress in directions corresponding to small singular values. While momentum techniques like Polyak’s Heavy Ball are standard in optimization, they typically fail in the stochastic setting with small batch sizes due to high variance. This paper introduces Kaczmarz with Geometrically Smoothed Momentum (KGSM), a novel variant that applies a geometric filter to the momentum term. By smoothing the velocity, KGSM effectively suppresses noise, enabling significant acceleration in the slowest-converging directions. We provide a theoretical analysis of the expected signed error and demonstrate through numerical experiments that KGSM can achieve orders-of-magnitude speedups over standard RK.
1. Introduction
Solving massive linear systems of the form $Ax = b$ is a fundamental task in scientific computing, signal processing, and machine learning. When the matrix $A$ is too large to be processed globally, row-action methods like the Randomized Kaczmarz (RK) algorithm become essential. RK iteratively projects the current estimate onto a hyperplane defined by a randomly selected row of the system. Despite its simplicity and low memory footprint, RK suffers from poor convergence rates when the system is ill-conditioned, specifically struggling with directions associated with the matrix's small singular values.
In deterministic optimization, momentum methods are the standard remedy for such slowness. However, applying momentum to stochastic solvers with a batch size of one—like RK—is notoriously difficult. The "velocity" or update direction in these settings is highly volatile, causing standard momentum to amplify noise rather than accelerate progress. This paper addresses this challenge by introducing a smoothing mechanism to the momentum term.
2. The KGSM Algorithm
The proposed method, Kaczmarz with Geometrically Smoothed Momentum (KGSM), modifies the standard Kaczmarz update by incorporating a filtered velocity term. The algorithm is governed by two primary hyperparameters:
- Mass ($M$): The traditional momentum coefficient.
- Smoothing ($\beta$): A parameter controlling the geometric moving average of past updates.
Unlike standard Heavy Ball momentum, which relies solely on the displacement of the previous step, KGSM maintains a running average of displacements. When $\beta = 0$, the method reverts to standard momentum. As $\beta$ approaches 1, the algorithm applies a "low-pass filter" to the updates, smoothing out the high-frequency noise generated by the random selection of individual rows. This smoothing allows the algorithm to maintain a consistent direction of progress even when individual stochastic steps are noisy.
3. Theoretical Framework
The core contribution of this work is a rigorous mathematical characterization of KGSM’s dynamics. The authors model the algorithm's progress by analyzing the expected signed error in the direction of the singular vectors of $A$.
By decomposing the error into components aligned with the singular values, the evolution of the system can be described as a $2 \times 2$ linear dynamical system. This model allows for the derivation of the spectral radius of the transition matrix, which determines the convergence rate. A key finding is that for any given singular value, there exists an optimal smoothing parameter $\beta$ that minimizes this spectral radius, providing a theoretical roadmap for parameter tuning.
4. Numerical Experiments
The authors evaluated KGSM using several synthetic linear systems designed to test different spectral properties:
- Gaussian Matrices: $60 \times 50$ matrices with i.i.d. normal entries to test general performance.
- Structured Singular Values: Matrices where singular values were manually defined to isolate the algorithm's behavior on specific condition numbers.
- Spectral Decay Models: Systems with linear, convex, and concave decays of singular values to simulate realistic numerical scenarios.
4.1 Key Results
The experiments revealed that KGSM significantly outperforms standard Randomized Kaczmarz. In several benchmarks, KGSM reached an error tolerance of $10^{-7}$ in the same number of iterations where standard RK had only reached $10^{-1}$.
The study also identified a "spiking" phenomenon in certain parameter regimes. When the underlying dynamical system has complex eigenvalues, the error does not decrease monotonically; instead, it oscillates and exhibits periodic spikes. These spikes occur when the momentum causes the solver to overshoot the solution before being corrected, yet the overall trend remains significantly faster than non-accelerated methods.
5. Stability and Limitations
While KGSM offers substantial speedups, it introduces new stability considerations. The paper identifies a "critical momentum" threshold; if the mass $M$ is set too high, the dynamical system becomes unstable, and the algorithm diverges. Currently, this threshold must be found empirically or through conservative estimation, as a closed-form prediction for the "divergence cliff" based on arbitrary matrix properties remains elusive.
Furthermore, the current theoretical proofs focus on the expected signed error. While numerical evidence suggests that the absolute error (the norm of the residual) follows a similar trajectory, a formal proof for the convergence of the absolute error in the stochastic setting is a known hard problem and remains a subject for future research.
6. Conclusion
KGSM demonstrates that momentum is a viable and powerful tool for stochastic row-action solvers, provided that the update direction is sufficiently smoothed. By targeting the slowest-converging directions of a linear system, KGSM provides a path toward much faster solvers for ill-conditioned problems. Future work will focus on developing adaptive versions of KGSM that can automatically tune $M$ and $\beta$ during execution, as well as extending the smoothing framework to Block Kaczmarz methods for even greater scalability.
Summary updated