LPD: Learnable Prototypes with Diversity Regularization for Weakly Supervised Histopathology Segmentation

Khang Le, Anh Mai Vu, Thi Kim Trang Vo, Ha Thach, Ngoc Bui Lam Quang, Thanh-Huy Nguyen, Minh H. N. Le, Zhu Han, Chandra Mohan, Hien Van Nguyen

TL;DR

The new LPD (Learnable Prototypes with Diversity regularization) framework simplifies weakly supervised histopathology segmentation into an efficient, one-stage process. By replacing rigid clustering steps with end-to-end learnable prototypes and a novel diversity loss, it prevents prototype collapse and captures complex tissue variations, setting a new state-of-the-art on the BCSS-WSSS benchmark.

What Problem Does This Paper Address?

Training deep learning models for semantic segmentation in histopathology usually requires meticulous, pixel-level annotations from expert pathologists—a process that is incredibly tedious and expensive. Weakly supervised semantic segmentation (WSSS) alleviates this by training models using only image-level labels.

However, histopathology images present unique challenges: different tissue classes can look remarkably similar (inter-class homogeneity), while the same tissue class can vary wildly in appearance (intra-class heterogeneity). Traditional methods rely on Class Activation Maps (CAMs) to locate classes, but CAMs suffer from "region shrinkage," meaning they only highlight the most distinct, core areas and miss nearby regions of the same class.

Recent state-of-the-art methods try to fix this by using clustering-based "prototype banks" to group similar features. Unfortunately, these are multi-stage pipelines that decouple prototype discovery from the actual segmentation training, making them computationally heavy, slow, and highly sensitive to hyperparameters.

Methods

The authors introduce LPD (Learnable Prototypes with Diversity Regularization), a cluster-free, single-stage framework that trains end-to-end.

Overview of the LPD framework, showing the Prototype Constructor, Mask Refiner, and Prototype Diversity Regularizer modules.

The architecture consists of three main components:

  1. Prototype Constructor: Instead of running an offline clustering algorithm like K-Means, the model instantiates a set of trainable prototype vectors ($k$ prototypes per class) directly within the network. It uses a SegFormer encoder to extract multi-scale feature maps and computes per-pixel cosine similarity against these learnable prototypes to generate prototype-based CAMs.
  2. Mask Refiner: This module fuses the multi-scale CAMs into a single pseudo-mask using dynamic thresholding. To refine these boundaries, it extracts foreground and background features using a frozen vision-language model (MedCLIP) and applies an InfoNCE contrastive loss to align image regions with the prototype space.
  3. Prototype Diversity Regularizer (PDR): To ensure that the multiple prototypes assigned to a single class don't all "collapse" and focus on the exact same visual pattern, the authors introduce a novel PDR loss. It treats each prototype's spatial activation map as a probability distribution and uses Jeffrey’s divergence to penalize spatial overlap, forcing the prototypes to cover complementary, distinct subregions of a tissue class.

Datasets

The framework was evaluated on the BCSS-WSSS (Breast Cancer Semantic Segmentation - Weakly Supervised Semantic Segmentation) dataset. The dataset includes four primary tissue classes:

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

Key Insights and Ideas

  • End-to-End Synergy: By making prototypes learnable parameters of the network rather than static cluster centers, prototype discovery directly benefits from—and guides—the segmentation learning process simultaneously.
  • The Necessity of Diversity: Simply increasing the number of prototypes ($k$) doesn't inherently improve performance due to prototype collapse. The introduction of the PDR loss is the "aha" mechanism that unlocks scaling; it successfully incentivizes prototypes to specialize in distinct morphological variants (e.g., capturing different subregions of tumors or stroma).
  • Sharper Boundaries via Contrast: Integrating a frozen medical vision-language model (MedCLIP) in the mask refiner helps enforce cleaner boundaries by contrasting foreground tissue features against background noise.

Key Results

LPD achieved state-of-the-art (SOTA) performance on the BCSS-WSSS benchmark, outperforming previous clustering-based methods in both mean Intersection over Union (mIoU) and mean Dice coefficient (mDice).

Quantitative segmentation results on the BCSS-WSSS dataset comparing LPD against other WSSS methods.
  • Top Performance: The best configuration ($k=10$ prototypes) achieved 71.96% mIoU and 83.56% mDice, outperforming the previous SOTA method (PBIP) by 2.54 and 1.72 percentage points, respectively.
  • Ablation Confirmation: Without the diversity regularizer, scaling from 3 to 10 prototypes yielded almost no performance gain (70.54% vs 70.79% mIoU), proving that the PDR loss is vital to prevent redundancy.
  • Qualitative Improvements: Visually, LPD produces much sharper boundaries and significantly fewer false positives, particularly at tricky tumor-stroma interfaces.
Visualization of segmentation masks across different models, highlighting LPD's sharper boundaries and superior class consistency.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{le2026lpd,
  author = {Khang Le and Anh Mai Vu and Thi Kim Trang Vo and Ha Thach and Ngoc Bui Lam Quang and Thanh-Huy Nguyen and Minh H. N. Le and Zhu Han and Chandra Mohan and Hien Van Nguyen},
  title = {{LPD: Learnable Prototypes with Diversity Regularization for Weakly Supervised Histopathology Segmentation}},
  booktitle = {ISBI},
  year = {2026},
  doi = {10.1109/isbi61048.2026.11515616},
}
Figure