Structured Flow Autoencoders: Learning Structured Probabilistic Representations with Flow Matching
Yidan Xu (University of Michigan), Yixin Wang, XuanLong Nguyen
International Conference on Learning Representations 2026 · Oral
Overview
In the realm of machine learning and scientific discovery, a pervasive challenge lies in simultaneously uncovering hidden structures within complex datasets and building faithful generative models for observations. This talk, presented by Yidan Xu from the University of Michigan, introduces Structured Flow Autoencoders (SFA), a novel framework designed to tackle this dual objective. SFA provides a principled approach for learning structured probabilistic representations by organically combining three key components: a graphical model prior to specify latent structure, a flexible flow-based likelihood for high-dimensional data, and a learnable amortized posterior parameterized by neural networks.

Key moments
- 0:00 Introduction: Structured Flow Autoencoders (SFA) framework overview
- 2:10 Core Insight: Decomposing marginal vector fields with latent structure
- 4:20 Structured Conditional Flow Matching (SCFM) training objective
- 6:00 Instantiations: Adapting SFA to various latent graphical models
- 7:00 Key advantages of SFA over Variational Autoencoders (VAEs)
- 8:40 Experimental results: Density estimation and latent clustering
- 10:50 Q&A: Future work on learning causal structure from data
- 11:40 Q&A: How SFA avoids posterior collapse during training
Structured Flow Autoencoders: Learning Structured Probabilistic Representations with Flow Matching
Speakers: Yidan Xu (University of Michigan); Yixin Wang; XuanLong Nguyen
Conference: ICLR 2026
YouTube: https://slideslive.com/39062105
Overview
In the realm of machine learning and scientific discovery, a pervasive challenge lies in simultaneously uncovering hidden structures within complex datasets and building faithful generative models for observations. This talk, presented by Yidan Xu from the University of Michigan, introduces Structured Flow Autoencoders (SFA), a novel framework designed to tackle this dual objective. SFA provides a principled approach for learning structured probabilistic representations by organically combining three key components: a graphical model prior to specify latent structure, a flexible flow-based likelihood for high-dimensional data, and a learnable amortized posterior parameterized by neural networks.
The core innovation of SFA lies in its ability to ensure marginal density fidelity—meaning the model accurately reconstructs observed data—while disentangling observed signals into interpretable latent and likelihood components. This is achieved through a theoretical breakthrough that decomposes the marginal vector field of a probability flow into conditional pieces, allowing for the joint learning of co-evolving likelihood and posterior paths. The resulting Structured Conditional Flow Matching (SCFM) objective offers significant advantages over traditional methods like Variational Autoencoders (VAEs), particularly in terms of stable training, the absence of hyperparameter tuning for reconstruction-KL balance, and the avoidance of explicit likelihood evaluation during training. SFA promises to advance applications in areas like computational biology, where discovering distinct cell populations and modeling gene expression are paramount, by providing a more robust and flexible framework for structured representation learning.
Background
▶ Watch: Introduction: Structured Flow Autoencoders (SFA) framework overview (0:00)
The aspiration to uncover hidden structures and model complex data accurately is a cornerstone of modern machine learning, with profound implications across scientific disciplines. In fields such as computational biology, for instance, single-cell RNA-seq data presents thousands of gene expression features per cell. The scientific goal is often twofold: to identify distinct cell populations (a latent, low-dimensional structure) and to model the intricate expression profiles characteristic of these cell types. This scenario highlights a common problem in the ML/systems space: raw observations are high-dimensional and noisy, yet inherently governed by underlying, often much lower-dimensional, latent factors or structures.
Traditional approaches to this problem, such as Variational Autoencoders (VAEs), have made significant strides. VAEs learn a latent representation by optimizing an Evidence Lower Bound (ELBO), which balances reconstruction fidelity with regularization of the latent space (often via a Kullback-Leibler divergence term). However, VAEs often face challenges, including the need for explicit likelihood evaluation, which can be difficult for high-dimensional and complex data, and the notorious "posterior collapse" problem, where the latent space becomes uninformative. Furthermore, the beta parameter in beta-VAEs, used to balance the reconstruction and KL terms, requires careful tuning, adding complexity to the training process.
More recently, probability flows have emerged as powerful tools for high-fidelity density estimation and data generation. A probability flow describes the continuous evolution of measures, or probability distributions, driven by a time-dependent vector field. This technique can transport a simple base distribution (e.g., a standard Gaussian) to a complex target distribution (the data distribution) over time. While highly flexible and capable of modeling intricate data geometries, standard probability flows intrinsically lack the notion of latent structure. They operate on the marginal distribution of the data without explicitly decomposing it into components governed by hidden variables. This limitation means that while flows excel at density estimation and generation, they do not, by themselves, provide a mechanism for discovering or encoding the underlying structured representations crucial for many scientific and analytical tasks. The gap between the expressive power of probability flows and the need for structured latent representations is precisely what Structured Flow Autoencoders aim to bridge.
Key Findings
▶ Watch: Structured Conditional Flow Matching (SCFM) training objective (4:20)
The Structured Flow Autoencoder (SFA) framework introduces several key findings and contributions that significantly advance structured probabilistic representation learning:
- Decomposition of Marginal Vector Fields (Theorem 3.1): A foundational theoretical insight is presented in Theorem 3.1, which demonstrates that the marginal vector field of a probability flow can be decomposed as a posterior expectation of conditional vector fields. This elegant decomposition reveals how the likelihood and posterior paths naturally emerge and co-evolve across time while preserving marginal fidelity. This is crucial because it allows for the joint, consistent learning of both data generation (likelihood) and latent inference (posterior) within a single flow-matching objective.
- Structured Conditional Flow Matching (SCFM) Objective: Building on Theorem 3.1, SFA proposes the SCFM objective. This objective extends standard flow matching by explicitly incorporating latent variables, matching the posterior-averaged conditional vector field to a prescribed marginal reference field. SCFM enables the joint learning of conditional vector fields (for the decoder/likelihood) and posterior approximations (for the encoder/posterior) while ensuring the marginal density is accurately modeled. Intuitively, it solves a "demixing problem," decomposing observed signals into likelihood and latent structure components.
- Path Consistency and Stable Training: Unlike VAEs that optimize an ELBO, SFA's objective is rooted in path consistency within the space of probability distributions. This fundamental difference leads to remarkably stable training, even when employing highly flexible likelihood models. The inherent stability addresses a major challenge in generative modeling, particularly the "posterior collapse" often observed in VAEs.
- Computational Efficiency and Simplified Training:
- No Likelihood Evaluation During Training: A significant practical advantage of SCFM is that it does not require explicit evaluation of the likelihood function during training. This bypasses a common computational bottleneck, especially for high-dimensional and complex data where likelihoods are often intractable or computationally expensive.
- No
betaParameter Tuning: SFA eliminates the need for abetaparameter to balance reconstruction and regularization terms, a common heuristic in VAEs. This simplifies the training process by removing a critical hyperparameter that often requires extensive tuning.
- Adaptability to Diverse Latent Structures: The SCFM objective is highly adaptable, allowing for the incorporation of different graphical models to specify the latent structure. The talk demonstrates three instantiations: a continuous latent space (standard amortized inference), finite mixture models (for cluster assignment inference), and latent dynamics models (for sequential data with a Markov prior). This flexibility makes SFA applicable to a wide range of problems requiring different types of structured representations.
- Improved Density Estimation and Structured Latent Representations: Experimental results on datasets like pinwheels and MNIST demonstrate SFA's ability to achieve superior density estimation, recover meaningful latent signals, and produce diverse generations, outperforming VAE variants and even latent flow matching methods that suffer from collapse. The visualization of latent and observation paths further confirms that SFA learns structured transports, with likelihood paths conditioned on learned representations clearly separated by underlying classes.
Technical Deep Dive
▶ Watch: Key advantages of SFA over Variational Autoencoders (VAEs) (7:00)
At the heart of Structured Flow Autoencoders (SFA) is the integration of continuous probability flows with explicit latent structure. A probability flow is a continuous evolution of measures, $\rho_t$, driven by a time-dependent vector field, $v(t, x)$. This vector field describes how particles move from a simple base distribution ($\rho_0$) at time $t=0$ to a complex target distribution ($\rho_1$) at time $t=1$. Probability flows are highly expressive for density estimation and data generation, but they lack an inherent mechanism for latent structure.
SFA addresses this by introducing a core theoretical insight: Theorem 3.1. This theorem states that the marginal vector field, $v_t(x)$, can be decomposed as a posterior expectation of conditional vector fields:
$v_t(x) = E_{q_t(z|x)}[v_t(x|z)]$.
Here, $v_t(x|z)$ represents a conditional vector field that moves particles according to local trajectories given a latent variable $z$. The marginal field $v_t(x)$ is thus a mixture of these local dynamics, weighted by the posterior $q_t(z|x)$. This decomposition is profound because it ensures that if the velocity is split into conditional pieces, both the likelihood $p_t(x|z)$ and the posterior $q_t(z|x)$ naturally emerge. Crucially, the marginal fidelity is preserved by construction, meaning the induced marginal path from $v_t$ is consistent with the true marginal path $p_t(x)$ in the probability space. This theorem motivates the joint learning of likelihood and posterior paths that co-evolve across time while maintaining overall data fidelity.
The two co-evolving probability paths can be visualized as starting from a base distribution (e.g., standard Gaussian) at time $t=0$. As time progresses to $t=1$, the conditional likelihood paths $p_t(x|z)$ and the posterior paths $q_t(z|x)$ evolve together. At time $t=1$, the model arrives at the desired likelihood and posterior for the observed data. The connection between these paths is precisely through Theorem 3.1, allowing for parameterization with learnable parameters linked to marginal observations.
Structured Conditional Flow Matching (SCFM) Objective
To implement this theoretical framework, SFA introduces the Structured Conditional Flow Matching (SCFM) objective. This objective extends standard flow matching by explicitly incorporating latent variables. It parameterizes the conditional vector fields (for the decoder/likelihood) with parameters $\theta$ and the amortized posterior (for the encoder) with parameters $\eta$. The objective involves matching the posterior-averaged conditional vector field to a prescribed marginal reference field, which provides an optimal transport path.
Minimizing this objective function allows for jointly learning:
- The conditional vector fields, forming the basis of the decoder (likelihood).
- The posterior approximation, acting as the encoder.
- The marginal density, ensuring faithful reconstruction of observed data.
Intuitively, SCFM solves a demixing problem: it decomposes the observed signals into a likelihood component (how data is generated given a latent code) and a latent structure component (the underlying hidden variables), all while preserving the marginal fidelity of the overall data distribution. An important aspect of SCFM is its adaptability to different latent structures through factorization, enabling the framework to accommodate various graphical models.
SFA Architecture Components
SFA is composed of three primary components:
- Graphical Model Prior: This component specifies the inherent latent structure. SFA is versatile and can incorporate various types of priors:
- Continuous Latent: This is the standard setting for amortized inference, where the latent variable $z$ is continuous.
- Finite Mixture Models: Here, additional latent variables (e.g., $\psi$) are introduced to infer cluster assignments, allowing SFA to discover discrete groupings within the data.
- Latent Dynamics: For sequential data, a Markov prior can be prescribed for the latent variables, enabling SFA to model temporal dependencies.
In all these cases, the likelihood is a conditional probability path parameterized by continuous normalizing flows, while the posterior factorization adapts according to the imposed graphical structure.
- Flexible Likelihood: The likelihood $p(x|z)$ in SFA is parameterized by conditional continuous normalizing flows (CNFs). CNFs are highly expressive models capable of capturing complex, high-dimensional data distributions. A key practical advantage here is that due to the $L_2$ matching norm used in the SCFM objective, the likelihood never needs to be explicitly evaluated during training. This offers a major computational advantage, bypassing the often intractable or expensive computation of likelihoods in high-dimensional spaces.
- Learnable Amortized Posterior: The posterior $q(z|x)$ is parameterized by neural networks and learned jointly with the likelihood. For the posterior, several options exist:
- A conditional CNF for the posterior would be maximally expressive, allowing for complex posterior distributions. However, sampling from it (which is needed for Monte Carlo approximation in the objective) requires solving Ordinary Differential Equations (ODEs) during training, making it computationally expensive.
- In practice, simpler Gaussian parametric families or other parametric families indexed by $t$ and $x$ have been found to work very well. These options are significantly more efficient in terms of training stability and computational cost, offering a good balance between expressiveness and practicality.
Comparison with Variational Autoencoders (VAEs)
The following table summarizes the key differences between SFA and VAEs, highlighting SFA's advantages:
| Feature | Variational Autoencoder (VAE) | Structured Flow Autoencoder (SFA) |
| :------------------------ | :------------------------------------------------------------ | :--------------------------------------------------------------------- |
| Objective | Evidence Lower Bound (ELBO) | Path consistency in probability distribution space (SCFM) |
| Likelihood Evaluation | Required during training | No likelihood evaluation needed during training |
| beta Parameter | Often requires beta parameter to balance reconstruction and KL terms | No beta parameter required |
| Training Stability | Can suffer from posterior collapse, sensitive to likelihood flexibility | Achieves stable training under very flexible likelihood models |
| Flexibility | Often relies on simpler likelihoods (e.g., Gaussian, Bernoulli) | Highly flexible, leverages continuous normalizing flows for likelihood |
| Latent Structure | Typically simple priors (e.g., isotropic Gaussian) | Adaptable to diverse graphical model priors (continuous, mixture, dynamics) |
This comparison underscores how SFA addresses fundamental limitations of VAEs, offering a more robust, computationally efficient, and flexible framework for learning structured representations.
Training and Inference Pipeline
Training:
- Reference Path Transport: Data is transported along a prescribed reference path from a simple noise distribution to the complex data distribution.
- Amortized Posterior Sampling: Samples are drawn from the amortized posterior $q_t(z|x)$, which is factorized according to the chosen graphical model.
- Vector Field Matching: The conditional vector field $v_t(x|z)$ is matched to the reference field using the proposed SCFM loss function. This jointly trains the likelihood and posterior.
Inference (Generation):
- Latent Sample: A latent variable $z_0$ is sampled from the prior distribution.
- Noise Sample: A noisy data point $x_0$ is sampled (e.g., from a standard Gaussian).
- Conditional ODE Solve: The conditional Ordinary Differential Equation (ODE) is solved forward using the learned conditional vector field $v_t(x|z)$ to obtain the generated data point $x_1$.
Inference (Latent Inference):
- Given any observation $x$, the latent variable $z$ is directly sampled from the learned amortized posterior $q(z|x)$.
This streamlined pipeline enables efficient generation and inference, leveraging the jointly learned flow paths.
Experimental Setup & Results
▶ Watch: Experimental results: Density estimation and latent clustering (8:40)
The effectiveness of Structured Flow Autoencoders (SFA) was demonstrated through experiments on synthetic and real-world datasets, comparing its performance against established baselines like Variational Autoencoders (VAEs) and other flow-based methods.
Datasets and Tasks:
- Pinwheel Dataset: A synthetic dataset consisting of a mixture of five distinct pinwheel-shaped components. This dataset is a common benchmark for density estimation and disentangled representation learning, challenging models to capture complex, non-Gaussian distributions and identify underlying clusters.
- MNIST Dataset: The widely-used dataset of handwritten digits (0-9). This dataset serves to evaluate SFA's ability to perform density estimation, learn meaningful latent representations that correspond to digit classes, and generate diverse and high-quality images.
Baselines:
- Variational Autoencoder (VAE) Variants: Representing the standard approach for latent variable modeling.
- Latent Flow Matching: A related flow-based method that aims to learn latent representations.
Metrics and Observations:
- Density Estimation and Latent Signal Recovery (Pinwheel Dataset):
- SFA: Demonstrated very good density estimation capabilities, accurately capturing the intricate structure of the five pinwheel components. Crucially, SFA was able to recover meaningful latent signals, indicating that its learned latent space reflected the underlying generative factors of the data.
- VAE Variants: Showed less satisfactory density estimation, often failing to fully capture the complexity of the pinwheel distribution. Their latent representations were also less distinct or meaningful.
- Latent Flow Matching: While flow-based, this baseline exhibited "collapse" phenomena, where the density concentrated on lines or collapsed to simpler structures, indicating a failure to capture the full data distribution. This highlights SFA's superior stability and ability to maintain expressive power.
- Latent Clustering and Generation Diversity (MNIST Dataset):
- SFA: Achieved excellent latent clustering, meaning that samples belonging to the same digit class were grouped together in the learned latent space, while different digit classes were clearly separated. This demonstrates SFA's ability to learn semantically meaningful and structured representations. Furthermore, SFA was capable of generating diverse and high-quality digit images, showcasing its robust generative capacity.
- Path Visualization (MNIST):
- The talk presented visualizations of the latent and observation paths using 1D PCA projections. Each line in these plots corresponded to a sample from a different digit class.
- Latent Path: On the left, the latent path given observed samples $x_1$ showed that latent trajectories diverged smoothly from a shared noise distribution. This implies that SFA learns a structured transport where initial noise is progressively shaped into distinct latent codes corresponding to different digit classes.
- Observation Path: On the right, the observation path given the posterior sample $z_1$ clearly illustrated that the likelihood paths, conditioned on the learned latent representations, were distinctly separated by digit classes. This provides compelling visual evidence that the posterior effectively encodes meaningful latent representations, and the conditional likelihoods generate data faithfully according to these representations. The smooth, separated trajectories confirm that SFA not only learns good representations but also a coherent and interpretable flow for both latent and data spaces.
In summary, the experimental results consistently demonstrate that SFA provides significant improvements across different modalities and tasks. It effectively overcomes limitations of prior methods by offering superior density estimation, robust latent signal recovery, high-quality generation, and stable training, all while learning structured and interpretable representations.
Practical Implications
▶ Watch: Q&A: How SFA avoids posterior collapse during training (11:40)
The Structured Flow Autoencoder (SFA) framework carries several significant practical implications for practitioners, infrastructure teams, model builders, and deployers in the AI/ML landscape.
For model builders and researchers, SFA offers a powerful and flexible tool for tackling complex generative modeling and representation learning tasks. Its ability to incorporate diverse graphical model priors means it can be adapted to specific problem structures, whether that involves discovering discrete clusters, continuous latent factors, or temporal dependencies in sequential data. This adaptability makes SFA particularly valuable in scientific domains, such as computational biology or neuroscience, where understanding underlying structure is as critical as generating realistic data. The framework's inherent stability, even with highly expressive likelihood models (like CNFs), mitigates common headaches like posterior collapse, allowing researchers to focus more on model design rather than battling training instabilities.
For infrastructure teams and deployers, the computational advantages of SFA are noteworthy. The elimination of explicit likelihood evaluation during training significantly reduces computational cost and complexity. This can lead to faster training cycles and potentially lower resource consumption, especially when dealing with very high-dimensional data where likelihood computations are often intractable or extremely expensive. Furthermore, the absence of a beta parameter, which traditionally balances reconstruction and regularization in VAEs, simplifies the hyperparameter tuning process. This reduces the engineering effort required for model optimization and makes SFA models easier to train and deploy reliably. The "path consistency" objective, as opposed to ELBO maximization, also contributes to more predictable and robust training behavior, which is crucial for operationalizing ML models.
However, practitioners should also be aware of the tradeoffs and limitations. While SFA offers flexibility, the choice of the posterior parameterization involves a balance. Using a conditional Continuous Normalizing Flow (CNF) for the posterior, while maximally expressive, can be computationally intensive during training due to the need to solve ODEs for sampling. Opting for simpler parametric families (e.g., Gaussian) for the posterior offers greater efficiency and stability but might sacrifice some expressiveness. The choice will depend on the complexity of the latent structure and the available computational resources.
A key limitation highlighted by the speaker is that the graphical model prior in the current SFA framework is pre-specified. This means the user must define the expected latent structure (e.g., continuous, mixture, Markovian) based on domain knowledge. For many real-world problems, the true underlying causal or structural relationships are unknown and ideally should be learned directly from the data. The speaker acknowledges this as a crucial area for future work, aiming to extend SFA to discover identifiable and decomposable latent structures that can be manipulated for out-of-domain generation or causal inference. This future direction would further enhance SFA's utility by making it a more autonomous discovery tool rather than purely a modeling tool given a hypothesized structure.
In essence, SFA provides a robust, flexible, and computationally efficient framework for structured representation learning, offering significant advantages over prior methods. Its practical implications span from enabling more stable and efficient model development to opening new avenues for scientific discovery, albeit with ongoing research needed to fully automate the discovery of latent graphical structures.
Key Takeaways
- Structured Flow Autoencoders (SFA) is a novel framework for jointly learning structured probabilistic representations and faithful generative models from high-dimensional data.
- The core innovation is a theoretical decomposition (Theorem 3.1) that allows the marginal vector field of a probability flow to be expressed as a posterior expectation of conditional vector fields, enabling co-evolution of likelihood and posterior paths.
- The Structured Conditional Flow Matching (SCFM) objective facilitates stable, joint training of the likelihood (decoder) and amortized posterior (encoder) without requiring explicit likelihood evaluation.
- SFA achieves path consistency in probability space, leading to highly stable training and avoiding issues like posterior collapse, common in VAEs.
- The framework is highly adaptable to various latent structures, supporting continuous latent variables, finite mixture models, and latent dynamics for sequential data.
- SFA offers significant practical advantages: no likelihood evaluation during training, no
betaparameter tuning, and improved density estimation, latent clustering, and generation diversity compared to VAEs and other flow matching methods.
About the Speaker(s)
Yidan Xu is a researcher from the University of Michigan. She presented the work on Structured Flow Autoencoders, which is a joint effort with her advisors, Yixin Wang and XuanLong Nguyen. While specific titles for Yixin Wang and XuanLong Nguyen were not explicitly stated in the transcript, their role as advisors to Yidan Xu at the University of Michigan indicates their involvement in guiding this research. The presentation focused on Yidan Xu's contributions to developing the SFA framework and its theoretical and practical implications in learning structured probabilistic representations.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026