The Implicit and Explicit Regularization Effects of Dropout

Colin Wei, Sham M. Kakade, Tengyu Ma

Overview

Dropout is more than just a heuristic to prevent neuronal co-adaptation; it provides two distinct forms of regularization. This paper disentangles the explicit effect (modifying the training objective) from the implicit effect (introducing noise in the gradient updates) and derives analytic regularizers that can faithfully replace dropout in deep learning models.

The Dual Nature of Dropout

Since its inception, dropout has been a cornerstone of deep learning, yet the exact mechanics of why it works so well have remained somewhat mysterious. Most theoretical studies treat dropout as a modification to the loss function—what the authors term explicit regularization. However, in practice, dropout is implemented by sampling noise for every update, which introduces stochasticity into the gradients.

The authors argue that this stochasticity provides an implicit regularization effect, similar to how small mini-batches in Stochastic Gradient Descent (SGD) help a model find "flatter," more generalizable minima. Because these two effects are usually entangled during standard training, this paper aims to separate them, characterize them mathematically for deep neural networks, and determine if they can be replaced by deterministic, interpretable formulas.

Methodology: Disentangling the Effects

The researchers utilized a clever experimental setup called mini-batch dropout (DROPOUT$_k$). By averaging the dropout loss over $k$ different noise samples, they could keep the "expected" objective the same while systematically reducing the amount of update noise as $k$ increases.

To move from empirical observation to theory, they used Taylor expansions to derive two distinct components:

  1. An Analytic Explicit Regularizer ($R_{approx}$): A formula involving the Jacobians of the model and the Hessian of the loss. It essentially penalizes the model if its outputs are too sensitive to small hidden-layer perturbations.
  2. An Analytic Implicit Regularizer ($\xi_{approx}$): A gradient noise distribution that mimics the stochasticity of dropout without actually performing the random dropping of neurons.

By combining these two derivations, they created a new training update rule that replaces the random "dropping" of neurons with calculated penalty terms.

Key Insights

The authors evaluated their methods on language modeling tasks using the Penn Treebank (PTB), Wikitext-2, and Wikitext-103 datasets across various architectures (LSTMs, Transformer-XL, and QRNNs). Their experiments revealed several critical insights:

  • Noise is a Feature, Not a Bug: Perhaps the most surprising finding is that "better" estimates of the dropout objective (using a higher $k$ in mini-batch dropout) actually lead to worse validation performance. Increasing $k$ reduces the implicit regularization, causing the model to overfit more heavily to the training data.
Increasing the number of noise samples ($k$) reduces update noise but degrades validation performance, highlighting the implicit regularization effect.
  • Targeting Uncertainty: The explicit regularizer does not treat all classes equally. Because it depends on the Hessian of the cross-entropy loss, it places the most weight on classes where the model is "uncertain" (where probabilities are not close to 0 or 1). This "stability-based" approach proves much more effective than standard $L_2$ regularization.
  • Dataset Size Matters: On large-scale datasets like Wikitext-103, the implicit regularization effect of dropout noise largely disappears. In these data-rich settings, the explicit effect (the modified objective) does most of the heavy lifting.
  • Successful Disentanglement: The authors proved they could "recover" the performance of standard dropout by manually adding the calculated noise back into a low-noise mini-batch setup, confirming their theoretical separation of the two effects.

Key Results

The derived analytic regularizers were able to successfully match the performance of standard dropout across different architectures without relying on stochastic masking.

  • Performance Parity: On the Penn Treebank dataset, standard dropout achieved a validation perplexity of 73.76. The authors' combined analytic (explicit + implicit) regularizer achieved a highly competitive 72.99, effectively replacing the need for random neuron dropping.
  • Superiority over $L_2$: Standard $L_2$ regularization is insufficient to capture dropout's benefits. On PTB, $L_2$ regularization only managed a perplexity of 112.04, while the authors' explicit regularizer alone reached 84.52.
  • Convergence Efficiency: While calculating Jacobians is computationally more expensive per iteration (roughly a 3x slowdown), the analytic regularizers often required fewer total epochs to converge.
The combined analytic regularizer matches standard dropout performance and converges in fewer epochs.

Limitations and Future Work

The primary limitation of this approach is computational overhead. Calculating the Jacobians and Hessians required for the analytic formulas is significantly slower than the simple binary masking used in standard dropout.

The authors suggest that future work should focus on finding more efficient ways to approximate these stability-based regularizers. Furthermore, while this paper successfully characterizes the what and how of dropout's effects, achieving a deeper theoretical understanding of exactly why the specific "implicit" noise of dropout is so uniquely beneficial for optimization remains an open question for the field.

Summary updated

BibTeX
@inproceedings{wei2020implicit,
  author = {Colin Wei and Sham M. Kakade and Tengyu Ma},
  title = {{The Implicit and Explicit Regularization Effects of Dropout}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
}
Figure