DualProtoSeg: Simple and Efficient Design with Text- and Image-Guided Prototype Learning for Weakly Supervised Histopathology Image Segmentation

Anh M. Vu, Khang P. Le, Trang T. K. Vo, Ha Thach, Huy Hung Nguyen, David Yang, Han H. Huynh, Quynh Nguyen, Tuan M. Pham, Tuan-Anh Le, Minh H. N. Le, Thanh-Huy Nguyen, Akash Awasthi, Chandra Mohan, Zhu Han, Hien Van NguyenarXiv 2025

TL;DR

DualProtoSeg is a simple and efficient framework for weakly supervised histopathology image segmentation that bypasses complex clustering steps. By combining learnable text-guided and image-guided prototypes with a multi-scale feature pyramid, it overcomes the traditional limitations of Class Activation Maps (CAMs) to achieve state-of-the-art performance on breast cancer tissue segmentation.

What Problem Does This Paper Address?

In digital pathology, obtaining pixel-level annotations for semantic segmentation is incredibly expensive and time-consuming, requiring hours of meticulous work from expert pathologists. Weakly Supervised Semantic Segmentation (WSSS)—which trains models using only cheap, image-level labels (e.g., "tumor present")—offers a promising alternative.

Most WSSS methods rely on Class Activation Maps (CAMs) to locate tissues. However, CAMs suffer from a major flaw: they only highlight the most discriminative regions needed for classification, rather than the full spatial extent of the tissue (known as the region-shrinkage effect). This problem is amplified in histopathology due to high intra-class heterogeneity (the same tissue type can look vastly different) and inter-class homogeneity (different tissue types can look visually identical).

While prototype-based methods can capture a wider variety of visual patterns, existing approaches often rely on computationally heavy clustering algorithms or fail to leverage the rich semantic knowledge embedded in modern vision-language foundation models.

Methods

DualProtoSeg introduces a clustering-free, dual-modal prototype learning architecture built on top of a frozen vision-language foundation model (specifically, CONCH). The pipeline is divided into three main components:

  1. Multi-Scale Visual Feature Extraction: The model extracts intermediate features from multiple layers of a frozen ViT backbone to capture both low-level geometry and high-level semantics. These features are refined and organized into a Multi-Scale Feature Pyramid (Multi-ScaleFP) to combat the spatial oversmoothing common in deep ViTs.
  2. Dual-Modal Prototype Bank:
  3. Text-Based Prototypes: Class descriptions (e.g., "malignant epithelium" for Tumor) are processed using a learnable prompt tuning module (inspired by CoOp), allowing the text embeddings to adapt dynamically to the dataset.
  4. Image-Based Prototypes: Randomly initialized, learnable visual vectors are optimized during training to capture fine-grained appearance details that text descriptions might miss.
  5. These text and image vectors are interleaved to form a unified, multi-scale prototype bank.
  6. Similarity Mapping: The model computes the cosine similarity between the multi-scale pyramid features and the dual-modal prototypes to generate high-quality, multi-scale CAMs. These are averaged into a final pseudo-mask and optimized using standard image-level classification losses.
Overview of the DualProtoSeg framework showing the Image Branch, Text Branch, Prototype-Based Similarity Mapping, and Prediction Heads.

Datasets

The authors evaluate their method on the BCSS-WSSS (Breast Cancer Semantic Segmentation - Weakly Supervised Semantic Segmentation) benchmark. The dataset features four primary tissue classes:

  • Tumor (TUM)
  • Stroma (STR)
  • Lymphocyte (LYM)
  • Necrosis (NEC)

Key Insights and Ideas

  • Text and Image Prototypes are Complementary: A key "aha moment" in the paper is how the two prototype modalities interact. Text prototypes excel at identifying broad semantic regions, while image prototypes act as a safety net, capturing fine-grained visual anomalies and recovering missed structures like subtle necrotic fragments or complex stroma boundaries.
  • Pyramids Fix ViT Oversmoothing: Vision Transformers naturally lose spatial precision in deeper layers. By explicitly building a multi-scale feature pyramid from intermediate layers, DualProtoSeg restores sharp boundaries to the generated pseudo-masks.
  • Zero-Shot AUC as a Diagnostic Tool: The authors discovered that zero-shot text-image retrieval performance (AUC) before training serves as an excellent diagnostic metric. Classes with low initial zero-shot alignment (like stroma and necrosis) are exactly the ones that benefit the most from increased textual description diversity.

Key Results

DualProtoSeg establishes a new state-of-the-art on the BCSS-WSSS dataset, outperforming previous methods without requiring expensive clustering overhead.

Quantitative Performance

The model achieves a 71.35% mIoU and 83.14% mDice, outperforming the previous best method (PBIP) by +1.93% and +1.30%, respectively. It achieved notable performance jumps in clinically critical categories:

  • Tumor: 81.34% IoU (+3.42% over PBIP)
  • Stroma: 68.84% IoU (+4.16% over PBIP)
  • Necrosis: 69.83% IoU (+0.14% over PBIP)
Table 1: Segmentation results on BCSS-WSSS

Qualitative Quality

Visually, DualProtoSeg produces significantly sharper tissue boundaries and handles complex, multi-class tissue layouts much better than competing methods like TPRO or PBIP, which often produce noisy or fragmented masks.

Figure 2: Qualitative results on BCSS-WSSS test patches. GT denotes ground truth segmentation

Limitations and Future Work

While the paper demonstrates excellent results, a few limitations and areas for future exploration remain:

  • Prompt Sensitivity: Performance is still tied to the quality and diversity of the initial class descriptions. Weaker classes require careful prompt engineering and multiple descriptions to perform well.
  • Foundation Model Dependency: The framework relies heavily on the pre-trained representations of the CONCH backbone. Performance on highly rare tissue types not well-represented in the foundation model's pre-training data remains an open question.
  • Future Directions: The authors suggest that exploring automated prompt generation or integrating alternative multi-modal pathology foundation models could further improve the framework's flexibility.

Summary updated

BibTeX
@misc{vu2025dualprotoseg,
  author = {Anh M. Vu and Khang P. Le and Trang T. K. Vo and Ha Thach and Huy Hung Nguyen and David Yang and Han H. Huynh and Quynh Nguyen and Tuan M. Pham and Tuan-Anh Le and Minh H. N. Le and Thanh-Huy Nguyen and Akash Awasthi and Chandra Mohan and Zhu Han and Hien Van Nguyen},
  title = {{DualProtoSeg: Simple and Efficient Design with Text- and Image-Guided Prototype Learning for Weakly Supervised Histopathology Image Segmentation}},
  year = {2025},
  eprint = {2512.10314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.10314},
}
Figure