MIRROR: Multi-Modal Pathological Self-Supervised Representation Learning via Modality Alignment and Retention

Tianyi Wang, Jianan Fan, Dingxin Zhang, Dongnan Liu, Yong Xia, Heng Huang, Weidong Cai

TL;DR

MIRROR is a novel multi-modal self-supervised learning framework for cancer analysis that balances the alignment of shared features across histopathology and transcriptomics with the retention of unique, modality-specific structures. By combining contrastive learning, masked feature reconstruction, and a style-based clustering bottleneck, MIRROR filters out disease-irrelevant noise and significantly outperforms existing methods in cancer subtyping and survival prediction.

What Problem Does This Paper Address?

In computational pathology, combining different data modalities—like histopathology whole slide images (WSIs) and transcriptomics (gene expression profiles)—offers a powerful, multi-scale view of cancer. WSIs capture macro-level tissue architecture and spatial cellular topology, while transcriptomics uncovers micro-level molecular pathways.

Most multi-modal self-supervised learning (SSL) frameworks rely heavily on modality alignment (e.g., contrastive learning like CLIP). They force the representations of different modalities from the same patient to be as identical as possible in a shared latent space. While this works well for image-text pairs where information heavily overlaps, it fails for histopathology and transcriptomics. These two modalities are highly heterogeneous and operate at completely different biological scales. Forcing them to align perfectly inadvertently discards crucial, modality-specific information. Furthermore, both modalities contain significant disease-irrelevant noise, such as tissue staining artifacts or random gene expression fluctuations.

MIRROR vs. Conventional Methods

Methods

The authors introduce MIRROR (Multi-modal pathologIcal self-supeRvised Representation learning via mOdality alignment and Retention), which uses three synergistic modules to decouple disease-relevant shared features, unique modality attributes, and irrelevant noise:

Overview of the MIRROR Framework
  1. Modality Alignment Module: Uses a standard contrastive loss ($L_{\text{align}}$) to pull paired histopathology and transcriptomics representations closer together while pushing unpaired samples apart, capturing shared disease-relevant traits.
  2. Modality Retention Module: To safeguard unique modality-specific attributes, the framework introduces a masked modeling task ($L_{\text{retention}}$). Randomly selected image patches and genes are masked out, challenging the encoders to reconstruct the missing features from the remaining context.
  3. Style Clustering Module: To eliminate disease-irrelevant noise, features are mapped into a compressed statistical space parameterized by a Gaussian distribution. A Kullback-Leibler (KL) divergence penalty enforces a standard normal prior, acting as an information bottleneck. Simultaneously, a soft prototype clustering mechanism ($L_{\text{cluster}}$) aligns these compressed styles across modalities using 3,000 learnable cluster centers.

Additionally, the authors developed a novel transcriptomics preprocessing pipeline that combines Recursive Feature Elimination (RFE) with manual filtering based on the COSMIC database to distill high-dimensional gene expression data into a refined, disease-focused feature vector.

Transcriptomics Data Preprocessing and Top Variant Genes

Datasets

The model was pretrained and evaluated using 5-fold cross-validation on four distinct cohorts from The Cancer Genome Atlas (TCGA):

  • TCGA-BRCA (Breast Invasive Carcinoma, 955 samples)
  • TCGA-NSCLC (Non-Small Cell Lung Cancer, 1,053 samples)
  • TCGA-RCC (Renal Cell Carcinoma, 943 samples)
  • TCGA-COADREAD (Colon and Rectal Adenocarcinoma, 623 samples)

To evaluate out-of-domain generalization, the authors also tested the model on an external validation cohort:

  • CPTAC-KIDNEY (Clinical Proteomic Tumor Analysis Consortium Kidney cohort, 909 slides)

Key Insights and Ideas

  • The Alignment Trap: For heterogeneous modalities, perfect alignment is counterproductive. Forcing image features to match tabular gene features perfectly strips away the unique morphological or molecular nuances that make multi-modal diagnostics valuable in the first place.
  • Synergy of Compression and Clustering: The style clustering module acts as an elegant noise filter. The KL penalty penalizes any deviation from a simple normal distribution, forcing the model to drop information. However, because the clustering loss rewards cross-modal consistency, the model selectively retains only the structured, disease-relevant information, effectively pruning away modality-specific noise (like slide artifacts).

Key Results

MIRROR was evaluated on downstream tasks using both few-shot (10-shot) and full-data linear probing settings, outperforming state-of-the-art baselines like TANGLE, PORPOISE, and SurvPath:

  • Cancer Subtyping: On the TCGA-NSCLC dataset, MIRROR achieved a subtyping accuracy of 93.0% in the 10-shot setting, outperforming the second-best multi-modal method (TANGLE) by 2.1%. On TCGA-RCC (10-shot with Phikon backbone), MIRROR outperformed TANGLE by 6.4% in F1 score.
  • Survival Prediction: In 10-shot survival analysis on TCGA-NSCLC, MIRROR achieved a Concordance Index (C-index) of 0.605, surpassing PORPOISE (0.565) and ABMIL (0.529).
  • Zero-Shot / Cross-Disease Transfer: When pretrained on breast cancer (TCGA-BRCA) and transferred directly to lung, kidney, and colorectal cohorts, MIRROR achieved a 5% average improvement in subtype accuracy over TANGLE, demonstrating robust generalization.

Limitations and Future Work

  • Cohort-Specific Gene Panels: The current transcriptomics preprocessing pipeline selects different subsets of genes for different cancer cohorts based on relevance. This means the input dimensions change depending on the disease, preventing the model from acting as a single, unified pan-cancer foundation model. Developing a harmonized gene panel is a key next step.
  • Computational Overhead: MIRROR relies on a heavier backbone and multiple auxiliary modules, leading to higher parameter counts and FLOPs compared to simpler contrastive baselines. Future work will need to explore parameter-efficient fine-tuning and knowledge distillation to make it more deployable in latency-sensitive clinical environments.

Summary updated

BibTeX
@article{wang2026mirror,
  author = {Tianyi Wang and Jianan Fan and Dingxin Zhang and Dongnan Liu and Yong Xia and Heng Huang and Weidong Cai},
  title = {{MIRROR: Multi-Modal Pathological Self-Supervised Representation Learning via Modality Alignment and Retention}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2026},
  doi = {10.1109/tmi.2025.3632555},
}
Figure