Skip to main content
QUICK REVIEW

[Paper Review] Are More Layers Beneficial to Graph Transformers?

Haiteng Zhao, Shuming Ma|arXiv (Cornell University)|Mar 1, 2023
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

This paper identifies that deeper graph transformers suffer from diminishing attention capacity on critical substructures, leading to performance degradation beyond 12 layers. To address this, the authors propose DeepGraph, a model that introduces substructure tokens and local attention to enhance substructure focus and representation expressiveness, achieving state-of-the-art performance on graph benchmarks with deeper architectures (up to 48 layers).

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.

Motivation & Objective

  • Investigate whether increasing depth improves graph transformer performance, as seen in NLP and vision transformers.
  • Identify the root cause of performance degradation in deep graph transformers, particularly the loss of attention capacity on substructures.
  • Address the bottleneck by enhancing the model's ability to focus on and represent critical substructures in deeper architectures.
  • Design a scalable, effective method to maintain attention capacity and representation expressiveness as model depth increases.

Proposed method

  • Introduce dedicated substructure tokens to explicitly represent local graph substructures (e.g., rings, cliques) in the model's input representation.
  • Apply local self-attention over nodes that belong to the same substructure, enabling focused attention on local structural patterns.
  • Integrate substructure-based attention with global self-attention to preserve long-range dependency modeling while enhancing local feature learning.
  • Use deepnorm residual connections to stabilize training of very deep models (up to 48 layers).
  • Employ a two-stage training strategy: pre-train substructure tokens using geometric or neighborhood features, then fine-tune end-to-end.
  • Normalize attention capacity and representation norms to ensure stable and interpretable substructure encoding across layers.

Experimental results

Research questions

  • RQ1Does increasing the depth of graph transformers lead to improved performance on graph learning tasks?
  • RQ2Why do current graph transformers fail to benefit from increased depth beyond 12 layers?
  • RQ3How does the attention capacity on substructures decay with increasing model depth?
  • RQ4Can explicit substructure encoding and local attention mechanisms restore attention capacity and improve representation expressiveness in deep graph transformers?
  • RQ5Can the proposed method achieve state-of-the-art performance on standard graph benchmarks with deeper models?

Key findings

  • Graph transformers exhibit a performance bottleneck beyond 12 layers, with deeper models (e.g., 48 layers) underperforming shallow baselines on ZINC and CLUSTER.
  • Attention capacity on substructures decays significantly with depth, impairing the model's ability to learn and focus on critical structural patterns.
  • DeepGraph achieves state-of-the-art performance on ZINC (test loss: 0.072) and CLUSTER (accuracy: 77.912) with a 48-layer model, outperforming all baselines.
  • Ablation studies confirm that local attention (removal drops performance by ~0.01 on ZINC) and substructure encoding (removal causes significant drop) are critical for deep model success.
  • Substructure tokens exhibit much higher representation capacity than node-level attention, validating their role in preserving structural information.
  • The model is robust to substructure type: geometric substructures (e.g., rings) are more critical than neighbor-based ones, but combining both yields optimal results.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.