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

Posterior Augmented Flow Matching

George Stoica, Sayak Paul, Matthew Wallingford, Vivek Ramanujan, Abhay Nori, Winson Han, Ali Farhadi, Ranjay Krishna, Judy HoffmanarXiv 2026

TL;DR

Standard Flow Matching (FM) trains generative models using a sparse, one-to-one supervision signal that can cause high gradient variance and "flow collapse." Posterior-Augmented Flow Matching (PAFM) resolves this by supervising the model over an entire posterior distribution of multiple plausible target completions for any intermediate state. This theoretically grounded approach acts as an unbiased estimator of the FM objective that significantly stabilizes training and improves image generation quality with negligible computational overhead.

What Problem Does This Paper Address?

Continuous-time generative models, such as Flow Matching, learn a time-dependent vector field to transport a simple source distribution (like Gaussian noise) into a complex data distribution (like natural images). During training, standard FM samples a source point and a target point, defines a trajectory between them, and tasks the model with predicting the velocity at a random intermediate point along that path.

Figure 1: Left: Standard FM provides a sparse, one-to-one supervision signal, pairing each interme- diate point with a single target and yielding a single plausible flow. Right: Our PAFM aggregates supervision over the full posterior of compatible targets, producing a denser, more coherent set of plausible flows from each intermediate.

However, this one-to-one supervision introduces a fundamental challenge: sparse supervision. In high-dimensional spaces, a single intermediate state could logically evolve into countless valid targets under the same condition (for example, many different images can satisfy the text prompt "a photo of a dog"). Because standard FM only exposes the model to a single arbitrarily sampled target per trajectory, the training signal becomes highly noisy and under-constrained. This often leads to flow collapse, where the model memorizes specific source-target pairings and fails to generalize, resulting in muddled or overly similar outputs.

Methods

PAFM generalizes the standard Flow Matching objective by replacing single-target supervision with an expectation over an approximate posterior of all valid target completions for a given intermediate state and condition.

To make this intractable posterior practical to compute, the authors factorize it into two components:

  1. The conditional probability path likelihood: How likely is the intermediate state given a hypothesized target endpoint? (Derived exactly from the Gaussian path assumptions of FM).
  2. The condition likelihood: How well does the target match the conditioning variable (e.g., class label or text prompt)?

Using Self-Normalized Importance Sampling (SNIS), PAFM draws a finite set of $K$ candidate targets for each intermediate point and weights them according to this approximate posterior. Instead of being pulled toward a single random endpoint, the model learns to follow the average direction toward all compatible outcomes.

The authors prove that PAFM is a mathematically unbiased estimator of the original FM objective (reducing exactly to standard FM when $K=1$) while provably lower-bounding and reducing gradient variance.

The framework is agnostic to how candidate targets are selected. The paper explores three practical strategies:

  • Nearest Neighbors: Retrieving the $K$-nearest neighbors of a training sample in latent space using precomputed FAISS indices.
  • Source Augmentations: Generating multiple spatial views (random resize crops) of the target image online.
  • VAE Resampling: Sampling multiple times from the variational autoencoder's latent moment distribution.

Datasets

The authors evaluated PAFM across both class-conditioned and text-conditioned image generation tasks using:

  • ImageNet-1K: Used for class-conditioned generation benchmarks at $256\times256$ resolution.
  • CC12M (Conceptual Captions): A large-scale dataset used for text-to-image generation benchmarks.
  • Synthetic 2D Crescent Moons: A toy dataset used for qualitative analysis of velocity fields and data sparsity.

Key Insights and Ideas

  • Smoothing the Vector Field: By aggregating gradients from multiple plausible continuation trajectories, PAFM prevents the model from over-indexing on arbitrary source-target pairings. This results in a much cleaner, more coherent global flow field.
  • The "Free Lunch" of Precomputation: By using FAISS to index and retrieve nearest neighbors during data preprocessing, the model gains the benefits of multi-target supervision during training without incurring heavy online computational costs.
  • Bias-Variance Tradeoff in $K$: Increasing the number of candidate targets ($K$) reduces gradient variance but can introduce bias if the candidates are geometrically too distant from the true target. The authors found that performance typically peaks at a moderate value (e.g., $K=16$).

Key Results

  • Image Quality Improvements: On ImageNet-1K, PAFM consistently outperformed standard FM across different model scales. For the SiT-B/2 architecture, PAFM improved the Fréchet Inception Distance (FID50K) from 27.57 to 24.88 ($K=16$). For the larger SiT-XL/2 model, it improved FID from 11.14 to 9.85.
  • Text-to-Image Gains: On the challenging CC12M dataset using the MMDiT architecture, PAFM enhanced the text-to-image generation performance, lowering the FID50K from 10.37 to 9.45.
  • Variance Reduction: Empirically, PAFM reduced mini-batch gradient variance by ~4$\times$ compared to standard FM midway through training, leading to significantly more stable gradient updates.
  • Minimal Overhead: Despite supervising over multiple trajectories simultaneously, PAFM only decreased training throughput by a marginal 6.6% and increased peak memory consumption by a negligible 0.4%.

Limitations and Future Work

  • Simplified Text Conditioning: For text-to-image generation on CC12M, the authors used a simplified uniform assumption over a semantically pre-filtered candidate set. They note that integrating a more sophisticated, dynamic condition likelihood model—such as using CLIP to explicitly score text-image alignment—is an open direction for future work.
  • Hyperparameter Sensitivity: The optimal target selection strategy and the choice of $K$ vary depending on the dataset, modality, and architecture, requiring empirical tuning for new setups.

Summary updated

BibTeX
@misc{stoica2026posterior,
  author = {George Stoica and Sayak Paul and Matthew Wallingford and Vivek Ramanujan and Abhay Nori and Winson Han and Ali Farhadi and Ranjay Krishna and Judy Hoffman},
  title = {{Posterior Augmented Flow Matching}},
  year = {2026},
  eprint = {2605.00825},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.00825},
}
Figure