What Improves the Generalization of Graph Transformers? A Theoretical Dive into the Self-attention and Positional Encoding
Not on the map. Why?
Abstract (arXiv)
Graph Transformers, which incorporate self-attention and positional encoding, have recently emerged as a powerful architecture for various graph learning tasks. Despite their impressive performance, the complex non-convex interactions across layers and the recursive graph structure have made it challenging to establish a theoretical foundation for learning and generalization. This study introduces the first theoretical investigation of a shallow Graph Transformer for semi-supervised node classification, comprising a self-attention layer with relative positional encoding and a two-layer perceptron. Focusing on a graph data model with discriminative nodes that determine node labels and non-discriminative nodes that are class-irrelevant, we characterize the sample complexity required to achieve a desirable generalization error by training with stochastic gradient descent (SGD). This paper provides the quantitative characterization of the sample complexity and number of iterations for convergence dependent on the fraction of discriminative nodes, the dominant patterns, and the initial model errors. Furthermore, we demonstrate that self-attention and positional encoding enhance generalization by making the attention map sparse and promoting the core neighborhood during training, which explains the superior feature representation of Graph Transformers. Our theoretical results are supported by empirical experiments on synthetic and real-world benchmarks.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 63 of its 82 references that are in the map. First posted on arXiv 4 Jun 2024.
Builds on
63 of 82 references.
References · 63
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2020Geom-GCN: Geometric Graph Convolutional Networkscited by 821
- 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 784
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2020Adaptive Universal Generalized PageRank Graph Neural Networkcited by 592
- 2020Heterogeneous Graph Transformercited by 581
38 more
- 2019Fine-Grained Analysis of Optimization and Generalization for Overparameterized Two-Layer Neural Networkscited by 562
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 2018Learning and Generalization in Overparameterized Neural Networks, Going Beyond Two Layerscited by 340
- 2020GPT-GNN: Generative Pre-Training of Graph Neural Networkscited by 302
- 2020Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learningcited by 292
- 2019Revisiting Graph Neural Networks: All We Have is Low-Pass Filterscited by 260
- 2022Long Range Graph Benchmarkcited by 258
- 2019Generalization Bounds of Stochastic Gradient Descent for Wide and Deep Neural Networkscited by 221
- 2020Generalization and Representational Limits of Graph Neural Networkscited by 217
- 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 207
- 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
- 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 176
- 2019Graph Neural Tangent Kernel: Fusing Graph Neural Networks with Graph Kernelscited by 160
- 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
- 2019Behavior Sequence Transformer for E-commerce Recommendation in Alibabacited by 128
- 2019An Improved Analysis of Training Over-parameterized Deep Neural Networkscited by 120
- 2021Toward Understanding the Feature Learning Process of Self-supervised Contrastive Learningcited by 119
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
- 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
- 2020Feature Purification: How Adversarial Training Performs Robust Deep Learningcited by 107
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
- 2017Recovery Guarantees for One-hidden-layer Neural Networkscited by 94
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
- 2020A PAC-Bayesian Approach to Generalization Bounds for Graph Neural Networkscited by 84
- 2019Stability and Generalization of Graph Convolutional Neural Networkscited by 81
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
- 2022Hierarchical Graph Transformer with Adaptive Node Samplingcited by 72
- 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 63
- 2021On Provable Benefits of Depth in Training Graph Convolutional Networkscited by 58
- 2022Generalization Analysis of Message Passing Neural Networks on Large Random Graphscited by 58
- 2023Max-Margin Token Selection in Attention Mechanismcited by 57
- 2021Learning Theory Can (Sometimes) Explain Generalisation in Graph Neural Networkscited by 51
- 2022A Theoretical Analysis on Feature Learning in Neural Networks: Emergence from Inputs and Advantage over Fixed Featurescited by 49
- 2023On the Role of Attention in Prompt-tuningcited by 49
- 2023Towards Understanding the Generalization of Graph Neural Networkscited by 41
- 2022The Mechanism of Prediction Head in Non-contrastive Self-supervised Learningcited by 38
50 most cited of 63 All 63 (JSON)
Built on by
Citing papers per year: 2024: 4; 2025: 6; 2026: 4.
14 papers.
Sort:
By area:
- 2025When is Task Vector Provably Effective for Model Editing? A Generalization Analysis of Nonlinear Transformerscited by 38
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysiscited by 14
- 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 12
- 2024Learning on Transformers is Provable Low-Rank and Sparse: A One-layer Analysiscited by 8
- 2024Deeper Insights into Deep Graph Convolutional Networks: Stability and Generalizationcited by 6
- 2025How Does Label Noise Gradient Descent Improve Generalization in the Low SNR Regime?cited by 4
- 2025How Can Mamba Learn In Context with Outliers and Generalize Provably?cited by 2
- 2025Generalizable Insights for Graph Transformers in Theory and Practicecited by 2
- 2026Visual prompting reimagined: The power of the Activation Promptscited by 1
- 2024Multi-State-Action Tokenisation in Decision Transformers for Multi-Discrete Action Spacescited by 0
- 2025Pretraining Transformer-Based Models on Diffusion-Generated Synthetic Graphs for Alzheimer's Disease Predictioncited by 0
- 2026Transformers Learn the Optimal DDPM Denoiser for Multi-Token GMMscited by 0
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodings31 Aug 2026
- 2026Distance-Misaligned Training in Graph Transformers and Adaptive Graph-Aware Control24 Apr 2026
- 2026Transformers Learn the Optimal DDPM Denoiser for Multi-Token GMMs11 Apr 2026
- 2026Visual prompting reimagined: The power of the Activation Prompts7 Apr 2026
- 2025Pretraining Transformer-Based Models on Diffusion-Generated Synthetic Graphs for Alzheimer's Disease Prediction24 Nov 2025
- 2025Generalizable Insights for Graph Transformers in Theory and Practice11 Nov 2025
- 2025How Does Label Noise Gradient Descent Improve Generalization in the Low SNR Regime?20 Oct 2025
- 2025How Can Mamba Learn In Context with Outliers and Generalize Provably?1 Oct 2025
- 2025When is Task Vector Provably Effective for Model Editing? A Generalization Analysis of Nonlinear Transformers15 Apr 2025
- 2025A Survey of Graph Transformers: Architectures, Theories and Applications23 Feb 2025
- 2024Deeper Insights into Deep Graph Convolutional Networks: Stability and Generalization11 Oct 2024
- 2024Training Nonlinear Transformers for Chain-of-Thought Inference: A Theoretical Generalization Analysis3 Oct 2024
- 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 12
- 2024Learning on Transformers is Provable Low-Rank and Sparse: A One-layer Analysiscited by 8
- 2024Deeper Insights into Deep Graph Convolutional Networks: Stability and Generalizationcited by 6
- 2025How Does Label Noise Gradient Descent Improve Generalization in the Low SNR Regime?cited by 4
- 2025Generalizable Insights for Graph Transformers in Theory and Practicecited by 2
- 2026Visual prompting reimagined: The power of the Activation Promptscited by 1
- 2026Distance-Misaligned Training in Graph Transformers and Adaptive Graph-Aware Controlcited by 0
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodingscited by 0
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodings31 Aug 2026
- 2026Distance-Misaligned Training in Graph Transformers and Adaptive Graph-Aware Control24 Apr 2026
- 2026Visual prompting reimagined: The power of the Activation Prompts7 Apr 2026
- 2025Generalizable Insights for Graph Transformers in Theory and Practice11 Nov 2025
- 2025How Does Label Noise Gradient Descent Improve Generalization in the Low SNR Regime?20 Oct 2025
- 2025A Survey of Graph Transformers: Architectures, Theories and Applications23 Feb 2025
- 2024Deeper Insights into Deep Graph Convolutional Networks: Stability and Generalization11 Oct 2024
- 2024Learning on Transformers is Provable Low-Rank and Sparse: A One-layer Analysis24 Jun 2024