Papers › Graph Transformers without Positional Encodings

Graph Transformers without Positional Encodings

31 Jan 2024arXiv:2401.17791archive 2025-07-28

Ayush Garg

Recently, Transformers for graph representation learning have become increasingly popular, achieving state-of-the-art performance on a wide-variety of graph datasets, either alone or in combination with message-passing graph neural networks (MP-GNNs). Infusing graph inductive-biases in the innately structure-agnostic transformer architecture in the form of structural or positional encodings (PEs) is key to achieving these impressive results. However, designing such encodings is tricky and disparate attempts have been made to engineer such encodings including Laplacian eigenvectors, relative random-walk probabilities (RRWP), spatial encodings, centrality encodings, edge encodings etc. In this work, we argue that such encodings may not be required at all, provided the attention mechanism itself incorporates information about the graph structure. We introduce Eigenformer, a Graph Transformer employing a novel spectrum-aware attention mechanism cognizant of the Laplacian spectrum of the graph, and empirically show that it achieves performance competetive with SOTA Graph Transformers on a number of standard GNN benchmarks. Additionally, we theoretically prove that Eigenformer can express various graph structural connectivity matrices, which is particularly essential when learning over smaller graphs.

PaperPDF

Code

No code repository is listed for this paper in the archive or in Syntology's graph.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Graph ClassificationGraph RegressionGraph Representation LearningNode ClassificationRepresentation Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Graph Classification CIFAR10 100k EIGENFORMER Accuracy (%) 70.194 #13 of 20 Archive leaderboard report
Graph Classification MNIST EIGENFORMER Accuracy 98.362 #8 of 13 Archive leaderboard report
Graph Classification Peptides-func EIGENFORMER AP 0.6414 #35 of 44 Archive leaderboard report
Graph Regression Peptides-struct EIGENFORMER MAE 0.2599 #32 of 39 Archive leaderboard report
Graph Regression ZINC EIGENFORMER MAE 0.077 #15 of 27 Archive leaderboard report
Node Classification CLUSTER EIGENFORMER Accuracy 77.456 #10 of 12 Archive leaderboard report
Node Classification PATTERN EIGENFORMER Accuracy 86.738 #7 of 11 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutGraph TransformerLabel SmoothingLapEigenLaplacian PELayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections