Overview
Using mini-batches to approximate the quadratic shape of a loss landscape is standard practice for second-order optimization and uncertainty quantification. However, this approach systematically overestimates curvature. This paper reveals that this bias stems from a statistical "regression to the mean" and proposes a simple "two-batch" strategy. By decoupling direction-finding from magnitude-estimation, this strategy leads to significantly more stable optimizers and reliable uncertainty estimates.
The Problem with Mini-Batch Quadratics
In deep learning, we often treat the loss landscape as a series of local "bowls" (quadratic approximations). These approximations are essential for two major tasks:
- Second-order Optimization: Finding the "Newton step" to jump straight to the bottom of the local bowl.
- Uncertainty Quantification: Using the "Laplace approximation" to estimate how "sharp" the bowl is. A sharper bowl implies the model is more certain about its parameters.
Because modern datasets are massive, computing these approximations using all the data at once is intractable. Instead, practitioners rely on mini-batches. However, the authors show that a mini-batch quadratic is a systematically distorted version of the true full-batch quadratic. Specifically, it is much "narrower," exhibiting higher curvature than it actually should.
As illustrated above, the local mini-batch approximations (brown) shift and narrow significantly compared to the broader, true landscape (green) across different batches. This distortion leads to Newton steps that are too small and uncertainty estimates that are dangerously overconfident.
The Two-Batch Debiasing Strategy
The authors identify that this bias arises because standard methods use the same mini-batch to both choose a direction (like an eigenvector of the Hessian) and measure the curvature in that direction.
To resolve this, they introduce a Two-Batch Strategy:
- Step 1: Use one mini-batch to determine the subspace or directions of interest (e.g., the top eigenvectors or Conjugate Gradient search directions).
- Step 2: Use a second, independent mini-batch to measure the actual slope and curvature along those specific directions.
By decoupling the selection of the subspace from the measurement of its geometry, the second batch provides an unbiased estimate of the true landscape's shape. The authors successfully apply this to both Debiased Conjugate Gradients (CG) for optimization and Debiased Laplace Approximations (LA) for uncertainty.
Why Does This Happen? (Key Insights)
- Regression to the Mean: This is the core statistical driver of the bias. Directions that appear to have extreme curvature in one mini-batch are highly likely to be less extreme when viewed through the lens of any other data. If you pick the "steepest" direction in Batch A, it almost certainly won't be the steepest in Batch B.
- Eigenspace Misalignment: The eigenvectors (the principal axes of the "bowl") of different mini-batches do not align perfectly. When you project Batch B's data onto Batch A's eigenvectors, the "weight" of the curvature spreads out, naturally correcting the overestimation.
- The "Accidental Benefit" of Bias: In naive second-order optimization, overestimating curvature actually makes steps smaller. While this is technically a "bias," it accidentally prevents the optimizer from taking massive, unstable leaps. However, the authors show that their debiased version is fundamentally more stable because it gets the sign of the update right more consistently.
Experimental Results
The researchers evaluated their methods across several standard benchmarks, including CIFAR-10/100 (with ALL-CNN-C and WideResNet) and ImageNet (with ResNet-50 and ViT), yielding several strong results:
- Curvature Correction: Naive mini-batching overestimates curvature by roughly one order of magnitude. The two-batch strategy brings these estimates back in line with the full-batch ground truth.
- Optimization Stability: In tests using Conjugate Gradients, the standard single-batch approach often diverged quickly. The debiased version remained stable across all iterations, even without traditional "damping" techniques.
- Reliable Uncertainty: For Laplace Approximations, the debiased method mimicked the behavior of the full-batch version (calculated on 40,000 samples) almost perfectly, even when using only a tiny fraction of the data.
- Efficiency: While the two-batch strategy technically doubles the work per iteration, it allows for much smaller batch sizes to achieve the same (or better) results, making it computationally competitive.
Limitations and Future Directions
The authors acknowledge that their current implementation of debiased CG requires an extra matrix-vector product per iteration. While they suggest more efficient ways to implement this, it remains a slight computational overhead.
Additionally, the study focuses primarily on the "top-curvature" subspace—the sharpest parts of the bowl. Future work could explore how these biases behave in the "flatter" regions of the landscape. Finally, integrating these debiasing strategies into popular optimizers that use running averages (like K-FAC or Adam) represents a promising next step for making second-order methods more practical for everyday deep learning.
Summary updated