Randomized Iterative Solver as Iterative Refinement: A Simple Fix Towards Backward Stability

Ruihan Xu, Yiping Lu

Abstract: Iterative sketching and sketch-and-precondition are well-established randomized algorithms for solving large-scale over-determined linear least-squares problems. In this paper, we introduce a new perspective that interprets Iterative Sketching and Sketching-and-Precondition as forms of Iterative Refinement. We also examine the numerical stability of two distinct refinement strategies: iterative refinement and recursive refinement, which progressively improve the accuracy of a sketched linear solver. Building on this insight, we propose a novel algorithm, Sketched Iterative and Recursive Refinement (SIRR), which combines both refinement methods. SIRR demonstrates a four order of magnitude improvement in backward error compared to iterative sketching, achieved simply by reorganizing the computational order, ensuring that the computed solution exactly solves a modified least-squares system where the coefficient matrix deviates only slightly from the original matrix. To the best of our knowledge, SIRR is the first asymptotically fast, single-stage randomized least-squares solver that achieves both forward and backward stability.

Introduction

In the era of "Big Data," solving overdetermined linear least-squares problems ($Ax \approx b$ where $m \gg n$) is a fundamental task. While Householder QR factorization remains the gold standard for numerical accuracy, its $O(mn^2)$ complexity is often prohibitively slow for massive datasets.

To address this, Randomized Numerical Linear Algebra (RNLA) has introduced methods that "sketch" large matrices into smaller ones to find approximate solutions quickly. However, these fast solvers have historically suffered from a "stability gap," failing to reach the high level of precision (backward stability) required for sensitive scientific applications. This research introduces SIRR (Sketched Iterative and Recursive Refinement), a novel algorithm that bridges this gap, achieving machine-precision backward stability while maintaining the $O(mn + n^3)$ speed advantage of randomized methods.

Methodology

The core innovation of this work is the interpretation of existing randomized solvers—such as Sketch-and-Precondition or Iterative Hessian Sketching—as specific instances of Iterative Refinement (IR). IR is a classical technique that repeatedly corrects a solution based on the residual ($b - Ax$).

The authors propose a two-pronged approach to refinement:

  1. Sketched Iterative Refinement (SIR): A standard loop that corrects the solution based on the current residual.
  2. Sketched Recursive Refinement (SRR): A nested approach where the solver calls a version of itself to handle error correction.
The Sketched Iterative Refinement (SIR) algorithm, which serves as one of the fundamental building blocks for the proposed SIRR method.

The breakthrough algorithm, SIRR, uses the recursive method (SRR) as the "inner" engine for the iterative loop (SIR). By carefully reorganizing the computational order, the authors ensure that rounding errors from sketching do not accumulate. A 2-step Krylov-based meta-algorithm is used as the base solver, making the system robust even when initial random sketches are of mediocre quality.

Key Results and Evaluation

The authors evaluated SIRR using synthetic benchmarks with controlled condition numbers (kappa) and the real-world SUSY Dataset (1 million rows, 1,000 features) for kernel regression tasks.

Performance comparison showing Forward, Residual, and Backward errors across different condition numbers and residual sizes. SIRR achieves machine-precision stability regardless of problem difficulty.

Stability and Efficiency

  • Backward Stability: SIRR is the first asymptotically fast, single-stage randomized solver proven to achieve backward stability, reaching error levels of $O(n^2 u)$ (where $u$ is machine epsilon). This matches the reliability of Householder QR.
  • Computational Speed: The algorithm maintains a complexity of $O(mn + n^3)$. In practical tests on the SUSY dataset, SIRR significantly outperformed MATLAB’s standard mldivide (QR-based) as problem sizes scaled.
  • Robustness: Unlike concurrent solvers that may require complex two-stage processes, SIRR is a "single-stage" solver. It remains stable even when the sketch dimension is close to the theoretical minimum, where other randomized solvers often diverge.

Discussion and Future Work

The paper demonstrates that achieving backward stability is often a matter of the order of operations rather than mathematical complexity. By reorganizing refinement steps, SIRR achieves a four-order-of-magnitude improvement in backward error.

However, some limitations remain. The $O(n^3)$ term (from the QR factorization of the sketched matrix) means speedups diminish if the number of features ($n$) is exceptionally large. Additionally, while the algorithm allows for early termination, automated heuristics for optimal stopping points in production environments are still needed. Future research may extend this "refinement-as-stability" framework to constrained optimization and total least squares problems.

Summary updated

BibTeX
@inproceedings{xu2025randomized,
  author = {Ruihan Xu and Yiping Lu},
  title = {{Randomized Iterative Solver as Iterative Refinement: A Simple Fix Towards Backward Stability}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=h7AalFFQsK},
}
Figure