Fast and forward stable randomized algorithms for linear least-squares problems
Ethan N. Epperly
TL;DR
This work resolves whether randomized least-squares solvers can be both faster than Householder QR and numerically stable by proving that carefully implemented iterative sketching is forward stable. It introduces a numerically stable implementation that uses a single subspace embedding and an economy QR for robust triangular solves, and analyzes the propagation of errors through iterative refinement on the normal equations. Theoretical results (forward-stability bounds) are complemented by extensive numerical experiments on dense kernel regression and large sparse LS problems, showing substantial speedups over QR while achieving residual accuracy on par with backward-stable methods within the forward-stability regime. The findings demonstrate that randomized iterative sketching can outperform traditional QR-based approaches in large-scale, overdetermined LS problems, and they offer practical guidance for deployment, including embedding choices, stopping criteria, and damping/momentum variants.
Abstract
Iterative sketching and sketch-and-precondition are randomized algorithms used for solving overdetermined linear least-squares problems. When implemented in exact arithmetic, these algorithms produce high-accuracy solutions to least-squares problems faster than standard direct methods based on QR factorization. Recently, Meier, Nakatsukasa, Townsend, and Webb demonstrated numerical instabilities in a version of sketch-and-precondition in floating point arithmetic (arXiv:2302.07202). The work of Meier et al. raises the question: Is there a randomized least-squares solver that is both fast and stable? This paper resolves this question in the affirmative by proving that iterative sketching, appropriately implemented, is forward stable. Numerical experiments confirm the theoretical findings, demonstrating that iterative sketching is stable and faster than QR-based solvers for large problem instances.
