Lune

ICML2022Top-tier venue

Structure-Aware Transformer for Graph Representation Learning

Dexiong Chen, Leslie O'Bray, Karsten M. Borgwardt

Abstract

The Transformer architecture has gained growing attention in graph representation learning recently, as it naturally overcomes several limitations of graph neural networks (GNNs) by avoiding their strict structural inductive biases and instead only encoding the graph structure via positional encoding. Here, we show that the node representations generated by the Transformer with positional encoding do not necessarily capture structural similarity between them. To address this issue, we propose the Structure-Aware Transformer, a class of simple and flexible graph Transformers built upon a new self-attention mechanism. This new self-attention incorporates structural information into the original self-attention by extracting a subgraph representation rooted at each node before computing the attention. We propose several methods for automatically generating the subgraph representation and show theoretically that the resulting representations are at least as expressive as the subgraph representations. Empirically, our method achieves state-of-the-art performance on five graph prediction benchmarks. Our structure-aware framework can leverage any existing GNN to extract the subgraph representation, and we show that it systematically improves performance relative to the base GNN model, successfully combining the advantages of GNNs and Transformers. Our code is available at https: //github.com/BorgwardtLab/SAT .

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.

112 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 Strategies for Pre-training Graph Neural Networks
  • Recipe for a General, Powerful, Scalable Graph Transformer cites Do Transformers Really Perform Badly for Graph Representation?
  • Open Graph Benchmark: Datasets for Machine Learning on Graphs cites DeepGCNs: Can GCNs Go As Deep As CNNs?
  • Open Graph Benchmark: Datasets for Machine Learning on Graphs cites Strategies for Pre-training Graph Neural Networks
  • 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 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • 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 Strategies for Pre-training Graph Neural Networks
  • 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 Do Transformers Really Perform Badly for Graph Representation?
  • A Generalization of ViT/MLP-Mixer to Graphs cites Exphormer: Sparse Transformers for Graphs
  • Do Transformers Really Perform Badly for Graph Representation? cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Do Transformers Really Perform Badly for Graph Representation? cites Strategies for Pre-training Graph Neural Networks
  • Do Transformers Really Perform Badly for Graph Representation? cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Graph Inductive Biases in Transformers without Message Passing cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Graph Inductive Biases in Transformers without Message Passing cites Strategies for Pre-training Graph Neural Networks
  • Graph Inductive Biases in Transformers without Message Passing cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Graph Inductive Biases in Transformers without Message Passing cites Do Transformers Really Perform Badly for Graph Representation?
  • Exphormer: Sparse Transformers for Graphs cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Exphormer: Sparse Transformers for Graphs cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers112

  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. Simplifying and Empowering Transformers for Large-Graph RepresentationsQitian Wu, Wentao Zhao, Chenxiao Yang, Hengrui Zhang et al.NeurIPS 2023 · 318 citations
  3. Exphormer: Sparse Transformers for GraphsHamed Shirzad, Ameya Velingker, Balaji Venkatachalam, Danica J. Sutherland et al.ICML 2023 · 219 citations
  4. Graph Inductive Biases in Transformers without Message PassingLiheng Ma, Chen Lin, Derek Lim, Adriana Romero-Soriano et al.ICML 2023 · 185 citations
  5. A Generalization of ViT/MLP-Mixer to GraphsXiaoxin He, Bryan Hooi, Thomas Laurent, Adam Perold et al.ICML 2023 · 135 citations

Builds on22

  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. Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik et al.ICLR 2020 · 1,744 citations
  4. Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
  5. DeepGCNs: Can GCNs Go As Deep As CNNs?Guohao Li, Matthias Müller, Ali K. Thabet, Bernard GhanemICCV 2019 · 1,586 citations

Related papers

  1. Are More Layers Beneficial to Graph Transformers?Haiteng Zhao, Shuming Ma, Dongdong Zhang, Zhi-Hong Deng et al.ICLR 2023 · 5 citations
  2. Graph Positional and Structural EncoderSemih Cantürk, Renming Liu, Olivier Lapointe-Gagné, Vincent Létourneau et al.ICML 2024 · 33 citations
  3. Graph External Attention Enhanced TransformerJianqing Liang, Min Chen, Jiye LiangICML 2024 · 11 citations
  4. Subgraphormer: Unifying Subgraph GNNs and Graph Transformers via Graph ProductsGuy Bar-Shalom, Beatrice Bevilacqua, Haggai MaronICML 2024 · 13 citations
  5. Transformers over Directed Acyclic GraphsYuankai Luo, Veronika Thost, Lei ShiNeurIPS 2023 · 43 citations
Dusk over the sea between two cliffs drawn in fine vertical lines