mlsanityData to 7 Oct 2026

Single Cells Are Spatial Tokens: Transformers for Spatial Transcriptomic Data Imputation

arXiv 2302.03038 ↗First posted 6 Feb 2023q-bio.GN cs.AI cs.LGcited by 7

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  5. 2017Graph Attention Networkscited by 8,854
  6. 2020End-to-End Object Detection with Transformerscited by 7,384
  7. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  9. 2013Auto-Encoding Variational Bayescited by 3,980
  10. 2020Rethinking Attention with Performerscited by 1,584
  11. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  12. 2018Self-Attention with Relative Position Representationscited by 1,112
16 more
  1. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
  2. 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
  3. 2021VATT: Transformers for Multimodal Self-Supervised Learning from Raw Video, Audio and Textcited by 427
  4. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  5. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
  6. 2019Visualizing and Measuring the Geometry of BERTcited by 215
  7. 2022cosFormer: Rethinking Softmax in Attentioncited by 212
  8. 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
  9. 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
  10. 2020Spatial-Temporal Transformer Networks for Traffic Flow Forecastingcited by 179
  11. 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 176
  12. 2020Feature Pyramid Transformercited by 94
  13. 2022What do Vision Transformers Learn? A Visual Explorationcited by 75
  14. 2021Stable, Fast and Accurate: Kernelized Attention with Relative Positional Encodingcited by 50
  15. 2019A joint model of unpaired data from scRNA-seq and spatial transcriptomics for imputing missing gene expression measurementscited by 10
  16. 2022Deep Learning in Single-Cell Analysiscited by 4

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 5.

7 papers.