NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Better Source, Better Flow: Learning Condition-Dependent Source Distribution for Flow Matching

Junwan Kim, Jiho Park, Seonghu Jeon, Seungryong Kim

TL;DR

While Flow Matching frameworks theoretically allow for arbitrary source distributions, most modern text-to-image models still default to a standard, uninformative Gaussian prior. This paper introduces Condition-dependent Source Flow Matching (CSFM), which jointly learns a text-conditioned source distribution alongside the velocity field. By stabilizing training with variance-only regularization and directional alignment, CSFM straightens generative trajectories and accelerates convergence by up to 3×.

What Problem Does This Paper Address?

Flow Matching (FM) has emerged as a powerful alternative to diffusion models for generating high-fidelity images from text. At its core, FM learns a velocity field that transports samples from a simple source distribution to a complex target data distribution.

However, almost all state-of-the-art FM systems inherit a standard Gaussian source distribution from the diffusion era. This means that regardless of whether your prompt is "a cute dog" or "a giraffe," the generative process starts from the exact same random noise space. This mismatch creates highly curved, entangled transport paths during training, leading to high gradient variance and slower convergence.

While previous works have tried to introduce condition-dependent sources, doing so at scale for text-to-image (T2I) generation introduces severe challenges:

  1. Source Collapse: Jointly optimizing the source and the flow model often drives the source variance to zero, causing the distribution to collapse into a deterministic mapping.
  2. Weak Supervision: Modern, highly capacity T2I architectures are so good at absorbing conditioning signals within the velocity network itself that the source generator receives very little incentive to learn meaningful structures.
Figure 1: Condition-dependent Source Flow Matching (CSFM). Flow matching does not require the source distribution to be a fixed standard Gaussian. We leverage this flexibility by learning a condition-dependent source distribution, making flow matching easier to train and improving generation performance. Qualitative examples illustrate improved generation quality.

Methods

The authors propose CSFM, a framework that jointly trains a source generator network alongside the flow model under the flow-matching objective. To overcome the optimization hurdles mentioned above, they introduce two key training components:

  • Variance-Only Regularization ($\mathcal{L}_{\text{VarReg}}$): Standard approaches use KL-divergence to regularize learned distributions, which forces both the mean and variance toward a standard Gaussian. CSFM instead uses a variance-only penalty. This anchors the stochastic support (preventing collapse) while allowing the conditional mean to move freely toward target data modes.
  • Directional Source–Target Alignment ($\mathcal{L}_{\text{align}}$): To counteract weak supervision from the flow network, the authors introduce an explicit negative cosine similarity loss between the source samples and target samples. This provides direct, directional guidance to the source generator without constraining its mobility or shrinking its variance.
Analysis of different source regularization strategies on synthetic datasets

Datasets

The method was validated using the following datasets and benchmarks:

  • Captioned ImageNet-1K: To facilitate controlled, standardized T2I evaluation, the authors used Qwen3-VL-8B-Instruct to generate detailed, descriptive captions for ImageNet-1K images, moving away from simple class-level labels.
  • BLIP3o: A large-scale pretraining dataset containing approximately 36 million samples, used to scale CSFM up to a 1.3B parameter model.
  • GenEval & DPG-Bench: Standardized benchmarks used to evaluate compositional text adherence and overall text-to-image quality at scale.

Key Insights and Ideas

  • The Geometry of the Target Space Matters: One of the paper's most compelling insights is that condition-dependent source learning is highly dependent on where you embed your images. It provides massive gains when using semantically structured target spaces—like Representation Autoencoders (RAE) based on DINOv2 or SigLIP2—where images sharing a text prompt naturally cluster together. In contrast, the benefits diminish in entangled spaces like the standard Stable Diffusion VAE.
  • Path Straightening via Source Learning: By aligning the source distribution with the target distribution based on the text condition, the model drastically reduces "path ambiguity" (where multiple trajectories cross the same spacetime point with conflicting velocities). This naturally straightens the flow trajectories.
t-SNE visualization showing how structured target spaces yield cleaner, more discriminative source distributions

Key Results

  • Massive Training Speedups: In the structured RAE latent space, CSFM achieved up to a 3.01× faster convergence in FID and a 2.48× speedup in CLIP Score compared to standard Gaussian-source baselines.
  • Robustness Across Architectures: The authors integrated CSFM into three distinct modern DiT backbones (LightningDiT, MMDiT, and UnifiedNextDiT) and observed consistent performance improvements across all of them.
  • Superior Few-Step Generation: Because the learned source straightens the generative trajectories, CSFM degrades much more gracefully than standard FM when the number of sampling steps is reduced (e.g., down to 3 steps).

Limitations and Future Work

  • Scale: While the authors successfully scaled their method to a 1.3B parameter model, evaluating CSFM at the scale of proprietary frontier models (tens of billions of parameters) remains future work.
  • Guidance Mechanisms: CSFM does not naturally accommodate standard Classifier-Free Guidance (CFG) because it lacks a clean unconditional branch. Instead, it relies on AutoGuidance, though exploring alternative guidance formulations remains an open path.
  • Cross-Modality: The current study focuses entirely on text-to-image generation; extending condition-dependent sources to text-to-audio or text-to-video is yet to be explored.

Summary updated

BibTeX
@inproceedings{kim2026better,
  author = {Junwan Kim and Jiho Park and Seonghu Jeon and Seungryong Kim},
  title = {{Better Source, Better Flow: Learning Condition-Dependent Source Distribution for Flow Matching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vtr94l6tFI},
}
Figure