Learnable Bernoulli Dropout for Bayesian Deep Learning

Shahin Boluki, Randy Ardywibowo, Siamak Zamani Dadaneh, Mingyuan Zhou, Xiaoning Qian

Abstract

Standard dropout techniques often rely on fixed hyperparameters that require manual tuning and lack the expressiveness needed for complex feature regularization. This paper introduces Learnable Bernoulli Dropout (LBD), a method that transforms dropout into a learnable parameter optimized jointly with network weights. By utilizing the Augment-REINFORCE-Merge (ARM) gradient estimator, LBD provides an unbiased approach to training discrete Bernoulli masks, leading to superior accuracy and more reliable uncertainty quantification across various deep learning tasks.

Introduction

In modern deep learning, dropout serves as a critical regularization technique. However, the standard approach of using a fixed probability (typically 0.5) presents two significant challenges: the need for tedious manual tuning and a lack of expressiveness, as a single rate ignores the varying regularization needs of different features.

Previous attempts to make dropout learnable have struggled with the non-differentiability of the discrete Bernoulli distribution. Solutions like "Concrete" dropout use continuous relaxations that introduce bias, while Gaussian approximations can be unstable. LBD addresses these issues by treating the dropout rate of every neuron as a variational parameter, optimized without the bias inherent in continuous relaxations.

The LBD Framework

The core of LBD is the use of the Augment-REINFORCE-Merge (ARM) estimator. Unlike methods that smooth discrete masks into continuous ones, ARM allows for the calculation of unbiased, low-variance gradients directly through binary Bernoulli masks. This ensures that the model optimizes the actual discrete distribution rather than a proxy.

Comparison of Bias and MSE between LBD and Concrete Dropout across different parameters.

As shown in the comparison above, LBD exhibits significantly lower bias and Mean Squared Error (MSE) compared to Concrete dropout. This "exactness advantage" is crucial for maintaining the integrity of the variational posterior during training. Furthermore, LBD can be extended to Variational Auto-encoders (VAEs) through a Semi-Implicit VAE (SIVAE) architecture, where learnable dropout on the encoder output creates a flexible latent space capable of capturing complex data patterns.

Experimental Evaluation

The authors evaluated LBD across multiple domains to test its robustness:

  • Image Classification: Using VGG19 on the CIFAR-10 dataset.
  • Semantic Segmentation: Using FC-DenseNet-103 on the CamVid dataset.
  • Collaborative Filtering: Testing on large-scale recommendation datasets including MovieLens-20M (ML-20M), Netflix Prize, and the Million Song Dataset (MSD).

Key Findings

Superior Accuracy and Sparsity

On CIFAR-10, LBD achieved an accuracy of 93.47%, surpassing Concrete dropout (92.72%) and standard MC Dropout (91.57%). A notable side effect of LBD is its ability to induce feature sparsity; by learning individual dropout rates, the model naturally identifies and "drops" redundant neurons with near-100% probability, effectively performing automated feature selection.

Reliable Uncertainty Quantification

In safety-critical tasks like semantic segmentation, knowing when a model is uncertain is as important as its raw accuracy. LBD achieved a Mean PAvPU (Patch Accuracy vs. Patch Uncertainty) of 85.16% on the CamVid dataset, significantly higher than the 81.17% achieved by regular dropout.

Uncertainty quantification performance (PAvPU) on the CamVid dataset.

State-of-the-Art Recommendations

The SIVAE+LBDrop model demonstrated exceptional performance in collaborative filtering. On MovieLens-20M, it reached a Recall@20 of 39.95%, outperforming standard VAEs (35.67%) and those using advanced priors like VampPrior (35.84%). This success is attributed to the "implicit mixing" mechanism, where learnable dropout allows the latent distribution to act as a highly expressive mixture of Gaussians.

Conclusion

Learnable Bernoulli Dropout represents a significant step forward in Bayesian Deep Learning. By providing an unbiased, learnable alternative to fixed-rate dropout, it eliminates manual tuning while improving both predictive performance and uncertainty estimation. While the ARM estimator introduces some computational overhead, the gains in reliability and accuracy make it a compelling choice for complex, high-stakes applications.

Summary updated

BibTeX
@inproceedings{boluki2020learnable,
  author = {Shahin Boluki and Randy Ardywibowo and Siamak Zamani Dadaneh and Mingyuan Zhou and Xiaoning Qian},
  title = {{Learnable Bernoulli Dropout for Bayesian Deep Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
}
Figure