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

RankByGene: Gene-Guided Histopathology Representation Learning Through Cross-Modal Ranking Consistency

Wentao Huang, Meilong Xu, Xiaoling Hu, Shahira Abousamra, Aniruddha Ganguly, Saarthak Kapse, Alisa Yurovsky, Prateek Prasanna, Tahsin M. Kurç, Joel H. Saltz, Michael L. Miller, Chao Chen · OpenReview

TL;DR

This paper introduces RankByGene, a novel method for aligning spatial transcriptomics (ST) data with histopathology images. By using a ranking-based consistency loss and self-supervised knowledge distillation, RankByGene achieves more robust and accurate cross-modal alignment, leading to improved performance in downstream tasks like gene expression prediction and survival analysis. This work is crucial for unlocking the full potential of multi-modal data in digital pathology for better disease understanding and diagnosis.

What Problem Does This Paper Address?

Digital pathology has made significant strides, but a key challenge remains in bridging the gap between visual information from histopathology images and the functional insights provided by gene expression data. Spatial transcriptomics (ST) offers a solution by mapping gene expression directly onto tissue images, but aligning these two modalities is difficult due to inherent spatial distortions and differences in how each modality captures information. Existing methods often rely on direct alignment, which struggles with complex cross-modal relationships and can be sensitive to the high dimensionality, sparsity, and noise present in gene expression data. This paper aims to develop a more robust and effective method for aligning these modalities to extract richer, biologically meaningful representations.

Methods

RankByGene introduces a novel framework with two key components:

  • Cross-Modal Ranking Consistency Loss: Instead of directly aligning feature values, this loss focuses on preserving the relative ranking of similarities between different spots. For any given spot, if gene A is more similar to gene B than to gene C, the method ensures that the corresponding image features also maintain this similarity order. This approach is more robust to distortions and noise, and it enables alignment across both local (within a spot) and global (across distant spots) scales.
  • Self-Supervised Knowledge Distillation: To further enhance robustness, a teacher-student network architecture is employed. The teacher network, trained on weakly augmented image patches, guides the student network, trained on strongly augmented patches. This process helps the student network learn stable, gene-informed image representations that are resilient to the inherent imperfections of ST gene expression data.

These components are integrated into a pipeline that first extracts features from both image patches and gene profiles, then aligns them using a contrastive loss, and finally refines the alignment with the proposed ranking consistency and distillation losses.

Datasets

The authors utilize several datasets for their experiments:

  • Breast ST datasets: HEST-1k dataset (36 samples for training) and two Visium breast ST samples (Breast-ST1 and Breast-ST2) for external evaluation.
  • Lung ST dataset: A dataset from [59] (6 samples for training) and 4 lung ST samples from [85] (Lung-ST) for testing.
  • WSI Datasets: BCNB and TCGA LUAD mutation datasets for classification tasks, and TCGA-BRCA and TCGA-LUAD for survival analysis.

Key Insights and Ideas

  • Ranking over direct similarity: The core insight is that relative rankings of similarity are more robust to noise and distortions than absolute similarity values, making them a better target for cross-modal alignment.
  • Global alignment complements local: The ranking consistency loss provides a global structural constraint that complements the local alignment achieved by contrastive learning, leading to a more comprehensive alignment.
  • Distillation for robustness: Self-supervised knowledge distillation is a powerful technique to make the learned representations resilient to the challenges of ST data, such as high dimensionality and sparsity.
  • Cancer-specific genes matter: Selecting prognosis-related genes, rather than just highly expressed ones, can lead to better downstream performance by capturing more biologically relevant signals.

Key Results

  • Improved Gene Expression Prediction: RankByGene consistently outperformed baseline methods across multiple datasets (Breast-ST1, Breast-ST2, Lung-ST), achieving significant improvements in PCC (7-35%) for cancer-specific genes and (9-34%) for highly expressed genes.
  • Enhanced Classification and Survival Analysis: The method demonstrated strong performance in gene-related classification (AUC) and survival prediction (C-Index), outperforming baselines and highlighting the value of gene-informed image features. For survival analysis, RankByGene achieved the highest C-Index (0.6814 for TCGA-BRCA and 0.5945 for TCGA-LUAD).
  • Robustness: Ablation studies showed that the ranking loss and distillation components are complementary and crucial for optimal performance. The method also demonstrated robustness to different image encoders and initialization schemes.
  • Efficiency: The proposed sampling strategy for the ranking loss significantly reduces computational complexity from O(N³) to O(N²) without substantial accuracy loss.

Limitations and Future Work

  • Dataset Specificity: The current validation is limited to breast and lung ST datasets. Further experiments on other organs (brain, skin, kidney, heart) are needed to demonstrate broader generalizability.
  • Initialization: The authors used UNI as the initialization for the image encoder. Further validation with other foundation models is suggested.
  • Higher-Quality Data: The study acknowledges that using higher-quality ST data (e.g., VisiumHD) could lead to more detailed gene-image alignment and potentially better results.
  • Resource Constraints: Limitations in resources led to the use of UNI as initialization, suggesting that exploring other foundation models could be a future direction.

Summary updated

BibTeX
@misc{huang2024rankbygene,
  author = {Wentao Huang and Meilong Xu and Xiaoling Hu and Shahira Abousamra and Aniruddha Ganguly and Saarthak Kapse and Alisa Yurovsky and Prateek Prasanna and Tahsin M. Kurç and Joel H. Saltz and Michael L. Miller and Chao Chen},
  title = {{RankByGene: Gene-Guided Histopathology Representation Learning Through Cross-Modal Ranking Consistency}},
  year = {2024},
  eprint = {2411.15076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15076},
}
Figure