mlsanityData to 7 Oct 2026

What Improves the Generalization of Graph Transformers? A Theoretical Dive into the Self-attention and Positional Encoding

arXiv 2406.01977 ↗First posted 4 Jun 2024cs.LGcited by 14

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  5. 2017Graph Attention Networkscited by 8,854
  6. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
  7. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
  8. 2020Geom-GCN: Geometric Graph Convolutional Networkscited by 821
  9. 2018A Convergence Theory for Deep Learning via Over-Parameterizationcited by 784
  10. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
  11. 2020Adaptive Universal Generalized PageRank Graph Neural Networkcited by 592
  12. 2020Heterogeneous Graph Transformercited by 581
38 more
  1. 2019Fine-Grained Analysis of Optimization and Generalization for Overparameterized Two-Layer Neural Networkscited by 562
  2. 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
  3. 2018Learning and Generalization in Overparameterized Neural Networks, Going Beyond Two Layerscited by 340
  4. 2020GPT-GNN: Generative Pre-Training of Graph Neural Networkscited by 302
  5. 2020Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learningcited by 292
  6. 2019Revisiting Graph Neural Networks: All We Have is Low-Pass Filterscited by 260
  7. 2022Long Range Graph Benchmarkcited by 258
  8. 2019Generalization Bounds of Stochastic Gradient Descent for Wide and Deep Neural Networkscited by 221
  9. 2020Generalization and Representational Limits of Graph Neural Networkscited by 217
  10. 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 207
  11. 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
  12. 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
  13. 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 176
  14. 2019Graph Neural Tangent Kernel: Fusing Graph Neural Networks with Graph Kernelscited by 160
  15. 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
  16. 2019Behavior Sequence Transformer for E-commerce Recommendation in Alibabacited by 128
  17. 2019An Improved Analysis of Training Over-parameterized Deep Neural Networkscited by 120
  18. 2021Toward Understanding the Feature Learning Process of Self-supervised Contrastive Learningcited by 119
  19. 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
  20. 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
  21. 2020Feature Purification: How Adversarial Training Performs Robust Deep Learningcited by 107
  22. 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
  23. 2017Recovery Guarantees for One-hidden-layer Neural Networkscited by 94
  24. 2022Vision Transformers provably learn spatial structurecited by 92
  25. 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
  26. 2020A PAC-Bayesian Approach to Generalization Bounds for Graph Neural Networkscited by 84
  27. 2019Stability and Generalization of Graph Convolutional Neural Networkscited by 81
  28. 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
  29. 2022Hierarchical Graph Transformer with Adaptive Node Samplingcited by 72
  30. 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 63
  31. 2021On Provable Benefits of Depth in Training Graph Convolutional Networkscited by 58
  32. 2022Generalization Analysis of Message Passing Neural Networks on Large Random Graphscited by 58
  33. 2023Max-Margin Token Selection in Attention Mechanismcited by 57
  34. 2021Learning Theory Can (Sometimes) Explain Generalisation in Graph Neural Networkscited by 51
  35. 2022A Theoretical Analysis on Feature Learning in Neural Networks: Emergence from Inputs and Advantage over Fixed Featurescited by 49
  36. 2023On the Role of Attention in Prompt-tuningcited by 49
  37. 2023Towards Understanding the Generalization of Graph Neural Networkscited by 41
  38. 2022The Mechanism of Prediction Head in Non-contrastive Self-supervised Learningcited by 38

50 most cited of 63 All 63 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 6; 2026: 4.

14 papers.

Sort:

By area: