cs.LGMar 23, 2026

Uncertainty-Aware Distribution-to-Distribution Flow Matching for Scientific Imaging

Authors: Dongxia Wu, Yuhui Zhang, Serena Yeung-Levy, Emma Lundberg, Emily B. Fox

Organizations: Stanford University Stanford, CA

Abstract

Distribution-to-distribution generative models support scientific imaging tasks ranging from modeling cellular perturbation responses to translating medical images across conditions. Trustworthy generation requires reliability, or generalization across labs, devices, and experimental conditions, and accountability, or detecting out-of-distribution cases where predictions may be unreliable. We leverage Stochastic Flow Matching (SFM), a marginal-preserving stochastic extension of flow matching for improved generalization under distribution shift. SFM augments deterministic flows with a diffusion term together with a learned score-based drift correction, retaining the learned transport marginals while modeling conditional variability. Building on this SFM framework, we introduce Bayesian Stochastic Flow Matching (BSFM) as a companion uncertainty quantification mechanism and develop AVUQ (Antithetic Variance-reduction Uncertainty Quantification) to approximately estimate epistemic and aleatoric uncertainty via sample-efficient antithetic sampling with approximate posterior inference. We further use AVUQ to yield anomaly scores for unreliable generation detection. Experiments on cellular imaging (BBBC021, JUMP) and brain fMRI (Theory of Mind) across diverse unseen scenarios show that SFM improves generalization while AVUQ provides effective uncertainty-based anomaly scores under practical sampling budgets.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Flow Matching with Uncertainty Quantification and Guidance

    Feb 10, 2026Juyeop Han, Lukas Lao Beyer, Sertac KaramanFlow MatchingImage Generation

  2. Divergence is Uncertainty: A Closed-Form Posterior Covariance for Flow Matching

    May 1, 2026Jiarui Xing, Song Wang, Jian WangFlow MatchingUncertainty Quantification

  3. Local Flow Matching Generative Models

    Oct 3, 2024Chen Xu, Xiuyuan Cheng, Yao XieFlow MatchingGenerative Modeling