Abstract
This paper presents a generative model for natural images utilizing a deep hierarchy of latent random variables. Each layer employs a "Rectified Gaussian" distribution, which facilitates spike-and-slab sparsity while remaining differentiable for efficient stochastic gradient variational inference. To optimize the model, the authors introduce a structured variational approximation that preserves the prior dependencies of the generative model, enabling joint training of deep hierarchies without the need for layer-wise pre-training or stacking.
Introduction
Variational Auto-encoders (VAEs) have become a cornerstone of generative modeling, yet scaling them to deep hierarchies of stochastic latent variables remains a significant challenge. Most standard VAE architectures rely on a single stochastic layer or a series of deterministic layers leading to a single latent bottleneck. Attempts to stack multiple stochastic layers often encounter two primary hurdles:
- Optimization Difficulties: Jointly training multiple layers of random variables frequently leads to "posterior collapse," where higher-level latents are ignored by the model. Historically, this necessitated cumbersome layer-by-layer training (stacking).
- Non-Differentiable Sparsity: Sparse representations—where many features are exactly zero—are highly desirable for interpretability and efficiency. However, traditional sparse distributions like the "spike-and-slab" are non-differentiable, making them incompatible with the gradient-based reparameterization trick.
This research addresses these issues by introducing the Rectified Gaussian distribution and a structured posterior that mirrors the generative model's hierarchy.
The Rectified Gaussian Distribution
To achieve sparsity without sacrificing differentiability, the paper proposes the Rectified Gaussian (RG) distribution. An RG sample is generated by taking a standard Gaussian sample $\epsilon$, shifting and scaling it to $\mu + \sigma\epsilon$, and applying a rectification function: $\max(0, \mu + \sigma\epsilon)$.
This approach provides two key benefits:
- Sparsity: The rectification creates a point mass at zero (the "spike") and a truncated Gaussian for positive values (the "slab"). By learning $\mu$ and $\sigma$ before rectification, the model can learn exactly how much "mass" to push into the negative region, effectively learning the degree of sparsity per feature.
- Differentiability: Because the $\max$ function is differentiable almost everywhere, the model remains compatible with the reparameterization trick, allowing for efficient backpropagation through stochastic layers.
Furthermore, the Kullback-Leibler (KL) divergence between the posterior and the prior can be calculated analytically using univariate Gaussian integrals, ensuring training efficiency.
Structured Variational Inference
A common limitation in VAEs is the "mean-field" assumption, which treats latent variables as independent in the posterior distribution $q(z|x)$. This paper breaks that convention by employing a structured variational posterior.
In this architecture, the encoder's distribution $q(z|x)$ mirrors the top-down structure of the generative decoder $p(z)$. The inference process involves a deterministic upward pass to extract features from the data, followed by a downward pass that combines these bottom-up features with top-down prior information to form the posterior. This "ladder-like" structure allows the model to coordinate dependencies between layers during inference, effectively bypassing the optimization hurdles that typically plague deep stochastic networks.
Experimental Results
The model was evaluated on the binarized MNIST dataset, a standard benchmark where $28 \times 28$ pixel handwritten digits are treated as Bernoulli probabilities. The researchers implemented a 4-layer hierarchy with 300, 200, 100, and 50 units respectively.
The model achieved a variational lower bound of -92.5 nats on the test set. This performance is competitive with state-of-the-art VAEs of that era that utilized a single stochastic layer and multiple deterministic layers. More importantly, the results demonstrated that a deep, fully stochastic hierarchy could be trained jointly from scratch—a significant architectural milestone.
Discussion and Conclusion
While the model is theoretically robust, the authors noted that the deep hierarchy did not provide a dramatic improvement in log-likelihood over simpler, shallower models. The added expressivity of multiple stochastic layers is clear, but translating that expressivity into a massive jump in performance remains an ongoing challenge.
However, the primary contribution of this work is the demonstration that structured posteriors and differentiable sparse distributions can enable the joint training of complex, deep generative hierarchies. This approach paves the way for more sophisticated latent variable models that can learn hierarchical representations of data without the need for staged training procedures.
Summary updated