vix.ing · top · new · best · stats · spec

Transformers are Graph Neural Networks

2025/06/27 by Chaitanya K. Joshi, Joshi, Chaitanya K. · 6 voices · 21 citations
Computer Science · Engineering · #Advanced Graph Neural Networks #Ferroelectric and Negative Capacitance Devices #Graph Theory and Algorithms #cs.AI #cs.LG

paper · pdf · doi:10.48550/arxiv.2506.22084

openalex publication_date 2025/06/27 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

We establish connections between the Transformer architecture, originally introduced for natural language processing, and Graph Neural Networks (GNNs) for representation learning on graphs. We show how Transformers can be viewed as message passing GNNs operating on fully connected graphs of tokens, where the self-attention mechanism capture the relative importance of all tokens w.r.t. each-other, and positional encodings provide hints about sequential ordering or structure. Thus, Transformers are expressive set processing networks that learn relationships among input elements without being constrained by apriori graphs. Despite this mathematical connection to GNNs, Transformers are implemented via dense matrix operations that are significantly more efficient on modern hardware than sparse message passing. This leads to the perspective that Transformers are GNNs currently winning the hardware lottery.

Citations

Cited by

Discussions

Related