Introduction
Standard Variational Inference (VI) often relies on overly simplistic assumptions—such as treating latent variables as independent—which limits a model's ability to capture complex, correlated data structures. This paper explores Normalizing Flows, a technique that transforms simple probability distributions into rich, multimodal ones through a series of invertible mappings, significantly improving the flexibility and accuracy of Variational Autoencoders (VAEs).
The Problem: The Mean-Field Bottleneck
In Bayesian Machine Learning, calculating the "posterior" (the probability of latent variables given the observed data) is often mathematically intractable. Researchers use Variational Inference to approximate this posterior by finding a simpler distribution that is "close" to the real one.
However, most VI methods rely on the Mean Field Assumption, which assumes all latent variables are independent. This is a significant oversimplification; in the real world, features are almost always correlated. This assumption leads to "zero-forcing" behavior, where the model underestimates the variance in the data and fails to capture its true complexity. The authors aim to break this bottleneck by moving beyond simple Gaussians to more expressive approximating distributions.
Methodology: Normalizing Flows
The authors focus on Normalizing Flows, specifically Planar Flows. The core idea is to start with a simple distribution (like a standard Gaussian) and pass it through a sequence of $K$ invertible transformations. Because these transformations are invertible and differentiable, the Jacobian determinant can be used to track how the probability density "flows" and changes shape.
Planar Flows and VAE Integration
Planar Flows are a specific family of transformations defined as $f(z) = z + uh(w^Tz + b)$. These are designed to expand or contract the density around a hyperplane, allowing the model to warp the distribution into complex shapes. The authors integrate these flows into a VAE architecture where the encoder provides the initial parameters, the flows warp the distribution, and the decoder reconstructs the data from the final, complex latent state.
Key Insights and Results
The model was evaluated using the MNIST dataset of handwritten digits. By using a 2D latent space, the authors visualized how the latent space organizes different digit classes.
- Complexity via Composition: By stacking just a few simple transformations ($K=4$), the model can transition from a unimodal "blob" to a complex, multimodal distribution.
- Capturing Dependencies: Unlike standard VAEs, which struggle to represent distinct clusters in low-dimensional space, Normalizing Flows allow the model to naturally separate different classes (e.g., different digits) within the latent posterior.
Visual evidence from the latent space plots shows that the flows successfully "pushed" the probability mass into distinct regions, reflecting the inherent structure of the MNIST digits much more effectively than the mean-field approach. The model achieved these results using a flow length of $K=4$, demonstrating that even relatively "shallow" flows provide significant expressive power.
Conclusion and Future Work
The paper argues that while much of VI research focuses on better optimization algorithms, the choice of the distribution family is just as critical. If the chosen family of distributions does not include the true posterior, no amount of optimization will lead to a perfect model.
While the experiments were conducted in a 2D latent space for visualization, the authors anticipate better results in higher dimensions, though they note the computational cost of calculating Jacobians for very long flow sequences. Future directions include combining these flexible distributions with probabilistic programming and exploring other flow architectures like Radial or Inverse Autoregressive Flows.
Summary updated