UniSemAlign: Text-Prototype Alignment with a Foundation Encoder for Semi-Supervised Histopathology Segmentation
Organizations: AI VIETNAM Lab, Vietnam · Hanoi University of Science and Technology, Vietnam
Abstract
Semi-supervised semantic segmentation in computational pathology remains challenging due to scarce pixel-level annotations and unreliable pseudo-label supervision. We propose UniSemAlign, a dual-modal semantic alignment framework that enhances visual segmentation by injecting explicit class-level structure into pixel-wise learning. Built upon a pathology-pretrained Transformer encoder, UniSemAlign introduces complementary prototype-level and text-level alignment branches in a shared embedding space, providing structured guidance that reduces class ambiguity and stabilizes pseudo-label refinement. The aligned representations are fused with visual predictions to generate more reliable supervision for unlabeled histopathology images. The framework is trained end-to-end with supervised segmentation, cross-view consistency, and cross-modal alignment objectives. Extensive experiments on the GlaS and CRAG datasets demonstrate that UniSemAlign substantially outperforms recent semi-supervised baselines under limited supervision, achieving Dice improvements of up to 2.6% on GlaS and 8.6% on CRAG with only 10% labeled data, and strong improvements at 20% supervision. Code is available at: https://github.com/thailevann/UniSemAlign
Figures & tables
| Labeled Ratio | Method | GlaS | CRAG | ||
|---|---|---|---|---|---|
| mDice (%) | mJaccard (%) | mDice (%) | mJaccard (%) | ||
| 100% | Fully-Supervised | 89.97 | 81.77 | 89.13 | 80.44 |
| 10% | UAMT (MICCAI 2019) [ 53 ] | 78.57 | 64.70 | 77.85 | 63.74 |
| FixMatch (NeurIPS 2020) [ 38 ] | 66.01 | 51.39 | 72.42 | 64.31 | |
| CPS (CVPR 2021) [ 29 ] | 61.70 | 49.34 | 47.10 | 40.77 | |
| CT (MIDL 2022) [ 26 ] | 81.75 | 70.44 | 77.33 | 65.56 | |
| Encoder | mDice (%) | mJaccard (%) |
|---|---|---|
| ResNet101 | 86.37 | 76.01 |
| UNI | 88.15 | 78.82 |
| # Context Tokens | mDice (%) | mJaccard (%) |
|---|---|---|
| 0 | 87.52 | 77.80 |
| 2 | 87.85 | 77.86 |
| 3 | 88.07 | 78.68 |
| 4 | 88.15 | 78.82 |
| 5 | 87.79 | 78.25 |
| Text | Prototype | mDice (%) | mJaccard (%) |
|---|---|---|---|
| 87.66 | 78.04 | ||
| 88.00 | 78.57 | ||
| 88.06 | 78.66 | ||
| 88.15 | 78.82 |
| Alignment loss | mDice (%) | mJaccard (%) |
|---|---|---|
| No alignment | 87.56 | 77.87 |
| Cosine similarity | 87.69 | 78.08 |
| KL divergence | 87.43 | 77.67 |
| MSE | 88.15 | 78.82 |
Histopathology Image Segmentation
Histopathology image segmentation identifies tissue regions, cells, and their boundaries in microscopic pathology images.
See all 53 papers