Learning to optimize linear regression tasks with improved distribution-dependent guarantees

Maria Florina Balcan, Saumya Goyal, Dravyansh Sharma

TL;DR

Tuning regularization hyperparameters across multiple linear regression tasks typically relies on worst-case bounds that degrade linearly with feature dimension $d$. This paper establishes the first distribution-dependent generalization bounds for Ridge, Lasso, and Elastic Net tuning, showing that for broad classes of "nice" data distributions (such as sub-Gaussians), sample complexity becomes virtually independent of $d$.

What Problem Does This Paper Address?

In high-dimensional regression, tuning regularization hyperparameters (like $\lambda$ in Ridge, Lasso, or Elastic Net) is essential to avoid overfitting and perform feature selection. Instead of tuning each problem from scratch using heuristics or coarse grid searches, a recent meta-learning paradigm—data-driven algorithm design—learns optimal hyperparameters across a collection of related training tasks to deploy on future, unseen tasks.

Prior learning-theoretic guarantees for this setup relied on worst-case pseudo-dimension arguments. Consequently, they established that learning an $\epsilon$-optimal hyperparameter requires $T = \tilde{O}(d / \epsilon^2)$ tasks—a bound that scales poorly with feature dimension $d$. This paper asks: Can we obtain much sharper, distribution-dependent generalization guarantees when the within-task data comes from standard, well-behaved distributions?

Methods

The authors formulate hyperparameter selection as an Empirical Risk Minimization (ERM) problem over the validation loss across $T$ training tasks, each with $n$ training and $n_v$ validation examples.

Their theoretical analysis uses several novel components:

  • Two-Level Rademacher Complexity Decomposition: The excess validation risk is broken down into two distinct sources: the error from finite validation sampling within tasks, and the error from drawing a finite number of tasks.
  • Generalized Contraction Lemma: Standard contraction arguments fail because regularized estimators depend non-linearly on $\lambda$. The authors establish a generalized contraction inequality (Lipschitzness with respect to another function), bounding the complexity via the minimum non-zero singular value of the sample covariance matrix, $V(XX^\top)$.
  • Piecewise Analysis for Lasso and Elastic Net: For $L_1$ penalties, the regularization path is piecewise-linear. By tracking equicorrelation sets, the authors bound the Rademacher complexity over individual linear pieces and smoothly patch them together.
  • Re-Centered Ridge Regression: The authors introduce and analyze an estimator penalizing $\|w - \mu\|^2$ rather than $\|w\|^2$, which substitutes the raw norm of the ground-truth weights with their variance given an estimate $\hat{\mu}$ of the task mean.

Datasets

Not discussed in the paper. (The work is entirely theoretical; no empirical benchmarks or synthetic datasets were evaluated.)

Key Insights and Ideas

  • Decoupling Dimension from Complexity: In worst-case distributions, adversaries can force eigenvalues to zero, making hyperparameter response erratic. For well-behaved distributions (e.g., sub-Gaussian or bounded-density inputs), random matrix theory ensures the lower tail of the sample covariance matrix is well-conditioned. This breaks the curse of dimensionality.
  • The Dual Roles of Training vs. Validation Data: The bounds clearly delineate sample sources: increasing the number of training examples per task ($n$) suppresses noise variance, whereas increasing validation samples ($n_v$) and task count ($T$) controls variance across different ground-truth parameters.
  • Connection to Empirical Bayes: The paper demonstrates that tuning a re-centered ridge hyperparameter across multiple tasks is fundamentally equivalent to a g-modeling Empirical Bayes problem under an unknown Gaussian prior.

Key Results

  • Ridge Regression: For isotropic inputs with bounded density and $n \ge 6d$, the excess validation loss scales as: $$\tilde{O}\left( \frac{1}{\sqrt{T}} \left( T^{2/d} + \sqrt{\log(T/\delta)} \right) \right)$$ When $d = \Omega(\log T / \log \log T)$, this significantly outperforms the best prior worst-case bounds of $\tilde{O}(\sqrt{d / T})$.

  • Elastic Net & Lasso: For isotropic sub-Gaussian inputs with $n = \Omega(d + \log(T / \Lambda_2))$: $$\text{Generalization Error} = \tilde{O}\left( \frac{1}{\sqrt{nT}} + \sqrt{\frac{\log(1/\delta)}{T}} \right)$$ The bound completely eliminates the polynomial dependence on $d$.

  • Faster Cross-Validation Convergence: When applied to Monte-Carlo cross-validation on a single dataset, these results show that finding an $\epsilon$-optimal hyperparameter requires only $O(1/\epsilon^2)$ random splits in high dimensions, improving upon the classical $O(d/\epsilon^2)$ split requirement.

Limitations and Future Work

  • Computational Tractability: The validation loss landscape across Elastic Net hyperparameters is piecewise-polynomial with potentially exponentially many pieces in the worst case. The paper provides statistical sample complexity guarantees for the ERM, but computing this minimizer efficiently remains an open challenge.
  • Strict Regularity Assumptions: The bounds require i.i.d. draws of instances within each task, isotropic or well-conditioned covariances, and an $L_2$ regularization parameter lower-bounded away from zero ($\lambda_2 \ge \Lambda_2 > 0$) in Elastic Net.
  • Lower Bounds: The authors leave the establishment of matching distribution-dependent lower bounds to future work.

Summary updated

BibTeX
@inproceedings{balcan2025learning,
  author = {Maria Florina Balcan and Saumya Goyal and Dravyansh Sharma},
  title = {{Learning to optimize linear regression tasks with improved distribution-dependent guarantees}},
  booktitle = {DiffCoALG @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=IaMdVslcY1},
}
Figure