Abstract
The Kaczmarz method is an algorithm for finding the solution to an overdetermined consistent system of linear equations $Ax=b$ by iteratively projecting onto the solution spaces. The randomized version put forth by Strohmer and Vershynin yields provably exponential convergence in expectation, which for highly overdetermined systems even outperforms the conjugate gradient method. In this article we present a modified version of the randomized Kaczmarz method which at each iteration selects the optimal projection from a randomly chosen set, which in most cases significantly improves the convergence rate. We utilize a Johnson-Lindenstrauss dimension reduction technique to keep the runtime on the same order as the original randomized version, adding only extra preprocessing time. We present a series of empirical studies which demonstrate the remarkable acceleration in convergence to the solution using this modified approach.
Introduction
Solving massive systems of linear equations ($Ax = b$) is a foundational task in fields ranging from medical tomography to signal processing and machine learning. In many of these applications, the system is "overdetermined" (more equations than variables) and "consistent" (a solution exists). The Kaczmarz method is a popular iterative solver for such systems, functioning by selecting a row of the matrix and projecting the current estimate onto the hyperplane defined by that row.
Historically, the efficiency of the Kaczmarz method depended heavily on the order in which rows were selected. Cyclic selection can be prohibitively slow if the rows are poorly ordered. This was largely addressed by the Randomized Kaczmarz (RK) method, which selects rows randomly based on their norms, offering provable exponential convergence. However, RK remains "blind" in its selection process; it chooses a row without knowing if that specific projection will move the estimate significantly closer to the solution. While finding the absolute optimal row at each step would maximize progress, the computational cost of checking every row ($O(n)$ per row) would negate the speed benefits of the iterative approach.
The RKJL Method: Smart Selection via Sketching
This paper introduces the Randomized Kaczmarz via Johnson-Lindenstrauss (RKJL) method. The core innovation is the use of dimensionality reduction to "preview" which rows are most effective to project onto before performing the high-dimensional calculation.
Preprocessing and Dimensionality Reduction
The method begins with an offline preprocessing step. A Johnson-Lindenstrauss (JL) matrix $\Phi$ is used to project the rows of $A$ from an $n$-dimensional space down to a much smaller $d$-dimensional space, where $d \approx \log n$. This "sketching" process preserves the relative geometry and distances between the rows while significantly reducing the data's dimensionality.
The Online Iteration
At each iteration, instead of picking a single row at random, the RKJL algorithm selects a random subset of $n$ rows. It then performs a "sketch check":
- The current estimate $x_k$ is projected into the same $d$-dimensional space.
- Because the dimensionality is low, the algorithm can cheaply estimate which of the rows in the chosen subset would result in the largest jump toward the solution.
- Once the "best" row is identified in the low-dimensional sketch, the algorithm performs the actual, full-dimensional projection using that specific row.
By setting $d = O(\log n)$, the authors ensure that the geometry is preserved well enough to make a high-quality selection without the $O(n^2)$ overhead required to check every row in full detail.
Empirical Performance
The authors evaluated the RKJL algorithm using large synthetic datasets, specifically $60,000 \times 1,000$ overdetermined matrices with entries generated from Bernoulli distributions. To test convergence rates, they used homogeneous systems ($Ax = 0$) with initial estimates chosen uniformly at random on a unit sphere.
The results demonstrate a massive reduction in the number of iterations required for convergence:
- Standard RK: Required over 3,000 iterations to reach the target error level.
- RKJL: Reached the same error level in fewer than 500 iterations.
Furthermore, the study found that the method is robust to aggressive compression. Even when reducing the dimensions to $d=10$ or $d=100$ for a 1,000-dimensional problem, the RKJL method maintained a significant acceleration over the standard randomized approach. Theoretically, the authors provide a guarantee (Theorem 3.2) that RKJL converges at least as fast as standard RK in the worst case, though empirical evidence suggests it is typically much faster.
Complexity and Considerations
While the total runtime for $O(n)$ iterations is $O(n^2 \log n)$—technically higher than the standard RK's $O(n^2)$—the reduction in the total number of iterations and the efficiency of the low-dimensional checks make it faster in practice.
However, there are trade-offs. The JL projection of matrix $A$ is an "offline" cost. This makes RKJL most suitable for scenarios where the same matrix $A$ is used to solve multiple systems (e.g., different $b$ vectors) or where the system is so large that the savings in iteration count far outweigh the initial setup time.
Conclusion and Future Work
The RKJL method demonstrates that the Johnson-Lindenstrauss lemma can be effectively applied to optimization sub-problems by approximating the distance from a point to multiple hyperplanes simultaneously. While this study focuses on consistent systems, future research may extend this logic to noisy or inconsistent systems ($Ax \approx b + w$) to determine the theoretical "noise floor" of the sketched selection process. Additionally, testing the method on structured real-world data, such as CT scan imaging, remains an important next step for validating the algorithm's utility in practical applications.
Summary updated