Aligning Latent Spaces with Flow Priors

Yizhuo Li, Yuying Ge, Yixiao Ge, Ying Shan, Ping Luo
6/5/2025
cs.LGcs.CV

No official code found. Best implementation: liyz15/Aligning-Latent-Spaces-with-Flow-Priors (43 stars, last commit 2025-06-06).

Abstract

This paper presents a novel framework for aligning learnable latent spaces to arbitrary target distributions by leveraging flow-based generative models as priors. Our method first pretrains a flow model on the target features to capture the underlying distribution. This fixed flow model subsequently regularizes the latent space via an alignment loss, which reformulates the flow matching objective to treat the latents as optimization targets. We formally prove that minimizing this alignment loss establishes a computationally tractable surrogate objective for maximizing a variational lower bound on the log-likelihood of latents under the target distribution. Notably, the proposed method eliminates computationally expensive likelihood evaluations and avoids ODE solving during optimization. As a proof of concept, we demonstrate in a controlled setting that the alignment loss landscape closely approximates the negative log-likelihood of the target distribution. We further validate the effectiveness of our approach through large-scale image generation experiments on ImageNet with diverse target distributions, accompanied by detailed discussions and ablation studies. With both theoretical and empirical validation, our framework paves a new way for latent space alignment.

View on arXivView PDF

Code Implementations(1)

433Shell, PythonJun 5, 20251 years ago

Similar Papers

Cite this paper

@article{li2025aligning,
  title  = {Aligning Latent Spaces with Flow Priors},
  author = {Yizhuo Li and Yuying Ge and Yixiao Ge and Ying Shan and Ping Luo},
  year   = {2025},
  eprint = {2506.05240},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.05240v1}
}

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

Discussion