Research
HistoPrism: Unlocking Functional Pathway Analysis from Pan-Cancer Histology via Gene Expression Prediction
HistoPrism: Unlocking Functional Pathway Analysis from Pan-Cancer Histology via Gene Expression Prediction Overview Research area: Computational pathology / spatial transcriptomics — predicting spatia
- arXiv
- 2601.21560
- Published
- 2026-01-29
- Authors
- Susu Hu, Qinghe Zeng, Nithya Bhasker, Jakob Nikolas Kather, Stefanie Speidel
AI summary
HistoPrism: Unlocking Functional Pathway Analysis from Pan-Cancer Histology via Gene Expression PredictionOverview
- Research area: Computational pathology / spatial transcriptomics — predicting spatial gene expression from H&E-stained whole-slide images, evaluated with a new pathway-level biological benchmark.
- Technical level: Advanced. The paper assumes familiarity with transformer architectures, cross-attention, spatial transcriptomics data formats, and gene pathway databases (MSigDB Hallmark, Gene Ontology), though the prose is written for a broad machine learning audience.
- Scope: Introduces HistoPrism, a transformer-based regressor for pan-cancer gene expression prediction from histology, together with Gene Pathway Coherence (GPC), a pathway-level evaluation benchmark.
What This Paper Is About
Spatial transcriptomics measures gene expression while preserving tissue location, but it is costly, labor-intensive, and not widely scalable, whereas H&E-stained whole-slide images are routinely collected in clinical workflows. The paper asks whether a model can infer gene expression directly from those routine images across many cancer types at once, and — more importantly — whether the predicted expression is biologically coherent rather than merely correlated with the most variable genes. Existing methods are often restricted to single-cancer settings and judged mainly by variance-based metrics such as Pearson correlation on top-N highly variable genes, which the authors argue is a poor proxy for functional biology.
Key Contributions
-
HistoPrism architecture. An efficient transformer-based direct-mapping model for pan-cancer gene expression prediction from histology. It uses a cross-attention module to inject a one-hot cancer-type condition into patch features, a standard Transformer Encoder for contextual aggregation, and an MLP regression head that maps each patch latent to a gene expression vector. Training minimizes Mean Squared Error between predicted and ground-truth log1p-normalized expression.
-
The Gene Pathway Coherence (GPC) benchmark. A new evaluation framework built from 50 Hallmark gene sets and 87 Gene Ontology pathway gene sets, curated by filtering pathways to 50–100 genes and removing redundancy using Jaccard similarity with a threshold of τ = 0.1 (iteratively removing the larger of any over-similar pair). Hallmark pathways are retained in full. GPC scores the pathway-level Pearson correlation across member genes, averaged across patches within each whole-slide image and across images.
-
State-of-the-art pan-cancer results with a small footprint. Reported gains on top-50 highly variable genes, larger gains at the pathway level (86.0% of Hallmark pathways and 74.7% of Gene Ontology pathways beaten relative to STPath), and substantially higher clustering agreement with true cancer types (AMI 0.623 vs 0.395 for STPath; ARI 0.521 vs 0.402), while being more computationally efficient.
-
Efficiency and data-efficiency evidence. Training used only 500 whole-slide images — roughly half the data used for the STPath foundation model — and profiling shows lower FLOPs, lower peak GPU memory, and shorter forward-pass runtime than STPath, with HistoPrism scaling linearly across patch counts while STPath exhibits exponential growth.
Main Findings
-
Highly variable gene prediction is competitive but mixed. On top-50 HVGs, HistoPrism's average macro-average PCC is 0.342 and micro-average PCC is 0.318, versus STPath at 0.361 macro and 0.292 micro. HistoPrism is slightly below STPath on macro-average but higher on micro-average, which the authors describe as a more balanced view of predictive quality across heterogeneous cancers.
-
Generative baselines struggle pan-cancer. STFlow (trained only on the 430-gene union of top-50 HVGs across cancer types due to compute cost) reaches 0.311 macro and 0.247 micro average PCC. STEM, a diffusion model, performs worst at 0.184 macro and 0.180 micro; the authors state this calls into question the robustness of STEM's original leave-one-out evaluation.
-
Large pathway-level gains, concentrated in low-variance pathways. HistoPrism outperforms STPath on 86.0% of the 50 Hallmark pathways and 74.7% of the Gene Ontology pathways. When stratifying pathways by gene variance level, the biggest improvements appear on low-variance pathways, which the authors associate with stable, core biological processes.
-
Global transcriptome clustering improves markedly. Clustering samples by predicted expression across the full gene set and comparing to true cancer type labels gives AMI 0.623 ± 0.015 and ARI 0.521 ± 0.001 for HistoPrism, versus AMI 0.395 and ARI 0.402 for STPath (the ± values for STPath are printed inconsistently in the provided text). The authors attribute this to HistoPrism's direct-mapping design versus STPath's masked autoencoder "fill-in-the-blanks" objective, which they argue is suboptimal for a pure predictive task.
-
Efficiency advantages grow with image size. HistoPrism requires fewer FLOPs, less memory, and shorter runtimes than STPath, with the gap widening as patch counts increase; HistoPrism scales linearly on all three metrics, while STPath grows exponentially. The authors highlight deployment relevance for real-world datasets exceeding 10k patches. All experiments ran on a single NVIDIA A100 GPU with 100-run averages.
-
Cross-attention conditioning helps; positional encoding does not. In ablation, removing cross-attention drops micro-average PCC from 0.318 to 0.306 (macro 0.342 to 0.318), while adding positional encoding yields macro 0.331 and micro 0.313 — no measurable benefit. The authors hypothesize that UNI patch features already capture local morphology and that the Transformer behaves as a permutation-invariant set function over tissue composition.
-
Results do not depend on the pathology foundation model. Swapping UNI for GigaPath (the PFM used by STPath) gives macro 0.331 and micro 0.320, only marginal differences, leading the authors to conclude the gains are architectural.
-
Data efficiency. HistoPrism achieved its results with approximately 50% of the standard training data.
Methodology in Plain English
The team treats the problem as direct regression. A whole-slide H&E image is split into non-overlapping patches, and each patch is converted into a feature vector using a pre-trained pathology foundation model (UNI in the main experiments, GigaPath in one ablation). Spatial transcriptomics provides the matching gene counts, normalized with log1p.
The model then does three things. First, the cancer type — encoded as a one-hot vector and projected into a dense embedding — is injected into the patch features through cross-attention, where patch features act as queries and the cancer embedding supplies keys and values. This lets the model modulate local patch representations with global cancer context. Second, a standard Transformer Encoder processes the conditioned features to capture short- and long-range spatial dependencies such as tumor boundaries and immune infiltration. Third, an MLP head maps each patch's latent representation directly to a gene expression vector. The whole model is trained end-to-end with MSE loss.
For evaluation, the researchers keep the conventional top-N highly variable gene Pearson correlation for comparability, then add GPC. In GPC, for each gene within each slide, a Pearson correlation is computed between predicted and ground-truth expression across all patches of that slide; these per-gene correlations are averaged over the genes in each curated pathway and then averaged over slides. The curated pathway set comes from MSigDB Hallmark and Gene Ontology (Biological Process, Cellular Component, Molecular Function), filtered to 50–100 genes and de-duplicated by Jaccard similarity above τ = 0.1.
Experiments use the HEST1k dataset, which aggregates 153 distinct cohorts from 36 independent studies, with two splits retaining HEST1k HEST-Bench's original hold-out test sets; training and validation splits are stratified by cancer type. STPath is the primary benchmark. STEM and STFlow are included as generative baselines but restricted to the 430-gene union of top-50 HVGs because of training cost. STimage-1K4M was considered but rejected because of its non-standard single-resolution image format and partial overlap with HEST1k.
Implementation details: one cross-attention layer with 4 heads, two transformer layers with 8 heads and 256 hidden dimension; a 38,982-gene panel curated by STPath; AdamW with learning rate 5×10⁻⁴ and weight decay 0.01; up to 1000 epochs with early-stopping patience of 30 on validation MSE, with convergence typically around 300 epochs; gradient clipping at maximum norm 1.0. The splits contain 501/124/23 (train/validation/test) for Split 0 and 498/123/28 for Split 1, for 51 total test samples across ten cancer types (CCRCC, COAD, HCC, IDC, LUNG, LYMPH_IDC, PAAD, PRAD, READ, SKCM).
Why This Matters
-
Research impact. The paper argues that variance-based metrics are an incomplete assessment of a model's ability to reconstruct biologically meaningful expression, and offers a formalized pathway-level benchmark as an alternative. Because pathway analysis is already standard in computational biology but had not been formalized as a deep learning benchmark in this domain, GPC could shift how histology-to-expression models are compared. The finding that gains concentrate on low-variance, core-biological pathways is a strong argument that model evaluation should not default to high-variance gene subsets.
-
Real-world applications:
- Resource-constrained clinical and research settings: lower FLOPs, memory, and runtime plus training on half the usual data make deployment feasible where large-scale compute or massive annotated datasets are unavailable.
- *Pathology (H&E)**: provides a scalable, low-cost alternative to sequencing for inferring spatial expression, since H&E slides are already routinely acquired.
- Cancer-type characterization: strong AMI/ARI clustering of predicted expression against true cancer types suggests utility for transcriptome-informed stratification without direct sequencing.
- Pathway and functional analysis: coherent prediction of Hallmark and Gene Ontology pathways supports functional interpretation of tumors directly from images.
-
Industry relevance. The efficiency profile (linear scaling, lower peak GPU memory, fewer FLOPs, one A100 GPU) and the reliance on standard H&E slides align with practical digital pathology pipelines. Pathology foundation models such as CTransPath, GigaPath, and UNI have standardized patch feature extraction, shifting the core challenge to how those features are contextually integrated — exactly the gap HistoPrism targets. The authors disclose that co-author Jakob Nikolas Kather has consulting relationships (AstraZeneca, Bioptimus), equity in StratifAI, Synagen, and Spira Labs, and research funding and honoraria from multiple pharmaceutical companies.
Future Directions
-
Biological interpretability. The authors state a key avenue is to move beyond predictive accuracy and systematically identify the causal visual features and cellular concepts the model has learned, which they call crucial for adoption as a tool for scientific discovery.
-
Extending generative modeling to pan-cancer settings. STEM and STFlow generalize poorly beyond single-cancer settings in this benchmark, raising the question of how to build generative approaches that handle cross-cancer heterogeneity without scalability problems or mode collapse.
-
Revisiting evaluation protocols for generative models. The authors note STEM's poor pan-cancer performance calls into question the robustness of its original leave-one-out evaluation, suggesting prior single-cancer benchmarks may overstate progress.
-
Broadening pathway and dataset coverage. The GPC framework is built on 50 Hallmark and 87 Gene Ontology pathway gene sets from a 38,982-gene panel; future work could examine whether the pathway-level conclusions hold across additional pathway sources, cancer types, and spatial transcriptomics technologies beyond those aggregated in HEST1k.
Target Audience
This paper is most valuable to machine learning researchers working on multimodal biomedical prediction and histology-to-omics translation; computational pathologists and digital pathology groups interested in spatial transcriptomics surrogates; bioinformaticians who care about pathway-level and functional evaluation rather than gene-level correlation; and clinical or translational researchers evaluating whether image-based transcriptomic prediction is deployable in resource-limited settings. Readers wanting only the biological conclusions can focus on the pathway coherence results; readers wanting to reproduce or extend the model will need the architecture and training details in the appendices.
Authors’ abstract
Predicting spatial gene expression from H&E histology offers a scalable and clinically accessible alternative to sequencing, but realizing clinical impact requires models that generalize across cancer types and capture biologically coherent signals. Prior work is often limited to per-cancer settings and variance-based evaluation, leaving functional relevance underexplored. We introduce HistoPrism, an efficient transformer-based architecture for pan-cancer prediction of gene expression from histology. To evaluate biological meaning, we introduce a pathway-level benchmark, shifting assessment from isolated gene-level variance to coherent functional pathways. HistoPrism not only surpasses prior state-of-the-art models on highly variable genes , but also more importantly, achieves substantial gains on pathway-level prediction, demonstrating its ability to recover biologically coherent transcriptomic patterns. With strong pan-cancer generalization and improved efficiency, HistoPrism establishes a new standard for clinically relevant transcriptomic modeling from routinely available histology.