SpaAxFormer: Fine-Grained Token Modeling of Spatial Transcriptomics with Axial Transformers
Abstract
Spatial transcriptomics combines gene-expression measurements with spatial relationships between cells. We investigate how spatial context can be incorporated into gene-resolved representations while preserving explicit input-gene correspondence. SpaAxFormer is a spatially constrained factorized formulation that maintains contextual cell-gene states throughout the encoder. It first contextualizes genes within each cell and then exchanges corresponding gene states across spatial neighbors, while a separate CLS representation provides a cell-level summary. Contextual gene states support gene-expression reconstruction, while CLS-conditioned reconstruction and contrastive learning provide complementary supervision for the cell-level representation. We evaluate SpaAxFormer on gene-expression imputation and spatial-domain identification across multiple spatial-transcriptomics technologies. Compared with the included baselines, imputation results were most favorable on dorsolateral prefrontal cortex (DLPFC) datasets and more mixed on additional technologies, while post-hoc spatial refinement consistently improved mean ARI on the Visium spatial-domain datasets where it was applied. In a single-slice component-addition analysis, mean clustering ARI increased as CLS-conditioned reconstruction and contrastive supervision were added. Together, these results show that the same gene-resolved formulation can support complementary gene-level prediction and cell-level spatial representation while preserving explicit input-gene correspondence.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- scGPT-spatial: Continual Pretraining of Single-Cell Foundation Model for Spatial Transcriptomics
Chloe Xueqi Wang, Haotian Cui, … Bo Wang·bioRxiv·Feb 5, 2025
- Learning context-aware, distributed gene representations in spatial transcriptomics with SpaCEX
Xiaobo Sun, Yucheng Xu, … Hao Wu·bioRxiv·Jun 7, 2024
- GeST: Towards Building A Generative Pretrained Transformer for Learning Cellular Spatial Context
Minsheng Hao, Nan Yan, … Xuegong Zhang·bioRxiv·Apr 9, 2025
- NexuST: A Hierarchical Foundation Model for Spatial Transcriptomics
Haiping Liu, Qian Zhao, … Hongpeng Zhou·bioRxiv·Sep 28, 2026
- SpaGene: A Deep Adversarial Framework for Spatial Gene Imputation
Aishwarya Budhkar, Juhyung Ha, … Xuhong Zhang·Computational and Structural Biotechnology JournalPeer-reviewed·Mar 1, 2026
- SpaCell: integrating tissue morphology and spatial gene expression to predict disease cells
Xiao Tan, Andrew Su, … Quan Hoang Nguyen·BioinformaticsPeer-reviewed·Dec 1, 2019