paper-with-me

홈 › Papers

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

2024-06-04 · Hongkang Li, Meng Wang, Tengfei Ma, Sijia Liu, Zaixi Zhang, Pin-Yu Chen

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.

📄 PDF Abstract BibTeX arXiv:2406.01977

Code (0)

등록된 구현이 없습니다.

Tasks

Graph LearningNode Classification

Methods 이 논문이 사용한 방법론

Attention 설명 없음
LapEigen 설명 없음
Laplacian PE Laplacian eigenvectors represent a natural generalization of the…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Graph Transformer 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…

Similar Papers 제목 키워드 기반

Graphtester: Exploring Theoretical Boundaries of GNNs on Graph Datasets

2023-06-30 · Eren Akbiyik, Florian Grötschla, Beni Egressy, Roger Wattenhofer

Graph Neural Networks (GNNs) have emerged as a powerful tool for learning from graph-structured data. However, even state-of-the-art architectures have limitations on what structures they can distinguish, imposing theore…

From Small to Large: Generalization Bounds for Transformers on Variable-Size Inputs

2025-12-14 · Anastasiia Alokhina, Pan Li arxiv

Transformers exhibit a notable property of \emph{size generalization}, demonstrating an ability to extrapolate from smaller token sets to significantly longer ones. This behavior has been documented across diverse applic…

Point Clouds

What Algorithms can Transformers Learn? A Study in Length Generalization

2023-10-24 · Hattie Zhou, Arwen Bradley, Etai Littwin, Noam Razin 외

Large language models exhibit surprising emergent generalization properties, yet also struggle on many simple reasoning tasks such as arithmetic and parity. This raises the question of if and when Transformer models can …

Understanding the Failure Modes of Transformers through the Lens of Graph Neural Networks

2025-12-09 · Hunjae Lee arxiv

Transformers and more specifically decoder-only transformers dominate modern LLM architectures. While they have shown to work exceptionally well, they are not without issues, resulting in surprising failure modes and pre…

Graph Neural Network

Attending to Graph Transformers

2023-02-08 · Luis Müller, Mikhail Galkin, Christopher Morris, Ladislav Rampášek

Recently, transformer architectures for graphs emerged as an alternative to established techniques for machine learning with graphs, such as (message-passing) graph neural networks. So far, they have shown promising empi…