VariaFlow: Uncertainty-Aware Flow Matching for Unsupervised Anomaly Detection
On the map: Diffusion models → Medical imaging and segmentation
Abstract (arXiv)
Reconstruction-based anomaly detection no longer fails at reconstruction. Generative models produce high-quality pseudo-healthy reconstructions, and the remaining difficulty is the step of scoring residuals. The residual between a scan and its reconstruction has two indistinguishable sources, genuine pathology and the anatomical variation that separates one healthy brain from another. Scoring against a single reconstruction treats both as anomalous, inflating false positives where healthy anatomy varies most while small or subtle lesions are lost in the surrounding reconstruction error. We identify the missing quantity as the predictive variance, how much a healthy reconstruction can vary at each location. We introduce VariaFlow, which estimates this variance from an ensemble of mask-guided restorations under an unconditional flow matching prior, each started from a different noise initialization, and which normalizes the residual by the resulting standard deviation. Few-step flow matching keeps the ensemble computationally affordable, and restoring at two spatial scales captures lesions of different size. Across three brain MRI datasets spanning stroke and tumor, VariaFlow is trained once on healthy anatomy and generalizes across all three, attaining the highest AUROC (0.94, 0.80, 0.78) on each and the highest AUPRC on both cross-domain datasets, exceeding the strongest baseline by 37% and 50%. Under domain shift, the same baseline drops by up to 52% in AUPRC, whereas VariaFlow stays more stable and achieves the best small-lesion Dice on all three datasets.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Medical imaging and segmentation, one of 14 directions in Diffusion models. Builds on 32 of its 45 references that are in the map. Submitted 30 Oct 2026.
Builds on
32 of 45 references.
Closest ancestors · 6
Same direction, newest first
- 2025REFLECT: Rectified Flows for Efficient Brain Anomaly Correction Transport4 Aug
- 2024Denoising Diffusion Models for Anomaly Localization in Medical Images31 Oct
- 2024Diffusion Models with Implicit Guidance for Medical Anomaly Detection13 Mar
- 2023Mask, Stitch, and Re-Sample: Enhancing Robustness and Generalizability in Anomaly Detection through Automatic Diffusion Models31 May
- 2023Patched Diffusion Models for Unsupervised Anomaly Detection in Brain MRI7 Mar
- 2022Diffusion Models for Medical Anomaly Detection8 Mar
Other references · 26
- 2020Denoising Diffusion Probabilistic Modelscited by 21,784
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 20,127
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 7,264
- 2022Flow Matching for Generative Modelingcited by 6,518
- 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 4,131
- 2022RePaint: Inpainting using Denoising Diffusion Probabilistic Modelscited by 1,474
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 811
- 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 575
- 2018Identifying the Best Machine Learning Algorithms for Brain Tumor Segmentation, Progression Assessment, and Overall Survival Prediction in the BRATS Challengecited by 533
- 2020Autoencoders for Unsupervised Anomaly Segmentation in Brain MR Images: A Comparative Studycited by 152
- 2015Brain Tumor Segmentation with Deep Neural Networkscited by 138
- 2024PnP-Flow: Plug-and-Play Image Restoration with Flow Matchingcited by 113
14 more
- 2020nnU-Net for Brain Tumor Segmentationcited by 105
- 2024Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised Anomaly Detectioncited by 103
- 2019Multi-scale self-guided attention for medical image segmentationcited by 85
- 2019Unsupervised Anomaly Localization using Variational Auto-Encoderscited by 75
- 2018Context-encoding Variational Autoencoder for Unsupervised Anomaly Detectioncited by 67
- 2020Unsupervised Lesion Detection via Image Restoration with a Normative Priorcited by 66
- 2021The University of California San Francisco Preoperative Diffuse Glioma MRI (UCSF-PDGM) Datasetcited by 50
- 2019Introducing Hann windows for reducing edge-effects in patch-based image segmentationcited by 19
- 2024Leveraging the Mahalanobis Distance to enhance Unsupervised Brain MRI Anomaly Detectioncited by 12
- 2024IterMask2: Iterative Unsupervised Anomaly Segmentation via Spatial and Frequency Masking for Brain Lesions in MRIcited by 10
- 2025Anomaly Detection by Clustering DINO Embeddings using a Dirichlet Process Mixturecited by 8
- 2024Revisiting Deep Ensemble Uncertainty for Enhanced Medical Anomaly Detectioncited by 6
- 2025Restora-Flow: Mask-Guided Image Restoration with Flow Matchingcited by 2
- 2026URA-Net: Uncertainty-Integrated Anomaly Perception and Restoration Attention Network for Unsupervised Anomaly Detectioncited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Guided Reconstruction with Conditioned Diffusion Models for Unsupervised Anomaly Detection in Brain MRIs
- 2026Uncertainty-Aware Distribution-to-Distribution Flow Matching for Scientific Imaging
- 2025Conditional diffusion models for guided anomaly detection in brain images using fluid-driven anomaly randomization
- 2024Synomaly Noise and Multi-Stage Diffusion: A Novel Approach for Unsupervised Anomaly Detection in Medical Images
- 2026Reconstruction-Shift Discrimination via Mask-Guided Latent Diffusion for Medical Anomaly Detection
- 2025MAD-AD: Masked Diffusion for Unsupervised Brain Anomaly Detection
- 2026Flow Mismatching: Unsupervised Anomaly Detection via Velocity Discrepancies in Flow Matching Models
- 2026Uncertainty in a Single Pass: A Closed-Form Identity for One-Step Flow Matching