Single Cells Are Spatial Tokens: Transformers for Spatial Transcriptomic Data Imputation
Not on the map. Why?
Abstract (arXiv)
Spatially resolved transcriptomics brings exciting breakthroughs to single-cell analysis by providing physical locations along with gene expression. However, as a cost of the extremely high spatial resolution, the cellular level spatial transcriptomic data suffer significantly from missing values. While a standard solution is to perform imputation on the missing values, most existing methods either overlook spatial information or only incorporate localized spatial context without the ability to capture long-range spatial information. Using multi-head self-attention mechanisms and positional encoding, transformer models can readily grasp the relationship between tokens and encode location information. In this paper, by treating single cells as spatial tokens, we study how to leverage transformers to facilitate spatial tanscriptomics imputation. In particular, investigate the following two key questions: (1) textithow to encode spatial information of cells in transformers, and (2) textit how to train a transformer for transcriptomic imputation. By answering these two questions, we present a transformer-based imputation framework, SpaFormer, for cellular-level spatial transcriptomic data. Extensive experiments demonstrate that SpaFormer outperforms existing state-of-the-art imputation algorithms on three large-scale datasets while maintaining superior computational efficiency.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 28 of its 91 references that are in the map. First posted on arXiv 6 Feb 2023.
Builds on
28 of 91 references.
References · 28
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2017Graph Attention Networkscited by 8,854
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2013Auto-Encoding Variational Bayescited by 3,980
- 2020Rethinking Attention with Performerscited by 1,584
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2018Self-Attention with Relative Position Representationscited by 1,112
16 more
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 2021VATT: Transformers for Multimodal Self-Supervised Learning from Raw Video, Audio and Textcited by 427
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
- 2019Visualizing and Measuring the Geometry of BERTcited by 215
- 2022cosFormer: Rethinking Softmax in Attentioncited by 212
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
- 2020Spatial-Temporal Transformer Networks for Traffic Flow Forecastingcited by 179
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 176
- 2020Feature Pyramid Transformercited by 94
- 2022What do Vision Transformers Learn? A Visual Explorationcited by 75
- 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 50
- 2019A joint model of unpaired data from scRNA-seq and spatial transcriptomics for imputing missing gene expression measurementscited by 10
- 2022Deep Learning in Single-Cell Analysiscited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 5.
7 papers.
- 2024Retrieval-Augmented Generation with Graphs (GraphRAG)cited by 170
- 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 12
- 2025Language-Enhanced Representation Learning for Single-Cell Transcriptomicscited by 7
- 2025HEIST: A Graph Foundation Model for Spatial Transcriptomics and Proteomics Datacited by 7
- 2024stMCDI: Masked Conditional Diffusion Model with Graph Neural Network for Spatial Transcriptomics Data Imputationcited by 6
- 2025GeneMamba: An Efficient and Effective Foundation Model on Single Cell Datacited by 4
- 2025PH2ST:ST-Prompt Guided Histological Hypergraph Learning for Spatial Gene Expression Predictioncited by 3
- 2025HEIST: A Graph Foundation Model for Spatial Transcriptomics and Proteomics Data11 Jun 2025
- 2025GeneMamba: An Efficient and Effective Foundation Model on Single Cell Data22 Apr 2025
- 2025PH2ST:ST-Prompt Guided Histological Hypergraph Learning for Spatial Gene Expression Prediction21 Mar 2025
- 2025Language-Enhanced Representation Learning for Single-Cell Transcriptomics12 Mar 2025
- 2025A Survey of Graph Transformers: Architectures, Theories and Applications23 Feb 2025
- 2024Retrieval-Augmented Generation with Graphs (GraphRAG)31 Dec 2024
- 2024stMCDI: Masked Conditional Diffusion Model with Graph Neural Network for Spatial Transcriptomics Data Imputation16 Mar 2024