Noise-Robust Conditional Flow Matching: Generating Clean Samples from Noisy Datasets

Adrian Urbański, Gabriel della Maggiora, Artur YakimovicharXiv 2026

TL;DR

Noise-Robust Conditional Flow Matching (NR-CFM) is a new generative modeling framework that learns to generate perfectly clean samples even when trained entirely on noisy datasets. By leveraging mathematical identities on the "observed noisy bridge," it provides a closed-form correction for standard white noise and a learned, data-driven correction for complex, signal-dependent, or spatially structured Gaussian corruptions.

What Problem Does This Paper Address?

Deep generative models are notorious copycats: they excel at learning the statistical properties of their training data. If your dataset is pristine, you get pristine generations. But in fields like scientific imaging (e.g., cryo-electron microscopy or medical imaging), capturing clean reference data is often physically impossible, highly toxic (due to radiation doses), or prohibitively expensive.

If you train a standard generative model directly on these noisy measurements, it simply learns to generate noisy images. To fix this, researchers have tried building "ambient" generators that learn the underlying clean distribution from corrupted observations. However, existing methods either struggle with complex, signal-dependent noise or suffer from the training instabilities common to Generative Adversarial Networks (GANs). NR-CFM addresses this by bringing noise robustness to Conditional Flow Matching (CFM), a framework praised for its stable regression-based training and fast, deterministic sampling.

Methods

Instead of trying to model a path directly to the unobserved clean data, NR-CFM trains a standard flow-matching model on the observed bridge—the path leading from a standard Gaussian prior directly to the noisy data distribution.

The authors derive a key mathematical insight: the velocity field learned by this noisy model implicitly contains the score function (the gradient of the log-density) of the noisy data. By applying a modified version of the Gaussian Tweedie identity, they show that this score function can be used to project the noisy states back onto the clean data distribution.

NR-CFM handles two main regimes:

  1. Additive White Gaussian Noise (AWGN): The correction term can be computed analytically in closed form directly from the learned velocity field.
  2. General Gaussian Corruption: For complex scenarios where the noise is spatially correlated (like Brown noise) or depends on the image itself, the authors introduce a data-driven correction network. This network is trained using a clever "re-corruption" strategy: during training, they add a tiny, controlled amount of additional noise to the sample, allowing the network to learn the local noise covariance structure without ever seeing a clean image.

During generation, the model integrates the ordinary differential equation (ODE) along the noisy bridge but stops just short of the finish line (at a cutoff like $t_{cut} = 0.95$ or $0.98$). It then applies the clean posterior endpoint map to make a final, clean jump to the target distribution, avoiding numerical instabilities.

Sample trajectories for NR-CFM on CelebA-HQ showing the denoising process over time.

Datasets

The authors evaluated their method across several standard computer vision datasets and a specialized scientific benchmark:

  • CIFAR-10, LSUN Bedroom, and FFHQ: Used to benchmark against prior noise-robust GAN methods across 16 different synthetic Gaussian corruption settings (including patch-based noise, multiplicative noise, and blurred noise).
  • CelebA-HQ: Used for detailed comparisons against diffusion-based methods under standard white noise.
  • CryoBench (IgG-1D subset): A challenging scientific imaging dataset simulating heterogeneous cryo-EM image stacks at extreme signal-to-noise ratios (SNRs) down to 0.001.

Key Insights and Ideas

  • The Noisy Flow Knows the Score: The most elegant realization in the paper is that you don't need to train a separate score-based model to clean up the samples. The velocity field of a flow-matching model trained on noisy data inherently holds the keys to the score function of the noisy marginal distribution.
  • Oracle Cutoffs Prevent Blowups: The score-based correction term scales with a factor of $(1-t)^{-1}$. As the generation path approaches the final endpoint ($t=1$), this term approaches infinity, amplifying minor estimation errors. Stopping slightly early and using the endpoint map acts as a vital numerical stabilizer.
  • Re-corruption Isolates Covariance: By intentionally corrupting already-noisy data with a known perturbation tied to the sample's metadata, the model can isolate complex, sample-specific noise structures entirely self-supervised.

Key Results

NR-CFM demonstrated substantial improvements over prior work in both natural and scientific image domains:

  • Outperforming NR-GAN: On the CIFAR-10 benchmark, NR-CFM outperformed the best variants of NR-GAN across every single evaluated Gaussian corruption setting, often reducing the Fréchet Inception Distance (FID) by more than half.
  • High-Noise Robustness: When compared against Ambient Diffusion under standard white noise, NR-CFM proved highly competitive and actually achieved lower FID scores in severe noise regimes ($\sigma = 0.2$).
  • Extreme Scientific Stress Test: On the CryoBench dataset at an astonishingly low SNR of 0.001 (where the training images look like pure static), NR-CFM successfully generated highly plausible, clean particle structures.
Figure 1: Unconditional generation from corrupted training observations with NR-CFM. The left panels show training images corrupted with additive Gaussian noise and Brown Gaussian noise. The right panels show samples generated from a Gaussian prior by models trained on the corresponding corrupted datasets. Training uses the corrupted observations together with the covariance or measurement metadata required by each corruption model.

Limitations and Future Work

While powerful, NR-CFM currently has a few notable limitations:

  • Requires a Known Noise Model: The framework assumes that the noise covariance structure (or the metadata to calculate it) is known during training. It cannot operate completely blindly like some GAN-based alternatives.
  • Restricted to Gaussian Families: The mathematical derivations rely heavily on Gaussian properties. While it handles complex, signal-dependent Gaussian noise, it cannot currently handle Poisson or other non-Gaussian noise distributions directly.
  • Single-Corruption Models: Each model must be trained for a specific type of corruption, making deployment difficult if a dataset contains a mixture of unlabelled noise types.

The authors point to relaxing the known-noise assumption and extending the framework to non-Gaussian noise channels as highly promising directions for future research.

Summary updated

BibTeX
@misc{urbanski2026noise,
  author = {Adrian Urbański and Gabriel della Maggiora and Artur Yakimovich},
  title = {{Noise-Robust Conditional Flow Matching: Generating Clean Samples from Noisy Datasets}},
  year = {2026},
  eprint = {2608.00064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.00064},
}
Figure