Simplifying and Empowering Transformers for Large-Graph Representations

Qitian Wu, Wen-Long Zhao, Chenxiao Yang, Hengrui Zhang, Fan Nie +3 more
2/12/2026

No official code found. Best implementation: qitianwu/SGFormer (280 stars, MIT, last commit 2025-11-13).

Abstract

Learning representations on large-sized graphs is a long-standing challenge due to the inter-dependence nature involved in massive data points. Transformers, as an emerging class of foundation encoders for graph-structured data, have shown promising performance on small graphs due to its global attention capable of capturing all-pair influence beyond neighboring nodes. Even so, existing approaches tend to inherit the spirit of Transformers in language and vision tasks, and embrace complicated models by stacking deep multi-head attentions. In this paper, we critically demonstrate that even using a one-layer attention can bring up surprisingly competitive performance across node property prediction benchmarks where node numbers range from thousand-level to billion-level. This encourages us to rethink the design philosophy for Transformers on large graphs, where the global attention is a computation overhead hindering the scalability. We frame the proposed scheme as Simplified Graph Transformers (SGFormer), which is empowered by a simple attention model that can efficiently propagate information among arbitrary nodes in one layer. SGFormer requires none of positional encodings, feature/graph pre-processing or augmented loss. Empirically, SGFormer successfully scales to the web-scale graph ogbn-papers100M and yields up to 141x inference acceleration over SOTA Transformers on medium-sized graphs. Beyond current results, we believe the proposed methodology alone enlightens a new technical path of independent interest for building Transformers on large graphs.

View on arXivView PDF

Code Implementations(1)

qitianwu/SGFormerCommunity60%
MIT

The official implementation for NeurIPS2023 paper "SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations"

28029Shell, PythonOct 28, 202311 months agoMIT

Similar Papers

Cite this paper

@article{wu2026simplifying,
  title  = {Simplifying and Empowering Transformers for Large-Graph Representations},
  author = {Qitian Wu and Wen-Long Zhao and Chenxiao Yang and Hengrui Zhang and Fan Nie and Haitian Jiang and Yatao Bian and Junchi Yan},
  year   = {2026},
  eprint = {2306.10759},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.10759},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.10759.svg)](https://codeofpaper.com/paper/2306.10759)

Discussion