NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transcriptomics-Guided Slide Representation Learning in Computational Pathology

Guillaume Jaume, Lukas Oldenburg, Anurag Vaidya, Richard J. Chen, Drew F. K. Williamson, Thomas Peeters, Andrew H. Song, Faisal Mahmood

Abstract

Learning meaningful representations of giga-pixel Whole-Slide Images (WSIs) is a fundamental challenge in computational pathology due to the massive scale of the data and the scarcity of expert annotations. We present TANGLE (TrANscriptomics-Guided sLidE representation learning), a self-supervised framework that leverages paired gene expression data to guide the learning of slide-level embeddings. By employing multimodal contrastive learning to align histology images with their corresponding molecular profiles, TANGLE captures biologically relevant morphological patterns without requiring manual labels. Our experiments across multiple datasets, including TG-GATEs and TCGA, demonstrate that TANGLE achieves state-of-the-art performance in few-shot classification and slide retrieval, while providing emergent interpretability that aligns with known toxicological and oncological markers.

Introduction

In computational pathology, Whole-Slide Images (WSIs) often exceed 150,000 x 150,000 pixels, presenting a significant computational hurdle. While deep learning models have become proficient at analyzing small image patches, aggregating these into a cohesive representation of an entire slide remains difficult. Standard self-supervised learning (SSL) techniques typically rely on data augmentations like cropping or flipping to create training signals. However, for large-scale tissue samples, it is often unclear which visual features are most critical for downstream clinical or biological tasks.

TANGLE addresses this by using transcriptomics as a high-dimensional "label." Because gene expression provides a detailed molecular snapshot of the tissue's state, it serves as a powerful supervisory signal to guide the visual encoder toward morphologically significant features, such as cellular hypertrophy or inflammatory infiltration.

Methods

The TANGLE framework utilizes a dual-branch architecture designed for multimodal alignment:

  1. Slide Encoder: The WSI is partitioned into patches, which are processed by a vision encoder. For rat tissue, the authors developed iBOT-Tox, a domain-specific encoder. These patch-level features are then aggregated into a single slide-level embedding using Attention-based Multiple Instance Learning (ABMIL).
  2. Gene Expression Encoder: A 3-layer Multi-Layer Perceptron (MLP) processes transcriptomic data, specifically the log2 fold change of gene expressions.

Multimodal Alignment: The model is trained using a symmetric contrastive loss, similar to the CLIP architecture. This objective pulls the embeddings of a slide and its matching gene profile closer together in a shared latent space while pushing mismatched pairs apart. This process forces the vision encoder to identify the visual hallmarks of specific molecular signatures.

Experimental Setup and Datasets

The framework was evaluated using several large-scale datasets spanning different species and organs:

  • TG-GATEs: A toxicogenomics dataset where TANGLE was pre-trained on 6,597 rat liver slide-gene pairs.
  • TCGA (The Cancer Genome Atlas): Human breast (BRCA) and lung (NSCLC) cancer datasets were used to test the model's applicability to oncology.
  • Validation Sets: Performance was verified on independent archives, including 1,265 breast WSIs, 1,946 lung WSIs, and 4,584 liver WSIs.

Results and Key Insights

Few-Shot Performance

TANGLE demonstrates significant advantages in low-data regimes. In few-shot classification tasks (k=10 examples per class), TANGLE outperformed standard supervised ABMIL models with absolute macro-AUC gains of +5.9% in liver, +11.0% in breast, and +6.2% in lung datasets. This suggests that the transcriptomic-guided pre-training captures more robust and generalizable features than traditional supervised learning on small datasets.

Slide Retrieval and Biological Alignment

The learned embedding space proved highly effective for slide retrieval. TANGLE successfully identified slides from similar drug treatment groups based solely on visual similarity. Furthermore, the model exhibited emergent interpretability; using Integrated Gradients, the researchers found that the model's attention focused on genes known to be markers for liver injury. This confirms that the model is not just identifying statistical noise but is aligning with established biological pathways.

Representation Stability

The study observed a strong correlation between the "rank" of the embedding space (a measure of feature distribution) and downstream performance. Transcriptomic guidance appears to prevent "representation collapse," a common failure mode in SSL where the model maps different inputs to similar embeddings.

Discussion and Conclusion

TANGLE represents a shift in how we train pathology AI, moving from purely visual self-supervision to biologically-grounded multimodal learning. By using the "language of genes" to teach the model what to look for in a slide, we can achieve high performance with minimal manual labeling.

Despite its success, the requirement for paired histology and transcriptomics data remains a constraint, as such datasets are more expensive to produce than histology alone. Future research may focus on expanding TANGLE to pan-organ models and improving robustness against staining variations across different laboratories. Nevertheless, TANGLE provides a powerful blueprint for integrating molecular and morphological data in the next generation of computational pathology tools.

Summary updated

BibTeX
@inproceedings{jaume2024transcriptomics,
  author = {Guillaume Jaume and Lukas Oldenburg and Anurag Vaidya and Richard J. Chen and Drew F. K. Williamson and Thomas Peeters and Andrew H. Song and Faisal Mahmood},
  title = {{Transcriptomics-Guided Slide Representation Learning in Computational Pathology}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=vBMObmNcHh},
}
Figure