Research
Supervise Less, See More: Training-free Nuclear Instance Segmentation with Prototype-Guided Prompting
Overview Research area: Computational pathology / computer vision — specifically nuclear instance segmentation in hematoxylin and eosin (H&E) stained histopathology images using vision foundation mode
- arXiv
- 2511.19953
- Published
- 2025-11-25
- Authors
- Wen Zhang, Qin Ren, Wenjing Liu, Haibin Ling, Chenyu You
AI summary
Overview
Research area: Computational pathology / computer vision — specifically nuclear instance segmentation in hematoxylin and eosin (H&E) stained histopathology images using vision foundation models.
Technical level: Intermediate. The paper assumes familiarity with segmentation metrics (AJI, PQ, Dice), the Segment Anything Model (SAM), and basic representation learning. The optimal transport formulation in the method section is mathematically dense, but the paper provides extensive appendix derivations for readers who want to go deeper.
One-sentence scope: The paper introduces SPROUT, a completely training-free and annotation-free pipeline that generates automatic point prompts for SAM by exploiting H&E stain chemistry and a partial optimal transport scheme, achieving competitive nuclear instance segmentation across four pathology benchmarks.
What This Paper Is About
Nuclear instance segmentation — outlining every individual cell nucleus in a tissue slide — is essential for cancer diagnosis and prognosis, but existing methods require large amounts of expensive pixel-level annotation and repeated model fine-tuning for every new dataset or staining protocol. This paper asks whether the same task can be solved with zero human labels and zero parameter updates, by combining biological priors from the staining process itself with the zero-shot capabilities of SAM. The authors' answer is SPROUT, a prompting framework that builds its own reference signals from within each image and translates them into precise positive and negative point prompts.
Key Contributions
-
First fully training-free and annotation-free nuclear instance segmentation framework. SPROUT requires no ground-truth masks, no fine-tuning, and no adapter modules. It replaces the standard few-shot/reference-image paradigm with a self-reference mechanism that derives semantically reliable foreground and background prototypes directly from H&E stain priors inside the target image.
-
POT-Scan: a progressive partial optimal transport scheme with theoretical guarantees. Rather than forcing every pixel feature into a nearest-prototype assignment (which is brittle under noise), POT-Scan transports only a controlled fraction of feature mass and progressively increases that fraction. Ambiguous or noisy features are left in a "slack column" instead of being misassigned, and the reformulation into an equivalent unbalanced OT problem makes it solvable with efficient Sinkhorn iterations.
-
Containment-aware Non-Maximum Suppression (NMS) grounded in nuclear biology. Because weak inter-nuclear boundaries can cause SAM to predict one large mask enclosing several nuclei, the authors add a tanh-based decay penalty proportional to the number of contained instances, and combine SAM confidence with normalized hematoxylin-channel response into a unified filtering score.
-
Broad empirical validation and generalization beyond H&E. Across MoNuSeg, CPM17, TNBC, and PanNuke, SPROUT outperforms SAM-based, fully supervised, and weakly supervised baselines without any supervision, and the framework transfers to fluorescent microscopy (DSB2018) with only a change of the modality-specific foreground prior.
Main Findings
-
Large gains over supervised and SAM-adapted baselines: SPROUT reaches AJI 0.621 and Dice 0.795 on MoNuSeg and AJI 0.662 and Dice 0.821 on CPM17, an absolute improvement of up to 8.2% AJI on MoNuSeg. It beats fully supervised U-Net, Med-SA, and UN-SAM, point-supervised SPN+IEN and SC-Net, and unsupervised COIN — all while using no labels and no training.
-
Raw SAM with naive prompting collapses: Vanilla SAM with point prompts scores only 0.061 AJI on MoNuSeg, confirming that prompt quality, not model capacity, is the binding constraint.
-
Partial OT beats balanced OT and greedy matching: Ablations show that high-confidence mask filtering gives modest gains, greedy nearest-prototype mapping is noise-sensitive, and balanced OT gives only marginal improvement. Partial OT wins by transporting low-cost, high-confidence matches and leaving uncertain regions unassigned.
-
Self-reference closes the domain gap: Pathology-trained (UNI, Virchow2, H-optimus-1) and natural-image-trained (ViT-l/16, DINOv2, DINOv3) backbones produce comparable AJI, typically within 1%. This contradicts the expectation that pathology-specific pretraining is essential.
-
Patch granularity matters more than model size: AJI consistently peaks at feature patch size 128×128, matching nuclear scale. Large and base-plus SAM variants perform best at 512×512 prediction patches, but smaller variants remain competitive when patch inputs are used, enabling deployment on limited hardware.
-
Soft NMS is the best selection strategy: Adding the containment penalty improves AJI by roughly 5%. Soft NMS outperforms strict hybrid separation because it permits mild overlap, matching the reality of clustered nuclei.
-
The transported embedding space becomes separable: UMAP visualizations show foreground and background features are highly mixed before POT-Scan and form compact, well-separated clusters after it, with slack-assigned features lying between classes — confirming the mechanism works as designed.
-
Hyperparameter robustness: Performance varies by less than 3% across wide sweeps of six parameters, except at extreme values. Optimal high-confidence mask ratio is around 0.6, cluster number K ≥ 3 suffices, and patch overlap around 0.5 is critical for boundary handling.
-
Practical runtime: CPM17 and TNBC process in under 10 seconds per image; the harder MoNuSeg takes about 170 seconds single-threaded but drops to roughly 49 seconds with 4-way parallel processing on one RTX 4090.
Methodology in Plain English
SPROUT works in three stages, all of which happen at inference time with no learned parameters.
Stage 1 — Building the reference from the stain itself. In H&E staining, hematoxylin turns nuclei dark blue/purple and eosin turns everything else pink. The authors exploit this known chemistry by converting the image into optical density space and decomposing it into separate hematoxylin and eosin concentration channels. Otsu's thresholding then separates rough foreground (nuclei) from background, and only the pixels with the strongest stain intensities in each region are kept — these become high-confidence masks. Features from these regions are clustered with k-means into a small set of representative foreground and background prototypes. The key idea is that these prototypes are image-specific anchors that already respect the slide's own staining conditions, so no external reference image is needed.
Stage 2 — Distributing meaning across all features with partial optimal transport. Matching every pixel to its nearest prototype breaks down under noise. Optimal transport instead solves a global assignment problem with cost proportional to feature-prototype dissimilarity. Standard OT must move all mass, and even unbalanced OT penalizes anything discarded. SPROUT uses partial OT, which explicitly allows a fraction ρ of features to remain unmatched in a "slack column." The scheme starts with a small ρ, transporting only the easiest, most confident matches, then progressively increases ρ until a stopping criterion is met — once multiple compact regions start merging into one large blob, expansion stops to avoid conflating distinct nuclei.
Stage 3 — Turning activations into prompts and refining masks. The transported features are reweighted, resized back to image space, and smoothed with DenseCRF to produce foreground and background activation maps, which are aggregated and binarized. Positive point prompts are sampled from the watershed-derived foreground using the high-confidence masks; negative prompts are uniformly sampled from expanded background regions. These prompts drive SAM patch-by-patch. Finally, containment-aware soft NMS merges overlapping predictions, penalizes large masks that swallow multiple smaller nuclei, and scores candidates using combined SAM confidence and hematoxylin-channel response.
Why This Matters
Research impact: This paper challenges two entrenched assumptions in computational pathology — that strong performance requires dense pixel-level annotation, and that foundation models must be fine-tuned or adapted with domain-specific modules to work on medical images. By showing that careful prompt design plus biological priors can match or exceed supervised methods, it opens a research direction where the pretrained model is treated as a fixed, reusable primitive and the intelligence lives in the prompt-generation pipeline. The partial OT formulation also provides a reusable, theoretically grounded tool for robust feature-to-prototype assignment under noise, applicable well beyond nuclei.
Real-world applications:
-
Clinical decision support in oncology: Automated nuclear morphometry feeds directly into cancer grading (e.g., Gleason scoring, mitotic count), prognosis, and treatment response prediction. Removing the annotation bottleneck makes these tools deployable at hospital scale.
-
Cross-institutional deployment: Because SPROUT is training-free and robust to staining variability, a single pipeline can be dropped into labs with different scanners, protocols, and stain vendors without retraining — a persistent obstacle in multi-site pathology studies.
-
Biomarker discovery and drug development: High-throughput quantification of nuclear density, size, and shape across large slide cohorts accelerates translational research where per-slide annotation is impossible.
-
Resource-constrained pathology settings: With smaller SAM variants still competitive under patch-based inference, and with per-image wall-clock times of seconds on a single consumer GPU, the approach is feasible for labs without large compute budgets.
Industry relevance: Digital pathology companies, pharma research pipelines, and slide-scanner vendors all face the same problem — annotation cost scales linearly with data volume while model performance plateaus. A training-free pipeline eliminates the fine-tuning step from the deployment cycle, meaning new stain types or tissue types can be onboarded without collecting labels or rebuilding models. The 49-second wall-clock per image on one GPU suggests near-term practicality, and the DSB2018 result indicates the approach is not locked to a single imaging modality.
Future Directions
-
Extending beyond H&E priors. The authors show a conceptual extension to fluorescence microscopy on DSB2018 with modified modality-specific foreground priors. A systematic investigation of how the self-reference strategy adapts to immunohistochemistry, multiplexed imaging, or spatial transcriptomics-adjacent modalities would test the generality of the stain-prior assumption.
-
Reducing inference cost. MoNuSeg requires roughly 170 seconds per image without parallelization. Distilling the pipeline, caching prototypes across tiles from the same slide, or adopting lighter SAM variants are open engineering questions — particularly for whole-slide images with thousands of tiles.
-
Replacing the hand-tuned hyperparameters with adaptive selection. Although SPROUT is robust to parameter changes, the high-confidence ratio, initial transported weight, stride, and cluster number are still fixed or searched. Deriving them from image statistics (nuclear density, stain intensity distribution) would remove the last residue of manual configuration.
-
Connecting to the broader prompt-engineering literature. The paper argues that prompt design matters more than backbone choice in this domain. Testing whether the same prototype-plus-partial-OT pipeline transfers to other dense, fine-grained segmentation problems — mitotic figures, lymphocytes, glands, or even non-medical crowded-object domains — would establish how general the paradigm is.
Target Audience
This paper is most valuable to computational pathology and medical imaging researchers working on segmentation, foundation model adaptation, or label-efficient learning. Computer vision researchers interested in prompt engineering, optimal transport applications, and zero-shot segmentation will find the POT-Scan formulation and the self-reference concept technically portable to other domains. Clinical and translational researchers who need quantitative nuclear analysis in their studies but lack annotation resources will benefit from the practical, training-free framing and the reported runtimes. Industry practitioners building digital pathology products will find the deployment characteristics (no retraining, modest hardware, cross-stain robustness) directly relevant, though the optimal-transport appendix is likely more depth than a product team needs.
Authors’ abstract
Accurate nuclear instance segmentation is a pivotal task in computational pathology, supporting data-driven clinical insights and facilitating downstream translational applications. While large vision foundation models have shown promise for zero-shot biomedical segmentation, most existing approaches still depend on dense supervision and computationally expensive fine-tuning. Consequently, training-free methods present a compelling research direction, yet remain largely unexplored. In this work, we introduce SPROUT, a fully training- and annotation-free prompting framework for nuclear instance segmentation. SPROUT leverages histology-informed priors to construct slide-specific reference prototypes that mitigate domain gaps. These prototypes progressively guide feature alignment through a partial optimal transport scheme. The resulting foreground and background features are transformed into positive and negative point prompts, enabling the Segment Anything Model (SAM) to produce precise nuclear delineations without any parameter updates. Extensive experiments across multiple histopathology benchmarks demonstrate that SPROUT achieves competitive performance without supervision or retraining, establishing a novel paradigm for scalable, training-free nuclear instance segmentation in pathology.