HistoGPA: A Context-Conditioned Gene-Prior Attention Framework for Histology-Based Spatial Gene Expression Prediction

2026-07-27Computer Vision and Pattern Recognition

Computer Vision and Pattern Recognition
AI summary

The authors developed a new method called HistoGPA to predict where genes are active in tissue samples by looking at standard microscope images (H&E stained). Unlike previous methods, HistoGPA considers the larger tissue context when interpreting local cell features and gene information instead of using fixed gene data. Their approach works better across multiple types of cancer, showing stronger matches between predicted and actual gene activity patterns. This suggests that understanding gene expression from images benefits from combining local and global tissue information.

spatial gene expressionhematoxylin and eosin (H&E) stainingspatial transcriptomicsgene embeddingscross-attentionmorphological featurescancer tissuePearson correlation coefficientgene priortissue context
Authors
Ziang Liu, Xinhai Chen, Yigui Feng, Shuai Li, Qingyang Zhang, Jie Liu
Abstract
Predicting spatial gene expression from routine hematoxylin and eosin (H&E) images provides a practical complement to experimental spatial transcriptomics. Existing approaches focus on local or multi-scale visual features and often treat pretrained gene representations as fixed priors, although the interpretation of local morphology and the relevance of gene priors depend on tissue context. We propose HistoGPA, a context-conditioned gene-prior attention framework that uses a shared slide-level representation in two parallel pathways: one modulates local morphological features, whereas the other conditions pretrained gene embeddings and retrieves gene-prior information through cross-attention. This design enables each spatial location to retrieve context-adapted gene-prior information using its local morphology, position, and slide context. Across ten cancer types in HEST-1k, HistoGPA achieves the highest macro-averaged gene-wise Pearson correlation coefficient among the compared methods under the same evaluation protocol for both the top-50 and top-1,500 highly variable gene sets. Additional analyses show that HistoGPA better recovers the spatial expression patterns of cancer-associated genes and yields greater agreement between clusters derived independently from predicted and ground-truth expression profiles. Together, these findings motivate a context-dependent view of histology-to-expression prediction, in which local morphological representations and gene priors are jointly adapted to the broader tissue context.