GeST: Towards Building A Generative Pretrained Transformer for Learning Cellular Spatial Context
Minsheng HaoiD, Nan YaniD, Haiyang BianiD, Yixin CheniD, Jin GuiD, Lei WeiiD, Xuegong ZhangiD
Abstract
Learning spatial context of cells through pretraining on spatial transcriptomics (ST) data may empower us to systematically decipher tissue organization and cellular interactions. Yet, transformer-based generative models often focus on modeling individual cells, neglecting the intricate spatial relationships within them. We develop GeST, a deep transformer model that is pretrained by a novel spatially informed generation task: Predict cellular expression profile of a given location based on the information from its neighboring cells. We propose a spatial attention mechanism for efficient pretraining, a flexible serialization strategy for converting ST data into sequences, and a cell tokenization method for quantizing gene expression profiles. We pretrained GeST on large-scale ST datasets of different ST technologies and demonstrated its superior performance in generating unseen spatial cells. Our results also show that GeST can extract spatial niche embeddings in a zero-shot way and can be further fine-tuned for spatial annotation tasks. Furthermore, GeST can simulate gene expression changes in response to perturbations of cells within spatial context, closely matching existing experimental results. Overall, GeST offers a powerful generative pre-training framework for learning spatial contexts in spatial transcriptomics.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 3
- Assay
- Approach
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
- TissueNarrator: Generative Modeling of Spatial Transcriptomics with Large Language Models
Sizhe Liu, Junjie Tang, … Shaoheng Liang·bioRxiv·Nov 24, 2025
- NexuST: A Hierarchical Foundation Model for Spatial Transcriptomics
Haiping Liu, Qian Zhao, … Hongpeng Zhou·bioRxiv·Sep 28, 2026
- GatorST: A Versatile Contrastive Meta-Learning Framework for Spatial Transcriptomic Data Analysis
Song Wang, Yuxi Liu, … Jiang Bian·bioRxiv·Jul 1, 2025
- SpaAxFormer: Fine-Grained Token Modeling of Spatial Transcriptomics with Axial Transformers
Chan Lee, Xiaohui Xie·bioRxiv·Nov 11, 2026
- Transformer Enables Reference Free And Unsupervised Analysis of Spatial Transcriptomics
Chongyue Zhao, Zhongli Xu, … Wei Chen·bioRxiv·Aug 11, 2022
- scGPT-spatial: Continual Pretraining of Single-Cell Foundation Model for Spatial Transcriptomics
Chloe Xueqi Wang, Haotian Cui, … Bo Wang·bioRxiv·Feb 5, 2025