Structured Coupling for Flow Matching

Xavier Sumba, Carles Balsells-Rodas, Yingzhen Li

TL;DR

This paper introduces Structured Coupling for Flow Matching (SCFM), a novel framework that combines the strengths of flow matching (high-quality generation) and latent-variable models (interpretable structure). SCFM learns a structured latent representation within the flow matching process, enabling better clustering, disentanglement, and downstream task performance without sacrificing generative fidelity.

What Problem Does This Paper Address?

Generative models like diffusion models and flow-based models have achieved impressive results in generating high-quality samples. Flow matching, a specific type of flow-based model, is particularly scalable and efficient. However, standard flow matching typically uses a fixed, unstructured "source" distribution (like a simple Gaussian noise). This means the learned generative process doesn't explicitly encourage or learn interpretable structure in the data's latent representation. On the other hand, latent-variable models (like VAEs) excel at learning structured representations but often struggle with generating high-fidelity samples. This creates a gap: models that learn structure often sacrifice sample quality, and models that produce high-quality samples often lack interpretable structure. SCFM aims to bridge this gap by jointly learning both a structured latent representation and a continuous transport map.

Methods

SCFM builds upon flow matching by introducing a structured source distribution. Instead of a simple noise vector, the source x0 is now composed of two parts: z (a structured latent representation) and ε (exogenous noise).

Key innovations include:

  • Encoder-Induced Coupling: An encoder network learns to map data points x1 to the structured latent z. This encoder is trained jointly with the flow matching objective. This means the "source" distribution is no longer fixed but is dynamically learned and structured based on the data.
  • Shared Recognition Network: A single neural network acts as both the variational encoder for the latent variable model (at the endpoint t=1) and as the posterior mean estimator for the flow velocity at intermediate times (t < 1). This shared architecture promotes consistency between the latent representation learning and the flow generation.
  • Time-Split Objective: The training objective is split into two parts:
  • An intermediate-time regime (t < 1) that uses a variational flow matching objective to train the shared network.
  • An endpoint regime (t = 1) that uses a VAE-style objective to align the learned latent prior p(z) with the aggregated posterior q(z|x1). This encourages z to capture meaningful semantic structure.
  • Decoder-Initialized Refinement: SCFM can leverage its VAE component to initialize the flow sampling process. Instead of starting from random noise, it can start from a sample generated by the decoder, and then use the flow to refine it. This offers a trade-off between sampling speed and quality.

Datasets

The paper evaluates SCFM on several standard datasets:

  • MNIST: For clustering and latent space visualization.
  • CIFAR-10: For representation quality evaluation (linear/nonlinear probes) and image generation.
  • Cars3D and Shapes3D: For disentanglement evaluation.
  • ImageNet-128: For large-scale representation quality evaluation and image generation.

Key Insights and Ideas

  • Structure within Flow Matching: The core idea is that the latent structure doesn't need to be learned separately from the generative process. By making the source distribution structured and learnable, flow matching can inherently learn interpretable representations.
  • Cooperative Learning: The VAE component and the flow matching component work together. The VAE guides the structure of the latent space, while the flow uses this structured latent space to generate high-quality samples.
  • Unconditional Generation with Structure: SCFM achieves structured latent representations without explicit conditioning signals during generation. The structure emerges from the learned prior and the encoder-decoder coupling.
  • Decoder-Initialized Refinement as a Trade-off: Using the decoder to initialize the flow offers a way to achieve good sample quality with fewer computational steps than full ODE integration.

Key Results

  • Improved Representation Quality: SCFM significantly outperforms VAE-based baselines on MNIST clustering (e.g., ~8 points higher NMI and ~13 points higher ACC for SCFM (β-VAE) vs. VaDE). It also shows strong performance on CIFAR-10 and ImageNet-128 latent probe accuracy, indicating that the learned latent space captures more class-relevant information.
  • Competitive Sample Quality: SCFM achieves FID scores comparable to standard flow matching baselines on CIFAR-10 (2.117 vs. 2.137) and ImageNet-128 (17.180 vs. 17.243 for conditional baseline), demonstrating that learning structure does not degrade generative quality.
  • Effective Disentanglement: SCFM shows competitive disentanglement scores on Cars3D and Shapes3D, comparable to or exceeding VAE-based methods.
  • Efficient Refinement: Decoder-initialized refinement provides a good quality-compute trade-off, achieving near full-flow FID with significantly fewer FLOPs.

Limitations and Future Work

  • Increased Complexity: SCFM is more computationally expensive than standard flow matching due to the added endpoint latent-variable components and the auxiliary decoder. Table 4 quantifies this overhead.
  • Dependence on Decoder Quality: Decoder-based sampling modes are sensitive to the quality of the learned latent-variable model. Poorly trained decoders or posterior collapse can degrade reconstruction and refinement quality.
  • Future Work: The authors suggest focusing on reducing the computational cost, improving decoder robustness, and extending SCFM to larger-scale, multimodal, and conditional generation tasks.

Summary updated

BibTeX
@inproceedings{sumba2026structured,
  author = {Xavier Sumba and Carles Balsells-Rodas and Yingzhen Li},
  title = {{Structured Coupling for Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=KA6cQELF6H},
}
Figure