Graph Neural Networks as a Substitute for Transformers in Single-Cell Transcriptomics

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Qi, Jiaxin, Cui, Yan, Ou, Jinli, Huang, Jianqiang, Xie, Gaogang
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866916828937191424
author Qi, Jiaxin
Cui, Yan
Ou, Jinli
Huang, Jianqiang
Xie, Gaogang
author_facet Qi, Jiaxin
Cui, Yan
Ou, Jinli
Huang, Jianqiang
Xie, Gaogang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_04125
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Graph Neural Networks as a Substitute for Transformers in Single-Cell Transcriptomics
Qi, Jiaxin
Cui, Yan
Ou, Jinli
Huang, Jianqiang
Xie, Gaogang
Machine Learning
Genomics
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.
title Graph Neural Networks as a Substitute for Transformers in Single-Cell Transcriptomics
topic Machine Learning
Genomics
url https://arxiv.org/abs/2507.04125