Introduction
In Bayesian Deep Learning, neural network weights are treated as probability distributions. A critical component of this framework is the prior—the initial assumption about weight values before observing data. Traditionally, researchers rely on simple, independent Gaussian priors (equivalent to weight decay) or log-uniform distributions for sparsity.
However, these standard priors ignore the inherent spatial structure of convolutional filters. We know that effective filters are not random noise; they exhibit clear patterns such as edges, blobs, and textures. The Deep Weight Prior (DWP) addresses this by using generative models to learn and "bake in" the spatial correlations found in successful convolutional kernels, providing a more informative starting point for learning, especially in data-scarce environments.
Methodology
The core innovation of this work is modeling the weight prior as an implicit distribution using a Variational Auto-Encoder (VAE).
Learning the Prior
The process begins by training "source" networks on a related dataset (e.g., CIFAR-100). The resulting convolutional kernels are collected to form a training set for a VAE. This VAE learns to compress and reconstruct these kernels, effectively capturing the underlying distribution of "good" filters.
Implicit Prior Variational Inference
Because the VAE defines an implicit distribution, standard Bayesian mathematical formulations for density are not directly applicable. The authors introduce an auxiliary variational lower bound to perform Variational Inference. This allows the model to optimize the KL divergence between the approximate posterior and the learned DWP without needing an explicit probability density function.
Applications and Evaluation
The DWP was evaluated across three primary use cases: as a formal Bayesian prior, as a weight initialization strategy, and for random feature extraction. Testing was conducted on standard benchmarks, such as using priors learned from notMNIST for MNIST tasks, and CIFAR-100 for CIFAR-10.
Key Results
- Low-Data Performance: On MNIST with only 50 training examples, the DWP achieved ~80% accuracy, significantly outperforming standard normal (~74%) and log-uniform (~77%) priors.
- Accelerated Convergence: When used for initialization, DWP-initialized models reached target accuracy levels up to three times faster than those using standard Xavier initialization.
- Feature Universality: Filters sampled from the DWP (shown below) proved to be highly effective even when frozen, performing nearly as well as filters trained directly on the target data.
Discussion and Limitations
While the DWP offers significant advantages in convergence speed and low-data robustness, it introduces some computational overhead due to the auxiliary "reverse" model required during training. Currently, the prior is factorized over layers, meaning it does not yet account for dependencies between different depths of the network. Future work may explore scaling this approach to larger architectures like ResNets and investigating cross-layer dependencies to further refine the learned weight priors.
Summary updated