bioRxivBioinformaticsPreprint
stFormer: a foundation model for spatial transcriptomics
Shenghao CaoiD, Kaiyuan YangiD, Jiabei ChengiD, Jiachen LiiD, Hong‐Bin SheniD, Xiaoyong PaniD, Ye YuaniD
Abstract
Recent foundation models for single-cell transcriptomics data generate informative, context-aware representations for genes and cells. The Spatial Transcriptomics (ST) data offer extra positional insights, which were not considered by these single-cell models. Here, we introduce stFormer, a transformer model tailored for ST data. stFormer employs the cross-attention module to incorporate spatial ligand genes into the transformer encoder of single-cell transcriptomics. To unify different ST technologies with trade-off between resolution and gene coverage, we propose a biased cross-attention method that enables the model to do learning with single-cell resolution on whole-transcriptome but low-resolution Visium data. We collected human Visium datasets from a public ST database and performed cell type deconvolution, generating ~4.1 million pretraining samples. As a foundation model for ST data, stFormer improved performance upon the state-of-the-art single-cell foundation model, scFoundation, across a variety of tasks, including cell clustering, batch effect correction, cell type prediction, and gene function prediction. stFormer also revealed intercellular ligand-receptor signaling responses via in silico perturbation.
- organism: human
- assay: spatial transcriptomics
- research focus: cell type annotation
- research focus: clustering
- research focus: batch correction / integration
- research focus: differential expression
- approach: transformer / foundation model
- Citations
- 8
Reproducibility 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
- NexuST: A Hierarchical Foundation Model for Spatial Transcriptomics
Haiping Liu, Qian Zhao, … Hongpeng Zhou·bioRxiv·Sep 28, 2026
- Transformer Enables Reference Free And Unsupervised Analysis of Spatial Transcriptomics
Chongyue Zhao, Zhongli Xu, … Wei Chen·bioRxiv·Aug 11, 2022
- Diffusion-based Representation Integration for Foundation Models Improves Spatial Transcriptomics Analysis
Atishay Jain, Tuan Minh Pham, … Ritambhara Singh·BioinformaticsPeer-reviewed·Jul 1, 2026
- scGPT-spatial: Continual Pretraining of Single-Cell Foundation Model for Spatial Transcriptomics
Chloe Xueqi Wang, Haotian Cui, … Bo Wang·bioRxiv·Feb 5, 2025
- GeST: Towards Building A Generative Pretrained Transformer for Learning Cellular Spatial Context
Minsheng Hao, Nan Yan, … Xuegong Zhang·bioRxiv·Apr 9, 2025
- STEM: A Method for Mapping Single-cell and Spatial Transcriptomics Data with Transfer Learning
Minsheng Hao, Erpai Luo, … Xuegong Zhang·bioRxiv·Sep 23, 2022