Abstract
While pathology foundation models have transformed cancer image analysis, they often lack integration with molecular data at single-cell resolution, limiting their utility for precision oncology. Here, we present PAST, a pan-cancer single-cell foundation model trained on 20 million paired histopathology images and single-cell transcriptomes spanning multiple tumor types and tissue contexts. By jointly encoding cellular morphology and gene expression, PAST learns unified cross-modal representations that capture both spatial and molecular heterogeneity at the cellular level. This approach enables accurate prediction of single-cell gene expression, virtual molecular staining, and multimodal survival analysis directly from routine pathology slides. Across diverse cancers and downstream tasks, PAST consistently exceeds the performance of existing approaches, demonstrating robust generalizability and scalability. Our work establishes a new paradigm for pathology foundation models, providing a versatile tool for high-resolution spatial omics, mechanistic discovery, and precision cancer research.
Introduction
In oncology, a critical disconnect exists between tissue morphology and molecular signatures. Histopathology (H&E staining) reveals the spatial arrangement and shapes of cells but lacks molecular depth. Conversely, spatial transcriptomics (ST) provides genetic blueprints but is often expensive, destructive, and historically limited in resolution. Existing computational pathology models, while adept at visual pattern recognition, often overlook the underlying molecular drivers.
PAST (Pan-cancer Single-cell foundation model) addresses this gap by operating at single-cell resolution. It establishes a framework to understand how a cell’s appearance relates to its genetic activity and how its microenvironment influences its behavior, effectively bridging the gap between "geography" and "blueprint."
Methods and Data
PAST utilizes a multimodal dual-encoder architecture based on the CLIP framework. It employs a Vision Transformer (ViT-Large) for image patches and a specialized transformer for gene expression. A key technical innovation is the Spatial Graph Attention (GAT) branch, which allows the model to aggregate features from neighboring cells, capturing the critical influence of the tissue microenvironment on individual cell states.
To ensure robustness across different laboratory settings and sequencing technologies, PAST uses ranking-based tokenization for gene expression rather than absolute values. For "virtual staining" tasks, the model employs Feature-wise Linear Modulation (FiLM) to condition generative outputs on learned morpho-molecular embeddings.
The model was pretrained on PAST-20M, a massive dataset comprising 20 million paired H&E image patches and single-cell transcriptomes across 15 cancer types, generated using the high-resolution Xenium platform.
Results
Morpho-Molecular Alignment
PAST demonstrates that cellular morphology and local neighborhood context are powerful proxies for molecular state. The model achieved a mean Pearson correlation of r = 0.619 for gene expression prediction, significantly outperforming state-of-the-art models like UNI (0.536) and CONCH (0.520). Ablation studies confirmed that the spatial graph branch significantly boosted performance, highlighting that biology is inherently contextual.
Virtual Immunohistochemistry
The model enables "digital staining" of proteins directly from standard H&E slides. Automated H-scores derived from PAST’s virtual IHC showed a 0.91 correlation with expert pathologist assessments, demonstrating its potential for clinical decision support.
Multimodal Survival Prediction
By integrating morphological and molecular features, PAST provides superior prognostic insights. In the TCGA breast cancer (BRCA) cohort, the model achieved clear separation between high-risk and low-risk groups, outperforming unimodal baselines.
Discussion
PAST represents a paradigm shift toward "morpho-molecular" diagnostics, where routine H&E slides can potentially provide the depth of information currently reserved for expensive genetic tests. While the model shows robust generalization across different cancer types, future work will focus on expanding the diversity of whole-slide paired data and mitigating technical noise in clinical tissue preparation. Ultimately, PAST provides a scalable tool for high-resolution spatial omics and precision cancer research.
Summary updated