Pathway-Aligned Regulator Tokens for Interpretable Spatial Gene Expression Prediction from Histologyatial Transcriptomics Prediction from Histology
Hyun Namgung ⋅ Sanghyun Park
Abstract
Predicting spatial gene expression from histopathology images enables transcriptomic analysis on archival H\&E samples where matched spatial transcriptomics data is unavailable. Gene expression is organized into co-regulated modules: transcription factor complexes coordinate the co-expression of many downstream targets (e.g., the ISGF3 complex coordinating hundreds of interferon-stimulated genes through shared cis-regulatory elements). Existing approaches to histology-to-expression prediction, both deterministic and generative, employ generic architectures that ignore this structure. We introduce regulator attention, a modular co-expression prior that pools gene representations into a small set of content-dependent tokens via a learned selector and routes them back through cross-attention to modulate gene-level features, in contrast to learnable token arrays whose identity is independent of the input. Within a flow matching framework conditioned on pathology foundation model embeddings, our method outperforms deterministic and generative baselines on correlation-based metrics across four tissue types spanning human cancer, normal tissue, and cross-species samples, with the largest gains on highly variable genes. Isolated under the final flow matching backbone on Mouse Brain, regulator attention improves over full gene--gene self-attention, whereas input-agnostic bottlenecks fall below it, identifying content-dependent token generation as the source of the gain. The learned tokens attend to distinct gene sets, and their pathway alignment exceeds expression-, variance-, and detection-matched null gene sets. The bottleneck also removes the quadratic memory cost of gene--gene attention, reducing peak memory by $5.3\times$ at the Xenium Prime 5K panel size.
Successful Page Load