TL;DR
Stochastic Gradient Descent (SGD) is a workhorse of modern machine learning, but classical methods for calculating its confidence intervals break down when gradient noise is heavy-tailed with infinite variance. This paper introduces a robust, model-agnostic framework that uses Polyak–Ruppert averaging, self-normalization, and subsampling to construct valid confidence regions. Crucially, the method works seamlessly across both finite- and infinite-variance regimes without requiring prior knowledge of the noise distribution.
What Problem Does This Paper Address?
Uncertainty quantification (UQ) for SGD helps us understand how confident we can be in the parameters found during optimization. Standard UQ methods (such as batch means, replication, or random scaling) rely heavily on the assumption that stochastic gradients have finite variance.
However, recent empirical findings in deep learning show that gradient noise often exhibits heavy-tailed behavior, meaning the variance can be mathematically infinite. When this happens, the classical Central Limit Theorem fails, rendering standard confidence intervals invalid and leading to severe under-coverage. While some existing methods inject artificial heavy-tailed noise to bypass this, they often yield overly conservative intervals that fail to capture useful information about the true loss landscape.
Methods
The authors develop a Self-Normalized Subsampling Inference procedure (detailed in Algorithm 1) that operates on the trajectory of Polyak–Ruppert averaged SGD iterates. The method relies on three key components:
- Directional Scale Dominance: The authors prove that in an infinite-variance setting, Polyak–Ruppert averaging minimizes directional dispersion (scale), acting as the infinite-variance analogue to reducing asymptotic variance.
- Self-Normalization: They construct a test statistic normalized by an empirical second-moment matrix ($\Sigma_n$). They establish a joint central limit theorem showing that the unknown, troublesome tail-dependent scaling factors (like the tail index $\alpha$ and slowly varying functions) cancel out perfectly.
- Subsampling Calibration: Because the resulting limiting distribution still depends on some unknown parameters (like the Hessian matrix), the authors use a data-driven subsampling approach. They split the SGD trajectory into shorter auxiliary blocks to estimate the critical values/quantiles without explicitly estimating complex nuisance parameters.
Datasets
The methodology was evaluated using both synthetic simulations and real-world image data:
- Synthetic Data: Simulated linear and logistic regression models where heavy-tailed noise or covariates were explicitly generated using Pareto distributions with varying tail indices ($\alpha \in (1,2)$).
- CIFAR-10: A standard image classification benchmark consisting of 60,000 color images. The authors trained an AlexNet convolutional neural network, froze the network to extract feature representations (using both a 448-dimensional adapted version and a 4096-dimensional full version), and constructed binary classification tasks to evaluate the confidence intervals of the model parameters.
Key Insights and Ideas
- The Power of Averaging Holds Up: Just as Polyak–Ruppert averaging yields the most efficient estimator in classical settings, it also minimizes directional scale when second moments do not exist.
- Parameter-Free Cancellation: Pairing the averaged estimator with an empirical second-moment normalizer forces the leading tail-dependent scaling terms to cancel out. You don't need to know how heavy-tailed your gradients are to normalize them correctly.
- Regime-Agnostic Validity: The exact same algorithm remains valid whether the gradient noise is light-tailed (Gaussian) or heavily heavy-tailed, bridging a major gap between theoretical assumptions and practical deep learning conditions.
Key Results
- Synthetic Robustness: Across both linear and logistic regressions, the proposed method consistently achieved empirical coverage rates close to the nominal 95% target across various tail behaviors ($\alpha = 1.5, 1.8$, and Gaussian).
- Real-Data Superiority (CIFAR-10): Standard finite-variance benchmarks like Random Scaling suffered from noticeable under-coverage (around 92.05% to 93.07%). In contrast, the proposed self-normalized subsampling method achieved stable coverage closer to the target (~94.81% to 95.45%) and significantly reduced the mean squared error (MSE) of the coverage rates.
Limitations and Future Work
- Subsampling Exponent Sensitivity: The choice of block size $t_n = \lfloor n^r \rfloor$ introduces a classic bias–variance trade-off. Smaller blocks introduce approximation bias, while larger blocks reduce the number of available blocks for quantile estimation. Determining an optimal $r$ remains an open theoretical challenge.
- Convexity Assumption: The current theoretical proofs assume strongly convex loss functions. Extending this framework to non-convex landscapes—where SGD might transition between multiple local minima—is a critical direction for future research.
- Extensions to Other Optimizers: The analysis is currently tailored to standard SGD. Adapting these central limit theorems to modern adaptive optimizers like Adam or momentum-based methods remains unexplored.
Summary updated