Abstract
While variational dropout approaches have been shown to be effective for network sparsification, they are still suboptimal in the sense that they set the dropout rate for each neuron without consideration of the input data. With such input-independent dropout, each neuron is evolved to be generic across inputs, which makes it difficult to sparsify networks without accuracy loss. To overcome this limitation, we propose adaptive variational dropout whose probabilities are drawn from sparsity-inducing beta Bernoulli prior. It allows each neuron to be evolved either to be generic or specific for certain inputs, or dropped altogether. Such input-adaptive sparsity-inducing dropout allows the resulting network to tolerate larger degree of sparsity without losing its expressive power by removing redundancies among features. We validate our dependent variational beta-Bernoulli dropout on multiple public datasets, on which it obtains significantly more compact networks than baseline methods, with consistent accuracy improvements over the base networks.
Introduction
Deep neural networks (DNNs) have achieved state-of-the-art performance across various domains but at the cost of significant memory and computational requirements. This poses a challenge for deployment on resource-constrained edge devices. Network sparsification, or pruning, is a critical technique to mitigate these costs by removing redundant parameters.
Traditional variational dropout methods learn a fixed dropout rate for each neuron. However, these methods are input-independent, meaning the same pruning mask is applied regardless of the input data. This forces every neuron to generalize across all possible inputs, which limits the potential for extreme sparsification. This paper introduces Dependent Beta-Bernoulli Dropout (DBB), a method that allows dropout rates to adapt to specific inputs, enabling neurons to specialize and allowing for much higher sparsity without sacrificing accuracy.
Methodology: Input-Adaptive Pruning
The proposed framework moves beyond static dropout by introducing a hierarchical Bayesian model that makes the dropout mask a function of the input.
Beta-Bernoulli and Dependent Beta-Bernoulli Dropout
The authors first introduce Beta-Bernoulli (BB) Dropout, where binary masks are drawn from a Bernoulli distribution with parameters sampled from a Beta prior. This is inspired by the Indian Buffet Process, which naturally promotes sparsity.
The core contribution is Dependent Beta-Bernoulli Dropout (DBB). In DBB, the dropout probability for a neuron is not fixed but is calculated based on input activations. The process involves a "standardization + scaling + shifting" transformation, similar to Batch Normalization, to determine neuron activity for a given input.
As shown in the figure above, the input activations ($x_1$) are standardized ($x_2$), then scaled and shifted ($x_3$), and finally clamped ($x_4$) to produce a sparse mask. This mechanism allows a neuron to be "pruned" for most inputs while remaining active for specific, relevant data points.
Variational Inference and Training
To handle the discrete nature of dropout masks during training, the authors use Stochastic Gradient Variational Bayes (SGVB) with a Kumaraswamy distribution approximation. This allows for efficient backpropagation. The training follows a two-stage process: first using input-independent BB dropout to prune globally redundant neurons, followed by DBB fine-tuning to allow for input-specific specialization.
Experimental Results
The researchers evaluated DBB on MNIST (LeNet architectures) and CIFAR-10/100 (VGG-like architectures).
Performance on MNIST
On the LeNet-500-300 architecture, DBB achieved a remarkable 47.07x speedup in FLOPs with a low error rate of 1.59%. This significantly outperformed the best baseline, Variational Information Bottleneck (VIB), which reached a 33.63x speedup. On LeNet5-Caffe, DBB achieved a 7.27x speedup while actually improving accuracy over the original unpruned model (0.68% vs. 0.71% error).
Performance on CIFAR
For CIFAR-100, DBB provided a 2.91x speedup with 29.08% error, a substantial improvement over the original model's 33.10% error. Across all datasets, DBB consistently reduced the memory footprint to between 2% and 10% of the original size.
Discussion and Conclusion
The key insight of this work is the trade-off between specialization and generalization. By allowing neurons to become "specialists" for certain inputs, the network can maintain high expressive power with fewer active components per forward pass. Interestingly, the authors observed that lower layers tend to develop generic masks (e.g., for edge detection), while higher layers develop class-specific masks.
While the two-stage training process adds some complexity, the negligible parameter overhead and significant gains in sparsity and speed make DBB a powerful tool for creating efficient, high-performance neural networks.
Summary updated