Flow Matching in Latent Space

Quan Dao, Hao Phung, Binh Nguyen, Anh Tran
7/17/2023
cs.CVcs.LG

Official code: VinAIResearch/LFM (364 stars, AGPL-3.0, last commit 2025-01-20).

Abstract

Flow matching is a recent framework to train generative models that exhibits impressive empirical performance while being relatively easier to train compared with diffusion-based models. Despite its advantageous properties, prior methods still face the challenges of expensive computing and a large number of function evaluations of off-the-shelf solvers in the pixel space. Furthermore, although latent-based generative methods have shown great success in recent years, this particular model type remains underexplored in this area. In this work, we propose to apply flow matching in the latent spaces of pretrained autoencoders, which offers improved computational efficiency and scalability for high-resolution image synthesis. This enables flow-matching training on constrained computational resources while maintaining their quality and flexibility. Additionally, our work stands as a pioneering contribution in the integration of various conditions into flow matching for conditional generation tasks, including label-conditioned image generation, image inpainting, and semantic-to-image generation. Through extensive experiments, our approach demonstrates its effectiveness in both quantitative and qualitative results on various datasets, such as CelebA-HQ, FFHQ, LSUN Church & Bedroom, and ImageNet. We also provide a theoretical control of the Wasserstein-2 distance between the reconstructed latent flow distribution and true data distribution, showing it is upper-bounded by the latent flow matching objective. Our code will be available at https://github.com/VinAIResearch/LFM.git.

View on arXivView PDF

Code Implementations(1)

VinAIResearch/LFMOfficial100%
AGPL-3.0

Official PyTorch implementation of the paper: Flow Matching in Latent Space

36423Shell, PythonJul 17, 20231 years agoAGPL-3.0
conditional-normalizing-flowsdiffusion-modelsflow-matchinggenerative-modelslatent-space+1 more

Similar Papers

Cite this paper

@article{dao2023flow,
  title  = {Flow Matching in Latent Space},
  author = {Quan Dao and Hao Phung and Binh Nguyen and Anh Tran},
  year   = {2023},
  eprint = {2307.08698},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08698v1}
}

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/2307.08698.svg)](https://codeofpaper.com/paper/2307.08698)

Discussion