NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unleashing the Power of Prompt-driven Nucleus Instance Segmentation

Zhongyi Shui, Yunlong Zhang, Kai Yao, Chenglu Zhu, Yuxuan Sun, Lin Yang · DOI

Introduction

Nucleus instance segmentation is a fundamental task in digital pathology, essential for cancer diagnosis and grading. However, histology images present significant challenges, including blurred boundaries, staining variations, and dense clusters of overlapping nuclei. Traditional approaches typically fall into two categories: bottom-up methods that rely on complex, parameter-sensitive post-processing (e.g., Watershed) and top-down methods (e.g., Mask R-CNN) that often struggle with overlapping objects and lose fine morphological details.

Comparison of prevailing methods vs. the proposed PromptNucSeg framework.

While the Segment Anything Model (SAM) has shown remarkable zero-shot performance in general computer vision, its application to histology is limited by the need for manual prompts and its difficulty in distinguishing adjacent nuclei. This paper introduces PromptNucSeg, a framework that adapts SAM for automated nucleus segmentation by combining a custom "prompter" network with a fine-tuned SAM segmentor.

Methodology

PromptNucSeg addresses the limitations of manual prompting through two primary components: the Nucleus Prompter and a fine-tuned SAM segmentor.

The Nucleus Prompter

The Nucleus Prompter is a lightweight network designed to automatically generate point prompts. It learns to predict the centroid and class (e.g., neoplastic, inflammatory) of each nucleus. To enhance focus on foreground regions, an auxiliary mask prediction task is incorporated during training.

Fine-tuned SAM and Negative Prompts

The framework fine-tunes SAM’s image encoder and mask decoder on histology-specific data. A "one-prompt-one-nucleus" regime is employed, where each point prompt from the prompter leads to a single high-quality mask. To handle overlapping nuclei, the authors introduce a Negative Prompt (NP) strategy. When segmenting a target nucleus, the model receives a positive prompt at its center and negative prompts at the centers of adjacent nuclei, effectively constraining the segmentation boundary and preventing the mask from bleeding into neighboring cells.

The PromptNucSeg architecture, showing (a) SAM fine-tuning and (b) Prompter learning.

Experimental Results

The model was evaluated on three major benchmarks: Kumar, CPM-17, and PanNuke. PromptNucSeg achieved state-of-the-art (SOTA) performance across all datasets. Notably, on CPM-17, it outperformed previous best models by 1.9 points in Aggregated Jaccard Index (AJI) and 2.8 points in Panoptic Quality (PQ).

In terms of efficiency, PromptNucSeg-B achieves an inference speed of 27 FPS on an NVIDIA RTX 3090, significantly faster than traditional models like HoVer-Net (7 FPS) and StarDist (17 FPS). This speedup is attributed to the direct mask prediction from low-resolution features, bypassing CPU-intensive post-processing.

Discussion and Conclusion

A key finding of this work is the importance of including negative prompts during training to prevent "catastrophic forgetting" of negative prompt handling. By representing nuclei as points rather than bounding boxes, the model achieves higher precision in separating touching objects. While the model's parameter count is higher than some lightweight alternatives, its superior accuracy and speed make it a powerful tool for automated digital pathology. Future work will explore model pruning and the use of smaller SAM variants to reduce the computational footprint.

The code is available at: github.com/windygoo/PromptNucSeg

Summary updated

BibTeX
@inproceedings{shui2024unleashing,
  author = {Zhongyi Shui and Yunlong Zhang and Kai Yao and Chenglu Zhu and Yuxuan Sun and Lin Yang},
  title = {{Unleashing the Power of Prompt-driven Nucleus Instance Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  url = {https://openreview.net/forum?id=WkDyuIUdDE},
}
Figure