# MedFlowSeg: Flow Matching for Medical Image Segmentation with Frequency-Aware Attention

*Zhi Chen, Runze Hu, Le Zhang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151266) · [OpenReview](https://openreview.net/forum?id=bf3XH3GbLU) · [alphaXiv](https://www.alphaxiv.org/abs/2604.19675) · [Open on the map](../papers.html#p151266)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Medical Image Registration and Reconstruction](../pgroup/325.md) · Type: new method · Keywords: conditional flow matching, medical image segmentation, frequency-aware attention, dual-conditioning, ODE inference

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Scientific and Medical Architectures › Medical Imaging Architectures; [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Pixel-Space Diffusion › Diffusion and Flow Models; [Computer Vision & 3D](../areas/computer-vision.md) › Medical Visual Computing › Medical Image Generation and Translation; [AI for Science](../areas/ai-for-science.md) › Brain Dynamics and Medical Imaging › Medical Imaging

## Summary
MedFlowSeg introduces a conditional flow matching framework with dual-conditioning and frequency-aware attention for efficient medical image segmentation.

## Explained to a 5-year-old
Doctors need pictures of organs to be cut into separate pieces for diagnosis. Some methods use a slow step-by-step process that takes a lot of computer time. This paper introduces a smoother way that moves a simple shape toward the correct answer using a continuous flow. It uses two kinds of attention to look at different sizes of details and combine them. This helps the picture become clearer and the boundaries between parts become sharper.

## Explained to a 5-year-old, longer
Doctors need pictures of organs to be cut into separate pieces for diagnosis. Some methods use a slow step-by-step process that takes a lot of computer time. This paper introduces a smoother way that moves a simple shape toward the correct answer using a continuous flow. It uses two kinds of attention to look at different sizes of details and combine them. This helps the picture become clearer and the boundaries between parts become sharper. The new method works faster than the old ones and gives better results. It has been tested on many kinds of medical images and beats other methods. The code is available for others to try. It could help hospitals get faster and more accurate scans. It also reduces the need for huge computers. The approach is easy to use and can be adapted to other image tasks. Overall, it makes medical image segmentation more efficient and reliable.

## For a technical reader
MedFlowSeg proposes a conditional flow matching framework that treats segmentation as learning a time-dependent vector field transporting a simple prior to the target segmentation distribution. It employs a dual-branch spatial attention module to inject multi-frequency structural priors and a frequency-aware attention module to fuse spatial and spectral representations with discrepancy-aware fusion. By solving an ordinary differential equation instead of iterative diffusion steps, inference becomes more efficient while preserving generative flexibility. Experiments across several medical imaging modalities show consistent improvements over diffusion-based and existing flow-based baselines. The released code enables practitioners to adopt the approach for fast, high-quality segmentation.

## Problem
Existing medical image segmentation methods based on diffusion models require iterative sampling and are computationally expensive, limiting efficient inference. There is a need for a faster generative modeling approach that retains flexibility while enabling rapid ODE-based inference.

## Method
The approach formulates segmentation as learning a time-dependent vector field that transports a simple prior distribution to the target segmentation distribution using conditional flow matching. It employs a dual-conditioning mechanism with a spatial attention module for multi-frequency priors and a frequency-aware attention module to fuse spatial and spectral representations via discrepancy-aware fusion and time-dependent modulation. The resulting ordinary differential equation is solved efficiently for inference.

## Results
The approach achieves superior performance compared to existing diffusion-based and flow-based baselines across multiple medical imaging tasks.

## Contributions
It introduces a conditional flow matching framework for segmentation with a dual-conditioning mechanism and frequency-aware attention modules that improve alignment between intermediate states and semantic features, enabling efficient ODE-based inference while preserving generative modeling flexibility.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151266)
