Sketched Ridge Regression: Optimization Perspective, Statistical Perspective, and Model Averaging

Shusen Wang, Alex Gittens, Michael W. Mahoney

This paper, presented at ICML 2017, provides a rigorous look at how "sketching"—a popular technique for compressing large datasets—affects Ridge Regression. While sketching is a well-known tool for speeding up linear algebra, the authors reveal a fascinating "bias-variance" tension between different sketching methods and propose a simple solution: model averaging.

TL;DR

The authors analyze two ways to speed up Ridge Regression using sketching: "Classical" (sketching both data and labels) and "Hessian" (sketching only the data's curvature). They discover a fundamental tradeoff—Classical sketching suffers from high variance, while Hessian sketching suffers from high bias—and prove that averaging multiple independent sketches can effectively eliminate these drawbacks.

What Problem Does This Paper Address?

In the era of Big Data, we often deal with "tall" matrices where the number of samples ($n$) is much larger than the number of features ($d$). Solving a standard Matrix Ridge Regression (MRR) problem takes $\mathcal{O}(nd^2)$ time, which becomes prohibitively expensive as $n$ grows into the millions.

Time complexity comparison of optimal, classical, and Hessian sketching methods.

Matrix Sketching is a common remedy to bypass this bottleneck. It involves multiplying the data matrix by a random "sketching matrix" $S$ to create a much smaller version of the dataset ($s \times d$, where $s \ll n$). You then solve the regression on this tiny proxy, significantly reducing computation time.

However, previous research mostly focused on simple Least Squares. Ridge Regression adds a regularization term ($\gamma$) to prevent overfitting. The authors wanted to know: How does sketching interact with this regularization? Does it just give us a "good enough" answer for optimization, or does it fundamentally break the statistical properties of our model?

Methods

The paper compares two primary sketching strategies for MRR:

  1. Classical Sketch ($W^c$): You sketch both the features ($X$) and the responses ($Y$). It’s like solving the original problem on a small, representative subset of the data.
  2. Hessian Sketch ($W^h$): You only sketch the features to approximate the "Hessian" (the curvature of the optimization landscape) but use the full, un-sketched data for the linear part of the gradient.
  3. Model Averaging: The authors propose running $g$ independent sketches in parallel and averaging their solutions. This is particularly useful for distributed computing, where $g$ different machines can each process a small sketch and then "vote" on the final answer.

The authors evaluate these using several sketching ensembles, including Gaussian projections, Subsampled Randomized Hadamard Transforms (SRHT), and CountSketch.

Datasets

The authors primarily used synthetic datasets to validate their theoretical bounds.

  • Parameters: They fixed $n = 10^5$ and $d = 500$, with a sketch size $s = 5,000$.
  • Characteristics: To make the problem challenging, they constructed matrices with a very high condition number ($10^{12}$) and high "row coherence" (meaning a few rows contain most of the information). This setup is designed to "break" naive sketching methods and highlight the differences between the proposed strategies.

Key Insights and Ideas

  • The Optimization vs. Statistics Gap: A method can be great at finding the minimum of a function (optimization) but terrible at predicting new data (statistics). Classical sketching is a "nearly optimal" optimizer, but its statistical risk can be an order of magnitude worse than the true solution.
Bias, Variance, and Risk tradeoffs for Classical ($W^c$) and Hessian ($W^h$) sketches across different regularization parameters ($\gamma$).
  • The Bias-Variance Tradeoff:
    • Classical Sketch = High Variance: Because you sketch $Y$, you lose a lot of information about the labels, leading to "noisy" estimates.
  • Hessian Sketch = High Bias: Because you don't sketch $Y$, the variance is low, but the approximation of the data's curvature introduces a systematic error (bias), especially when the regularization $\gamma$ is small.
  • Over-regularization is a Safety Net: Interestingly, the authors found that if you use sketching, you should actually use a larger regularization parameter than you would for the full dataset. This helps suppress the extra noise introduced by the sketch.
  • Averaging is a "Free Lunch": Averaging $g$ classical sketches reduces variance by a factor of $1/g$. Averaging $g$ Hessian sketches reduces the bias even faster—by a factor of $1/g^2$.

Key Results

  • Optimization Performance: The paper proves that Classical Sketching achieves a $(1+\epsilon)$ relative error in the objective value with a sketch size proportional to $d/\epsilon$. Hessian sketching, however, fails to provide this guarantee if the "mass" of the responses is large.
  • Statistical Risk: In empirical tests, the "Risk" (total error) of a single sketch was significantly higher than the optimal solution.
  • The Power of Averaging: The authors demonstrated that "one-shot" model averaging (communicating only once at the end) produces a solution nearly as good as the optimal one, making it a highly efficient strategy for distributed machine learning.

Limitations and Future Work

  • Fixed Design: The statistical analysis assumes a "fixed design" model (where $X$ is deterministic and only the noise in $Y$ is random). While standard, extending this to "random design" (where $X$ is also a random variable) would be a natural next step.
  • Regime: The paper focuses on the $n \gg d$ (tall and skinny) regime. The behavior of these sketches in the $d \gg n$ (high-dimensional) regime remains an open area for similar rigorous analysis.
  • Beyond Ridge: While MRR is a cornerstone of ML, future work could explore if these bias-variance insights hold for other regularizers like $L_1$ (LASSO) or elastic net.

Summary updated

BibTeX
@inproceedings{wang2017sketched,
  author = {Shusen Wang and Alex Gittens and Michael W. Mahoney},
  title = {{Sketched Ridge Regression: Optimization Perspective, Statistical Perspective, and Model Averaging}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
}
Figure