Structured Flow Autoencoders: Learning Structured Probabilistic Representations with Flow Matching

Yidan Xu, Yixin Wang, XuanLong NguyenICLR 2026

TL;DR

Structured Flow Autoencoders (SFA) bridge the gap between the high-fidelity generation of Flow Matching and the interpretable, structured latent spaces of Variational Autoencoders (VAEs). By augmenting probabilistic graphical models with conditional flow-based likelihoods, SFA achieves state-of-the-art sample quality while maintaining the ability to learn meaningful, low-dimensional representations of complex data.

What Problem Does This Paper Address?

In the current generative modeling landscape, researchers often face a "fidelity vs. structure" trade-off. On one side, Flow Matching (FM) and diffusion models excel at producing high-resolution, realistic samples (high fidelity) but act as "black boxes" that fail to capture or expose the underlying latent structure of the data. On the other side, Variational Autoencoders (VAEs) are designed specifically to learn structured, interpretable representations (like clusters or physical dimensions), but they often produce blurry, low-quality samples.

This limitation is particularly problematic in scientific fields like computational biology or physics, where researchers don't just want a model that can "draw" a cell or a pendulum; they need a model that understands the low-dimensional factors (like gene expression pathways or angular velocity) driving those observations.

Methods

The authors introduce Structured Flow Autoencoders (SFA), a framework that replaces the simple likelihoods in Probabilistic Graphical Models (PGMs) with conditional Continuous Normalizing Flows (CNFs).

Probabilistic graphical model for a mixture latent space, illustrating how SFA can capture structured representations like clusters.

The core innovation is the Structured Conditional Flow Matching (SCFM) objective. Standard flow matching tries to learn a vector field that moves a simple distribution (noise) toward the data distribution. SFA takes this further by proving a key theoretical insight: the marginal vector field of the data is actually the expectation of a conditional vector field over the latent posterior.

By optimizing this new objective, SFA jointly learns:

  1. The Likelihood: A conditional flow $p(x|z)$ that generates high-fidelity data from latents.
  2. The Posterior: An approximate distribution $q(z|x)$ that maps data back to a structured latent space.

Unlike VAEs, which use the Evidence Lower Bound (ELBO) and often require a "balancing act" (the $\beta$ parameter) that can hurt sample quality, SFA uses flow-matching principles that avoid this trade-off entirely.

Datasets

The authors evaluated SFA across four diverse domains to prove its versatility:

  • Pinwheel Dataset: A toy 2D dataset used to test density estimation and cluster separation.
  • MNIST / EMNIST: Standard handwritten digit benchmarks used to evaluate latent clustering and out-of-distribution (OOD) detection.
  • Single-cell RNA-seq (Kang HVG): A high-dimensional (5000-dimensional) scientific dataset of gene expressions in immune cells.
  • Pendulum Trajectory: A video dataset of a physical system used to test the model’s ability to capture latent dynamics (angle and velocity) over time.

Key Insights and Ideas

  • The "De-mixing" Theorem: The paper provides a formal proof showing that complex data flows can be decomposed into simpler, conditional flows. This allows the model to "de-mix" the observed signal into its constituent latent parts.
  • Diversity over Determinism: Compared to "Latent Flow Matching" (which often uses deterministic autoencoders), SFA produces much more diverse samples. This is measured by the Vendi score, where SFA significantly outperformed competitors, suggesting it covers the true data distribution more effectively.
  • No Posterior Collapse: In VAEs, the model sometimes ignores the latent variables (posterior collapse). SFA’s objective doesn't include the regularization terms that typically drive this collapse, making it more robust for representation learning.

Key Results

SFA consistently outperforms VAEs and their structured extensions in generation quality, representation utility, and scalability.

Comparison of generative models on the Pinwheel dataset. SFA and Mixture SFA successfully capture both the high-fidelity shape and the underlying cluster structure, unlike standard VAEs or basic Flow Matching.
  • High Fidelity: On the Pinwheel dataset, SFA achieved a $W_1$ metric (Earth Mover’s Distance) of 0.024, matching the performance of standard Flow Matching and significantly beating VAEs (0.119).
  • Superior Clustering: On MNIST, SFA achieved a Normalized Mutual Information (NMI) score of 0.490, vastly outperforming standard VAEs (0.039). It even outperformed VAEs on OOD data, showing it learns more generalizable features.
  • Scientific Scalability: SFA successfully modeled 5000-dimensional RNA-seq data, outperforming VAEs in reconstruction quality and matching LatentFM in clustering accuracy while providing much higher sample diversity.
  • Physical Accuracy: In the Pendulum video task, SFA reduced the error in recovering latent dynamics by over 5x compared to structured VAE extensions (RMSE of 1.526 vs 8.090).

Limitations and Future Work

The authors acknowledge two primary hurdles:

  1. Computational Cost: While SFA is efficient with parametric posteriors, using a full CNF for the posterior requires solving an ODE at every gradient step, which is computationally expensive.
  2. Architectural Scaling: Scaling SFA to high-resolution images (like ImageNet) remains a challenge. Standard "skip connections" in architectures like UNets can sometimes allow the model to bypass the latent variables entirely. Designing decoders that meaningfully condition on stochastic latents without losing fidelity is a key next step.

Summary updated

BibTeX
@inproceedings{xu2026structured,
  author = {Yidan Xu and Yixin Wang and XuanLong Nguyen},
  title = {{Structured Flow Autoencoders: Learning Structured Probabilistic Representations with Flow Matching}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=KYdfvF2SZN},
}
Figure