Variational Diffusion Autoencoders with Random Walk Sampling

Henry Li, Ofir Lindenbaum, Xiuyuan Cheng, Alexander Cloninger

Abstract

Traditional variational autoencoders (VAEs) often suffer from prior mismatch, where a simple Gaussian prior fails to capture the complex topology of the underlying data manifold. This leads to issues such as posterior collapse and mode collapse. We present Variational Diffusion Autoencoders (VDAEs), a framework that replaces fixed priors with data-driven priors learned via diffusion maps. By modeling a random walk on the latent manifold, VDAEs ensure the latent space preserves the true topology of the data. Our results on synthetic and real-world datasets demonstrate superior topological fidelity and stability compared to standard generative models.

Introduction

Deep generative models like VAEs and GANs typically map a simple latent prior—usually a standard Normal distribution—to a complex data distribution. However, when the data resides on a manifold with a distinct topology (e.g., a circle, torus, or disconnected clusters), forcing it into a Gaussian "box" creates a significant prior mismatch. This mismatch often results in posterior collapse, where the model ignores the latent space, or mode collapse, where the model fails to capture the full diversity of the data to avoid topological "tears."

While classical manifold learning tools like diffusion maps excel at uncovering data topology, they lack scalability and an efficient inverse map (decoder) for generation. VDAEs bridge this gap by combining the topological rigor of diffusion maps with the scalability of deep learning, allowing the data to dictate its own latent geometry.

Methodology

The VDAE framework consists of three primary components designed to align the latent geometry with the data's intrinsic structure:

  1. Diffusion Map Encoder ($\psi_\omega$): Utilizing SpectralNet, the encoder learns a mapping from the data space to a latent space where Euclidean distances approximate "diffusion distances," reflecting the ease of transition for a random walker between points.
  2. Random Walk Sampling: Instead of sampling from a fixed $\mathcal{N}(0, I)$, the model simulates a random walk on the learned latent manifold. This ensures the generative prior inherently matches the data's shape.
  3. Neighborhood Reconstruction: The decoder is trained to reconstruct a point $x'$ from the latent code of its neighbor in the random walk, rather than just its own code. This encourages the learning of a smooth, continuous mapping across the manifold.
Overview of the VDAE architecture, mapping data $x$ to latent manifold $\mathcal{M}_Z$ and reconstructing neighborhoods.

The authors also introduce the locally bi-Lipschitz property as a metric to evaluate the stability of the mapping, ensuring the decoder does not excessively stretch or compress the manifold during reconstruction.

Evolution of random walk sampling on the latent manifold over time steps $t$.

Experiments and Results

The VDAE was evaluated against several baselines, including WGAN, $\beta$-VAE, and Hyperspherical VAE (SVAE), across various datasets including synthetic manifolds (Stanford Bunny, torus), image sequences (Rotating Bulldog), and clustered data (MNIST, COIL-20).

Key Findings

  • Topological Fidelity: In the "Rotating Bulldog" experiment, VDAE successfully recovered a perfectly circular latent space, whereas baselines produced distorted or "clumpy" representations.
  • Quantitative Performance: VDAEs consistently outperformed competitors in terms of Gromov-Wasserstein distance (measuring shape matching) and Frechet Inception Distance (FID).
  • Cluster Handling: On a 5x5 Gaussian grid, VDAEs avoided generating samples in the "gaps" between clusters—a common failure for GANs—without requiring complex rejection sampling.
  • Stability: VDAEs exhibited lower median bi-Lipschitz constants, indicating a smoother, more robust mapping from latent to data space.

Conclusion

VDAEs offer a principled approach to generative modeling by replacing fixed priors with random walks on learned manifolds. This effectively eliminates prior mismatch and preserves complex topological structures. Future work includes integrating VDAEs with advanced architectures like Transformers and exploring their utility in domains such as reinforcement learning.

Summary updated

BibTeX
@inproceedings{li2020variational,
  author = {Henry Li and Ofir Lindenbaum and Xiuyuan Cheng and Alexander Cloninger},
  title = {{Variational Diffusion Autoencoders with Random Walk Sampling}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58592-1\_22},
}
Figure