Papers › SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations

SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations

19 Jun 2023NeurIPS 2023 11arXiv:2306.10759archive 2025-07-28

Qitian Wu, Wentao Zhao, Chenxiao Yang, Hengrui Zhang, Fan Nie, Haitian Jiang, Yatao Bian, Junchi Yan

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.10759")

Code

Syntology Ran 5 of 15 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 5 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

qitianwu/sgformer officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 5 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran
10unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from qitianwu/sgformer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

TransConv qitianwu/sgformer/medium/ours.py official repository ran · metamorphic tier: deterministic MIT (permissive) · dd90ba29f6b0b76a · report
TransConvLayer qitianwu/sgformer/medium/ours.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 2e7f4f12c1100a83 · report
class_rand_splits qitianwu/SGFormer/100M/data_utils.py official repository ran MIT (permissive) · de5bdf76ff672322 · report
index2mask qitianwu/SGFormer/100M/nb-sample.py official repository ran MIT (permissive) · 10e5b33e372f7d10 · report
load_fixed_splits qitianwu/SGFormer/large/data_utils.py official repository ran MIT (permissive) · ef6b5e211f3c0418 · report
SGFormer qitianwu/sgformer/medium/ours.py official repository unverified MIT (permissive) · a01a5d91eae8f860 · report
evaluate qitianwu/SGFormer/100M/nb-sample.py official repository unverified MIT (permissive) · 2f1e99a101ce9610 · report
full_attention_conv qitianwu/SGFormer/100M/ours.py official repository unverified MIT (permissive) · aa034199e64c32ba · report
full_attention_conv qitianwu/sgformer/medium/ours.py official repository unverified MIT (permissive) · ceb81f08da4bb951 · report
load_fb100 qitianwu/SGFormer/100M/load_data.py official repository unverified MIT (permissive) · 67fc014db49b3eba · report
load_twitch qitianwu/SGFormer/100M/load_data.py official repository unverified MIT (permissive) · 985aeae95edfd025 · report
parse_method qitianwu/SGFormer/100M/parse.py official repository unverified MIT (permissive) · e4ab5e839e7c665a · report
rand_train_test_idx qitianwu/SGFormer/large/data_utils.py official repository unverified MIT (permissive) · 13234652741e2264 · report
rand_train_test_idx qitianwu/SGFormer/100M/data_utils.py official repository unverified MIT (permissive) · eea43aafe5795815 · report
train qitianwu/SGFormer/100M/nb-sample.py official repository unverified MIT (permissive) · 31388e2d020da353 · report

Tasks

Node Property PredictionPhilosophyProperty Prediction

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections