An Iterative, Sketching-based Framework for Ridge Regression

Agniva Chowdhury, Jiasen Yang, Petros DrineasICML 2018

Introduction

This paper introduces a fast, iterative algorithm for ridge regression that leverages "sketching"—a randomized dimensionality reduction technique—to handle massive datasets efficiently. By utilizing a novel sampling strategy based on "ridge leverage scores," the authors prove that the computational cost can scale with the problem's effective degrees of freedom rather than its raw dimensions. This approach achieves high-precision solutions with exponential convergence, bridging the gap between fast randomized methods and highly accurate classical solvers.

The Challenge with Exact Ridge Regression

Ridge regression is a cornerstone of machine learning, widely used to prevent overfitting in high-dimensional settings (where the number of features $d$ exceeds observations $n$) or when data is "ill-conditioned" due to highly correlated features.

However, solving ridge regression exactly is computationally expensive. Standard methods require $O(nd \min\{n, d\})$ time, which quickly becomes a bottleneck as datasets grow. While previous "sketching" methods—which use a smaller, random proxy of the data to approximate the solution—were faster, they often struggled with accuracy. To achieve high precision, older methods required massive "sketches," effectively negating their speed benefits. The authors sought a way to get the best of both worlds: the speed of sketching combined with the high precision of iterative solvers.

Proposed Methodology

The authors propose an iterative, sketching-based framework. Instead of solving the massive original problem all at once, the algorithm follows a refine-and-iterate approach:

  1. Sketching the Data: It uses a random matrix $S$ to create a smaller, compressed version of the design matrix.
  2. Iterative Updates: In each step, it solves a smaller ridge regression problem to update the solution based on the "residual" (the error left over from the previous step).
  3. Exponential Refinement: Because the process is iterative, the error drops exponentially ($\epsilon^t$) with each step $t$.

The Role of Ridge Leverage Scores

The key innovation lies in the algorithm's sampling strategy. The authors analyze the algorithm under two conditions. While the first is standard in Randomized Linear Algebra (RLA), the second, more novel condition uses ridge leverage scores to sample the data. This crucial shift allows the "sketch size" (the size of the proxy problem) to depend strictly on the effective degrees of freedom ($d_\lambda$). In heavily regularized problems, $d_\lambda$ is often significantly smaller than the actual number of features or observations, leading to massive computational savings.

Key Insights and Theoretical Guarantees

  • Complexity vs. Size: The difficulty of a ridge regression problem isn't defined by the raw size of the matrix, but by its effective degrees of freedom ($d_\lambda$). By sketching according to this metric, the algorithm safely ignores the "noise" in dimensions that the regularization ($\lambda$) would have suppressed anyway.
  • Exponential Convergence: Unlike one-shot sketching methods that provide a fixed and often coarse error bound, this iterative approach allows a user to reach "machine precision" (e.g., 10 decimal places of accuracy) in just a few constant iterations.
  • Bridge to Classical Algebra: The authors demonstrate that their algorithm is essentially a preconditioned Richardson iteration, elegantly connecting modern randomized techniques to well-understood classical numerical linear algebra.

Experimental Results

The researchers evaluated their framework using both synthetic data and the ARCENE dataset (a real-world dataset from the UCI repository containing 200 samples with 10,000 real-valued features, representing a classic $d \gg n$ scenario).

Experiment results on real data showing error vs iterations, sketch size, and degrees of freedom.

As illustrated in the experimental results above, the framework performs exceptionally well in practice:

  • Empirical Speed & Accuracy: On the ARCENE dataset, the algorithm's solution and objective errors decayed exponentially with the number of iterations, exactly as predicted by the theoretical relative-error guarantees.
  • Regularization Benefit: Experiments confirmed that as the regularization parameter $\lambda$ increases (making the problem "simpler" by reducing $d_\lambda$), the algorithm requires even smaller sketches to maintain high accuracy.
  • MSE Approximation: The authors also proved (Theorem 4) that even after a single iteration, the Mean Squared Error (MSE) of the sketched solution is a high-quality approximation of the optimal solution's MSE.

Limitations and Future Work

While highly effective, the framework has a few limitations that present opportunities for future research:

  • Additive Error Term: In the $d_\lambda$-dependent analysis, there is a small additive error term related to the part of the data that gets "regularized away." While practically small, it means the theoretical approximation isn't purely relative.
  • MSE for Multiple Iterations: The theoretical bound for Mean Squared Error is currently limited to the first iteration ($t=1$). Extending this proof to $t > 1$ remains an open challenge.
  • Dynamic Sketching: The authors hypothesize that using a new random sketch in every iteration (rather than reusing the same one) could lead to even faster convergence. Preliminary experiments support this idea, but a formal proof is left for future work.

Summary updated

BibTeX
@inproceedings{chowdhury2018iterative,
  author = {Agniva Chowdhury and Jiasen Yang and Petros Drineas},
  title = {{An Iterative, Sketching-based Framework for Ridge Regression}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=SyWJa9-uWr},
}
Figure