Gradformer: Graph Transformer with Exponential Decay
Not on the map. Why?
Abstract (arXiv)
Graph Transformers (GTs) have demonstrated their advantages across a wide range of tasks. However, the self-attention mechanism in GTs overlooks the graph's inductive biases, particularly biases related to structure, which are crucial for the graph tasks. Although some methods utilize positional encoding and attention bias to model inductive biases, their effectiveness is still suboptimal analytically. Therefore, this paper presents Gradformer, a method innovatively integrating GT with the intrinsic inductive bias by applying an exponential decay mask to the attention matrix. Specifically, the values in the decay mask matrix diminish exponentially, correlating with the decreasing node proximities within the graph structure. This design enables Gradformer to retain its ability to capture information from distant nodes while focusing on the graph's local details. Furthermore, Gradformer introduces a learnable constraint into the decay mask, allowing different attention heads to learn distinct decay masks. Such an design diversifies the attention heads, enabling a more effective assimilation of diverse structural information within the graph. Extensive experiments on various benchmarks demonstrate that Gradformer consistently outperforms the Graph Neural Network and GT baseline models in various graph classification and regression tasks. Additionally, Gradformer has proven to be an effective method for training deep GT models, maintaining or even enhancing accuracy compared to shallow models as the network deepens, in contrast to the significant accuracy drop observed in other GT models.Codes are available at urlhttps://github.com/LiuChuang0059/Gradformer.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 32 of its 42 references that are in the map. First posted on arXiv 24 Apr 2024.
Builds on
32 of 42 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,414
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2015Gated Graph Sequence Neural Networkscited by 792
- 2020TUDataset: A collection of benchmark datasets for learning with graphscited by 718
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2020Benchmarking Graph Neural Networkscited by 672
- 2020A Generalization of Transformer Networks to Graphscited by 653
20 more
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 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
- 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
- 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
- 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 85
- 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 63
- 2022Relational Attention: Generalizing Transformers for Graph-Structured Taskscited by 41
- 2021From block-Toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked Transformerscited by 38
- 2020Self-Attention with Cross-Lingual Position Representationcited by 27
- 2021Learning Attributed Graph Representations with Communicative Message Passing Transformercited by 20
- 2023Graph Decision Transformercited by 20
- 2023Graph Transformer GANs for Graph-Constrained House Generationcited by 19
- 2023Are More Layers Beneficial to Graph Transformers?cited by 14
- 2023Multimodal Graph Transformer for Multimodal Question Answeringcited by 10
- 2022Entity Alignment with Reliable Path Reasoning and Relation-Aware Heterogeneous Graph Transformercited by 7
- 2022Unleashing the Power of Transformer for Graphscited by 6
- 2023Exploring Sparsity in Graph Transformerscited by 3
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 4.
10 papers.
- 2025Biologically Plausible Brain Graph Transformercited by 9
- 2025Invariant Graph Transformer for Out-of-Distribution Generalizationcited by 2
- 2024Dual-perspective Cross Contrastive Learning in Graph Transformerscited by 0
- 2024Enhancing Multimodal Medical Image Classification using Cross-Graph Modal Contrastive Learningcited by 0
- 2025CrystalFramer: Rethinking the Role of Frames for SE(3)-Invariant Crystal Structure Modelingcited by 0
- 2025Graph Fourier Transformer with Structure-Frequency Informationcited by 0
- 2026Kernelized Edge Attention: Addressing Semantic Attention Blurring in Temporal Graph Neural Networkscited by 0
- 2026X-LogSMask: Expand Transformer for Graph-Structured Datacited by 0
- 2026CAIRN: Cross-Room 3D Scene Understanding with Topology-Aware Large Multimodal Modelscited by 0
- 2026Pre-registered tests of solid-state-physics-inspired LLM compression: a cluster-level negative result at small-language-model scalecited by 0
- 2026Pre-registered tests of solid-state-physics-inspired LLM compression: a cluster-level negative result at small-language-model scale28 Sep 2026
- 2026CAIRN: Cross-Room 3D Scene Understanding with Topology-Aware Large Multimodal Models7 Jul 2026
- 2026X-LogSMask: Expand Transformer for Graph-Structured Data2 Jul 2026
- 2026Kernelized Edge Attention: Addressing Semantic Attention Blurring in Temporal Graph Neural Networks31 Jan 2026
- 2025Invariant Graph Transformer for Out-of-Distribution Generalization1 Aug 2025
- 2025Graph Fourier Transformer with Structure-Frequency Information28 Apr 2025
- 2025CrystalFramer: Rethinking the Role of Frames for SE(3)-Invariant Crystal Structure Modeling4 Mar 2025
- 2025Biologically Plausible Brain Graph Transformer13 Feb 2025
- 2024Enhancing Multimodal Medical Image Classification using Cross-Graph Modal Contrastive Learning23 Oct 2024
- 2024Dual-perspective Cross Contrastive Learning in Graph Transformers1 Jun 2024