CoVAE: Consistency Training of Variational Autoencoders

Gianluigi Silvestri, Luca Ambrogioni
7/12/2025
stat.MLcs.LG

Official code: gisilvs/covae (22 stars, MIT, last commit 2025-11-18).

Abstract

Current state-of-the-art generative approaches frequently rely on a two-stage training procedure, where an autoencoder (often a VAE) first performs dimensionality reduction, followed by training a generative model on the learned latent space. While effective, this introduces computational overhead and increased sampling times. We challenge this paradigm by proposing Consistency Training of Variational AutoEncoders (CoVAE), a novel single-stage generative autoencoding framework that adopts techniques from consistency models to train a VAE architecture. The CoVAE encoder learns a progressive series of latent representations with increasing encoding noise levels, mirroring the forward processes of diffusion and flow matching models. This sequence of representations is regulated by a time dependent $β$ parameter that scales the KL loss. The decoder is trained using a consistency loss with variational regularization, which reduces to a conventional VAE loss at the earliest latent time. We show that CoVAE can generate high-quality samples in one or few steps without the use of a learned prior, significantly outperforming equivalent VAEs and other single-stage VAEs methods. Our approach provides a unified framework for autoencoding and diffusion-style generative modeling and provides a viable route for one-step generative high-performance autoencoding. Our code is publicly available at https://github.com/gisilvs/covae.

View on arXivView PDF

Code Implementations(1)

gisilvs/covaeOfficial100%
MIT
221PythonJul 8, 202511 months agoMIT

Similar Papers

Cite this paper

@article{silvestri2025covae,
  title  = {CoVAE: Consistency Training of Variational Autoencoders},
  author = {Gianluigi Silvestri and Luca Ambrogioni},
  year   = {2025},
  eprint = {2507.09103},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.09103v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.09103.svg)](https://codeofpaper.com/paper/2507.09103)

Discussion