Are More Layers Beneficial to Graph Transformers?

Haiteng Zhao, Shuming Ma, Dongdong Zhang, Zhi-Hong Deng, Furu Wei
2/12/2026

No official code found. Best implementation: zhao-ht/DeepGraph (22 stars, MIT, last commit 2023-05-27).

Abstract

Despite that going deep has proven successful in many neural architectures, the existing graph transformers are relatively shallow. In this work, we explore whether more layers are beneficial to graph transformers, and find that current graph transformers suffer from the bottleneck of improving performance by increasing depth. Our further analysis reveals the reason is that deep graph transformers are limited by the vanishing capacity of global attention, restricting the graph transformer from focusing on the critical substructure and obtaining expressive features. To this end, we propose a novel graph transformer model named DeepGraph that explicitly employs substructure tokens in the encoded representation, and applies local attention on related nodes to obtain substructure based attention encoding. Our model enhances the ability of the global attention to focus on substructures and promotes the expressiveness of the representations, addressing the limitation of self-attention as the graph transformer deepens. Experiments show that our method unblocks the depth limitation of graph transformers and results in state-of-the-art performance across various graph benchmarks with deeper models.

View on arXivView PDF

Code Implementations(1)

zhao-ht/DeepGraphCommunity100%
MIT

This is the code of our work Are More Layers Beneficial to Graph Transformers? published on ICLR 2023.

222Cython, PythonMar 29, 20233 years agoMIT

Similar Papers

Cite this paper

@article{zhao2026more,
  title  = {Are More Layers Beneficial to Graph Transformers?},
  author = {Haiteng Zhao and Shuming Ma and Dongdong Zhang and Zhi-Hong Deng and Furu Wei},
  year   = {2026},
  eprint = {2303.00579},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.00579},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.00579.svg)](https://codeofpaper.com/paper/2303.00579)

Discussion