Error Estimation for Randomized Least-Squares Algorithms via the Bootstrap

Miles E. Lopes, Shusen Wang, Michael W. Mahoney

Introduction

In the era of massive datasets, solving standard least-squares (LS) problems ($\min \|Ax - b\|_2$) becomes computationally expensive when the number of rows $n$ is very large. Randomized sketching has emerged as a popular solution: instead of using the full matrix $A$, you multiply it by a random "sketching matrix" $S$ to create a much smaller, more manageable version of the problem.

The catch? While theoretical proofs guarantee that these sketches should work, those bounds are often "worst-case" and overly pessimistic. In practice, a user has no way of knowing the actual error of their specific approximate solution. They don't know if they've reached their desired tolerance or if they need to increase the "sketch size" ($m$) to get better results.

This paper introduces a practical way to estimate the actual error of randomized sketching algorithms. By leveraging the bootstrap—a classic statistical resampling technique—the authors provide a posteriori error bounds that are far more accurate and useful than traditional theoretical guarantees.

Methodology: The Algorithmic Bootstrap

Traditionally, the bootstrap is used to handle uncertainty in data. Here, the authors innovatively apply it to handle the "algorithmic noise" introduced by the randomized sketching matrix itself. They propose using the bootstrap to quantify the uncertainty of the randomized algorithm's output across two primary settings:

  1. Classic Sketching: After computing an approximate solution $\tilde{x}$ using a sketched matrix $\tilde{A}$, the algorithm resamples the rows of $\tilde{A}$ with replacement $B$ times. For each resample, it computes a new solution $\tilde{x}^*$. The distribution of the differences between these resampled solutions and the original $\tilde{x}$ is used to estimate the distribution of the actual error (the difference between $\tilde{x}$ and the true solution $x_{opt}$).
  2. Iterative Hessian Sketch (IHS): A similar logic is applied to iterative versions of sketching, using the information from the final two iterations to estimate the error.
  3. Extrapolation: Perhaps most impressively, the authors show that you can compute an error estimate for a very small, "cheap" sketch and then mathematically project what the error would be for a much larger, more expensive sketch. This allows users to "look ahead" and decide exactly how much computation is needed.

Importantly, the bootstrap process happens entirely on the sketched data (size $m \times d$). This means the cost of estimating the error does not depend on the original massive number of rows $n$, making it highly scalable. Furthermore, because each bootstrap sample is independent, the error estimation is "embarrassingly parallel" and can be distributed across many processors with almost no communication overhead.

Key Results

The authors evaluated their method using four linear regression datasets: a large natural dataset (YearPredictionMSD), a smaller natural dataset (cpusmall), and two synthetic datasets (one ill-conditioned, one well-conditioned).

High Accuracy and Flexibility The bootstrap estimates proved to be nearly unbiased. In experiments, the estimated error tracked the "ideal" benchmark error almost perfectly across different datasets and sketch sizes. Furthermore, unlike many theoretical bounds that only work for the $\ell_2$ norm, this bootstrap method proved effective for other metrics, such as the $\ell_\infty$ norm.

Error estimation across sketch sizes and norms

Remarkably, the authors found that as few as $B=20$ bootstrap samples were sufficient to get reliable error estimates. Since bootstrap samples are just slight perturbations of the original sketch, the original sketched solution can be used as a "warm start" for the bootstrap iterations, speeding up the process significantly.

Convergence Prediction for Iterative Methods For Iterative Hessian Sketching (IHS), the extrapolation rule accurately predicted how many orders of magnitude the error would drop over subsequent iterations. This predictive capability is crucial for helping users avoid over-computing.

Convergence prediction for Iterative Hessian Sketching

Limitations and Future Work

While highly effective, the method does have some limitations:

  • Assumptions on Sketching Matrices: The theoretical consistency results rely on the sketching matrix $S$ having independent and identically distributed (i.i.d.) rows. While this covers many popular methods, it might not apply to every possible sketching construction.
  • Focus on Least-Squares: The current work is specifically tailored for LS problems. The authors suggest that extending this "algorithmic bootstrap" to other randomized numerical linear algebra (RandNLA) tasks—like low-rank approximation or PCA—is a promising direction for future research.
  • Asymptotic Nature: The theoretical guarantees are asymptotic (holding as the problem size $n$ becomes very large), though empirical results confirm the method works exceptionally well even on moderately sized problems.

Summary updated

BibTeX
@inproceedings{lopes2018error,
  author = {Miles E. Lopes and Shusen Wang and Michael W. Mahoney},
  title = {{Error Estimation for Randomized Least-Squares Algorithms via the Bootstrap}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=H1VYb2buZB},
}
Figure