arXiv:2609.31314cs.CVSep 2026

Manuscript Offprint

arXiv:2609.31314

CytoSPM: Open-Vocabulary Cytopathology Detection with Structured Prompt Bank

Wenjie Li, Zishan Xu, Jinyang Huang, Zhengxin Nie, Shichao Kan, Yixiong Liang

Wenjie Li 1,∗^{1,*}, Zishan Xu 2,∗^{2,*}, Jinyang Huang 1^{1}, Zhengxin Nie 1^{1}, Shichao Kan 1^{1}, and Yixiong Liang 1,†^{1,\dagger}

1^{1}Central South University 2^{2}Shanghai Jiao Tong University

∗^{*}Equal contribution. †^{\dagger}Corresponding author.

254711081@csu.edu.cn, zishanxu@sjtu.edu.cn, yxliang@csu.edu.cn

Abstract—Cytopathology detection requires open-vocabulary recognition because cellular categories are fine-grained, long-tailed, and continuously evolving across different organ systems. However, existing cytology detectors are mostly single-domain and closed-set, and there is still no unified benchmark for evaluating open-vocabulary cytopathology detection. We present PentaCyto, a multi-domain benchmark covering cervical, urinary, respiratory, serous fluid, and thyroid cytology, with 24 base categories and 9 held-out novel categories. Each category is associated with structured cytomorphology prompts that describe diagnostic morphological attributes and provide clinically grounded textual knowledge. We further propose CytoSPM, an efficient detector based on a decoupled two-stage design. It first extracts reusable class-agnostic visual representations, and then performs class-aware structural prompt matching with class names and cytomorphology prompts. On PentaCyto, CytoSPM outperforms existing methods in novel-category detection and open-vocabulary detection while maintaining efficient inference.

Index Terms—open-vocabulary detection, cytopathology, multi-domain benchmark, vision-language model, structured cytomorphology prompts

I. INTRODUCTION

Cytopathology is an important tool for clinical diagnosis and cancer screening, where automatically localising and classifying abnormal cells is a core component of computer-aided cytological screening. Although deep learning has advanced object detection [1]–[4], segmentation [5]–[7], and multimodal understanding [8], [9], most existing cytopathology detectors remain limited to the closed-set paradigm and can only recognise categories predefined during training. This assumption does not match the fine-grained, long-tailed and continuously evolving label space of cytopathology: different organ systems follow distinct diagnostic criteria, many categories are separated only by subtle morphological differences, and rare subtypes or newly described entities are continually incorporated into diagnostic practice. Therefore, cytopathology detection requires open-vocabulary capability to recognise unseen and long-tail cellular categories.

Open-vocabulary object detection addresses the category limitation of closed-set detectors. Through vision–language alignment or region-level vision–language pre-training [10], [11], open-vocabulary detectors can recognise and localise categories specified by textual prompts, including those unseen during detector training. Recent methods such as ViLD [12],

Figure

Fig. 1. Comparison of traditional closed-set detection and CytoSPM. Traditional object detection methods rely on a fixed label set and can only recognize cell categories predefined during training, making it difficult to generalize to unseen, rare, or newly defined cytopathology classes. In contrast, CytoSPM addresses open-vocabulary cytopathology detection with a decoupled two-stage design. It first extracts reusable class-agnostic visual representations from cytology images, and then performs class-aware structural prompt matching with cytomorphology prompts. By combining class-name, structural prototype, and fine-grained attribute matching, CytoSPM enables text-prompt-driven detection of both seen and unseen cytology cell categories.

RegionCLIP [13], OWL-ViT [14], GLIP [15], GroundingDINO [16], YOLO-World [17] and WeDetect [18] have achieved strong progress on natural-image open-vocabulary detection benchmarks. This paradigm offers a promising direction for cytopathology, since unseen cellular categories can in principle be queried through textual prompts. However, despite its success in natural images, open-vocabulary detection remains largely under-explored in cytopathology. Specifically, applying open-vocabulary detection to cytopathology faces two key challenges. First, there is no public benchmark for open-vocabulary cytopathology detection. Existing cytology datasets are mostly single-domain and closed-set, making it difficult to evaluate cross-domain recognition of novel cellular categories. Meanwhile, cytopathology lacks large-scale, diverse and well-annotated image-text detection data, which limits the ability of models to learn reliable medical vision–language associations. As a result, open-vocabulary cell detection still lacks a unified and reproducible evaluation foundation.

Second, efficient open-vocabulary detection methods for high-throughput cytopathology screening are still insufficient. Existing high-performing open-vocabulary detectors often rely on deep cross-modal fusion to strengthen vision–language alignment. Although effective, such fusion modules introduce substantial computational overhead and make visual features dependent on specific text queries, preventing feature sharing across different categories or prompts and reducing inference efficiency in large-vocabulary settings. In contrast, efficient detectors such as YOLO-World [17] and WeDetect [18] adopt lighter vision–language matching paradigms: YOLO-World [17] combines a lightweight YOLO framework with a CLIP [10] text encoder and uses a re-parameterisable vision–language path aggregation module for real-time detection, while WeDetect [18] adopts a simpler dual-tower architecture without cross-modal fusion layers in the detection neck, performing classification by dot products between image grid features and class text embeddings. Nevertheless, these methods are mainly designed for natural images and do not directly address the long-tail distribution, strong domain shift, small object scale, morphological similarity and fine-grained category distinctions in cytopathology. Therefore, directly transferring general open-vocabulary detectors remains insufficient for jointly achieving open-category recognition, long-tail generalisation and high-throughput screening efficiency.

To address these challenges, we first construct PentaCyto, a new multi-domain benchmark for open-vocabulary cytopathology detection. PentaCyto covers five clinically distinct cytopathology domains, including cervical, urinary, respiratory, serous fluid and thyroid cytology. It contains 24 base categories drawn from corresponding national reporting standards, together with a category-disjoint pool of clinically significant novel malignancies for open-vocabulary evaluation. More importantly, each category is associated with a structured cytomorphology prompt that summarises the diagnostic attributes used by pathologists to recognise the corresponding cells, providing clinically-grounded textual knowledge for open-vocabulary detectors.

As shown in Figure 1, we further propose CytoSPM, an efficient open-vocabulary cytopathology detection framework based on a decoupled two-stage design. The first stage is a class-agnostic visual feature extraction stage: the model generates general region-level visual representations from the input image using only the visual branch, without introducing class names, textual prompts or cross-modal fusion. These visual features can therefore be reused across different categories and prompts while preserving real-time inference efficiency. The second stage is a class-aware object detection stage: the model uses class names and a structured morphology-attribute prompt bank to perform class-aware matching over the general visual regions produced by the first stage. Specifically, for each category, we construct a prompt bank of cytomorphological attributes and use a mutual-selection mechanism to dynamically select category-relevant visual evidence and structural prompts. The selected prompts are then aggregated into an image-conditioned class prototype. Finally, classification is performed by combining three types of matching signals: class-name, structural prototype and fine-grained attribute matching. In this way, CytoSPM decouples class-agnostic visual representation extraction from class-aware structural detection, avoiding heavy cross-modal fusion while maintaining efficient inference and improving fine-grained and long-tail cell recognition.

We evaluate the proposed framework on PentaCyto across all five cytopathology domains. The results show that our method preserves strong base-category detection performance, improves open-vocabulary transfer to held-out novel cellular categories, and maintains efficient inference suitable for high-throughput cytopathology screening. Our contributions are summarized below.

• We introduce PentaCyto, the first multi-domain benchmark for open-vocabulary cytopathology detection. It covers five cytology domains, including cervical, urinary, respiratory, serous fluid, and thyroid cytology, with 24 base categories and a category-disjoint novel pool, providing a unified platform for cross-domain generalization and novel-category detection.

• We propose CytoSPM, an efficient open-vocabulary cytopathology detection framework with a decoupled two-stage design. It first extracts class-agnostic region-level visual features, then selects category-relevant visual evidence and morphological attributes through structural prompt matching, and finally combines class-name, structural prototype, and fine-grained attribute matching for classification.

• We conduct systematic experiments on PentaCyto. CytoSPM achieves SOTA performance in both overall detection and novel-category detection, while maintaining strong base-category performance and efficient inference.

References (30)