arXiv:2610.26988cs.CVOct 2026

Manuscript Offprint

arXiv:2610.26988

REST: Reliability-Guided Spatial Transcriptomics Supervision for Gene Expression Prediction from Histopathological HE-Stained Images

Lanfeng Zhong, Xiangyu Sun, Guixuan Xu, Rongzhao Zhang, Jie Xu, Shaoting Zhang, Guotai Wang

ABSTRACT

Histopathology is central to cancer diagnosis, but morphology in Hematoxylin and Eosin (H&E)-stained images does not directly reveal the molecular states that characterize disease heterogeneity and inform tumor characterization, prognostic assessment, and biomarker discovery. Spatial Transcriptomics (ST) measures spatially resolved gene expression, providing molecular information within tissue architecture, yet differences in assay coverage and spot informativeness make paired H&E-ST observations unequally reliable for representation learning. We propose Reliability-Guided Spatial Transcriptomics (REST) supervision with Biological Program Bank (BPB), a program-structured and reliability-guided ST-supervised training framework for predicting molecular information from H&E images. REST constructs BPB from curated signature, pathway, and cell-type gene sets to provide a shared structure for ST encoding, reliability estimation, and molecular reconstruction. Guided by BPB, SpotReliability Contrastive Alignment (SRCA) measures the reliability of each spot from assay-level program coverage and spot-level activity dispersion, and reweights H&E-ST alignment accordingly. Biology-Informed Program Reconstruction (BIPR) further uses learnable program queries to reconstruct member-gene expression from histological morphology. REST's training corpus comprised 209 samples (407,475 spots across 16 organs); evaluation used 70 disjoint samples (230,056 spots across eight organs) for gene-expression, pathway activity, and cell-signature prediction. REST achieved the highest Macro correlation among state-of-the-art ST-supervised training methods and outperformed existing pathology foundation models. Code is available at https://github.com/lanfz2000/REST.

Index Terms— spatial transcriptomics, computational pathology, representation learning, contrastive learning, molecular prediction

1. INTRODUCTION

Hematoxylin and Eosin (H&E)-stained images in histopathology are central to cancer diagnosis and treatment prediction, as they reveal tissue architecture, cellular morphology, and tumor organization [1]. However, morphology alone does not directly expose the molecular states that characterize disease heterogeneity and inform tumor characterization, prognostic assessment, and biomarker discovery. Spatial Transcriptomics (ST) measures spatially resolved gene expression, providing molecular information in the context of tissue architecture and linking local molecular variation to histological morphology [2, 3]. However, ST requires dedicated tissue processing and sequencing and remains far less accessible than routine H&E images. These practical constraints motivate predicting local molecular profiles directly from H&E images [4, 5].

Such prediction requires visual representations that connect local tissue morphology with molecular state. Large-scale self-supervised and vision-language pretraining provides transferable histology encoders [6, 7, 8, 9, 10, 11, 12], but these objectives do not explicitly capture local transcriptomic variation. Paired H&E-ST data provide molecular supervision for histology encoders, including through batch-agnostic contrastive learning for image recognition [13].

Histology–transcriptomics methods have explored bulk-level molecular modeling [4, 14], spot-wise regression [5, 15], spatial graph modeling [16], and H&E-ST contrastive learning [17]. Among them, OmiCLIP represents each spot as a sequence of highly expressed genes and contrasts it with the paired H&E patch [18], HAGE combines global and local alignment with hierarchical centroid constraints and gene prediction [19], STAMP augments symmetric contrastive learning with Hallmark-program gene reconstruction [20], and SEAL learns an ST latent space before aligning pathology with molecular embeddings [21]. These studies highlight the importance of ST-supervised training objectives, but two limitations remain.

First, gene availability and molecular coverage vary across ST assays and samples, yet standard contrastive objectives weight matched H&E-ST pairs equally. Pairs from assays with limited program coverage or spots with weakly discriminative program profiles may therefore provide unreliable cross-modal supervision. Second, directly reconstructing individual genes exposes the model to high-dimensional and sparsely observed gene-level noise. Molecular signature, pathway, and cell-type marker collections provide an interpretable structure for organizing related genes [22, 23, 24], but the gene-type and pathway priors used by HAGE and STAMP [19, 20] do not explicitly determine assay- and spot-dependent reliability weights for H&E-ST alignment. Effective ST supervision should therefore account for assay- and spot-dependent reliability while using biological structure throughout training.

To address these issues, we propose Reliability-Guided Spatial Transcriptomics (REST) supervision with Biological Program Bank (BPB), a program-structured and reliability-guided training framework for learning molecularly informative histology representations from paired H&E-ST data. BPB integrates curated signature, pathway, and cell-type gene sets into a unified molecular structure,

Correspondence to Guotai Wang (guotai.wang@uestc.edu.cn)

(a) Spatial transcriptomics-supervised training

(b) Downstream tasks

Figure

Fig. 1. Overview of REST for obtaining ST-aware features from H&E images for gene expression prediction. BPB: Biological Program Bank.

and provides the shared basis for two training mechanisms: Spot-Reliability Contrastive Alignment (SRCA) estimates the reliability of each spot from assay-level program coverage and spot-level activity dispersion, whereas Biology-Informed Program Reconstruction (BIPR) uses program-specific queries to reconstruct member-gene expression from H&E features. Across HEST-derived gene, pathway, and cell-signature tasks, REST achieves the highest Macro Pearson correlation among state-of-the-art ST-supervised training methods and outperforms existing pathology foundation models. Our contributions are:

  • We propose REST with BPB, a unified bank of molecular signatures, pathways, and cell-type markers that guides ST encoding, reliability estimation, and reconstruction for molecularly informed histology representation learning.

  • We introduce SRCA, which estimates spot reliability from assay-level program coverage and spot-level activity dispersion to reweight H&E–ST contrastive alignment.

  • We introduce BIPR, which uses learnable program queries to extract program-specific visual features for reconstructing member-gene expression.

References (31)