Introduction
In the era of massive datasets, solving Ordinary Least-Squares (OLS) regression for problems with millions of observations ($n$) and features ($p$) presents a significant computational challenge. Randomized sketching has emerged as a powerful technique to mitigate this. By multiplying the data by a random matrix $S$, researchers can create a "sketch"—a compressed summary of the data with $r$ rows, where $r \ll n$. Solving the regression on this smaller dataset is significantly faster than processing the full original matrix.
However, the evaluation of sketching algorithms has historically been divided between two distinct academic communities. The Computer Science (algorithmic) perspective focuses on worst-case bounds, asking if the sketched solution is "close enough" to the full-data solution for a specific instance. Conversely, the Statistics perspective focuses on average-case performance under a generative model, asking how well the sketched estimator $\beta_S$ recovers the true underlying parameter $\beta$. This paper bridges these two views, revealing why a sketch that satisfies algorithmic criteria may fail to meet statistical standards.
A Unified Framework for Sketching
To compare these perspectives, the authors develop a framework based on the oblique projection matrix $\Pi_S^U = U(SU)^\dagger S$, where $U$ is the left singular matrix of the data matrix $X$. This allows for the simultaneous analysis of three performance criteria:
- Worst-Case (WC) Error: The algorithmic benchmark measuring the maximum deviation from the full OLS solution.
- Residual Efficiency (RE): A measure of how well the sketched model fits the observed data compared to the full OLS model.
- Prediction Efficiency (PE): A measure of how well the sketched model predicts the "true" underlying signal (the mean response).
The study evaluates these criteria across several common sketching methods, including re-scaled and unweighted leverage-score sampling, sub-Gaussian random projections, and structured Hadamard-based projections.
The Divergence: Residuals vs. Prediction
The most significant finding of the research is the "difficulty gap" between minimizing residuals and achieving high-quality statistical predictions.
The $n/r$ Bottleneck
The analysis shows that Residual Efficiency (RE) typically scales with $p/r$. As long as the sketch size $r$ is a few multiples of the number of features $p$, the residuals of the sketched solution will be comparable to the full OLS solution. This explains the success of sketching from a purely algorithmic optimization standpoint.
However, Prediction Efficiency (PE) scales with $n/r$—the ratio of the original sample size to the sketch size. For the sketched estimator to achieve a PE near 1 (indicating high statistical quality), the sketch size $r$ must be a significant fraction of the original sample size $n$. This implies that for pure prediction tasks, simple one-pass sketching provides diminishing returns as the dataset grows, unless the sketch size is also scaled up significantly.
Structural Differences in Error
The paper explains this divergence through the lens of matrix norms. Algorithmic worst-case error is driven by the spectral norm of the projection matrix, which focuses on the single worst-case direction. In contrast, statistical errors (RE and PE) are driven by the Frobenius norm, which averages error over all directions. This explains why a sketch can appear "good" to an algorithm while remaining "noisy" for a statistical model.
The Mathematical Link
The authors provide a definitive mathematical identity that links these two efficiencies:
$$C_{RE}(S) = 1 + \frac{C_{PE}(S) - 1}{n/p - 1}$$
This identity demonstrates that the residual error is essentially a "shrunk" version of the prediction error. Because the ratio $n/p$ is typically very large in Big Data contexts, the residual error can appear deceptively small even when the prediction error is unacceptably high. This result serves as a warning to practitioners: a good fit on the sketched data does not guarantee a good estimate of the underlying model.
Conclusion and Future Directions
The research highlights a fundamental limitation of single-pass sketching: while it is excellent for optimization (minimizing residuals), it is often insufficient for high-precision statistical estimation. To overcome the $n/r$ bottleneck, the authors suggest that practitioners must move toward iterative sketching methods, such as the "Hessian Sketch," which use multiple sequential sketches to refine the estimate.
By unifying the algorithmic and statistical perspectives, this work provides a clearer roadmap for when and how to apply sketching techniques in large-scale data analysis, ensuring that the chosen method aligns with the ultimate goal—whether that is fast optimization or accurate statistical inference.
Summary updated