TL;DR
Consistency Training of Variational Autoencoders (CoVAE) unifies $\beta$-VAEs and Consistency Models into a single-stage generative framework. By learning a time-dependent latent representation that transitions into Gaussian noise and training the decoder with a bootstrapped consistency loss, CoVAE generates high-fidelity images in just one or two steps directly from random noise—without needing a separate, second-stage latent generative prior.
What Problem Does This Paper Address?
Modern generative workflows for high-dimensional data usually rely on a two-stage paradigm: first, an autoencoder (like a VAE) compresses images into a lower-dimensional latent space; second, a diffusion or consistency model is trained over that latent distribution (as in Stable Diffusion). While powerful, this two-stage pipeline introduces substantial computational overhead, requires maintaining multiple models, and increases sampling latency.
Standard single-stage VAEs, on the other hand, suffer from the infamous "prior hole" problem: the aggregate posterior distribution fails to match the Gaussian prior, causing samples drawn from pure noise to decode into blurry or out-of-distribution images. Meanwhile, ambient-space consistency models cannot easily scale to complex high-resolution data without latent compression. CoVAE bridges this gap by training a compressed, time-dependent autoencoder end-to-end with consistency objectives.
Methods
CoVAE reformulates the VAE's reparameterization trick and ELBO into a continuous noising process:
Data x ──► Encoder E_ϕ(x, t) ──► Latent z_t ──► Decoder D_θ(z_t, t) ──► Reconstructed x
▲ ▲
│ │
KL scaled by β(t) Consistency Loss across
(t ≈ 0: point mass; neighboring time steps
t = σ_max: Gaussian) (bootstrapped to t_0)
- Time-Dependent Latent Noising: The encoder outputs time-dependent parameters $z_t = \mathcal{E}^\mu_\phi(x, t) + \mathcal{E}^\sigma_\phi(x, t)\epsilon$. Rather than using a fixed forward SDE, a monotonically increasing KL-weight $\beta(t) = t^2$ forces the latent space to transition from sharp point-mass representations at small $t$ into an isotropic Gaussian $\mathcal{N}(0, I)$ at the maximum timestep $\sigma_{\max}$.
-
Latent Consistency Training: Instead of standard pixel reconstruction, the decoder is trained using a discrete consistency loss: $$\mathcal{L}_{\text{cm}} = \lambda(t_i) \| D_\theta(z_{t_i}, t_i) - D_{\theta^-}(z_{t_{i-1}}, t_{i-1}) \|^2$$ Here, $\theta^-$ denotes an exponential moving average (EMA) copy of the decoder parameters, bootstrapping consistency from early timesteps toward pure noise.
-
Latent Boundary Conditions via Average Denoiser: Consistency Models typically enforce boundary conditions using skip connections ($c_{\text{skip}}(t)x_t$). Because the latent $z_t$ and data $x$ have mismatched dimensions, CoVAE instead trains the decoder to jointly predict an "average denoiser" $\hat{x}_\theta \approx \mathbb{E}[x \mid z_t]$ alongside a residual network $r_\theta$, yielding the parameterization: $$D_\theta(z_t, t) = c_{\text{skip}}(t)\hat{x}_{\theta^-}(z_t, t) + c_{\text{out}}(t)r_\theta(z_t, t)$$
- Sampling: Unconditional generation occurs in a single step ($x = D_\theta(\epsilon, \sigma_{\max})$) or via a multi-step routine that re-encodes intermediate images at smaller time horizons before re-decoding.
Datasets
The authors evaluate CoVAE on three standard image synthesis benchmarks:
- MNIST: $28 \times 28$ grayscale digits (tested for both continuous and binary generation).
- CIFAR-10: $32 \times 32$ natural images across 10 classes.
- CelebA 64: $64 \times 64$ celebrity face crops (center-cropped from $148 \times 148$).
No new datasets were introduced.
Key Insights and Ideas
- Diffusion as a Generalized Reparameterization Trick: The linear Gaussian corruption kernel in diffusion can be interpreted as a rigid, time-dependent reparameterization trick. CoVAE shows that this process can be learned nonlinearly and compressed simultaneously by an encoder network.
- Amortized $\beta$-VAE Ensemble: Scaling the KL divergence penalty as $\beta(t) = t^2$ amortizes a continuum of $\beta$-VAEs across time, smoothly varying the signal-to-noise ratio (SNR) in latent space from high SNR at $t=0$ to zero SNR at $\sigma_{\max}$.
- Eliminating the Prior Hole via Consistency: Consistency training enforces that trajectories starting anywhere along the latent paths—including from pure Gaussian noise at $\sigma_{\max}$—map consistently to valid data points, removing the need for a separate latent prior model.
Key Results
CoVAE substantially outperforms equivalent standard VAEs and beats leading single-stage, non-hierarchical VAE baselines in sample quality (measured by Fréchet Inception Distance, FID $\downarrow$):
- MNIST: 1-step FID of 5.62 and 2-step FID of 3.83, beating standard VAE (17.20) and $\beta$-VAE (13.24) while simultaneously maintaining a reconstruction FID of 2.19.
- CIFAR-10: Base CoVAE achieves 17.21 (1-step) and 14.06 (2-step). When paired with an adversarial patch loss ($\mathcal{L}_{\text{adv}}$), FID drops to 11.69 (1-step) and 9.82 (2-step), outperforming single-stage VAE baselines such as NVAE (23.49) and DC-VAE (17.90).
- CelebA 64: CoVAE w/ $\mathcal{L}_{\text{adv}}$ attains an FID of 8.27 (1-step) and 7.15 (2-step), clearly surpassing NVAE (14.74) and DC-VAE (19.90).
- Latent Manipulation: Smooth attribute arithmetic (e.g., adding "eyeglasses" or "blonde hair") and semantic interpolations verify that the learned latent representations retain disentanglement properties characteristic of $\beta$-VAEs.
Limitations and Future Work
- Lack of Exact Likelihood: Because the objective replaces the conventional ELBO reconstruction with a bootstrapped consistency loss, it is non-trivial to compute a rigorous evidence lower bound or exact data log-likelihood.
- Empirical Schedules: Performance relies heavily on empirical tuning of the schedules $\beta(t)$, $\lambda(t)$, and time-step discretization parameters ($\sigma_{\min}, \sigma_{\max}, \rho$).
- Gap to Full Two-Stage Ambient Models: While CoVAE outclasses standard VAEs, its FID scores on CIFAR-10 still trail multi-step ambient diffusion models and large multi-stage latent consistency setups.
- Future Directions: Incorporating hierarchical latent structures (as in NVAE), adapting continuous-time consistency formulations, and exploring discrete data domains (e.g., text or categorical data) represent natural next steps.
Summary updated