Graph Neural Networks as a Substitute for Transformers in Single-Cell Transcriptomics
Not on the map. Why?
Abstract (arXiv)
Graph Neural Networks (GNNs) and Transformers share significant similarities in their encoding strategies for interacting with features from nodes of interest, where Transformers use query-key scores and GNNs use edges. Compared to GNNs, which are unable to encode relative positions, Transformers leverage dynamic attention capabilities to better represent relative relationships, thereby becoming the standard backbones in large-scale sequential pre-training. However, the subtle difference prompts us to consider: if positions are no longer crucial, could we substitute Transformers with Graph Neural Networks in some fields such as Single-Cell Transcriptomics? In this paper, we first explore the similarities and differences between GNNs and Transformers, specifically in terms of relative positions. Additionally, we design a synthetic example to illustrate their equivalence where there are no relative positions between tokens in the sample. Finally, we conduct extensive experiments on a large-scale position-agnostic dataset-single-cell transcriptomics-finding that GNNs achieve competitive performance compared to Transformers while consuming fewer computation resources. These findings provide novel insights for researchers in the field of single-cell transcriptomics, challenging the prevailing notion that the Transformer is always the optimum choice.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 45 references that are in the map. First posted on arXiv 5 Jul 2025.
Builds on
21 of 45 references.
References · 21
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2017Graph Attention Networkscited by 8,923
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2019A Comprehensive Survey on Graph Neural Networkscited by 2,919
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
9 more
- 2016Variational Graph Auto-Encoderscited by 1,382
- 2017Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecastingcited by 1,136
- 2020Efficient Transformers: A Surveycited by 790
- 2015Deep Convolutional Networks on Graph-Structured Datacited by 246
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
- 2021GraphFormers: GNN-nested Transformers for Representation Learning on Textual Graphcited by 143
- 2021Towards Robust Vision Transformercited by 137
- 2023Everything is Connected: Graph Neural Networkscited by 85
- 2024Positional Knowledge is All You Need: Position-induced Transformer (PiT) for Operator Learningcited by 17
Built on by
Not cited yet.