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, Sunyi Zheng, Jingxiong Li, Honglin Li, Yuxuan Sun, Ruizhe Guo, Lin Yang

Abstract

Nucleus instance segmentation in histology images is crucial for a broad spectrum of clinical applications. Current dominant algorithms rely on regression of nuclear proxy maps. Distinguishing nucleus instances from the estimated maps requires carefully curated post-processing, which is error-prone and parameter-sensitive. Recently, the Segment Anything Model (SAM) has earned huge attention in medical image segmentation, owing to its impressive generalization ability and promptable property. Nevertheless, its potential on nucleus instance segmentation remains largely underexplored. In this paper, we present a novel prompt-driven framework that consists of a nucleus prompter and SAM for automatic nucleus instance segmentation. Specifically, the prompter is developed to generate a unique point prompt for each nucleus, while SAM is fine-tuned to produce its corresponding mask. Furthermore, we propose to integrate adjacent nuclei as negative prompts to enhance model’s capability to identify overlapping nuclei. Without complicated post-processing, our proposed method sets a new state-of-the-art performance on three challenging benchmarks.

Introduction

In digital pathology, segmenting individual nuclei is the foundation for cancer diagnosis and grading. Historically, researchers have used two main approaches: top-down methods like Mask R-CNN, which often fail when nuclei overlap, and bottom-up methods like HoVer-Net, which predict "proxy maps" (e.g., distance transforms or gradients). While accurate, bottom-up methods require meticulous hyper-parameter tuning and are highly sensitive to noise during the post-processing stage (e.g., Watershed).

The Segment Anything Model (SAM) has revolutionized general segmentation, but its zero-shot performance on medical images is often poor due to the domain gap. Furthermore, existing attempts to use SAM for nuclei often treat it as a simple feature extractor rather than exploiting its core strength: promptability. PromptNucSeg addresses this by introducing a "one-prompt-one-nucleus" framework that automates prompt generation and fine-tunes SAM for histology.

Comparison of traditional proxy-map regression methods (a) versus the proposed PromptNucSeg framework (b), which utilizes an automated prompter and fine-tuned SAM.

Methods

The PromptNucSeg framework consists of two main components: a Nucleus Prompter and a Fine-tuned SAM segmentor.

The Nucleus Prompter

Instead of manual clicking, the framework uses a "Prompter" network. It employs an anchor-based point generation strategy, placing a grid of anchor points over the image and learning to shift and classify them to find the exact center of each nucleus. An auxiliary task of nuclear region segmentation is added to force the model to focus on relevant biological structures before placing points.

Fine-tuning SAM with Negative Prompts

The authors fine-tuned SAM by updating the image encoder and mask decoder while freezing the prompt encoder. A key innovation is the "negative prompt" strategy for handling overlapping nuclei. When nuclei are adjacent, a single positive prompt might cause SAM to segment both as one instance. To resolve this, the model identifies the $K$ nearest neighboring nuclei and treats their centers as negative prompts, effectively instructing SAM to exclude those regions from the current mask.

Visual demonstration of the negative prompt strategy for resolving overlapping nuclei. Column (a) shows merged masks, (b) shows positive prompts (green), and (c) shows the use of negative prompts (red) to successfully isolate individual nuclei.

Results

The model was evaluated on three challenging histology benchmarks: Kumar, CPM-17, and PanNuke.

  • PanNuke: Achieved a multi-class Panoptic Quality (mPQ) of 0.5123, outperforming the previous state-of-the-art (CellViT-H) by 1.4 points.
  • CPM-17: Exceeded the second-highest scores by 1.9 points in AJI and 2.7 points in PQ.
  • Efficiency: Despite using a large model like SAM, PromptNucSeg-B runs at 27 FPS on an RTX 3090, significantly faster than bottom-up competitors like HoVer-Net (7 FPS) which are slowed by CPU-intensive post-processing.

Conclusion

PromptNucSeg demonstrates that leveraging SAM's promptability can eliminate the need for complex post-processing in nucleus segmentation. By integrating an automated prompter with a negative-prompting strategy, the framework achieves state-of-the-art performance and high efficiency across diverse tissue types. Future work will explore more tightly integrated end-to-end architectures to further optimize the pipeline.

Summary updated

BibTeX
@inproceedings{shui2024unleashing,
  author = {Zhongyi Shui and Yunlong Zhang and Kai Yao and Chenglu Zhu and Sunyi Zheng and Jingxiong Li and Honglin Li and Yuxuan Sun and Ruizhe Guo 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