TL;DR
R²-Seg is a training-free framework that robustly adapts medical image foundation models to out-of-distribution (OOD) tumor segmentation without changing a single model parameter. By combining LLM-guided anatomical reasoning to localize regions of interest with a two-sample statistical rejection filter, it drastically reduces false positives and completely avoids the catastrophic forgetting typical of fine-tuning approaches.
What Problem Does This Paper Address?
Medical image foundation models (like BiomedParse) show incredible promise for zero-shot segmentation, but they frequently stumble when encountering out-of-distribution (OOD) data. Because tumors vary wildly in size, shape, and intensity across different scanners, protocols, and patient populations, OOD shifts are incredibly common.
When faced with these shifts, foundation models tend to over-predict foreground regions, generating fragmented false positives or mistakenly segmenting entire organs instead of just the tumor. Traditional fixes like fine-tuning or parameter-heavy test-time adaptation (TTA) suffer from two major flaws: they risk catastrophic forgetting (destroying the model's ability to segment normal organs) and they require white-box access to the model's internal architecture, which isn't always available.
The authors ask a critical question: Can we adapt a foundation model to OOD tumor segmentation without modifying its architecture or parameters?
Methods
R²-Seg solves this using a training-free, black-box Reason-and-Reject paradigm. The framework keeps the underlying foundation model completely frozen and operates in two distinct stages:
-
The Reason Stage (LLM-based Planning & ROI Construction): Instead of feeding the entire medical image to the segmentor, a Large Language Model (LLM) acts as an anatomical planner. Given a target prompt (e.g., "bladder tumor"), the LLM identifies the relevant "anchor organ" (the bladder) and outlines geometric rules for cropping. The foundation model first segments this normal anchor organ, and the system constructs multi-scale, padded Regions of Interest (ROIs) around it. Subsequent tumor segmentation is strictly confined to these localized windows, which naturally filters out background noise.
-
The Reject Stage (Statistical Two-Sample Testing): To eliminate remaining false positives within the ROIs, R²-Seg applies a non-parametric two-sample statistical test using Maximum Mean Discrepancy (MMD). It extracts pixel-level intensity features from the generated tumor candidates and compares them directly against the features of the verified normal organ tissue. If a candidate's feature distribution isn't statistically different from normal tissue, it is rejected. The system uses Benjamini-Hochberg (BH) correction to control the False Discovery Rate (FDR) across multiple candidates and applies a three-level gating policy to handle tricky "empty-mask" scenarios where no tumor is present.
Datasets
The authors evaluated R²-Seg across ten organ-specific tumor datasets spanning computed tomography (CT) and magnetic resonance (MR) modalities:
- OOD Tumor Types (Evaluation): Bladder, Uterus, Prostate, Breast, and Cervix tumors (all MR-based).
- In-Distribution Tumor Types: Liver, Lung, Pancreas, Colon, and Kidney tumors (all CT-based).
- In-Distribution Normal Data (For Forgetting Evaluation): AMOS22 (CT & MR) and M&Ms (MR Cardiac) datasets to verify if adaptation degraded normal organ segmentation.
Key Insights and Ideas
- Context Isolation via LLMs: Restricting the foundation model's field of view to an LLM-planned ROI fundamentally alters the visual embedding space, making foreground and background features significantly more separable under OOD shifts.
- Statistical Rejection over Confidence Thresholds: Foundation models output highly biased confidence scores when facing OOD data. Instead of relying on these unreliable model outputs, R²-Seg uses a label-free, data-driven statistical test (MMD) to let the image data speak for itself.
- The Power of Freezing: By achieving adaptation entirely through test-time prompting and post-processing, R²-Seg completely bypasses the gradient-descent loop. This guarantees zero catastrophic forgetting of the foundation model's original capabilities.
Key Results
R²-Seg consistently outperformed zero-shot BiomedParse and its fine-tuned variants in both specificity and class-average accuracy (CA):
- Massive Accuracy Gains: For prostate tumors, R²-Seg boosted the Dice score from a dismal 0.047 (zero-shot baseline) to 0.465, and raised class-average accuracy from 0.552 to 0.890.
- Suppressing False Positives: Baseline models frequently achieved 100% sensitivity at the cost of 0% specificity (segmenting everything). R²-Seg successfully calibrated this decision boundary, providing balanced, clinically viable segmentations.
- Zero Forgetting: While fine-tuned models (BiomedParse-FT and LoRA) saw their performance plummet on standard in-distribution organ segmentation tasks due to catastrophic forgetting, R²-Seg maintained perfect preservation of the base model's original knowledge base.
Limitations and Future Work
The primary limitation of R²-Seg lies in its strictness: the statistical rejection filter introduces a classic clinical trade-off. While it aggressively suppresses false positives (improving specificity), it risks rejecting true tumor tissue in highly ambiguous or low-contrast regions, slightly lowering sensitivity. The authors note that achieving a simultaneous, un-compromised improvement in both sensitivity and specificity under severe OOD shifts remains an open challenge for future work.
Summary updated