Distribution Matching Variational AutoEncoder
Sen Ye, Jianning Pei, Mengde Xu, Shuyang Gu, Chunyu Wang, Liwei Wang, Han Hu
TL;DR
DMVAE addresses how to choose latent priors in two-stage visual generation by explicitly matching the encoder's aggregate posterior to a flexible reference distribution using diffusion-score distillation. This enables exploring distribution forms beyond Gaussian priors, including SSL-derived priors, diffusion-noise, and text-embedding distributions. The paper demonstrates that SSL-derived priors yield a favorable balance between reconstruction fidelity and modeling efficiency, achieving gFID of 3.22 on ImageNet at 256x256 with 64 training epochs and 1.82 with 400 epochs, and shows faster convergence relative to prior tokenizers. The work highlights that selecting an appropriate latent-distribution structure, via distribution-level alignment, is key to bridging easy-to-model latents and high-fidelity synthesis.
Abstract
Most visual generative models compress images into a latent space before applying diffusion or autoregressive modelling. Yet, existing approaches such as VAEs and foundation model aligned encoders implicitly constrain the latent space without explicitly shaping its distribution, making it unclear which types of distributions are optimal for modeling. We introduce \textbf{Distribution-Matching VAE} (\textbf{DMVAE}), which explicitly aligns the encoder's latent distribution with an arbitrary reference distribution via a distribution matching constraint. This generalizes beyond the Gaussian prior of conventional VAEs, enabling alignment with distributions derived from self-supervised features, diffusion noise, or other prior distributions. With DMVAE, we can systematically investigate which latent distributions are more conducive to modeling, and we find that SSL-derived distributions provide an excellent balance between reconstruction fidelity and modeling efficiency, reaching gFID equals 3.2 on ImageNet with only 64 training epochs. Our results suggest that choosing a suitable latent distribution structure (achieved via distribution-level alignment), rather than relying on fixed priors, is key to bridging the gap between easy-to-model latents and high-fidelity image synthesis. Code is avaliable at https://github.com/sen-ye/dmvae.
