Representing Long-Range Context for Graph Neural Networks with Global Attention
arXiv:2201.08821
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.
arXiv commentNeurIPS 2021. The first two authors contributed equally to this work
Cited by in corpus (9)
- A Comprehensive Survey on Deep Graph Representation Learning
- Artificial Intelligence in Materials Science and Engineering: Current Landscape, Key Challenges, and Future Trajectorie
- Automated 3D Pre-Training for Molecular Property Prediction
- Search to Capture Long-range Dependency with Stacking GNNs for Graph Classification
- EOSnet: Embedded Overlap Structures for Graph Neural Networks in Predicting Material Properties
- Heterogeneity-aware Cross-school Electives Recommendation: a Hybrid Federated Approach
- Highly Accurate Disease Diagnosis and Highly Reproducible Biomarker Identification with PathFormer
- Hybrid Focal and Full-Range Attention Based Graph Transformers
- Inductive Link Prediction on N-ary Relational Facts via Semantic Hypergraph Reasoning