Sparse Variational Dropout
- Sparse Variational Dropout is a Bayesian variational inference method that learns individual dropout rates per weight to induce sparsity in neural networks.
- It uses a KL-divergence based regularizer along with reparameterization techniques to drive insignificant weights to zero, enabling aggressive network compression.
- Extensions include input-dependent structured dropout and ARD-based hierarchical models that balance compression and accuracy across vision and sequential tasks.
Sparse Variational Dropout (Sparse VD) is a Bayesian variational inference method for neural network sparsification that learns individual, unbounded dropout rates per-parameter to induce exact zeros in weights, enabling aggressive network compression with negligible accuracy loss. The method interprets Gaussian multiplicative noise (dropout) as approximate posterior inference under a sparsity-inducing prior, typically log-uniform or related ARD forms. Sparse VD has been extended to input-dependent structured masking, recurrent architectures, complex-valued networks, and has demonstrated state-of-the-art compression-speedup trade-offs across vision and sequential domains.
1. Bayesian Formulation and Variational Objective
Sparse Variational Dropout models each weight as a random variable with a factorized variational posterior: where is the mean and is an individual, unconstrained dropout-rate–style parameter per weight. The prior is generally a (scale-invariant) log-uniform,
The evidence lower bound (ELBO) to be maximized is then
where the expectation is estimated via Monte Carlo and the KL-divergence is tightly approximated as a function of (Molchanov et al., 2017).
In the ARD view, the prior is a Gaussian with per-weight precision possibly drawn from a hierarchical hyperprior, and the posterior is also Gaussian. The variational regularizer becomes
which mathematically coincides with the fixed-rate variational dropout for appropriate (Kharitonov et al., 2018).
2. Sparsity Mechanism and Regularization Effect
The key sparsity mechanism arises from the shape of the KL-divergence: for large 0, the regularizer 1 vanishes to zero, so increasing 2 (which corresponds to dropping the weight) is encouraged as long as the likelihood term is not too sensitive. The optimal 3 is simultaneously driven to zero. In the limit 4, the variational posterior collapses to a 5, effectively pruning the connection (Molchanov et al., 2017). This is analogous to automatic relevance determination (ARD) in empirical Bayes.
From a functional-penalty viewpoint, the Sparse VD KL-term induces a nonconvex, subquadratic penalty closely related to the LogSum penalty, with the effect of driving many weight norms to zero for free, yielding highly selective networks (LeJeune et al., 2021).
3. Training Methodology and Practical Implementation
Sparse VD training alternates stochastic variational optimization with local and additive reparameterization tricks:
- Additive reparameterization reduces gradient variance: 6 with 7.
- Local reparameterization moves noise from weights to pre-activations, so that activations 8, with means and variances as sums over input and variational parameters (Molchanov et al., 2017, LeJeune et al., 2021). This is especially critical for efficient convolutional or large dense layers.
After training, a deterministic network is recovered by thresholding the 9, e.g., at 0 (corresponding to dropout 1), so that 2 is set to zero and the parameter is pruned (Molchanov et al., 2017, Ryzhikov et al., 2020). The result is a compact, exact sparse network, typically stored in sparse matrix format for acceleration.
For complex-valued networks, the parameterization and KL-divergence generalize to circular complex Gaussians and the corresponding special-function penalties, with a training pipeline of pre-train, sparsify, and fine-tune (Nazarov et al., 2020).
4. Extensions: Structured, Input-Dependent, and Hierarchical Dropout
Dependent Variational Beta–Bernoulli Dropout (DBB) extends Sparse VD to input-adaptive, per-neuron dropout masks under a beta–Bernoulli prior: 3 where layerwise variables 4, 5 are learned and batch-norm statistics 6 are used to capture input adaptation (Lee et al., 2018). This framework enables neurons to specialize to classes or inputs, yielding greater per-input sparsity and improved accuracy at higher pruning. Grouped or hierarchical masking schemes and nonparametric limits have also been proposed (Lee et al., 2018).
ARD-based Sparse VD can be augmented with hierarchical hyperpriors, e.g., placing a Gamma prior on the ARD precisions 7. This enhances sparsity by controlling the peakedness of the regularizer with hyperparameters, thereby enabling an explicit accuracy–compression trade-off (Kharitonov et al., 2018).
5. Empirical Results and Benchmarks
Sparse Variational Dropout demonstrates state-of-the-art compression–accuracy trade-offs:
| Network | Test Error (%) | Parameter Reduction (×) | Accuracy Loss |
|---|---|---|---|
| LeNet-300-100 (MNIST) | 1.92 | 68× | negligible |
| LeNet-5-Caffe (MNIST) | 0.75 | 280× | negligible |
| VGG-like (CIFAR-10) | 7.3 → 7.3 | 48× | none |
| LHCb PID NN | no loss | 16× speed-up | none |
| LSTM (sentiment) | MSE = 0.1475 | 99.5% sparsity | none |
| C-VGG16 (CIFAR-10) | –0.4% | 100–120× | small |
On standard benchmarks, 90–99% sparsity is routinely attained without accuracy loss. DBB achieves up to 47× FLOPs reduction and 8.9% memory usage on diverse datasets with better or equal test error versus baselines (Lee et al., 2018). In particle physics, Sparse VD yields up to 16× CPU inference speed-up with no degradation in ROC AUC (Ryzhikov et al., 2020). For RNNs, 99–50% sparsity levels are reached on NLP tasks (Lobacheva et al., 2017).
6. Limitations and Theoretical Considerations
Sparse VD with a log-uniform prior is not a fully Bayesian approach, as the prior is improper (non-normalizable), making the posterior ill-posed and the variational bound undefined (Hron et al., 2017). The resulting sparsity is not strictly justifiable as Bayesian regularization, and pathological over-sparsification or spurious minima are possible, especially when using additive reparameterization. Nevertheless, empirical ARD–based extensions with hierarchical proper priors yield mathematically equivalent objectives and overcome the problem (Kharitonov et al., 2018). All effective sparsity arises from the nonconvex penalty induced by the KL-term, not from the stochasticity of dropout per se (LeJeune et al., 2021).
Input-dependent structured dropout methods require heavier optimization and marginally increased memory. Pruning thresholds for 8 are hyperparameters with minor performance sensitivity and are chosen ad hoc (Lee et al., 2018).
7. Related Approaches and Theoretical Dualities
Sparse VD is functionally equivalent to minimizing an explicit nonconvex subquadratic penalty via the "η-trick," and empirically matches the sparsity–accuracy trade-offs of LogSum, MCP, and 9 (with 0) penalized ERM (LeJeune et al., 2021). Structured Bayesian pruning, variational information bottleneck, and 1 regularization are comparable methods but typically yield less aggressive sparsification for the same accuracy, especially in high-redundancy architectures (Lee et al., 2018). The theoretical connection between adaptive dropout and subquadratic regularization unifies these approaches.
References
- (Molchanov et al., 2017) Variational Dropout Sparsifies Deep Neural Networks
- (Lee et al., 2018) Adaptive Network Sparsification with Dependent Variational Beta-Bernoulli Dropout
- (Kharitonov et al., 2018) Variational Dropout via Empirical Bayes
- (Lobacheva et al., 2017) Bayesian Sparsification of Recurrent Neural Networks
- (Hron et al., 2017) Variational Gaussian Dropout is not Bayesian
- (LeJeune et al., 2021) The Flip Side of the Reweighted Coin: Duality of Adaptive Dropout and Regularization
- (Ryzhikov et al., 2020) Variational Dropout Sparsification for Particle Identification speed-up
- (Nazarov et al., 2020) Bayesian Sparsification Methods for Deep Complex-valued Networks