Lune

NeurIPS2021Top-tier venue

Representing Long-Range Context for Graph Neural Networks with Global Attention

Zhanghao Wu, Paras Jain, Matthew A. Wright, Azalia Mirhoseini, Joseph E. Gonzalez, Ion Stoica

Abstract

Graph neural networks are powerful architectures for structured datasets. However, current methods struggle to represent long-range dependencies. Scaling the depth or width of GNNs is insufficient to broaden receptive fields as larger GNNs encounter optimization instabilities such as vanishing gradients and representation oversmoothing, while pooling-based approaches have yet to become as universally useful as in computer vision. In this work, we propose the use of Transformer-based self-attention to learn long-range pairwise relationships, with a novel "readout" mechanism to obtain a global graph embedding. Inspired by recent computer vision results that find position-invariant attention performant in learning long-range relationships, our method, which we call GraphTrans, applies a permutation-invariant Transformer module after a standard GNN module. This simple architecture leads to state-of-the-art results on several graph classification tasks, outperforming methods that explicitly encode graph structure. Our results suggest that purely-learning-based approaches without graph structure may be suitable for learning high-level, long-range relationships on graphs. Code for GraphTrans is available at https://github.com/ucbrise/graphtrans .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

106 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Recipe for a General, Powerful, Scalable Graph Transformer cites Structure-Aware Transformer for Graph Representation Learning
  • Recipe for a General, Powerful, Scalable Graph Transformer cites Reformer: The Efficient Transformer
  • Forest-Based Graph Learning for Semi-Supervised Node Classification cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Forest-Based Graph Learning for Semi-Supervised Node Classification cites Beyond Homophily in Graph Neural Networks: Current Limitations and Effective Designs
  • Forest-Based Graph Learning for Semi-Supervised Node Classification cites Simplifying and Empowering Transformers for Large-Graph Representations
  • Forest-Based Graph Learning for Semi-Supervised Node Classification cites Structure-Aware Transformer for Graph Representation Learning
  • Beyond Homophily in Graph Neural Networks: Current Limitations and Effective Designs cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Simplifying and Empowering Transformers for Large-Graph Representations cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Simplifying and Empowering Transformers for Large-Graph Representations cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Simplifying and Empowering Transformers for Large-Graph Representations cites Beyond Homophily in Graph Neural Networks: Current Limitations and Effective Designs
  • Simplifying and Empowering Transformers for Large-Graph Representations cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Simplifying and Empowering Transformers for Large-Graph Representations cites Structure-Aware Transformer for Graph Representation Learning
  • A Generalization of ViT/MLP-Mixer to Graphs cites Recipe for a General, Powerful, Scalable Graph Transformer
  • A Generalization of ViT/MLP-Mixer to Graphs cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • A Generalization of ViT/MLP-Mixer to Graphs cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • A Generalization of ViT/MLP-Mixer to Graphs cites Structure-Aware Transformer for Graph Representation Learning
  • Structure-Aware Transformer for Graph Representation Learning cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Structure-Aware Transformer for Graph Representation Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Structure-Aware Transformer for Graph Representation Learning cites Measuring and Relieving the Over-Smoothing Problem for Graph Neural Networks from the Topological View
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers106

  1. Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
  2. Structure-Aware Transformer for Graph Representation LearningDexiong Chen, Leslie O'Bray, Karsten M. BorgwardtICML 2022 · 349 citations
  3. Simplifying and Empowering Transformers for Large-Graph RepresentationsQitian Wu, Wentao Zhao, Chenxiao Yang, Hengrui Zhang et al.NeurIPS 2023 · 318 citations
  4. A Generalization of ViT/MLP-Mixer to GraphsXiaoxin He, Bryan Hooi, Thomas Laurent, Adam Perold et al.ICML 2023 · 135 citations
  5. Forest-Based Graph Learning for Semi-Supervised Node ClassificationJin Li, Shenghao Gao, Kaichen Zhang, Xinlong Chen et al.ICLR 2026 · 132 citations

Builds on18

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
  3. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 citations
  4. Beyond Homophily in Graph Neural Networks: Current Limitations and Effective DesignsJiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann et al.NeurIPS 2020 · 1,490 citations
  5. Measuring and Relieving the Over-Smoothing Problem for Graph Neural Networks from the Topological ViewDeli Chen, Yankai Lin, Wei Li, Peng Li et al.AAAI 2020 · 1,353 citations

Related papers

  1. Learning Long Range Dependencies on Graphs via Random WalksDexiong Chen, Till Hendrik Schulz, Karsten M. BorgwardtICLR 2025
  2. Transitivity-Preserving Graph Representation Learning for Bridging Local Connectivity and Role-Based SimilarityVan Thuy Hoang, O-Joun LeeAAAI 2024 · 7 citations
  3. Graph External Attention Enhanced TransformerJianqing Liang, Min Chen, Jiye LiangICML 2024 · 11 citations
  4. GOAT: A Global Transformer on Large-scale GraphsKezhi Kong, Jiuhai Chen, John Kirchenbauer, Renkun Ni et al.ICML 2023 · 76 citations
  5. A Closer Look at Graph Transformers: Cross-Aggregation and BeyondJiaming Zhuo, Ziyi Ma, Yintong Lu, Yuwei Liu et al.NeurIPS 2025 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines