ST-Prompt Guided Histological Hypergraph Learning for Spatial Gene Expression Prediction

Yi Niu, Jiashuai Liu, Yingkang Zhan, Jiangbo Shi, Di Zhang, Inês Machado, Mireia Crispin-Ortuzar, Chen Li, Zeyu GaoarXiv 2025

TL;DR

This paper introduces PH2ST, a novel framework for predicting spatial gene expression from histology images. It tackles the limitations of current spatial transcriptomics (ST) by using a small number of known ST "prompts" to guide a hypergraph learning model, enabling more accurate and cost-effective gene expression mapping.

What Problem Does This Paper Address?

Spatial Transcriptomics (ST) is a powerful technique for understanding gene expression within tissues, offering crucial insights into biological processes and diseases. However, ST is expensive, has limited coverage, and can be technically complex, hindering its widespread clinical and research use. Predicting ST from standard H&E-stained histology images is a promising alternative, but it's challenging due to the complex and variable relationship between tissue appearance and gene expression. Existing methods struggle with:

  • Clinical Misalignment: Current ST prediction tasks often don't reflect real-world clinical needs, which involve dealing with missing data, inferring expression in unmeasured areas, and enhancing resolution from limited, noisy ST data.
  • Multi-Scale Modeling Deficiencies: Capturing the intricate, hierarchical spatial relationships between tissue morphology and gene expression across different scales is difficult for current models.
  • Domain Shift Vulnerability: Variability between patients and tissue samples can lead to models that perform poorly on unseen data.

Methods

PH2ST introduces a "prompt-guided" approach to ST prediction, reframing it as an inference-time task. Here's a breakdown of its key components:

  • Prompt-Guided Inference: Instead of relying solely on large paired WSI-ST datasets, PH2ST uses a small number of ST spots with known gene expression (the "prompts") from a given WSI to guide the prediction for the rest of that WSI. This mimics real-world scenarios where only limited ST data might be available.
  • Dual-Scale Hypergraph Learning: The core of PH2ST is a novel hypergraph module that models spatial relationships at two scales:
  • Global Scale: A slide-level hypergraph aggregates features across the entire WSI, capturing long-range dependencies between distant tissue regions.
  • Local Scale: Hyper-subgraphs focus on neighboring spots within a local region, capturing fine-grained tissue structures and phenotypes.
  • Multi-Scale Feature Extraction: PH2ST uses a universal histology image encoder (UNI) to extract features from individual spot images and their surrounding neighborhoods, capturing both local and broader spatial context.
  • Prompt-Guided Refinement: A cross-attention mechanism is employed to align the learned histological representations with the ST prompts. This helps refine the model's understanding and reduce the impact of limited training data and domain shifts.

Datasets

The paper evaluates PH2ST on two publicly available ST datasets:

  • Human HER2-positive breast cancer (HER2+) dataset: From 10x Genomics, comprising 36 samples from 8 patients.
  • Human cutaneous squamous cell carcinoma (cSCC) dataset: From 10x Genomics, with 12 samples from 4 patients.

The authors also introduce an "inference-time prompting paradigm" as a benchmark, where a small subset of ST spots are known during testing, simulating real-world data scarcity.

Key Insights and Ideas

  • Prompts as a Clinical Bridge: Reframing ST prediction as a prompt-guided task makes it more aligned with practical clinical needs, where dealing with incomplete or sparse ST data is common.
  • Hypergraphs for Hierarchical Relationships: The dual-scale hypergraph effectively captures both broad tissue context and fine-grained local details, which is crucial for understanding the complex interplay between histology and gene expression.
  • Cross-Attention for Robustness: Using cross-attention to align histological features with ST prompts helps the model generalize better to unseen data and mitigates issues caused by domain shifts.
  • Prompt Selection Matters: The choice of tissue regions for prompts significantly impacts prediction accuracy. Prompts from areas with moderate tissue heterogeneity (e.g., tumor boundaries with stroma) are more informative than those from homogeneous regions.

Key Results

PH2ST consistently outperformed existing state-of-the-art methods on both the HER2+ and cSCC datasets, achieving significant improvements in Pearson Correlation Coefficient (PCC) and Concordance Correlation Coefficient (CCC).

  • Superior Performance: PH2ST improved CCC by at least 7% and PCC by 14% compared to most baselines, and showed 3-5% (CCC) and 2-5% (PCC) improvements over the previous state-of-the-art (TRIPLEX).
  • Robustness to Prompting Strategies: The model demonstrated strong performance across various prompt sampling strategies (random, Poisson disc, sparse/dense square windows), highlighting its adaptability to different real-world scenarios.
  • Effective Feature Integration: Ablation studies showed that integrating both spot-level and neighboring features via the dual-scale hypergraph was crucial for optimal performance.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Computational Cost: The hypergraph construction process during training is not GPU-accelerated, leading to increased computational demands.
  • Simulation-Based Settings: Many experimental settings, particularly prompt sampling, were simulations. Future work should focus on real-world validation with actual sparse ST data.
  • Low-Resolution Extrapolation: While PH2ST shows promise for super-resolution, the performance in low-resolution extrapolation tasks (simulated by Poisson disc sampling) could be further improved.

Future work will focus on:

  • Developing GPU-accelerated hypergraph construction.
  • Validating the method on larger, more diverse, and truly sparse ST datasets.
  • Extending the method to predict gene expression at near-single-cell or subcellular resolution using emerging ST technologies.

Summary updated

BibTeX
@misc{niu2025st,
  author = {Yi Niu and Jiashuai Liu and Yingkang Zhan and Jiangbo Shi and Di Zhang and Inês Machado and Mireia Crispin-Ortuzar and Chen Li and Zeyu Gao},
  title = {{ST-Prompt Guided Histological Hypergraph Learning for Spatial Gene Expression Prediction}},
  year = {2025},
  eprint = {2503.16816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.16816},
}
Figure