Uncertainty quantification for iterative algorithms in linear models with application to early stopping

Pierre C Bellec, Kai Tan

This paper provides a theoretical framework for "peeking" inside the black box of optimization. It introduces a way to estimate generalization error and construct valid confidence intervals for the iterates of popular algorithms (like Gradient Descent or FISTA) at any point in their execution, enabling data-driven early stopping without a separate validation set.

TL;DR

Researchers have developed a novel method to quantify the uncertainty and predictive risk of iterative algorithms at every step of their trajectory, rather than just at convergence. By tracking a "memory matrix" of derivatives, they provide a data-driven way to identify the optimal early stopping point and perform valid statistical inference on intermediate models.

What Problem Does This Paper Address?

In high-dimensional statistics, we often solve problems where the number of features ($p$) is comparable to the number of observations ($n$). We typically use iterative algorithms to find a penalized estimator (like the Lasso). Standard statistical theory usually focuses on the properties of the converged solution.

However, in practice, we often stop these algorithms early. Why?

  1. Computational Cost: The dataset might be too large to reach full convergence.
  2. Implicit Regularization: For many problems, the "risk" (test error) follows a U-shape—it decreases initially but then starts increasing as the model begins to overfit the noise. Stopping early can actually lead to a better model than waiting for convergence.

The challenge is that we usually don't know the true risk curve without a separate validation set. Furthermore, we don't have a way to calculate confidence intervals for the coefficients of an "unfinished" model. This paper fills that gap.

Methods

The authors focus on a general class of iterative recursions that encompass Gradient Descent (GD), Proximal GD, Nesterov’s Accelerated Gradient Descent (AGD), ISTA, and FISTA.

The core innovation is the Memory Matrix ($\hat{A}$).

  • The Concept: As an algorithm iterates, each new estimate $\hat{b}^t$ depends on the previous ones and the data $(X, y)$. The authors use the Jacobian (the matrix of all first-order partial derivatives) of the iteration functions to track how "sensitive" each step is to the input data.
  • The Risk Estimator: They propose a formula for the generalization error that uses a weighted average of the residuals $(y - X\hat{b}^s)$ from all previous steps. The weights are derived directly from the memory matrix.
  • Debiasing: They provide a "debiasing" correction. By adding a specific term (based on the residuals and the memory matrix) to the iterate $\hat{b}^t$, they create a new estimator that is asymptotically normal. This allows for the construction of valid z-scores and confidence intervals at any iteration $t$.
  • Computational Efficiency: Since the memory matrix could be massive ($pT \times pT$), they employ Hutchinson’s trace approximation, a randomized algorithm that allows them to estimate the necessary values without storing or inverting giant matrices.

Datasets

The paper relies on extensive synthetic simulations to validate the theory. They test three scenarios:

  • Over-parametrized: $n=1200, p=1500$.
  • Equal-parametrized: $n=1200, p=1200$.
  • Under-parametrized: $n=1200, p=500$.

The data is generated using Gaussian designs (features follow a multivariate normal distribution) with varying levels of signal-to-noise ratios.

Key Insights and Ideas

  • The U-Shape is Real: In many high-dimensional settings (especially for GD and AGD), the risk curve clearly drops and then spikes. The authors' estimator tracks this curve almost perfectly, allowing a user to stop at the "bottom" of the U.
  • No Validation Set Needed: Traditionally, you need a hold-out "test" set to see if you are overfitting. This method allows you to estimate that test error using only the training data and the history of the optimization itself.
  • Statistical Validity at Any Time: You don't need to wait for an algorithm to "finish" to do science. If you stop FISTA at iteration 10 because the estimated risk is low, you can still produce a valid 95% confidence interval for your features.
  • Universality of Weights: The weights used for risk estimation are algorithm-specific but data-driven, meaning they adapt to the specific geometry of the optimization path.

Key Results

  • $\sqrt{n}$-Consistency: The proposed risk estimator is proved to be $\sqrt{n}$-consistent, meaning the estimation error shrinks predictably as the sample size increases.
  • Oracle Efficiency: Choosing the stopping time $\hat{t}$ that minimizes the estimated risk is shown to be nearly as good as having an "oracle" tell you the true best stopping time.
  • Visual Proof: In simulations for GD, AGD, ISTA, and FISTA, the estimated risk (dashed lines) and true risk (solid lines) are virtually indistinguishable across the entire iteration trajectory (see Figures 1-5 in the paper).

Limitations and Future Work

  • Gaussian Assumption: The current proofs rely heavily on the assumption that the design matrix $X$ is Gaussian. While many high-dimensional results eventually generalize to other distributions (universality), that extension is not yet proven here.
  • Exponential Dependence on $T$: Some theoretical upper bounds in the paper grow exponentially with the number of iterations $T$. While simulations show the method is stable even for large $T$, tightening these bounds is an open research question.
  • Beyond Square Loss: The current work is focused on linear models (square loss). Extending this to logistic regression (classification) or robust loss functions (like Huber loss) is a logical next step.
  • Stochastic Algorithms: The theory covers deterministic iterations. Adapting this to Stochastic Gradient Descent (SGD), where there is additional randomness from mini-batching, remains a challenge.

Summary updated

BibTeX
@misc{bellec2024uncertainty,
  author = {Pierre C Bellec and Kai Tan},
  title = {{Uncertainty quantification for iterative algorithms in linear models with application to early stopping}},
  year = {2024},
  eprint = {2404.17856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.17856},
}
Figure