Papers
Topics
Authors
Recent
Search
2000 character limit reached

Sparse Variational Dropout

Updated 2 July 2026
  • 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 wijw_{ij} as a random variable with a factorized variational posterior: q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2), where θij\theta_{ij} is the mean and αij\alpha_{ij} is an individual, unconstrained dropout-rate–style parameter per weight. The prior is generally a (scale-invariant) log-uniform,

p(wij)1wij.p(w_{ij}) \propto \frac{1}{|w_{ij}|}.

The evidence lower bound (ELBO) to be maximized is then

L(θ,α)=Eq(wθ,α)[logp(Dw)]i,jDKL(N(θij,αijθij2)p(wij)),\mathcal{L}(\theta, \alpha) = \mathbb{E}_{q(w\,|\,\theta, \alpha)}[\log p(D|w)] - \sum_{i,j} D_{KL}(\mathcal{N}(\theta_{ij},\,\alpha_{ij} \theta_{ij}^2) \,\|\, p(w_{ij})),

where the expectation is estimated via Monte Carlo and the KL-divergence is tightly approximated as a function of αij\alpha_{ij} (Molchanov et al., 2017).

In the ARD view, the prior is a Gaussian with per-weight precision τi\tau_i possibly drawn from a hierarchical hyperprior, and the posterior is also Gaussian. The variational regularizer becomes

LARD(μ,σ)=nEq(w)[logp(ynxn,w)]12i=1Dlog(1+μi2σi2),\mathcal{L}_{ARD}(\mu, \sigma) = \sum_n \mathbb{E}_{q(w)}[\log p(y_n|x_n, w)] - \frac{1}{2} \sum_{i=1}^D \log\left(1 + \frac{\mu_i^2}{\sigma_i^2}\right),

which mathematically coincides with the fixed-rate variational dropout for appropriate α\alpha (Kharitonov et al., 2018).

2. Sparsity Mechanism and Regularization Effect

The key sparsity mechanism arises from the shape of the KL-divergence: for large q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),0, the regularizer q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),1 vanishes to zero, so increasing q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),2 (which corresponds to dropping the weight) is encouraged as long as the likelihood term is not too sensitive. The optimal q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),3 is simultaneously driven to zero. In the limit q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),4, the variational posterior collapses to a q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),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: q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),6 with q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),7.
  • Local reparameterization moves noise from weights to pre-activations, so that activations q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),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 q(wij)=N(wijθij,αijθij2),q(w_{ij}) = \mathcal{N}(w_{ij} \mid \theta_{ij},\, \alpha_{ij} \theta_{ij}^2),9, e.g., at θij\theta_{ij}0 (corresponding to dropout θij\theta_{ij}1), so that θij\theta_{ij}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: θij\theta_{ij}3 where layerwise variables θij\theta_{ij}4, θij\theta_{ij}5 are learned and batch-norm statistics θij\theta_{ij}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 θij\theta_{ij}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 θij\theta_{ij}8 are hyperparameters with minor performance sensitivity and are chosen ad hoc (Lee et al., 2018).

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 θij\theta_{ij}9 (with αij\alpha_{ij}0) penalized ERM (LeJeune et al., 2021). Structured Bayesian pruning, variational information bottleneck, and αij\alpha_{ij}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

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Sparse Variational Dropout.