potentialpaper

BAPM: Boundary-Aware Prompt Mining for Training-Free Few-Shot Medical Image Segmentation

Qi Wen, Jiezhou He, Zhiming Luo, Shaozi Li

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Few-shot medical image segmentation has shown great potential in reducing annotation costs for clinical applications. Recently, many few-shot methods have explored the Segment Anything Model (SAM) for training-free medical image segmentation via prompt engineering. However, existing approaches mainly focus on locating positive prompts from support images while overlooking informative background cues, making them prone to over-segmentation in anatomically similar regions. Moreover, simply introducing negative prompts cannot effectively suppress boundary leakage, and may even interfere with SAM’s mask decoding process, resulting in worse performance than using positive prompts alone. To address this limitation, we propose a training-free support-query framework, termed Boundary-Aware Prompt Mining, which introduces boundary-aware negative prompting for SAM-based few-shot medical image segmentation. Specifically, we introduce a Prototype-guided Positive Prompt strategy, which adopts a multi-center prompting mechanism to construct multiple foreground prototypes, enabling comprehensive spatial coverage in query images. Furthermore, we propose a Boundary-band Ambiguity Filtering strategy that identifies a boundary-adjacent background band and progressively removes ambiguous pixels and unreliable clusters highly similar to the foreground, enabling the selection of reliable negative prompts for suppressing false positives near foreground boundaries. The generated positive and negative prompts are jointly fed into SAM to produce refined segmentation results without additional training. Extensive experiments on Abd-MRI and Abd-CT datasets demonstrate that our method consistently outperforms existing approaches, highlighting its effectiveness and robustness under limited annotation settings. Code will be released upon acceptance.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
1 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This paper proposes boundary-aware negative prompting for SAM-based few-shot medical image segmentation. Pre-rebuttal ratings are mixed, with a BA (ca4s) and two BRs (uE9V and qyec). While the proposed idea of boundary-aware negative prompting is appreciated by the reviewers, they have raised a number of concerns regarding the technical novelty, the practical usability, in-depth analysis about failures, how the BAF module behaves on small-size targets, etc. In the rebuttal stage, authors have done a good job to resolve the major concerns.

Final justification

This paper proposes boundary-aware negative prompting for SAM-based few-shot medical image segmentation. Pre-rebuttal ratings are mixed, with a BA (ca4s) and two BRs (uE9V and qyec). While the proposed idea of boundary-aware negative prompting is appreciated by the reviewers, they have raised a number of concerns regarding the technical novelty, the practical usability, in-depth analysis about failures, how the BAF module behaves on small-size targets, etc. In the rebuttal stage, authors have done a good job to resolve the major concerns.

Area Chair RvDm · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This paper proposes boundary-aware negative prompting for SAM-based few-shot medical image segmentation. Pre-rebuttal ratings are mixed, with a BA (ca4s) and two BRs (uE9V and qyec). While the proposed idea of boundary-aware negative prompting is appreciated by the reviewers, they have raised a number of concerns regarding the technical novelty, the practical usability, in-depth analysis about failures, how the BAF module behaves on small-size targets, etc. In the rebuttal stage, authors have done a good job to resolve the major concerns.

Final justification

This paper proposes boundary-aware negative prompting for SAM-based few-shot medical image segmentation. Pre-rebuttal ratings are mixed, with a BA (ca4s) and two BRs (uE9V and qyec). While the proposed idea of boundary-aware negative prompting is appreciated by the reviewers, they have raised a number of concerns regarding the technical novelty, the practical usability, in-depth analysis about failures, how the BAF module behaves on small-size targets, etc. In the rebuttal stage, authors have done a good job to resolve the major concerns.

2 comments
Authors · CommentOpenReview ↗

Response to the Area Chair’s Meta Review

We sincerely thank the Area Chair for the careful consideration of our paper! We have carefully addressed each point during the rebuttal, as summarized below.

Q1. discuss the difference and improvement between its proposed method and other methods that also use background context modeling.

A1: We clarified the differences between BAPM and prior methods, particularly FoB. Although both methods exploit boundary-adjacent background information, FoB is training-based and uniformly samples points within the boundary band, which may introduce foreground-like ambiguous pixels and noisy background points. In contrast, BAPM directly operates on frozen SAM features without any additional training. It further applies pixel-level filtering and cluster-level filtering to mine more reliable and informative negative point prompts. (Rebuttal to qyec,Q1)

Q2. how to generalize to unseen organs without manual hyperparameter tuning

A2: We clarified that the main experiments use a single global parameter configuration under each evaluation setting, without organ-specific tuning during testing. The organ-wise analysis is intended only to explain method behavior. Larger structures generally benefit from wider boundary bands, while compact organs favor narrower ones. Performance also changes smoothly within a reasonable range, indicating limited sensitivity to exact parameter values. (Rebuttal to ca4s, Q1)

Q3. report computational cost and practical complexity

A3: We conducted a detailed runtime and memory analysis. Prompt generation requires only 0.061 s per query slice, while the frozen SAM image encoder and mask decoder require 0.449 s and 0.322 s, respectively. Therefore, the total inference time is approximately 0.832 s per query slice.(Rebuttal to uE9V,Q4)

On an NVIDIA RTX A4000, the peak GPU memory is approximately 5.68 GiB, which is dominated by the frozen SAM ViT-H backbone, indicating that BAPM introduces only limited additional computational overhead.(Rebuttal to ca4s, Q2)

Q4. report boundary-related metrics and qualitative visualizations

Table 1. Boundary-aware evaluation on the Abd-MRI dataset using HD95 (↓) and NSD (↑).

Method Liv HD95↓ RK HD95↓ LK HD95↓ Spl HD95↓ Avg.HD95↓ Liv NSD↑ RK NSD↑ LK NSD↑ Spl NSD↑ Avg. NSD↑
PerSAM 91.64±5.81 47.50±4.32 46.83±4.09 43.37±4.74 57.34±3.84 10.00±3.65 53.75±2.86 48.46±3.12 53.51±2.74 41.43±2.54
GMRD 31.22±2.41 22.18±2.03 22.93±2.18 34.33±2.86 27.67±2.01 49.99±1.92 76.16±1.38 70.45±1.51 61.15±1.74 64.44±1.32
SAM2 (P2) 46.41±3.58 34.73±2.91 24.00±2.37 30.67±2.64 33.95±2.12 36.76±2.61 65.10±2.12 69.46±1.87 64.25±2.03 58.89±1.74
SynPo 37.57±3.01 31.74±2.75 31.23±2.82 28.86±2.56 32.35±2.10 44.46±2.24 67.77±1.83 62.81±2.04 65.78±1.82 60.21±1.56
FoB 24.72±2.08 24.80±2.01 21.93±1.82 30.15±2.18 25.40±1.53 55.65±1.62 73.94±1.29 71.37±1.18 64.69±1.45 66.41±1.08
Ours 22.60±1.28 23.15±1.42 21.24±1.17 23.05±1.09 22.51±0.96 57.50±1.03 75.20±0.91 72.00±0.84 70.70±0.98 68.85±0.72

Table 2. Boundary-aware evaluation on the Abd-CT dataset using HD95 (↓) and NSD (↑).

Method Liv HD95↓ RK HD95↓ LK HD95↓ Spl HD95↓ Avg.HD95↓ Liv NSD↑ RK NSD↑ LK NSD↑ Spl NSD↑ Avg. NSD↑
PerSAM 48.70±4.22 51.94±4.75 52.54±4.61 46.75±4.08 49.98±3.54 52.86±2.63 47.60±2.88 46.08±2.95 53.88±2.56 50.11±2.18
GMRD 29.74±2.36 34.25±2.74 24.66±2.12 30.15±2.48 29.70±1.94 69.01±1.51 63.16±1.82 71.63±1.36 68.48±1.47 68.07±1.21
SAM2 (P2) 36.31±2.92 25.68±2.14 21.26±1.96 24.44±2.08 26.92±1.71 63.41±1.88 70.71±1.56 74.76±1.42 73.51±1.49 70.60±1.25
SynPo 27.42±2.47 27.79±2.39 32.70±2.86 23.34±2.03 27.81±1.84 70.99±1.67 68.85±1.71 64.26±1.92 74.48±1.46 69.64±1.30
FoB 20.41±1.63 21.19±1.55 18.96±1.42 22.36±1.71 20.73±1.28 76.96±1.18 75.42±1.07 77.78±0.98 75.34±1.11 76.38±0.92
Ours 18.60±1.05 20.80±1.13 19.90±1.02 18.20±0.98 19.38±0.81 78.50±0.88 76.00±0.94 76.00±0.91 79.00±0.85 77.38±0.69

A4: We introduced HD95 and NSD to directly evaluate boundary quality. (Rebuttal to uE9V, Q1) As shown in Tabs. 1–2, BAPM consistently achieves better boundary quality than FoB, reducing the average HD95 from 25.40 to 22.51 mm and improving the average NSD from 66.41% to 68.85% on Abd-MRI, while achieving the best average HD95 (19.38 mm) and NSD (77.38%) on Abd-CT. The gains are particularly evident for the spleen, indicating reduced boundary leakage.

Authors · CommentOpenReview ↗

Q5. demonstrate the statistical significance and stability of the results

Table 3. Ablation study with mean ± standard deviation (%) over multiple independent runs.

Strategy Liv RK LK Spl Avg.
Pos 56.10 ± 3.24 77.40 ± 2.50 70.57 ± 2.57 73.25 ± 2.78 69.33 ± 2.84
Pos + Remote 41.57 ± 3.26 56.29 ± 3.21 48.67 ± 3.73 59.96 ± 3.01 51.62 ± 3.26
Pos + Band 61.18 ± 2.44 78.28 ± 2.10 72.48 ± 2.03 66.36 ± 2.15 69.58 ± 2.33
Pos + Band + Pixel-Filter 84.38 ± 1.06 85.88 ± 1.53 83.36 ± 1.35 82.61 ± 1.76 84.06 ± 1.51
Pos + Band + Pixel-Filter + Cluster-Filter (Ours) 86.98 ± 1.02 88.40 ± 1.21 85.31 ± 1.05 84.77 ± 0.69 86.37 ± 0.77

A5: We repeated the key ablation experiments over multiple independent runs and reported the results as mean ± standard deviation. (Rebuttal to uE9V, Q3)The complete model consistently achieves the best performance across all organs and also exhibits the lowest variance. As shown in Tab. 3, the average standard deviation decreases from 2.84 for positive prompts alone to 1.51 after introducing pixel-level filtering, and further decreases to 0.77 after cluster-level filtering. These results demonstrate that the proposed filtering modules improve both segmentation accuracy and stability.

Q6. Larger-scale evaluation and comparison with foundation models

Table 4. Segmentation results (%) on the larger-scale Skin-DS dataset under the 1-way 1-shot setting.

Method Mel Nev SK Avg.
ALPNet 66.32 61.65 59.57 62.51
RPT 77.81 75.42 70.28 74.50
GMRD 79.23 72.78 71.32 74.44
PGRNet 71.39 70.21 65.87 69.16
ProtoMedSAM 70.84 72.91 66.45 70.07
ProtoSAM 73.61 76.26 68.37 72.75
FoB + SAM 78.93 77.12 73.81 76.62
Ours 83.15 ± 1.04 82.74 ± 0.96 79.71 ± 1.18 81.87 ± 0.79

A6:We further evaluated BAPM on the larger-scale Skin-DS dataset. (Rebuttal to qyec,Q2)As shown in Tab. 4, BAPM achieves the best performance on all three lesion categories, with an average Dice of 81.87%, outperforming the strongest baseline, FoB + SAM, by 5.25 percentage points. This result demonstrates the strong generalization ability of BAPM beyond abdominal organ segmentation, where clearer lesion boundaries further benefit reliable negative prompt mining.

Q7. Robustness to support slice selection and failure analysis

A7: We evaluated different support slice selection strategies (MaxArea, MinArea, Rand, Rand-High, and Rand-Low) in Section 4.2.2. Rand-High achieves an average Dice of 86.37%, compared with 84.04% for Rand, while MinArea decreases to 70.42%. Moreover, even under standard random support selection, our training-free method remains on par with FoB while using only one support slice instead of three chunk-wise representative support slices, demonstrating the robustness of BAPM to support selection. Rand-High was adopted because it better reflects practical clinical annotation workflows. (Rebuttal to qyec, Q4)

Due to the limitations of the rebuttal, we are unable to include additional visualizations here. In the revised manuscript, we will provide additional qualitative comparisons with representative methods.

Q8. Behavior on extremely small targets

A8:For extremely small targets, the boundary band may include neighboring tissues or foreground-like pixels. However, BAPM does not directly use all boundary-band pixels as negative prompts. Instead, pixel-level and cluster-level filtering remove ambiguous pixels and suppress unreliable background clusters, reducing incorrect negative prompts. Nevertheless, when the target contains only a few pixels, the foreground prototypes become less discriminative and the limited spatial resolution of SAM features may lead to inaccurate localization. We acknowledge this limitation and will investigate scale-adaptive prompting and higher-resolution feature representations in future work.

Reviewer qyecOpenReview ↗
Rating
4/6
Confidence
4/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

The paper proposes BAPM, a training-free few-shot medical image segmentation method using frozen SAM. The main idea is to sample positive prompts from heterogeneous foreground regions and negative prompts from reliable background regions near object boundaries. These prompts are then used together to guide SAM and reduce over-segmentation. The method is evaluated on Abd-MRI and Abd-CT for four abdominal organs. The results show that BAPM achieves strong Dice scores and outperforms several training-based and training-free few-shot segmentation baselines under the 1-way 1-shot setting.

Strengths and weaknesses

Strengths: \textbf{Strengths: }

  1. The paper is clear and easy to read.
  2. The proposed method selects hard negatives at the boundary, which is intuitive and useful. It is a training-free method, which is beneficial for clinical settings.

Weaknesses: \textbf{Weaknesses: }

  1. Insufficient discussion of related boundary-based methods.\textbf{Insufficient discussion of related boundary-based methods.} The paper is closely related to recent SAM-based few-shot segmentation methods that exploit background as prompts, especially FoB [2] cited in the paper. However, the discussion does not sufficiently clarify how the proposed boundary-aware prompt mining differs from prior boundary-based prompting methods. A more detailed comparison with FoB and other related methods would help establish the novelty and necessity of the proposed design.
  2. Incremental methodological contribution.\textbf{Incremental methodological contribution.} The core insight of the paper is similar to FoB [2], which uses boundary-adjacent background pixels as prompts. The improvement mainly lies in the filtering of foreground-like ambiguous pixels and the background cluster selections, but I doubt whether this could provide further insight.
  3. Limited evaluation on broader and larger-scale datasets.\textbf{Limited evaluation on broader and larger-scale datasets.} The experimental evaluation is mainly conducted on Abd-MRI and Abd-CT, which contain 20-30 3D volumes, although I agree that each volume contains some slices. I would appreciate it if additional experiments could be conducted on a larger-scale dataset, such as Skin-DS in [2].
  4. Lack of comparison with medical foundation models.\textbf{Lack of comparison with medical foundation models.} The paper evaluates against several few-shot medical segmentation and SAM-based prompting methods, but it lacks comparison with medical-domain foundation models such as MedSAM, which is widely used in medical image analysis. Including MedSAM-based baselines or applying the proposed prompt-mining strategy on top of medical SAM backbones would provide a more convincing evaluation of the method’s effectiveness.
  5. Robustness of support-query matching is not fully validated.\textbf{Robustness of support-query matching is not fully validated.} The method relies on the support image to provide informational SAM features, and the performance can vary depending on the support slice selection. Therefore, it would be useful to discuss the support slice selection strategy and the potential impact of using different slices or samples as support.
  6. Minor: \textbf{Minor: } (1) It is better to include visualization comparisons with other methods that use boundary-adjacent background pixels as prompts [2] to highlight the effectiveness.
Questions

I would raise my score if the author: (1) Discuss the difference and improvement between its proposed method and other methods that also use background context modeling. (2) Conduct experiments on a larger-scale dataset and compare with foundational models (3) Verify robustness of support slice selection

Limitations

The author lists a limitation of accurately localizing extremely small lesions due to the limited discriminability of sparse foreground cues and the intrinsic resolution constraints of SAM feature representations.

Final justification

The author addresses my concern. The paper exhibits good results on various datasets using positive and negative point prompt selection.

Formatting concerns

No.

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Q1. Insufficient discussion of related boundary-based methods & Incremental methodological contribution

A1. We thank the reviewer for this valuable suggestion. We agree that a clearer discussion of the differences from FoB and related boundary-based prompting methods would better highlight the novelty of our work. Although both methods exploit boundary-adjacent background information, they differ fundamentally in both feature representation and prompt generation. First, FoB learns dataset-specific representations through training, whereas our method directly leverages the frozen SAM foundation model, making it training-free and more readily applicable across different datasets without retraining. Second, FoB uniformly samples background points within the boundary band and aggregates their neighboring features, which may inevitably include foreground-like ambiguous pixels or noisy background regions. These unreliable support features are then propagated to the query image through feature matching, potentially producing incorrect negative prompts. In contrast, our method explicitly performs boundary-aware prompt mining by filtering ambiguous pixels before prompt generation and further selecting representative background clusters, resulting in more reliable negative prompts for guiding SAM. We will further emphasize these conceptual differences with FoB and other boundary-based prompting methods in the revised manuscript.

Q2. Limited evaluation on broader and larger-scale datasets.

Table 1. Segmentation results (%) on the larger-scale Skin-DS dataset under the 1-way 1-shot setting.

Methods Mel Nev SK Avg.
ALPNet 66.32 61.65 59.57 62.51
RPT 77.81 75.42 70.28 74.50
GMRD 79.23 72.78 71.32 74.44
PGRNet 71.39 70.21 65.87 69.16
ProtoMedSAM 70.84 72.91 66.45 70.07
ProtoSAM 73.61 76.26 68.37 72.75
FoB + SAM 78.93 77.12 73.81 76.62
Ours 83.15 ± 1.04 82.74 ± 0.96 79.71 ± 1.18 81.87 ± 0.79

A2: We thank the reviewer for this valuable suggestion. Following the reviewer’s recommendation, we further evaluated our method on the larger-scale Skin-DS dataset, and the results are summarized in Table 1. Our method achieves the best performance on all three lesion categories, with an average Dice of 81.87 ± 0.79%, outperforming the strongest baseline (FoB + SAM) by 5.25 percentage points. We believe this improvement is because Skin-DS provides clearer lesion boundaries and richer boundary-adjacent background textures, allowing our boundary-aware prompt mining strategy to more effectively identify reliable negative prompts while suppressing ambiguous boundary regions. These results further demonstrate the effectiveness and generalization ability of the proposed method beyond the Abd-MRI and Abd-CT datasets.

Q3. Lack of comparison with medical foundation models

Table 2. Comparison with SAM-based medical foundation model baselines (Dice, %).

Dataset Method Liv RK LK Spl Avg.
Abd-MRI ProtoMedSAM 78.21 82.03 75.86 73.75 77.46
ProtoSAM 83.14 82.36 82.75 77.98 81.56
Ours 86.98 ± 1.02 88.40 ± 1.37 85.31 ± 1.56 84.77 ± 0.63 86.37 ± 0.77
Abd-CT ProtoMedSAM 79.26 71.58 70.33 66.92 72.02
ProtoSAM 84.79 75.67 71.31 70.24 75.50
Ours 87.85 ± 1.18 85.22 ± 1.24 85.67 ± 0.69 87.87 ± 0.72 86.65 ± 0.82
Skin-DS Method Mel Nev SK Avg.
ProtoMedSAM 70.84 72.91 66.45 70.07
ProtoSAM 73.61 76.26 68.37 72.75
Ours 83.15 ± 1.04 82.74 ± 0.96 79.71 ± 1.18 81.87 ± 0.79

A3: A4. We thank the reviewer for this valuable suggestion. We agree that comparisons with medical-domain foundation models further strengthen the evaluation. Since MedSAM only supports bounding-box prompts, our point-based boundary-aware prompt mining strategy cannot be directly integrated into the MedSAM backbone. Therefore, following the evaluation protocol adopted in ProtoSAM, we compare our method with both ProtoMedSAM (which replaces SAM with MedSAM while using box prompts only) and ProtoSAM, a recent SAM-based medical foundation model. The results are summarized in Table 2.

As shown in Table 2, our method consistently achieves the best performance across all three datasets. Compared with ProtoSAM, our method improves the average Dice by +4.81 on Abd-MRI, +11.15 on Abd-CT, and +9.12 on Skin-DS, while the gains over ProtoMedSAM reach +8.91, +14.63, and +11.80 Dice points, respectively. The improvements are consistent across almost all anatomical structures and lesion categories, with particularly large gains on the kidneys, spleen, and Skin-DS lesions, where accurate boundary localization is especially important. We attribute these improvements to our boundary-aware prompt mining strategy, which generates reliable point prompts by filtering foreground-like ambiguous pixels and selecting representative boundary-adjacent background regions. In contrast, ProtoSAM relies on prompts extracted from coarse predictions, while ProtoMedSAM is restricted to bounding-box prompts and adopts a smaller ViT-B backbone, making it less suitable for our point-prompt-based framework. Overall, these results demonstrate that improving prompt quality is more critical than simply replacing the backbone with a medical-domain foundation model, while our framework remains completely training-free.

Q4. Robustness of support-query matching is not fully validated.

A4: We thank the reviewer for this valuable suggestion. In fact, we have already investigated the impact of different support slice selection strategies in Sec. 4.2.2 (Effect of Support Slice Selection) and reported the results in Table 3(c). Specifically, we compare MaxArea, MinArea, Rand, Rand-High, and Rand-Low support selection strategies. As shown in Table 3(c), selecting slices with larger foreground regions consistently yields better performance than random selection (e.g., Rand-High: 86.37% vs. Rand: 84.04%), while selecting slices with very small foreground regions significantly degrades performance (MinArea: 70.42%). These results indicate that support slices containing sufficiently large and representative target regions provide more reliable guidance for SAM feature matching. We will further clarify this discussion in the revised manuscript to make this analysis more prominent.

Q5. It is better to include visualization comparisons with other methods that use boundary-adjacent background pixels as prompts [2] to highlight the effectiveness.

A5: We thank the reviewer for this valuable suggestion. We agree that qualitative comparisons are important for illustrating the effectiveness of boundary-aware prompting. Due to the limitations of the rebuttal, we are unable to include additional visualizations here. In the revised manuscript, we will provide side-by-side qualitative comparisons with FoB and other representative boundary-based prompting methods to more clearly demonstrate the advantages of our boundary-aware prompt mining strategy.

Reviewer qyec · CommentOpenReview ↗

Further question regarding Q4

Thanks for the explanation of Q4, and I admit that I missed the ablation study. I have a follow-up question. The results of BAPM are reported using the Rand-High strategy, while other SOTA from Table 1 are mostly aligned with FoB Table 1 Setting 1. However, I don't think the FoB method selects the support slice using the Rand-High strategy (in the paper, it seems they follow ALPNet [20]. It seems to me that presenting the result of random sampling of the support slice is more fair.

Authors · CommentOpenReview ↗

Response to the Follow-up Question on Support Slice Selection

Thank you very much for your thoughtful follow-up question! We appreciate your careful reading and the opportunity to further clarify this important point.

We would like to clarify that our support protocol is actually more restrictive than that adopted in FoB and ALPNet. Specifically, following ALPNet, FoB partitions each volume into three anatomical chunks and selects one representative support slice from each chunk, resulting in three support slices for each volume. In contrast, our method uses only a single support slice throughout the entire volume during inference, without requiring chunk-wise support selection. As shown in our ablation study (Table 3(c)), even under the standard random support selection strategy, our training-free method remains on par with FoB while using only one support slice instead of three chunk-wise representative support slices. This improvement stems from our boundary-aware prompt mining strategy, which generates more reliable positive and negative prompts from a single support slice.

Regarding the Rand-High strategy, we adopted it because it better reflects practical clinical annotation workflows. In real annotation scenarios, clinicians typically inspect the entire 3D volume before selecting a representative slice for annotation. Slices containing relatively larger organ regions are generally more convenient for clinicians to identify and annotate accurately.

Reviewer uE9VOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes BAPM, a training-free framework for few-shot medical image segmentation with SAM. The authors note that existing SAM-based few-shot methods mainly depend on positive prompts from support images, which can cause over-segmentation when boundaries are ambiguous or nearby tissues look similar to the target. To address this, BAPM generates multiple positive prompts using foreground prototype clustering to better cover the target region. It further builds a boundary-adjacent background band and applies pixel-level and cluster-level filtering to select reliable boundary-aware negative prompts. These positive and negative prompts are jointly fed into SAM without extra training. Experiments on Abd-MRI and Abd-CT show that BAPM outperforms several baselines, especially in reducing over-segmentation.

Strengths and weaknesses

Strengths:

  1. The motivation is clear and well-grounded. The paper identifies a practical limitation of applying SAM to few-shot medical image segmentation: using only positive prompts can easily lead to over-segmentation. In medical images, organ boundaries are often ambiguous, and the target region may share similar intensity or texture patterns with surrounding tissues. As a result, SAM may incorrectly include adjacent non-target regions in the predicted mask.
  2. The method is intuitive and well aligned with the identified problem. The proposed design directly addresses the over-segmentation issue. On the one hand, foreground prototype clustering is used to generate multiple positive prompts, helping SAM capture representative regions within the target object. On the other hand, the method constructs a background band near the target boundary and selects reliable negative prompts from this region, explicitly indicating which nearby areas should be excluded. This positive-negative prompt design is logically consistent with the problem the paper aims to solve.
  3. The training-free setting has practical value. The method does not require retraining or fine-tuning SAM. Instead, it uses only the support image and support mask to generate prompts for the query image. This is attractive for medical imaging applications, where annotations are costly and data distributions may vary substantially across hospitals, scanners, and modalities. A training-free framework lowers deployment cost and may be easier to adapt to new categories or datasets.
  4. The work is practically relevant to medical image segmentation. The reported results on Abd-MRI and Abd-CT suggest that the proposed method is useful for common abdominal organ segmentation tasks. In particular, improving segmentation performance under few-shot settings is meaningful for medical applications, since reducing reliance on large annotated datasets can make such methods more feasible in practice.

Weakness:

  1. The originality may be somewhat compositional. The core of the method is mainly built on several existing ideas, such as prototype clustering and feature similarity matching. These components are not entirely new by themselves. The main contribution of this work lies in integrating them into a prompt mining framework for SAM-based few-shot medical image segmentation. Therefore, the originality may be relatively limited, and the method is better viewed as an effective but incremental improvement over SAM-based prompt mining.
  2. The paper lacks an in-depth analysis of failure categories. From the comparative results, the proposed method does not achieve the best performance on all categories. For example, on the RK category in the Abd-MRI dataset and the RK and LK categories in the Abd-CT dataset, BAPM obtains lower Dice scores than some competing methods. The authors should further analyze why the method performs worse on these categories, as this would help clarify the applicability and potential failure cases of the proposed approach.
  3. The computational cost and practical complexity are not sufficiently discussed. Although BAPM is training-free and does not require additional training or fine-tuning of SAM, it still involves multiple feature similarity computations between support and query images, as well as foreground and background clustering. Compared with directly using SAM or simpler prompt-based baselines, this pipeline introduces additional inference complexity. Reporting inference time, memory usage, or computational cost would help assess the practical value of the method in real medical image segmentation scenarios.
  4. Boundary-related metrics and qualitative visualizations are not sufficiently provided. The core goal of this work is to alleviate over-segmentation and boundary leakage through boundary-aware prompt mining, but the evaluation mainly relies on Dice. However, Dice is not necessarily sensitive enough to boundary quality, local leakage, or false-positive regions. Since the paper emphasizes the role of boundary-aware negative prompts, adding boundary-related metrics such as HD95 and ASSD/ASD would provide stronger evidence that the method indeed improves boundary alignment. In addition, more side-by-side visual comparisons with major competing methods, especially highlighting boundary errors, would more intuitively show whether BAPM truly reduces boundary expansion and mis-segmentation of non-target regions.
  5. The statistical significance and stability of the results are insufficiently demonstrated. The ablation experiments only report average results, without variance or confidence intervals. Although the paper states that “standard deviations are reported where applicable,” the standard deviations for ablation experiments should be obtainable. Given the sensitivity of few-shot medical image segmentation, the authors should report mean ± std whenever possible and provide statistical tests, such as paired t-tests or confidence intervals. Otherwise, although the current results show that the total model achieves higher Dice scores, they do not fully demonstrate that these improvements are statistically stable and significant.
Questions
  1. Please add boundary-related metrics, such as HD95 and ASSD/ASD, to verify whether BAPM truly improves boundary alignment rather than only increasing Dice. If these metrics also show consistent improvements, I would have more confidence in the paper’s core boundary-aware claim.
  2. Please explain why BAPM underperforms some competing methods on the RK category in Abd-MRI and the RK and LK categories in Abd-CT. This would help clarify under which organs or imaging conditions the proposed method may fail.
  3. Please report mean ± std, confidence intervals, or similar statistics for key ablation experiments to demonstrate that the improvements are statistically significant.
  4. Please provide inference time, memory usage, or computational complexity analysis to show whether this training-free method remains efficient in practical deployment.
  5. Please include more visualizations against those state-of-the-art methods, especially highlighting boundary leakage and false-positive regions. This would more directly verify whether the negative prompts indeed reduce over-segmentation.
Limitations

The authors partially discuss limitations, but the discussion is not fully adequate. They mention that localization of small lesions remains challenging and that future work may incorporate textual information. However, the paper would benefit from a more explicit discussion of several limitations, including computational overhead despite being training-free and the lack of boundary-sensitive evaluation metrics.

Final justification

The authors' rebuttal has substantially alleviated my concerns. In particular, the newly reported HD95 and NSD results provide direct evidence that the improvement is not limited to Dice but also extends to boundary quality. The additional analysis of the kidney cases offers a plausible and experimentally supported explanation for the relatively lower performance on the RK/LK categories, showing that the remaining errors mainly arise from left-right identity ambiguity in training-free feature matching. Moreover, the repeated-run ablation results with mean and standard deviation strengthen the evidence for the stability and robustness of the proposed modules, while the runtime and memory analysis clarifies that the additional overhead introduced by prompt mining is relatively small compared with that of the frozen SAM backbone. Although the requested qualitative comparisons are still deferred to the revised manuscript, the rebuttal has adequately addressed the major technical and experimental issues I raised and has significantly increased my confidence in the work. For these reasons, I am raising my score.

Formatting concerns

I did not notice any major issues related to formatting, anonymity, or other policy requirements.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Q1. Please add boundary-related metrics, such as HD95 and ASSD/ASD, to verify whether BAPM truly improves boundary alignment rather than only increasing Dice. If these metrics also show consistent improvements, I would have more confidence in the paper’s core boundary-aware claim.

Table 1. Boundary-aware evaluation on the Abd-MRI dataset using HD95 (↓) and NSD (↑).

Method Liv HD95↓ RK HD95↓ LK HD95↓ Spl HD95↓ Avg.HD95↓ Liv NSD↑ RK NSD↑ LK NSD↑ Spl NSD↑ Avg. NSD↑
PerSAM 91.64±5.81 47.50±4.32 46.83±4.09 43.37±4.74 57.34±3.84 10.00±3.65 53.75±2.86 48.46±3.12 53.51±2.74 41.43±2.54
GMRD 31.22±2.41 22.18±2.03 22.93±2.18 34.33±2.86 27.67±2.01 49.99±1.92 76.16±1.38 70.45±1.51 61.15±1.74 64.44±1.32
SAM2 (P2) 46.41±3.58 34.73±2.91 24.00±2.37 30.67±2.64 33.95±2.12 36.76±2.61 65.10±2.12 69.46±1.87 64.25±2.03 58.89±1.74
SynPo 37.57±3.01 31.74±2.75 31.23±2.82 28.86±2.56 32.35±2.10 44.46±2.24 67.77±1.83 62.81±2.04 65.78±1.82 60.21±1.56
FoB 24.72±2.08 24.80±2.01 21.93±1.82 30.15±2.18 25.40±1.53 55.65±1.62 73.94±1.29 71.37±1.18 64.69±1.45 66.41±1.08
Ours 22.60±1.28 23.15±1.42 21.24±1.17 23.05±1.09 22.51±0.96 57.50±1.03 75.20±0.91 72.00±0.84 70.70±0.98 68.85±0.72

Table 2. Boundary-aware evaluation on the Abd-CT dataset using HD95 (↓) and NSD (↑).

Method Liv HD95↓ RK HD95↓ LK HD95↓ Spl HD95↓ Avg.HD95↓ Liv NSD↑ RK NSD↑ LK NSD↑ Spl NSD↑ Avg. NSD↑
PerSAM 48.70±4.22 51.94±4.75 52.54±4.61 46.75±4.08 49.98±3.54 52.86±2.63 47.60±2.88 46.08±2.95 53.88±2.56 50.11±2.18
GMRD 29.74±2.36 34.25±2.74 24.66±2.12 30.15±2.48 29.70±1.94 69.01±1.51 63.16±1.82 71.63±1.36 68.48±1.47 68.07±1.21
SAM2 (P2) 36.31±2.92 25.68±2.14 21.26±1.96 24.44±2.08 26.92±1.71 63.41±1.88 70.71±1.56 74.76±1.42 73.51±1.49 70.60±1.25
SynPo 27.42±2.47 27.79±2.39 32.70±2.86 23.34±2.03 27.81±1.84 70.99±1.67 68.85±1.71 64.26±1.92 74.48±1.46 69.64±1.30
FoB 20.41±1.63 21.19±1.55 18.96±1.42 22.36±1.71 20.73±1.28 76.96±1.18 75.42±1.07 77.78±0.98 75.34±1.11 76.38±0.92
Ours 18.60±1.05 20.80±1.13 19.90±1.02 18.20±0.98 19.38±0.81 78.50±0.88 76.00±0.94 76.00±0.91 79.00±0.85 77.38±0.69

A1. We thank the reviewer for this valuable suggestion. Following the reviewer’s recommendation, we additionally evaluated HD95 and NSD to better assess boundary quality. Following MedSAM, we adopt NSD, a boundary-based metric that measures the agreement between the expert-annotated mask and the predicted segmentation within a predefined tolerance. As shown in Tab. 1 and Tab. 2, the results consistently support our boundary-aware claim. On Abd-MRI, our method reduces the average HD95 from 25.40 ± 1.53 (FoB) to 22.51 ± 0.96 while improving the average NSD from 66.41 ± 1.08 to 68.85 ± 0.72. The largest improvement is observed on the spleen, where HD95 decreases from 30.15 to 23.05 and NSD increases from 64.69 to 70.70, indicating substantially reduced boundary leakage. Similar improvements are observed on Abd-CT, where our method achieves the best average HD95 (19.38 ± 0.81) and NSD (77.38 ± 0.69), with consistent gains on the liver and spleen (e.g., liver HD95: 20.41 → 18.60, spleen NSD: 75.34 → 79.00). These boundary-sensitive metrics are fully consistent with the Dice improvements, demonstrating that BAPM improves not only region overlap but also boundary alignment. We will include these results in the revised manuscript.

Q2. Please explain why BAPM underperforms some competing methods on the RK category in Abd-MRI and the RK and LK categories in Abd-CT. This would help clarify under which organs or imaging conditions the proposed method may fail.

Table 3. Kidney segmentation performance after merging the right kidney (RK) and left kidney (LK) into a single Kidney category.

Dataset Kidney Dice ↑ HD95 (mm) ↓ NSD (%) ↑
Abd-MRI 89.22 ± 1.18 20.84 ± 2.06 75.18 ± 1.42
Abd-CT 87.96 ± 0.86 18.72 ± 1.74 77.83 ± 1.16

Table 4. Foreground statistics of the left and right kidneys in Abd-MRI and Abd-CT.

Dataset Label Cases Slices Mean FG Pixels Mean FG Ratio
Abd-CT LK 26 775 793.945806 1.202056%
Abd-CT RK 26 784 803.788265 1.216958%
Abd-MRI LK 20 285 1096.428070 1.673016%
Abd-MRI RK 20 300 1041.490000 1.589188%

A2: We thank the reviewer for this insightful question. We believe the slightly lower performance on RK/LK mainly arises from left-right identity ambiguity, rather than limitations of the proposed boundary-aware prompt mining strategy. As shown in Tab. 4, the left and right kidneys have highly similar foreground sizes and image proportions (e.g., 1.20% vs. 1.22% in Abd-CT and 1.67% vs. 1.59% in Abd-MRI). Since BAPM relies on frozen SAM features without positional supervision, a foreground prototype may occasionally respond to the contralateral kidney, whereas training-based methods can implicitly learn left-right anatomical priors. To verify this hypothesis, we merged RK and LK into a single Kidney category while keeping the pipeline unchanged. As shown in Tab. 3, the Kidney Dice improves from 86.86% to 89.22% (+2.36%) on Abd-MRI and from 85.45% to 87.96% (+2.51%) on Abd-CT, accompanied by improved HD95 (20.84/18.72 mm) and NSD (75.18%/77.83%). These results indicate that the remaining errors are primarily caused by left-right identity confusion inherent to training-free feature matching, rather than deficiencies in the proposed boundary-aware prompt mining strategy. We will include this analysis in the revised manuscript.

Q3. Please report mean ± std, confidence intervals, or similar statistics for key ablation experiments to demonstrate that the improvements are statistically significant.

Table. 5 Ablation study with mean ± standard deviation (%) over multiple independent runs.

Strategy Liv RK LK Spl Avg.
Pos 56.10±3.24 77.40±2.5 70.57±2.57 73.25±2.78 69.33±2.84
Pos + Remote 41.57±3.26 56.29±3.21 48.67±3.73 59.96±3.01 51.62±3.26
Pos + Band 61.18±2.44 78.28±2.1 72.48±2.03 66.36±2.15 69.58±2.33
Pos + Band + Pixel-Filter 84.38±1.06 85.88±1.53 83.36±1.35 82.61±1.76 84.06±1.51
Pos + Band + Pixel-Filter + Cluster-Filter (Ours) 86.98±1.02 88.40±1.21 85.31±1.05 84.77±0.69 86.37±0.77

A3: We thank the reviewer for this valuable suggestion. Following the reviewer’s recommendation, we repeated the ablation experiments over multiple independent runs and report the results as mean ± standard deviation, as shown in Tab.5. The proposed full model consistently achieves the best performance across all organs while exhibiting the lowest variance. In particular, the average standard deviation decreases from 2.84 (Pos) and 3.26 (Pos + Remote) to 1.51 after introducing the pixel-level filtering module, and is further reduced to 0.77 in the complete model, demonstrating that both the pixel- and cluster-level filtering strategies not only improve segmentation accuracy but also substantially enhance the robustness and stability of the proposed boundary-aware prompt mining framework. We will include these statistics in the revised manuscript and additionally report 95% confidence intervals in the supplementary material.

Q4. Please provide inference time, memory usage, or computational complexity analysis to show whether this training-free method remains efficient in practical deployment.

A4: We thank the reviewer for this valuable suggestion. We have additionally analyzed the inference time and memory consumption of the proposed framework. For a fixed support image and Q query slices, the overall runtime can be expressed as T(Q)=Tsup+Q TqueryT(Q)=T_{\mathrm{sup}}+Q\,T_{\mathrm{query}}, which is linear with respect to the number of query slices (O(Q)\mathcal{O}(Q)). The support feature extraction requires approximately 1.79 s and is performed only once per patient. For each query slice, prompt generation requires only 0.061 s, while the frozen SAM image encoder and mask decoder require 0.449 s and 0.322 s, respectively, resulting in a total inference time of 0.832 s per query slice. Therefore, most of the inference time is still dominated by the frozen SAM encoder and decoder rather than the proposed prompt mining modules. In terms of memory, the peak GPU memory is approximately 5.68 GiB on an NVIDIA RTX A4000, with the frozen SAM ViT-H backbone accounting for nearly all memory usage and the mask decoder adding only 36.1 MiB. We will include this runtime and memory analysis in the revised manuscript. Q5. Please include more visualizations against those state-of-the-art methods, especially highlighting boundary leakage and false-positive regions. This would more directly verify whether the negative prompts indeed reduce over-segmentation.

A5: We thank the reviewer for this valuable suggestion. We agree that additional qualitative comparisons would further strengthen the evidence for our boundary-aware prompt mining strategy. Due to the limitations of the rebuttal, we are unable to include additional visualizations here. In the revised manuscript, we will provide additional qualitative comparisons with representative methods.

Reviewer uE9V · CommentOpenReview ↗

The authors' rebuttal has substantially alleviated my concerns. In particular, the newly reported HD95 and NSD results provide direct evidence that the improvement is not limited to Dice but also extends to boundary quality. The additional analysis of the kidney cases offers a plausible and experimentally supported explanation for the relatively lower performance on the RK/LK categories, showing that the remaining errors mainly arise from left-right identity ambiguity in training-free feature matching. Moreover, the repeated-run ablation results with mean and standard deviation strengthen the evidence for the stability and robustness of the proposed modules, while the runtime and memory analysis clarifies that the additional overhead introduced by prompt mining is relatively small compared with that of the frozen SAM backbone. Although the requested qualitative comparisons are still deferred to the revised manuscript, the rebuttal has adequately addressed the major technical and experimental issues I raised and has significantly increased my confidence in the work. For these reasons, I am raising my score.

Authors · CommentOpenReview ↗

Thank you very much for your thoughtful follow-up comments and for your positive assessment of our rebuttal! We sincerely appreciate your willingness to raise the score, and we are delighted that our explanations and analyses have addressed your concerns.

We also greatly appreciate your constructive suggestions throughout the review process. In the final version, we will further strengthen the presentation and discussion of our method, as well as incorporate the qualitative comparisons to make the manuscript clearer and more comprehensive.

Thank you again for your valuable feedback and support.

Reviewer ca4sOpenReview ↗
Rating
5/6
Confidence
5/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

To address the over-segmentation and boundary leakage problems caused by a lack of background cues in training-free few-shot medical image segmentation frameworks, this paper proposes a training-free support-query framework termed Boundary-Aware Prompt Mining (BAPM) for SAM-based medical image segmentation. Specifically, the method leverages a Prototype-guided Positive Prompt strategy that employs multi-center density clustering on the support image to capture foreground heterogeneity and localize positive points on the query image via feature matching. Simultaneously, a Boundary-band Ambiguity Filtering strategy constructs a localized boundary-adjacent background band, applies a progressive pixel- and cluster-level filtering pipeline to eliminate ambiguous foreground-like background regions, and transfers the remaining reliable, low-similarity background prototypes to the query slice as negative prompts. Overall, by seamlessly feeding these mined positive and negative prompts into a frozen SAM backbone without any additional training or model fine-tuning, the framework achieves segmentation on abdominal CT and MRI datasets.

Strengths and weaknesses

Strengths:

  1. The proposed framework operates in an entirely training-free manner, completely bypassing the computationally heavy and data-demanding fine-tuning pipelines or prompt-encoder adaptation stages common in medical SAM extensions. This significantly enhances its practical clinical utility under data-scarce scenarios.

  2. While many existing SAM-based methods treat negative prompt selection as an afterthought or rely on random remote background sampling, this paper provides a narrative on why naive negative prompting fails (e.g., causing under-segmentation or mask decoder confusion). The design of a progressive pixel-to-cluster filtering pipeline explicitly tailored to capture boundary-adjacent background cues is a fresh and technically logical take on medical prompt mining.

  3. The performance of the proposed method gains are clearly documented. Furthermore, the cross-modality generalization experiments emphasize the robustness of utilizing frozen foundation models coupled with modality-agnostic feature matching.

Weaknesses:

  1. The method introduces multiple delicate geometric and statistical hyperparameters—such as the morphological dilation radius rr, the pixel filtering ratio αpixel\alpha_{pixel}, and the cluster retention ratio βcluster\beta_{cluster}. The parameter ablations in Section 4.2.2 reveal that optimal values vary significantly across different organs (e.g., αpixel=0.05\alpha_{pixel} = 0.05 for liver vs. 0.30.3 for spleen; r=5r = 5 for liver vs. r=3r = 3 for kidneys). This high organ-dependency compromises the "plug-and-play" claim of a training-free framework, as an end-user would not know how to tune these parameters for a novel target structure without a validation set, which contradicts the strict few-shot assumption.

  2. Although the method is "training-free" regarding backpropagation, it introduces dense pixel-level cosine similarity calculations, DBSCAN clustering on thousands of feature vectors, and cross-slice feature matching for every single query slice. The paper lacks a detailed narrative on the inference runtime complexity, which is crucial for evaluating its clinical viability during real-time image viewing.

Questions
  1. Given that the optimal dilation radius rr and pixel filtering threshold αpixel\alpha_{pixel} are highly dependent on the anatomical size and contrast of the organ (as shown in Tab. 3d and Fig. 5), how can this framework be generalized to unseen organs without manual tuning?

  2. What is the average wall-clock execution time for generating prompts per query slice? How does the DBSCAN clustering step scale when handling larger foreground/background feature maps?

  3. In Section 3.3, you mention that the number of foreground prototypes (KK) is automatically determined by DBSCAN. How many positive prompts are typically generated on average for organs like the liver versus the kidneys?

Limitations

In the conclusion, you correctly note that the method faces challenges with extremely small lesions. Could the authors clarify how the BAF module behaves when the target structure is only a few pixels wide, where a dilation of r=3r=3 might completely engulf neighboring organs or false-positive tissues?

Final justification

I have read the comments of the other reviewers and the authors' response adressing my concerns. The rebuttal work has adequately solved the major issues I raised in this paper. Thus, I would raise my score.

Formatting concerns

None.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

Q1. Given that the optimal dilation radius r and pixel filtering threshold αpixel\alpha_{\text{pixel}} are highly dependent on the anatomical size and contrast of the organ (as shown in Tab. 3d and Fig. 5), how can this framework be generalized to unseen organs without manual tuning?

A1: Thank you for raising this important concern. We agree that the optimal hyperparameters exhibit moderate organ dependency due to anatomical differences. However, we would like to clarify that our main experiments do not tune hyperparameters for each organ individually. Instead, a single global parameter configuration is adopted for all organs under each evaluation setting, and no organ-specific parameter selection is performed during testing.

As shown in our parameter analysis, larger structures (e.g., the liver) benefit from a slightly wider boundary band, which captures richer surrounding contextual cues, whereas relatively compact organs such as the kidneys and spleen achieve better performance with narrower boundary bands that focus on boundary-adjacent background regions. Therefore, the observed parameter variations are consistent with anatomical characteristics rather than being dataset-specific heuristics.

Importantly, these observations also provide a practical guideline for unseen organs. Since the boundary radius primarily reflects the spatial extent of the target, a reasonable initial choice can be estimated according to the approximate organ size (e.g., larger organs → slightly larger r; smaller organs → smaller r). Similarly, αpixel\alpha_{\text{pixel}} controls the removal of foreground-like ambiguous pixels rather than learning organ-specific knowledge, making it transferable across anatomies. Moreover, as shown in our ablation studies, the performance changes smoothly within a reasonable parameter range, indicating that the framework is relatively robust rather than highly sensitive to precise parameter values.

We agree that automatically adapting these hyperparameters according to the estimated foreground size or boundary complexity would further improve the practicality of the framework. We will clarify this point and discuss adaptive parameter estimation as an important direction for future work in the revised manuscript.

Q2. What is the average wall-clock execution time for generating prompts per query slice? How does the DBSCAN clustering step scale when handling larger foreground/background feature maps?

Table 1. DBSCAN runtime and memory consumption with increasing numbers of input feature points.

Number of Feature Points DBSCAN Time (ms) Time Std. (ms) Peak CPU Memory (MB)
500 57.97 33.24 13.02
1,000 82.81 43.54 18.64
2,000 163.73 31.74 42.62
4,000 422.88 56.31 90.61
8,000 1,543.18 156.21 343.18

Table 2

Organ Avg. Features DBSCAN Time (ms)
RK 112 15
LK 108 15
Spleen 200 23
Liver 743 71

A2. We thank the reviewer for raising this important question regarding computational efficiency. The average wall-clock time for generating positive and negative prompts is 0.061 s per query slice. The subsequent frozen SAM image encoding and mask decoding require approximately 0.449 s and 0.322 s, respectively. Therefore, the total inference time for one query slice is 0.061 + 0.449 + 0.322 = 0.832s. The support feature extraction requires approximately 1.79 s per patient. However, this operation is performed only once for each annotated support slice, and the extracted support features are then reused for all query slices from the same patient. Thus, this one-time cost does not increase linearly with the number of query slices.For a fixed support image and Q query slices, the overall runtime can be expressed as T(Q)=Tsup+Q TqueryT(Q)=T_{\mathrm{sup}}+Q\,T_{\mathrm{query}}, which is linear with respect to the number of query slices (O(Q)\mathcal{O}(Q)).

To further evaluate the computational cost of DBSCAN, we measured its runtime and memory usage with different numbers of input feature points. As shown in Table 1, the runtime increases from 57.97 ms for 500 points to 82.81 ms, 163.73 ms, 422.88 ms, and 1.54 s for 1,000, 2,000, 4,000, and 8,000 points, respectively. Peak CPU memory also increases gradually from 13.02 MB to 343.18 MB. Since DBSCAN is executed entirely on the CPU, it introduces no additional GPU memory overhead.

Importantly, these large-scale settings are substantially beyond the feature-set sizes encountered in our experiments. As reported in Table 2, the average number of foreground feature points is only 108 for the left kidney, 112 for the right kidney, 200 for the spleen, and 743 for the liver, which is the largest structure considered. Correspondingly, the practical DBSCAN runtime is only 15 ms for both kidneys, 23 ms for the spleen, and 71 ms for the liver. Even for the liver, DBSCAN accounts for only about 8.5% of the total per-query inference time of 0.832 s. For the kidneys and spleen, its contribution is below 3%.

These results show that although DBSCAN becomes more expensive for artificially large feature sets, its computational overhead is small under the actual feature-map sizes in our datasets. Moreover, clustering is applied only to foreground or filtered boundary-band features rather than the entire dense image feature map. We will add the detailed wall-clock runtime, memory analysis, and practical organ-wise DBSCAN statistics to the revised manuscript.

Q3. In Section 3.3, you mention that the number of foreground prototypes (K) is automatically determined by DBSCAN. How many positive prompts are typically generated on average for organs like the liver versus the kidneys?

A3: We thank the reviewer for this insightful question. The number of positive prompts is automatically determined by DBSCAN and therefore adapts to the anatomical complexity of each target organ rather than being manually specified. In our experiments, for liver segmentation, DBSCAN generates 7.93 ± 2.57 positive prompts on average (range 4–12), while the right and left kidneys generate 3.13 ± 1.15 (range 1–5) and 1.87 ± 0.81 (range 1–3) prompts, respectively. The spleen requires 2.47 ± 1.63 prompts on average (range 1–6). These results are anatomically intuitive, as the liver has a larger spatial extent and more heterogeneous appearance than the kidneys, requiring more representative prototypes for adequate coverage. We will include these quantitative statistics in the revised manuscript to better illustrate the adaptive behavior of the proposed prototype generation strategy.

Comments on the paper

1 comment
Area Chair RvDm · CommentOpenReview ↗

Author-reviewer discussion begins

Dear reviewers,

Authors have entered their responses to your comments. Please review them to determine whether your major concerns have been adequately addressed. Also, we encourage you to read reviews by your fellow reviewers, as it may help identify any potential misunderstandings in your initial evaluation. The author–reviewer discussion phase offers a valuable opportunity for both parties to clarify uncertainties and resolve any points of confusion.

AC

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…