Generalized Dropout

Suraj Srinivas, R. Venkatesh BabuarXiv 2016

Abstract

Standard Dropout is a ubiquitous heuristic in deep learning, yet it often relies on manually tuned, static rates and assumes weight independence that rarely exists in practice. We present Generalized Dropout (GD), a framework that transforms dropout into a learnable Bayesian process. By introducing stochastic gates at the feature level and employing a Beta distribution prior, GD enables networks to automatically determine optimal dropout rates per layer and facilitates automated model pruning through Stochastic Architecture Learning (SAL).

Introduction

Dropout has long been a staple of deep learning, effectively preventing overfitting by randomly deactivating neurons during training. Despite its success, it remains largely a heuristic. Practitioners typically select a fixed dropout rate (e.g., 0.5) through exhaustive trial and error. Furthermore, while Dropout can be viewed as a form of Approximate Bayesian Inference, standard implementations often assume independence between individual weights. In reality, weights within filters are highly correlated.

Generalized Dropout addresses these limitations by shifting the focus from weight-level independence to feature-level independence. Instead of forcing independence on weights, GD enforces it on the outputs of neurons, allowing the model to learn which features are truly salient.

The Generalized Dropout Framework

The core of Generalized Dropout is the introduction of a multiplicative "gate" ($\theta$) following every neuron. These gates act as random variables taking values between 0 and 1. A gate value of 0 signifies the neuron is "dropped," while a value of 1 indicates it remains active.

Neural network layer augmented with stochastic gates ($\theta$) following the weight matrix $W$.

To make these gates learnable, the authors utilize a Beta distribution as a prior. By adjusting the distribution's parameters ($\alpha$ and $\beta$), various network behaviors can be induced:

  • Dropout++: In this configuration, the dropout rate becomes a trainable parameter. The network learns to retain important features more frequently, adapting to the specific needs of each layer.
  • Stochastic Architecture Learning (SAL): By selecting specific Beta prior parameters, the gates are encouraged to converge toward binary values (exactly 0 or 1). This effectively transforms the regularization process into a tool for automated pruning.
Beta distribution priors for different configurations of Generalized Dropout, including Dropout++ and SAL.

To overcome the non-differentiability of stochastic sampling, a "straight-through estimator" is employed, treating the stochastic step as an identity function during backpropagation.

Experimental Results

The framework was evaluated on MNIST and CIFAR-10 benchmarks across various architectures, including ResNet-32, ResNet-56, and VGG-like models.

Performance and Robustness

On CIFAR-10, integrating Dropout++ into ResNet-32 improved performance, reducing the error rate from 7.46% to 6.73%. Notably, Dropout++ demonstrated significant robustness to initialization and layer width. While standard dropout is highly sensitive to the chosen rate, Dropout++ can recover from poor initializations to learn the appropriate feature importance.

Automated Pruning

The SAL variant achieved remarkable results in model compression. On a LeNet-like architecture, SAL pruned the model from 431,000 parameters to just 29,800—a 14x reduction—while maintaining an error rate of 0.84%, nearly identical to the 0.82% baseline.

Key Insights

  • Automatic Adaptation: GD naturally adjusts to layer capacity. It restricts the capacity of unnecessarily wide layers by lowering gate probabilities while keeping gates open in narrower layers.
  • Spatial Awareness: In convolutional layers, the model learns spatial importance. For instance, it may learn to attend to the center of images while assigning lower retention probabilities to background-heavy corners.
  • Feature-Level Bayesianism: By making gates the stochastic element, the model effectively reduces "co-adaptation," where neurons become overly dependent on one another.

Conclusion and Future Work

Generalized Dropout moves beyond "magic numbers" in regularization, providing a principled way for models to manage their own complexity. While current implementations use re-scaling at test time as a Bayesian approximation, future work could explore full Monte-Carlo sampling. Additionally, scaling these techniques to massive Transformer-based architectures and larger datasets like ImageNet remains an open area for research.

Summary updated

BibTeX
@misc{srinivas2016generalized,
  author = {Suraj Srinivas and R. Venkatesh Babu},
  title = {{Generalized Dropout}},
  year = {2016},
  eprint = {1611.06791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.06791},
}
Figure