Abstract
Hierarchical Variational Autoencoders (VAEs) often suffer from a modeling mismatch where the inference network fails to respect the mathematical factorization of the true posterior. We present the Self-Reflective VAE (SeRe-VAE), which addresses this by restructuring the hierarchy with shared bijective layers. This alignment ensures that the approximate posterior mirrors the generative process, leading to state-of-the-art performance on benchmarks like binarized MNIST and CIFAR-10 without the computational overhead of autoregressive layers.
Introduction
Variational Autoencoders are a cornerstone of generative modeling, yet their performance is often limited by structural discrepancies between the encoder and decoder. In hierarchical settings, the generative process typically follows a top-down dependency structure. However, standard inference networks often employ a bottom-up or independent layer approach, creating a "modeling mismatch." This prevents the variational distribution $q(z|x)$ from capturing the complex dependencies present in the true posterior $p(z|x)$. While researchers often turn to expensive autoregressive layers to compensate, these models are flexible but slow to train and sample.
Methods: Self-Reflective Inference
The SeRe-VAE introduces a "self-reflective" architecture that aligns the inference network's topology with the generative model's factorization.
Shared Bijective Layers
Central to the SeRe-VAE are deterministic, bijective (invertible) functions $f^l$ shared between the generative and inference paths. These invertible layers allow for seamless information flow and stable computation of the KL-divergence without information loss.
Factorization Alignment
By conditioning each inference layer on the output of the preceding transformational layer, the model ensures that the variational posterior respects the exact factorization of the posterior. This recurrent-like update mechanism allows the model to "reflect" the generative logic during inference, effectively fixing the modeling mismatch.
Experimental Results
The SeRe-VAE was benchmarked against existing hierarchical and autoregressive models on MNIST and CIFAR-10.
Performance on Binarized MNIST
A ResNet-based SeRe-VAE achieved a log-likelihood of -79.97 on dynamically binarized MNIST. This result surpasses previous non-autoregressive models and matches the performance of more complex architectures like the IAF-VAE (-79.88), while being significantly faster to train. For instance, a 10-layer IAF took nearly twice as long to train as the SeRe-VAE while achieving inferior results.
Self-Reflective Normalizing Flows
The architecture was also adapted for density estimation in Normalizing Flows. The Self-Reflective Masked Autoregressive Flow (SeRe-MAF) demonstrated a dramatic improvement on CIFAR-10, achieving an ELBO of $\ge 3190$ compared to the standard MAF's 2670.
Conclusion
The SeRe-VAE demonstrates that architectural alignment is a powerful alternative to increasing layer complexity. By ensuring that the inference network mirrors the generative process through shared bijective layers, the model achieves high-fidelity representations and state-of-the-art results with greater efficiency than traditional autoregressive methods. Qualitative analysis further confirms that the model avoids posterior collapse, with all latent layers remaining active throughout training.
Summary updated