Generative Model without Prior Distribution Matching

Cong Geng, Jia Wang, Li Chen, Zhiyong GaoarXiv 2020

Abstract

Variational Autoencoder (VAE) and its variations are classic generative models by learning a low-dimensional latent representation to satisfy some prior distribution (e.g., Gaussian distribution). Their advantages over GAN are that they can simultaneously generate high dimensional data and learn latent representations to reconstruct the inputs. However, it has been observed that a trade-off exists between reconstruction and generation since matching prior distribution may destroy the geometric structure of data manifold. To mitigate this problem, we propose to let the prior match the embedding distribution rather than imposing the latent variables to fit the prior. The embedding distribution is trained using a simple regularized autoencoder architecture which preserves the geometric structure to the maximum. Then an adversarial strategy is employed to achieve a latent mapping. We provide both theoretical and experimental support for the effectiveness of our method, which alleviates the contradiction between topological properties' preserving of data manifold and distribution matching in latent space.

Introduction: The Reconstruction-Generation Trade-off

In deep generative modeling, Variational Autoencoders (VAEs) are prized for their ability to learn meaningful latent manifolds of high-dimensional data. Standard VAEs encode data into a latent space and decode it back, using a Kullback-Leibler (KL) divergence loss to force the latent distribution to match a simple prior, typically a standard Gaussian.

However, this creates a fundamental conflict. Forcing the latent space to match a Gaussian often destroys the natural geometric and topological structure of the data manifold. If the model focuses too heavily on matching the prior, it suffers from "posterior collapse" and loses reconstruction fidelity. Conversely, focusing on reconstruction causes the latent space to diverge from the prior, leading to poor-quality generation when sampling. The authors mathematically demonstrate that optimizing both reconstruction and prior-matching simultaneously is practically impossible in standard VAE architectures.

The fundamental conflict in standard VAEs between matching a prior distribution and maintaining reconstruction quality.

Proposed Methodology

To break this trade-off, the proposed framework separates the tasks of reconstruction and generation. Instead of forcing the data's latent representation to fit a rigid prior, the prior is adapted to the data's natural latent structure.

The framework consists of two main phases:

  1. Learning the Latent Embedding: An autoencoder is trained without a KL divergence loss. To ensure a structured and continuous latent space, an adversarial regularizer is introduced. A discriminator evaluates decoded interpolations between latent codes, forcing the autoencoder to ensure that blending latent vectors results in realistic outputs. Additionally, a Latent Normalization (Batch Normalization) step is applied to the embeddings to prevent over-dispersion in high-dimensional space by projecting them onto a spherical manifold.
  2. Latent Mapping: Once the autoencoder is frozen, a lightweight Generative Adversarial Network (GAN) is trained strictly within the latent space. The generator maps a standard prior to the learned embedding distribution, while a discriminator distinguishes between mapped noise and actual encoded data.
Overview of the proposed framework consisting of a regularized autoencoder and a latent space GAN.

Experimental Evaluation

The model was evaluated across several benchmarks:

  • Swiss-roll: Visualizations confirmed that the method perfectly reconstructs the manifold and generates new points strictly adhering to its shape, whereas VAE and AAE baselines often failed or produced noisy outliers.
  • CelebA: The model achieved a state-of-the-art balance, reaching an FID score of 62 (compared to VAE's 80) and a reconstruction MSE of 0.0165 (compared to VAE's 0.0383).
  • MNIST Ablation: Studies demonstrated that the Batch Normalization trick is critical; without it, the model fails to generate coherent digits due to latent over-dispersion.

Conclusion and Future Work

This approach effectively eliminates the traditional reconstruction-generation trade-off by reversing the direction of distribution matching. While the model shows superior performance, it relies on a multi-stage training pipeline and specific normalization techniques to prevent latent over-dispersion. Future research may explore end-to-end implementations or applications to non-image data modalities.

Summary updated

BibTeX
@misc{geng2020generative,
  author = {Cong Geng and Jia Wang and Li Chen and Zhiyong Gao},
  title = {{Generative Model without Prior Distribution Matching}},
  year = {2020},
  eprint = {2009.11016},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.11016},
}
Figure