Tractable Evaluation of Stein's Unbiased Risk Estimate With Convex Regularizers

Parth Nobel, Emmanuel J. Candès, Stephen P. BoydIEEE TSP 2022

TL;DR

This paper introduces SURE-CR, a novel algorithm for efficiently and accurately estimating the risk of estimators used in convex regularized regression. This is crucial for model selection and hyperparameter tuning, especially in large-scale problems where traditional methods fail. SURE-CR achieves this by leveraging specialized oracles for linear operators and proximal operators, enabling scalability to millions of parameters.

What Problem Does This Paper Address?

Estimating the risk of a statistical estimator is fundamental for tasks like model selection and hyperparameter tuning. Stein's Unbiased Risk Estimate (SURE) provides an unbiased estimate of the mean squared error (MSE) for estimators of a Gaussian random vector's mean. However, a key challenge in SURE is evaluating the "divergence" term, which can be computationally prohibitive, especially for modern machine learning models that involve complex optimization problems with convex regularizers (e.g., LASSO, Ridge Regression, Matrix Completion, Robust PCA). Existing methods for computing this divergence often don't scale to the large datasets and high-dimensional parameter spaces common today. This paper aims to bridge this gap by providing a scalable and tractable method for SURE evaluation in these settings.

Methods

The core contribution is the SURE-CR algorithm. It tackles the problem by:

  • Leveraging Oracles: Instead of requiring full access to the data matrix A or the regularizer r, SURE-CR only needs access to:
  • Forward-Adjoint Oracle for A: The ability to compute Ab and A*v.
  • Proximal Operator Oracle for r: The ability to evaluate prox_tr(v) = argmin_b (r(b) + 1/2t ||b-v||^2).
  • Differentiating Through Iterative Solvers: For estimators defined by solving an optimization problem (like convex regularized regression), SURE-CR differentiates through the iterative steps of common optimization algorithms (ISTA, FISTA, ADMM) to compute the necessary derivatives. This avoids forming large Jacobian matrices.
  • Randomized Trace Estimation: To estimate the divergence term (which involves the trace of a derivative matrix), SURE-CR employs randomized methods, specifically an improved version called Hutch++. This significantly reduces the number of matrix-vector products required compared to naive methods.
  • Continuous Extension of Derivatives: For non-differentiable points in the estimator or its proximal operators, SURE-CR uses a continuous extension of the derivative, which empirical results show provides accurate estimates.

Datasets

The paper does not introduce new datasets. Instead, it uses synthetic data generated for the following problem types:

  • LASSO: Under-determined problems with varying dimensions.
  • Matrix Completion: Problems with a specified percentage of revealed entries.
  • Robust PCA: Problems with varying dimensions and sparsity/rank constraints.

These synthetic datasets are used to evaluate the performance and scalability of SURE-CR across different problem sizes and structures.

Key Insights and Ideas

  • Divergence is the Bottleneck: The paper clearly identifies the evaluation of the divergence term in SURE as the primary computational hurdle for complex estimators.
  • Iterative Solver Differentiation is Key: Differentiating through the process of solving an optimization problem, rather than trying to find a closed-form derivative of the solution, is a powerful technique for handling complex estimators.
  • Oracle-Based Approach Enables Scalability: By relying on specific oracles (forward-adjoint, proximal operator) rather than full matrix representations, SURE-CR can handle problems with millions of parameters, which would be intractable otherwise.
  • Hutch++ for Efficient Trace Estimation: The use of Hutch++ for randomized trace estimation is shown to be efficient and contribute less variance than the inherent uncertainty of SURE itself.
  • Heuristics for Non-Differentiability Work: The paper demonstrates that using continuous extensions of derivatives at non-differentiable points is a practical and effective strategy for obtaining accurate SURE estimates.

Key Results

  • Tractable SURE for Large-Scale Problems: SURE-CR successfully computes SURE for problems with millions of parameters (e.g., matrix completion and robust PCA) in minutes, a feat not previously achievable.
  • Good Agreement with Monte Carlo Risk: Numerical experiments show that SURE-CR estimates are in good agreement with Monte Carlo estimates of the true risk, especially for larger problem instances. For example, in matrix completion, SURE-CR is within 2.5% of the Monte Carlo risk.
  • Variance Analysis: The paper quantifies the variance contributed by SURE itself and by the randomized trace estimator, showing that the latter is substantially smaller.
  • Effective Hyperparameter Selection: The paper demonstrates SURE-CR's utility in hyperparameter selection, showing that the risk curves obtained via SURE-CR and Monte Carlo are visually indistinguishable.
  • Scalability: The method scales well, with computation times for large problems (e.g., 2 million parameters) being on the order of minutes.

Limitations and Future Work

  • Non-Differentiable Points: While the paper uses a continuous extension of the derivative to handle non-differentiability, it acknowledges that this is a heuristic. The accuracy of SURE-CR is limited by the accuracy of this heuristic for the vector-Jacobian product oracle.
  • Implementation Details: The paper mentions that the accuracy of CVXPYlayers' implicit solvers can be an issue for moderate dimensions, requiring a switch to direct solvers.
  • Future Work: The paper implicitly suggests that extending this methodology to other types of estimators and optimization problems would be a natural next step. The provided code (SURE-CR) is open-source, facilitating further research and application.

Summary updated

BibTeX
@article{nobel2022tractable,
  author = {Parth Nobel and Emmanuel J. Candès and Stephen P. Boyd},
  title = {{Tractable Evaluation of Stein's Unbiased Risk Estimate With Convex Regularizers}},
  journal = {IEEE Trans. Signal Process.},
  year = {2022},
}
Figure