Lune

NeurIPS2023Top-tier venue

Bayes beats Cross Validation: Efficient and Accurate Ridge Regression via Expectation Maximization

Shu Yu Tew, Mario Boley, Daniel F. Schmidt

Abstract

We present a novel method for tuning the regularization hyper-parameter, λ\lambda, of a ridge regression that is faster to compute than leave-one-out cross-validation (LOOCV) while yielding estimates of the regression parameters of equal, or particularly in the setting of sparse covariates, superior quality to those obtained by minimising the LOOCV risk. The LOOCV risk can suffer from multiple and bad local minima for finite nn and thus requires the specification of a set of candidate λ\lambda, which can fail to provide good solutions. In contrast, we show that the proposed method is guaranteed to find a unique optimal solution for large enough nn, under relatively mild conditions, without requiring the specification of any difficult to determine hyper-parameters. This is based on a Bayesian formulation of ridge regression that we prove to have a unimodal posterior for large enough nn, allowing for both the optimal λ\lambda and the regression coefficients to be jointly learned within an iterative expectation maximization (EM) procedure. Importantly, we show that by utilizing an appropriate preprocessing step, a single iteration of the main EM loop can be implemented in O(min⁡(n,p))O(\min(n, p)) operations, for input data with nn rows and pp columns. In contrast, evaluating a single value of λ\lambda using fast LOOCV costs O(nmin⁡(n,p))O(n \min(n, p)) operations when using the same preprocessing. This advantage amounts to an asymptotic improvement of a factor of ll for ll candidate values for λ\lambda (in the regime q,p∈O(n)q, p \in O(\sqrt{n}) where qq is the number of regression targets).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Decoupling Regularization and Privacy in Differentially Private Ridge Regression and ERMWanjie Wang, Tathagata BanerjeeICML 2026

Builds on1

  1. Can we globally optimize cross-validation loss? Quasiconvexity in ridge regressionWilliam T. Stephenson, Zachary Frangella, Madeleine Udell, Tamara BroderickNeurIPS 2021 · 15 citations

Related papers

  1. Ridge Regression: Structure, Cross-Validation, and SketchingSifan Liu, Edgar DobribanICLR 2020 · 52 citations
  2. Provably tuning the ElasticNet across instancesMaria-Florina Balcan, Misha Khodak, Dravyansh Sharma, Ameet TalwalkarNeurIPS 2022 · 28 citations
  3. Generalized equivalences between subsampling and ridge regularizationPratik Patil, Jin-Hong DuNeurIPS 2023 · 10 citations
  4. OKRidge: Scalable Optimal k-Sparse Ridge RegressionJiachang Liu, Sam Rosen, Chudi Zhong, Cynthia RudinNeurIPS 2023 · 10 citations
  5. Sketching Algorithms and Lower Bounds for Ridge RegressionPraneeth Kacham, David P. WoodruffICML 2022 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines