Estimating Implicit Regularization in Deep Learning

Joseph H. Rudoler, Kevin Tan, Giles Hooker, Konrad KordingNeurIPS 2026

TL;DR

Deep neural networks have enough parameters to memorize random noise, yet they generalize remarkably well thanks to hidden "implicit biases" baked into training tricks like dropout, mini-batching, and early stopping. Until now, figuring out what those biases actually do required agonizing math on stripped-down toy models. This paper introduces an empirical "gradient matching" method that measures implicit regularization directly in complex, real-world networks—turning an elusive theoretical mystery into a practical diagnostic tool.

What Problem Does This Paper Address?

Why don’t massively over-parameterized neural networks overfit into oblivion? Sometimes it’s because we add explicit constraints, like an $\ell_2$ weight decay penalty. Often, however, the magic comes from implicit regularization: subtle biases toward simpler solutions introduced by our choice of optimizer, step size, early stopping, or dropout.

The catch is that mathematically deriving the exact regularizer equivalent to a given training trick is brutally hard. Theorists usually have to retreat to simplified sandboxes—like linear networks or continuous "gradient flow" (infinitesimal learning rates)—leaving us to hope their findings hold up in deep, messy architectures. Practitioners and theorists alike lacked a way to empirically measure the implicit bias acting inside an arbitrary, complex neural network.

Methods

The authors treat identifying implicit regularization like discovering an unseen physical force: if an object isn't accelerating strictly down the hill of gravity, another force must be pushing back.

  1. Hypothetical Minima (Endpoint Matching): If you train a model with early stopping or dropout, it settles at weights $\hat{\theta}$ where the pure training loss gradient ($\nabla \mathcal{L}$) isn't zero. The authors assume $\hat{\theta}$ is actually the true minimum of a hidden joint objective: $\mathcal{L}(\theta) + \mathcal{R}(\theta, \Lambda)$. At a minimum, forces balance out, meaning the gradient of your proposed regularizer must equal the negative gradient of the loss ($\nabla \mathcal{R} = -\nabla \mathcal{L}$). Fitting the unknown regularization strength $\Lambda$ becomes a simple regression problem!
  2. Trajectory Matching: You don't even have to wait for training to finish. At any training step, mini-batching or discrete step sizes cause weight updates to deviate from the pure, full-batch loss gradient. By regressing those step-by-step deviations against candidate regularizer gradients, you can measure implicit bias dynamically during training.
SGD mini-batching causes weight updates along the training trajectory to deviate from the smooth gradient flow path, providing a measurable signal of implicit bias.

Because a model with $p$ weights only gives you $p$ equations at its endpoint, estimating complex regularizers with more than $p$ parameters requires more data. The authors solve this by concatenating equations across multiple dataset draws, bootstrap resampling, or pooling steps along the training trajectory. They also introduce $R^2_{\text{grad}}$, a goodness-of-fit score measuring how much of the residual loss gradient your proposed regularizer actually explains.

Datasets

  • Synthetic Linear Data: A noisy linear model ($1000 \times 10$ input matrix with Gaussian entries and noise) used to test early stopping in Ordinary Least Squares (OLS).
  • MNIST: Handwritten digit classification used to study the implicit effects of dropout across varying network depths and widths.
  • (Note: Additional synthetic/benchmark setups are used for explicit elastic-net and discrete step-size checks, though dataset specifics for those two are not detailed in the main text. No new benchmarks are introduced.)

Key Insights and Ideas

  • Parameters are your "samples": In standard machine learning, data points are samples used to fit weights. In gradient matching, the model's weights are fixed, and each parameter coordinate acts as a sample to fit the regularizer's hyperparameters.
  • Two distinct flavors of "success": An estimated regularizer doesn't have to be the literal ground-truth equation to be useful. Even an under-parameterized approximation can succeed by functional equivalence—meaning if you ablate the training trick (like early stopping) and retrain explicitly with your estimated penalty, you recover the exact same trained weights.
  • Dropout is more than just $\ell_2$ in deep nets: Theory on linear models suggests dropout acts like an adaptive $\ell_2$ (ridge) penalty. Empirically projecting deep MNIST classifiers onto a scalar $\ell_2$ regularizer reveals neat architectural trends, but yields a very low $R^2_{\text{grad}}$. Translation: simple weight decay only captures a tiny slice of what dropout is actually doing in deep nonlinear networks.

Key Results

  • Explicit Elastic Net Recovery: In deep ReLU networks trained with known $\ell_1$ and $\ell_2$ penalties across a $6 \times 6$ grid ($10^{-4}$ to $10^1$), the method accurately recovers intermediate penalty values (struggling only at extremes where penalties are negligible or crush all weights near zero).
Figure 3: Recovering explicit regularization. Elastic-net recovery at β = 10−3 on a 6 × 6 grid of true (λ1, λ2) with 10 independent dataset draws per cell. Each panel plots the estimated ˆλi against the true λi on log–log axes; lines show the mean across seeds and error bars give ±1 standard error. Left: ˆλ1 vs. true λ1, one line per value of true λ2. Right: ˆλ2 vs. true λ2, one line per value of true λ1. The dashed diagonal marks perfect recovery.
  • Early Stopping in OLS: Theory predicts early stopping induces a symmetric $p(p+1)/2$-parameter quadratic penalty matrix $\Lambda^{(t)}$. Concatenating $m=10$ training endpoints recovers the exact theoretical matrix (with error dropping below $10^{-2}$ as $m$ approaches 100). Furthermore, fitting a simpler diagonal matrix from just one endpoint still reproduces the exact early-stopped weights when used for explicit retraining.
Comparing the theoretical early-stopping regularization matrix (A) against the empirical multi-endpoint estimate (B), which recovers the exact structure.
  • Discrete Step-Size Regularization: Theory states discrete gradient descent with step size $\eta$ penalizes squared loss gradients with strength $\lambda = \eta p / 4$. Using trajectory deviations across networks ranging from ~50K to 11.5M parameters, the authors recover $\hat{\lambda}$ tightly matching $\eta p / 4$, confirming higher $\hat{\lambda}$ tracks with higher test accuracy (from ~89% up to ~96%).
  • Dropout on MNIST: Across depths (3, 5), widths (128, 256, 512), and dropout rates (0 to 0.5), narrower networks show a sharp upturn in estimated ridge penalty $\hat{\lambda}$ ($10^{-8}$ up to $\sim 10^{-6}$) at high dropout, whereas wider networks exhibit smaller, flatter coefficients. However, low $R^2_{\text{grad}}$ scores and retraining ablations confirm scalar ridge cannot replicate dropout's test accuracy on its own.

Limitations and Future Work

  • Sample size & Collinearity: Your "sample size" is bounded by parameter count $p$ (unless you do extra runs or bootstrapping). Also, if two candidate regularizers produce nearly identical gradient directions (collinearity), disentangling their individual strengths becomes statistically unstable.
  • Must be "Ablatable": To validate an implicit bias by replacing it with an explicit penalty, you need a baseline notion of training without that component—which isn't always sensible for core architectural choices.
  • Future Work: Because trajectory matching works early in training, the authors envision using it as a cheap diagnostic for massive, expensive foundation model runs—letting engineers evaluate how hyperparameter tweaks shape implicit bias long before convergence.

Summary updated

Abstract

Deep learning systems are known to exhibit *implicit regularization* (alt. *implicit bias*), favoring simple solutions instead of merely minimizing the loss function. In some cases, we can analytically derive the implicit regularization -- connecting it to an equivalent penalty that augments the learning objective. However, modern deep learning systems are complex, carrying modifications to the training procedure and architecture (e.g. early stopping, minibatching, dropout) whose effects are not always directly interpretable. Although estimating the resulting implicit regularization could aid theorists in algorithm design and practitioners in interpreting their hyperparameter choices, this problem has received little direct attention. It is also tractable: regularization makes weight updates deviate from loss gradients, promising a signal for identifying implicit bias. Here we provide gradient matching methods that can be used to empirically estimate the implicit regularization. Our method works on networks with known regularization, recovering popular explicit penalties like $\ell_1$ and $\ell_2$. It also replicates known implicit effects, like the quadratic weight penalty induced by early stopping in gradient descent, demonstrating that it can be used to test theories of implicit regularization. Crucially, because our method is empirical, it can handle implicit regularization in arbitrary networks. We demonstrate this use by characterizing the implicit $\ell_2$ effects of dropout in deep networks. Our work shows that practitioners can use gradient matching to understand regularization in networks with implicit biases that are too complicated to derive analytically.
BibTeX
@inproceedings{rudoler2026estimating,
  author = {Joseph H. Rudoler and Kevin Tan and Giles Hooker and Konrad Kording},
  title = {{Estimating Implicit Regularization in Deep Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8J2wYjpdE2},
}
Figure