MedFlowSeg: Flow Matching for Medical Image Segmentation with Frequency-Aware Attention
Zhi Chen, Runze Hu, Le Zhang
Abstract. Flow matching has recently emerged as a principled framework for learning continuous-time transport maps, enabling efficient ODE-based sampling without relying on stochastic diffusion processes. While generative modeling has shown promise for medical image segmentation, particularly in capturing uncertainty and complex anatomical variability, existing approaches are predominantly based on diffusion models, which require iterative sampling and incur substantial computational overhead. In this work, we propose MedFlowSeg, a conditional flow matching framework that formulates medical image segmentation as learning a time-dependent vector field that transports a simple prior distribution to the target segmentation distribution. Compared to diffusion-based methods, our formulation enables more efficient inference through solving an ordinary differential equation, while preserving the flexibility of generative modeling. To effectively incorporate conditional information, we introduce a dual-conditioning mechanism. Specifically, we propose a Dual-Branch Spatial Attention (DB-SA) module to inject multi-frequency structural priors, and a Frequency-Aware Attention (FA-Attention) module to model interactions between spatial and spectral representations via discrepancy-aware fusion and time-dependent modulation. These components improve the alignment between noisy intermediate states and clean semantic features, leading to better structural consistency and boundary delineation. We conduct extensive experiments across multiple medical imaging modalities, where MedFlowSeg consistently outperforms prior state-of-the-art (SOTA) baselines, including diffusion-based and flow-based methods. Code is available at https://github.com/zrs03/MedFlowSeg.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper proposes MedFlowSeg, a conditional flow-matching framework for generative medical image segmentation with dual spatial- and frequency-aware conditioning. The reviewers seem to view the problem as important, the method as reasonably original, and the evaluation across five modalities as broad, with good gains in efficiency relative to diffusion-based approaches [PgFc, jsmF, nzj5]. The most important unresolved issue is that the conditioning network is itself trained with a supervised Dice/CE segmentation loss while also receiving gradients through the flow-matching model, making it unclear how much of the final performance is due to flow matching rather than the conditioning branch alone [jsmF]. The rebuttal should prioritize clarifying the effects of such supervision and ideally what remains when the auxiliary Dice/CE supervision is removed or controlled. Other concerns include the lack of repeated-run statistics despite small margins over baselines, unclear fairness of preprocessing and multi-sample STAPLE comparisons, insufficient isolation of the frequency decomposition, and limited evidence for true 3D generalization and uncertainty advantages [PgFc, jsmF, nzj5].
Final justification
I would like to acknowledge that the reviewers and I read the responses offered by the authors. Based on reviewers' mostly positive responses and my own analysis of authors' rebuttals, most of the concerns raised in the reviews and the meta-review were convincingly addressed. Although the reviewer jsmF assigned a "borderline reject" score in their official review, agreed to raise the score to Accept following a discussion with the authors. Taking this into account, I am confident in recommending this paper for acceptance.
Read meta-review
Meta-review
The paper proposes MedFlowSeg, a conditional flow-matching framework for generative medical image segmentation with dual spatial- and frequency-aware conditioning. The reviewers seem to view the problem as important, the method as reasonably original, and the evaluation across five modalities as broad, with good gains in efficiency relative to diffusion-based approaches [PgFc, jsmF, nzj5]. The most important unresolved issue is that the conditioning network is itself trained with a supervised Dice/CE segmentation loss while also receiving gradients through the flow-matching model, making it unclear how much of the final performance is due to flow matching rather than the conditioning branch alone [jsmF]. The rebuttal should prioritize clarifying the effects of such supervision and ideally what remains when the auxiliary Dice/CE supervision is removed or controlled. Other concerns include the lack of repeated-run statistics despite small margins over baselines, unclear fairness of preprocessing and multi-sample STAPLE comparisons, insufficient isolation of the frequency decomposition, and limited evidence for true 3D generalization and uncertainty advantages [PgFc, jsmF, nzj5].
Final justification
I would like to acknowledge that the reviewers and I read the responses offered by the authors. Based on reviewers' mostly positive responses and my own analysis of authors' rebuttals, most of the concerns raised in the reviews and the meta-review were convincingly addressed. Although the reviewer jsmF assigned a "borderline reject" score in their official review, agreed to raise the score to Accept following a discussion with the authors. Taking this into account, I am confident in recommending this paper for acceptance.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The manuscript presents a novel generative segmentation method built on flow matching, called MedFlowSeg, to generative medical image segmentation. The key improvements are driven by two attention blocks, one for introducing strong structural priors, and another to model frequency-level information into the framework (and the ablation indeed speak for their integration).
Although I am quite happy about the developed method (it's a very relevant method, considering the known stark advantage of flow matching for reducing sampling steps at inference time), without statistical significance experiments -- I am unsure if the reported results are stochastic ("marginal") gains over MedSegDiffv2 (which seems to be the current SOTA for generative medical image segmentation).
See comments below for more concerns!
Strengths and weaknesses
See details below!
Questions
...achieving strong results on certain benchmarks while exhibiting limited generalization across different modalities and anatomical structures.
Although the papers argue this statement is true for diffusion models in generative segmentation, they do not show any experiments to back this. I suggest the authors to either back these claims with empirical results for catastrophic failures, or tone down their preface for diffusion models.
...are often tailored to specific tasks [4, 22], limiting their generalization across diverse modalities and segmentation scenarios.
Same comment as above. Without empirical backing, it's unfair to make such assumptions. Can the authors either point me to the experiments, or please add such experiments to back their claims?
Moreover, the lack of explicit uncertainty modeling makes them less effective in handling irregular anatomical structures and ambiguous boundaries, leading to suboptimal results in challenging cases.
Although this is mostly true, there's several efforts in context of probabilistic segmentation regime, in particular -- PUNet (https://arxiv.org/abs/1806.05034) and PhiSeg (https://arxiv.org/abs/1906.04045) are the two most successful ones. I suggest the authors investigate and report results of prior methods carefully and share experiments for generative segmentation paradigm prior to diffusion models.
Equation 4 and Equation 5
Reading the equation closely (with lambda and alpha parameter values): 1) Is there a rationale to chose fixed parameter values? 2) The effective value reads to me as Ltotal = Lvel + λLaux -- Ltotal = Lvel + λ (Ldice + αLce) -- Ltotal = Lvel + 0.1 (Ldice + 10 x Lce) -- Ltotal = Lvel + 0.1 Ldice + Lce
If it's downweighting dice loss at the end of the day with no particular reward to cross entropy, isn't the net balancing done by penalizing the dice further? I don't see the rationale for doing this. Do the authors have an ablation study to back such a choice?
Table 1:
The reported results do not seem statistically significant to me. Could you authors report the mean and standard deviation for a 5-fold training run across experiments? If the statistical significance is missing, it's hard to grasp if it's a stochastic run with incremental gains or it indeed performs well consistency!
Table 2:
The results are hard to grasp here. There's a row-wise task and column-wise target task combination studied in this setup. But why though? eg. it doesn't make sense to study Echo-SegNet for gland segmentation in histopathology imagesm etc. I suggest the authors to please streamline the results a bit, i.e. keep the "gray" highlighted results only, to remove noisy results for no reason!
Analysis of Uncertainty
I have a hard time reading much of a difference between MedSegDiffv2 and MedFlowSeg results here (the gains seem super marginal to claim robust predictions in uncertain regions). Can the authors back this with a qualitative heatmap for uncertain region's prediction for both models?
Model Efficiency and Complexity
I am assuming the section includes sampling steps for diffusion models until convergence? If that's the case, I think a fair number to put in would be per-step GFLOPs, and the average number of steps required per method to make the advantage of MedFlowSeg seem visible.
Limitations
The only two highlights for me are: 1) missing experiments for classical generative segmentation experiments (using PUNet, PhiSeg), and 2) missing statistical significance of the proposed methods. There are several points to consider for the manuscript, see my comments above!
Final justification
I'm happy about the discussions and presented additional results shared by the authors in the rebuttal and discussion period. And most, if not all, of the doubts are now clear after an engaging discussion.
Formatting concerns
N/A
5 comments
First of all, thank you so much to the authors for putting the effort in preparing the rebuttal, even with additional experiments. I highly appreciate it.
Re: additional results
Great to see multiple runs for the models trained. I suggest the authors add these results to the paper in the camera ready version!
We will therefore tone down the corresponding discussion in the introduction and describe the limitation more precisely as inconsistent or task-dependent performance across segmentation settings, rather than implying that diffusion-based methods generally suffer from catastrophic failures.
Thanks for addressing this. This would be great to rephrase it in the manuscript, and let the developed methods and presented results speak for themselves!
We will therefore revise this statement to avoid making an insufficiently supported assumption.
Thanks for clarifying.
We will revise the introduction accordingly and qualify the statement by referring specifically to deterministic segmentation approaches.
This would be great, thanks!
Following the reviewer’s suggestion, where compatible implementations and evaluation settings are available, we will include Probabilistic U-Net and PHiSeg as additional baselines in Tables 1 and 2.
Thanks. I am confident this would make the paper to compare with classical probabilistic segmentation methods and reach a much wider audience.
These observations suggest that the auxiliary objective provides explicit structural guidance and facilitates optimization.
Interesting, good to know details about the hypothesis. Thanks for elaborating on this!
Our current Table 4 partially addresses this issue by reporting the Generalized Energy Distance (GED) and confidence interval (CI), which measure distributional alignment and prediction stability, respectively. These results provide complementary evidence regarding the consistency and uncertainty of the generated segmentations.
I'd slightly disagree here. I think GED and CI are a good reasoning for sampling consistency in generative models, not training consistency (exactly where the statistical significance question is hinted towards). But in any case, the authors have provided additional results above to argue about statistical bounds of multiple training runs.
In the additional results, we conducted additional analyses across test subjects and random seeds.
Once again, I highly appreciate it! Thanks for the additional experiments.
We agree that a more complete statistical presentation would improve the manuscript. We are also considering adding mean and standard deviation results in Tables 1 and 2.
That's great, thanks!
We agree that the full matrix may reduce readability and will streamline the main table by retaining only the gray-highlighted, task-relevant results.
Thanks for acknowledging.
Since the rebuttal system does not allow additional file or figure uploads, we cannot provide the requested heatmaps at this stage. We are considering improving the visualization in the revised manuscript by adding side-by-side uncertainty heatmaps.
No worries. I'd be interested to hear your takeaways based on your introspection.
In the revised manuscript, we will add the per-step GFLOPs and the average number of sampling steps required by each method, providing a clearer and fairer comparison of computational efficiency.
Thanks for acknowledging.
In general, I'm content with the provided rebuttal (although there are a few suggestion which the authors agree to add in the next iteration of this manuscript).
I'm happy to hear a follow-up from the authors before I finalize my rating.
Thank you very much for the thoughtful follow-up and for carefully considering our rebuttal. We also appreciate your clarification regarding GED and CI. We agree that these metrics characterize sampling-level distributional consistency and uncertainty, rather than training-run statistical significance. We will revise the manuscript to make this distinction explicit and report the mean and standard deviation separately as evidence of training stability.
Regarding the uncertainty visualization, although we cannot upload additional figures during the rebuttal, we inspected the segmentation samples obtained from the 10 inference runs used in the STAPLE-based evaluation setting for both MedFlowSeg and MedSegDiff-V2. Our main observations are as follows:
-
For both methods, predictive variation is primarily concentrated around low-contrast or anatomically ambiguous boundaries, rather than within confidently segmented interior regions. MedSegDiff-V2 tends to exhibit more spatially dispersed variation across repeated samples, with isolated or fragmented uncertain regions occurring more frequently and covering larger areas. In contrast, such regions are less frequent and smaller in MedFlowSeg, whose predictive variation is generally more localized around anatomically plausible boundaries.
-
MedFlowSeg does not simply suppress all sample diversity. It preserves variation near genuinely ambiguous structures while producing more consistent predictions in anatomically stable regions. In the revised manuscript, we believe that adding locally enlarged views of these boundary regions, alongside the uncertainty visualizations, would make these differences more intuitive and easier to assess.
Following your suggestions, we will revise the manuscript accordingly and incorporate the agreed-upon changes in the next version. Thank you again for the constructive discussion. Your comments have helped us improve both the empirical presentation and the precision of our claims.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes a framework that leverages conditional flow matching for image segmentation. The contributions of the paper are:
- the formulation of segmentation as a conditional flow matching problem
- the design of a conditioning network to ground the flow matching process to the input image
- comparisons with other methods on 5 datasets comprising several different medical imaging modalities (MRI, Histopathology, fundus photographs, ultrasound), demonstrating competitive performance of the proposed approach.
Strengths and weaknesses
Strengths
-
Generative segmentation is useful as long as it is effectively grounded on an input image. The paper identifies this and presents an improved conditioning method that interacts with the velocity prediction network at both early and intermediate layers.
-
Thorough empirical evaluation of the method for medical image segmentation comprising several different modalities and domains (MRI, fundus photographs, histology, and ultrasound). A broad choice of baselines is used (generative and deterministic).
-
Method's efficiency: the reported GFLOPs are substantially lower than several diffusion and flow baselines.
Weaknesses
- The paper contains confounded insights regarding the value of using the flow matching framework for improving the segmentation performance. The key confounder for this is the fact that the conditioning network is trained with a direct supervised Dice/CE segmentation objective and also receives gradients through the flow-matching network.. Towards clarifying this what the paper is missing is:
- Evaluating the performance of the conditioning network (trained with the dice+CE loss). This would help understand how much the flow-matching network improves performance relative to its conditioning branch.
- Removing the dice loss completely to isolate the flow-matching network's performance.
-
The paper claims better conditioning enables efficient sampling but does not test how changes to the conditioning method (those listed in Table 3.) affect the number of samples needed to reach a certain performance.
-
DB-SA is compared only against standard spatial attention. That is not enough to show that the dual-frequency decomposition is necessary. This introduces method complexity without adequate justification or insights. Is the gain from frequency decomposition? What is the relative importance of low vs high frequency structure?
Questions
Minor:
-
In line 114 it is stated " Notably, instead of the conventional mean squared error, our pipeline specifically minimizes the expected L1 error. This design choice is employed to robustly penalize velocity estimation errors and better preserve sharp structural boundaries in the segmentation". Is this experimentally validated?
-
What type of conditioning used for the experiment reported first line of Table 3 ? Or is this a the results without flow matching, simply training the conditioning network for segmentation using the dice loss?
Major: 3) Please see suggestions for additional experiments which in Weaknesses 1, 2, 3. These experiments would help better understand the value of using the flow-matching framework for segmentation and better characterize the importance of design choices made in the conditioning branch.
Limitations
Yes
Final justification
As per my comment to the rebuttal, I find the methodological contribution clear and the experimental validation adequate. Conclusively, I raise my score to "Accept".
Formatting concerns
No concerns
2 comments
Rebuttal
Thank you for your valuable feedback. We will address the concerns regarding the identified weaknesses and respond to your questions accordingly.
Additional Results
| Setting | ACDC Dice ↑ | ACDC IoU ↑ | BraTS-2021 Dice ↑ | BraTS-2021 IoU ↑ |
|---|---|---|---|---|
| Conditioning branch | 90.61 | 82.43 | 88.57 | 80.65 |
| MedFlowSeg w/o Auxiliary Loss | 91.86 | 84.79 | 89.52 | 83.29 |
| Full MedFlowSeg | 93.57 | 87.73 | 91.19 | 84.52 |
Weaknesses
[Weaknesses 1] The paper contains confounded insights regarding the value of using the flow matching framework for improving the segmentation performance. The key confounder for this is the fact that the conditioning network is trained with a direct supervised Dice/CE segmentation objective and also receives gradients through the flow-matching network.. Towards clarifying this what the paper is missing is:
- Evaluating the performance of the conditioning network (trained with the dice+CE loss). This would help understand how much the flow-matching network improves performance relative to its conditioning branch.
- Removing the dice loss completely to isolate the flow-matching network's performance.
In the additional results, we conduct further ablation studies to disentangle the roles of the conditioning network, the auxiliary objective, and the flow-matching component. Since the conditioning network is implemented as a simple U-Net, its standalone performance is already shown to be relatively limited in the original manuscript. Therefore, the Conditioning branch setting reports the segmentation produced directly by the auxiliary segmentation head. Its lower performance further indicates that the improvement of the full model is primarily attributable to the flow-matching network rather than the supervised conditioning branch alone.
MedFlowSeg without the auxiliary Dice/CE loss also performs worse than the full model. We attribute this to the insufficient direct optimization signal for the conditioning pathway when gradients are provided only through the flow-matching objective, making the optimization more likely to converge to a suboptimal solution. In our experiments, adding the auxiliary loss noticeably reduced the number of training epochs required and led to faster convergence. These observations suggest that the auxiliary objective provides explicit structural guidance and facilitates optimization.
[Weaknesses 2] The paper claims better conditioning enables efficient sampling but does not test how changes to the conditioning method (those listed in Table 3.) affect the number of samples needed to reach a certain performance.
We thank the reviewer for pointing this out. We agree that the current discussion does not sufficiently isolate the effect of conditioning on sampling efficiency. Figure 9 in the Appendix already compares MedFlowSeg with other generative segmentation baselines across different numbers of sampling steps. Our results further indicate that the proposed conditioning reaches near-saturated performance with fewer steps than the alternative conditioning variants. We are therefore considering extending Figure 9 to include all conditioning variants from Table 3 across different numbers of sampling steps.
[Weaknesses 3] DB-SA is compared only against standard spatial attention. That is not enough to show that the dual-frequency decomposition is necessary. This introduces method complexity without adequate justification or insights. Is the gain from frequency decomposition? What is the relative importance of low vs high frequency structure?
Table 3 shows that replacing standard spatial attention with DB-SA consistently improves segmentation performance, indicating that the gain is not merely due to adding attention, but is associated with the frequency-decomposed structural guidance.
The two branches are designed to be complementary and to better represent the uncertainty inherent in the conditional features. The low-frequency branch captures stable coarse anatomical structure and region-level context, while the high-frequency branch preserves uncertain local variations, boundaries, and fine details. Their fusion enables DB-SA to provide structural guidance that is both globally consistent and sensitive to ambiguous boundary information.
We agree that the current results do not fully quantify their relative importance. We are excited to include additional low-frequency-only and high-frequency-only ablations in the camera-ready version to better clarify the individual and complementary contributions of the two branches.
Questions
[Question 1] In line 114 it is stated " Notably, instead of the conventional mean squared error, our pipeline specifically minimizes the expected L1 error. This design choice is employed to robustly penalize velocity estimation errors and better preserve sharp structural boundaries in the segmentation". Is this experimentally validated?
Our choice of the L1 velocity objective was initially motivated by the empirical findings of Palette: Image-to-Image Diffusion Models. Palette reports that L1 and L2 objectives achieve similar overall sample quality, but exhibit different generation behavior: L2 produces greater sample diversity, whereas L1 yields more conservative outputs with stronger adherence to the conditional input.
For medical image segmentation, fidelity to the input anatomy and ground-truth structure is more important than maximizing output diversity. Based on this observation, we independently trained MedFlowSeg with L1 and L2 velocity objectives under the same configuration. We observed that L1 produced more structurally consistent predictions and better preserved fine anatomical boundaries.
[Question 2] What type of conditioning used for the experiment reported first line of Table 3 ? Or is this a the results without flow matching, simply training the conditioning network for segmentation using the dice loss?
The conditioning in the first row of Table 3 is implemented through direct concatenation. We will clarify this setting explicitly in the revised manuscript.
We hope the above clarifications and the additional experiments in the revised draft sufficiently addressed your concerns. If you are satisfied, we kindly request you to consider updating the score to reflect the newly added results and discussion. We remain committed to addressing any remaining points you may have during the discussion phase.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work addresses the central challenge of making generative medical image segmentation more efficient and better guided by the input image. The paper proposes MedFlowSeg, a flow matching segmentation framework with two conditioning modules: DB-SA for structural guidance and FA-Attention for aligning noisy flow states with cleaner semantic features. The method is tested across several medical imaging modalities and reports strong results against deterministic, diffusion based, and flow based baselines.
Strengths and weaknesses
The paper tackles a relevant problem. Diffusion based segmentation can be slow, and flow matching is a sensible alternative. The proposed conditioning strategy is well motivated, and the results across ACDC, BraTS, REFUGE2, GlaS, and CAMUS are convincing. The ablation study also supports the usefulness of the two proposed modules. However, the claims are somewhat stronger than the evidence fully supports. The paper presents the method as a general medical image segmentation framework, but the experiments are still based on 2D resized benchmark images. This limits the strength of the generalization claim, especially for 3D clinical imaging. The comparison protocol also needs more detail, particularly whether baselines were retrained under the same preprocessing and whether the reported gains partly come from using 10 samples with STAPLE fusion. Overall, the method is strong, but the paper would benefit from clearer single sample results, more statistical analysis, and a more careful discussion of deployment limits.
Questions
- Were all baselines retrained with the same preprocessing, resolution, augmentation, and splits?
- Can the authors report single sample results, in addition to the 10-sample STAPLE-fused results?
- Can the authors provide error bars or results across multiple seeds?
- How does accuracy change with fewer ODE steps and fewer ensemble samples?
- How well does the method extend to true 3D segmentation?
Limitations
The authors acknowledge useful limitations, including model size, 2D slice based processing, and possible domain shift issues. The discussion would be stronger if it also addressed clinical deployment risks and scanner/site variability.
Final justification
As per my comment to the rebuttal:
I am satisfied with the clarifications, which should be included in the final version of the manuscript, and the paper should also make clear that the method is still slice-based and does not directly model 3D. I maintain my score of Accept.
Formatting concerns
Figures 1-3 would benefit from being enlarged to span the full width of the printable area, as the current scaling makes several details difficult to read.
3 comments
Rebuttal
Thank you for your thoughtful comments. We will thoughtfully address all of your suggestions and concerns in our revised submission.
Additional Results
Results Across Test Subjects
| Methods | ACDC Dice ↑ | ACDC IoU ↑ | BraTS-2021 Dice ↑ | BraTS-2021 IoU ↑ |
|---|---|---|---|---|
| MedFlowSeg w/o STAPLE | 93.14 ± 6.13 | 87.49 ± 10.59 | 90.84 ± 8.12 | 84.28 ± 13.73 |
| MedFlowSeg w/ STAPLE | 93.57 ± 4.49 | 87.73 ± 8.05 | 91.19 ± 6.83 | 84.52 ± 10.18 |
Results Across Random Seeds
| Methods | ACDC Dice ↑ | ACDC IoU ↑ | BraTS-2021 Dice ↑ | BraTS-2021 IoU ↑ |
|---|---|---|---|---|
| MedFlowSeg | 93.56 ± 0.05 | 87.71 ± 0.07 | 91.19 ± 0.04 | 84.51 ± 0.06 |
Questions
[Question 1] Were all baselines retrained with the same preprocessing, resolution, augmentation, and splits?
Yes. All baselines were retrained using the same preprocessing pipeline, input resolution, data augmentation strategy, and train/validation/test splits as our method to ensure a fair comparison.
[Question 2] Can the authors report single sample results, in addition to the 10-sample STAPLE-fused results?
In the additional results, we compare MedFlowSeg using a single prediction without STAPLE with the 10-sample STAPLE-fused setting on ACDC and BraTS-2021. STAPLE yields modest improvements in average Dice and IoU, while its main benefit is the consistent reduction in standard deviation. This indicates that STAPLE primarily improves the stability and robustness of the segmentation results rather than substantially increasing the mean performance.
[Question 3] Can the authors provide error bars or results across multiple seeds?
In the additional results, we report the mean and standard deviation over five independent runs with different random seeds. MedFlowSeg achieves stable performance on both ACDC and BraTS-2021, with consistently small standard deviations for Dice and IoU. These results demonstrate that the performance is robust to random initialization and training stochasticity.
[Question 4] How does accuracy change with fewer ODE steps and fewer ensemble samples?
As reported in the Appendix of the submitted paper, we have evaluated MedFlowSeg using fewer ODE steps. The model already achieves competitive Dice performance with a single ODE step and approaches its best performance within a small number of steps, indicating rapid performance saturation as the sampling budget increases.
Regarding the number of ensemble samples, our additional results show that STAPLE has only a modest effect on the mean Dice and IoU scores. Its main benefit is the consistent reduction in standard deviation, suggesting that using more ensemble samples primarily improves prediction stability and robustness rather than substantially increasing average accuracy.
[Question 5] How well does the method extend to true 3D segmentation?
We thank the reviewer for raising this important point. We agree that the current implementation operates on 2D slices rather than directly modeling complete 3D volumes. However, for 3D datasets, all evaluation metrics are computed at the patient level after aggregating the slice-wise predictions into complete volumes. Thus, the reported results reflect volumetric segmentation quality at the patient level, although the model itself does not explicitly exploit inter-slice information.
A fully 3D extension is an important direction for future work. In particular, we will focus on enabling information sharing across adjacent slices to improve volumetric consistency, while avoiding the substantial computational and memory overhead associated with conventional fully 3D architectures.
I thank the authors for answering my questions. I am satisfied with the clarifications, which should be included in the final version of the manuscript, and the paper should also make clear that the method is still slice-based and does not directly model 3D. I maintain my score of Accept.
Thank you for your positive assessment and constructive suggestion. We will incorporate the relevant clarifications into the final version of the manuscript. We sincerely appreciate your careful review and support.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank you for your constructive feedback. We will provide detailed responses to your questions.
Additional Results
Results Across Test Subjects
Results Across Random Seeds
Questions
We thank the reviewer for this comment. Table 2 provides empirical evidence that diffusion-based generative segmentation methods can achieve state-of-the-art performance on individual tasks, while their performance is less consistent across different modalities and datasets. This observation motivated our discussion of task-dependent performance and limited cross-modality consistency.
However, we agree that these results do not directly demonstrate catastrophic failures. We will therefore tone down the corresponding discussion in the introduction and describe the limitation more precisely as inconsistent or task-dependent performance across segmentation settings, rather than implying that diffusion-based methods generally suffer from catastrophic failures.
As noted in our response to Question 1, Table 2 provides empirical evidence that existing diffusion-based generative segmentation methods often achieve strong performance on individual benchmarks, while their results are less consistent across different modalities, datasets, and segmentation settings. This observation motivated our discussion of their task-dependent behavior and limited cross-setting generalization.
However, we agree that the current experiments do not directly establish that these methods are inherently tailored to specific tasks, nor do they isolate task-specific design as the cause of their limited generalization. We will therefore revise this statement to avoid making an insufficiently supported assumption.
Our intention was to contrast diffusion-based generative segmentation with conventional deterministic methods that produce a single segmentation output, rather than to suggest that all prior segmentation methods lack explicit uncertainty modeling. We will revise the introduction accordingly and qualify the statement by referring specifically to deterministic segmentation approaches.
Following the reviewer’s suggestion, where compatible implementations and evaluation settings are available, we will include Probabilistic U-Net and PHiSeg as additional baselines in Tables 1 and 2.
The reviewer is correct that, with λ=0.1 and $ \alpha=10$, the objective can be equivalently written as
Ltotal=Lvel+0.1Ldice+Lce
Our auxiliary loss design was initially inspired by MedSegDiff-V2, which employs the same relative weighting between the Dice and cross-entropy terms, i.e., Ldice+10Lce. In MedSegDiff-V2, however, this auxiliary segmentation loss is applied only when the diffusion timestep t is divisible by 5. In our implementation, we found that applying the auxiliary supervision consistently with a fixed coefficient resulted in more stable performance. We therefore use
Ltotal=Lvel+0.1(Ldice+10Lce)
The relatively larger weight assigned to cross-entropy is motivated by the multi-class nature of our segmentation tasks. The velocity-prediction objective primarily supervises the diffusion denoising process and, by itself, does not explicitly impose sufficiently strong class-discriminative constraints. Cross-entropy provides direct voxel-wise supervision over the semantic classes and penalizes incorrect class assignments, which is particularly important for stable multi-class segmentation. The Dice term complements this supervision by encouraging region-level overlap, but its contribution is downweighted to prevent the auxiliary overlap objective from dominating the velocity-prediction objective.
In the additional results, MedFlowSeg without the auxiliary Dice/CE loss also performs worse than the full model. We attribute this to the insufficient direct optimization signal for the conditioning pathway when gradients are provided only through the flow-matching objective, making the optimization more likely to converge to a suboptimal solution. In our experiments, adding the auxiliary loss noticeably reduced the number of training epochs required and led to faster convergence. These observations suggest that the auxiliary objective provides explicit structural guidance and facilitates optimization.
We agree that reporting only a single aggregate value does not fully demonstrate whether the observed improvements are consistent or attributable to stochastic variation.
Our current Table 4 partially addresses this issue by reporting the Generalized Energy Distance (GED) and confidence interval (CI), which measure distributional alignment and prediction stability, respectively. These results provide complementary evidence regarding the consistency and uncertainty of the generated segmentations.
In the additional results, we conducted additional analyses across test subjects and random seeds. The results across test subjects show that STAPLE-based aggregation improves the mean performance while reducing the variability across subjects. Moreover, the results across independent random seeds exhibit very small standard deviations, indicating that MedFlowSeg is stable with respect to stochastic initialization and training variation.
We agree that a more complete statistical presentation would improve the manuscript. We are also considering adding mean and standard deviation results in Tables 1 and 2.
We thank the reviewer for this comment. Our goal was to compare how specific methods perform across different tasks, datasets, and imaging modalities, thereby revealing their task dependence and cross-task generalization. We agree that the full matrix may reduce readability and will streamline the main table by retaining only the gray-highlighted, task-relevant results.
Since the rebuttal system does not allow additional file or figure uploads, we cannot provide the requested heatmaps at this stage. We are considering improving the visualization in the revised manuscript by adding side-by-side uncertainty heatmaps.
We thank the reviewer for this valuable suggestion. In the revised manuscript, we will add the per-step GFLOPs and the average number of sampling steps required by each method, providing a clearer and fairer comparison of computational efficiency.