Less is More: on the Over-Globalizing Problem in Graph Transformers

Yujie Xing, Xiao Wang, Yibo Li, Hai Huang, Chuan Shi

Abstract

Graph Transformers (GTs) have emerged as powerful tools for graph representation learning, aiming to overcome the limitations of traditional Graph Neural Networks (GNNs) such as over-smoothing and over-squashing. However, this paper identifies a critical "over-globalizing" problem where global attention mechanisms prioritize distant, noisy nodes over informative local neighbors. We propose CoBFormer, a bi-level architecture that decouples local and global information processing. By utilizing Bi-Level Global Attention (BGA) and a collaborative training strategy, CoBFormer achieves state-of-the-art performance while significantly reducing memory complexity.

1. Introduction

Graph Transformers (GTs) were intended to be the "silver bullet" for graph representation learning. By applying the global attention mechanism—the same engine behind Large Language Models (LLMs)—to graphs, researchers hoped to bypass the limitations of traditional Graph Neural Networks (GNNs). However, recent findings reveal a surprising flaw: sometimes, having a global view makes the model lose sight of the most informative local structures. This work investigates the "over-globalizing" problem and proposes a novel architecture, CoBFormer, to address it.

2. The Over-Globalizing Problem

In the world of graphs, "homophily" is a key principle: nodes that are close to each other often share the same labels. Traditional GNNs exploit this by aggregating information from immediate neighbors. Graph Transformers, however, treat the graph as a fully connected set of nodes, allowing every node to attend to every other node.

While this prevents information bottlenecks, it introduces a paradox. Empirical observation and theoretical analysis (Theorem 3.1) show that vanilla Graph Transformers often allocate more attention to distant nodes than to near neighbors, even though the near neighbors contain the most useful information. This "over-globalizing" leads to a low signal-to-noise ratio (Attn-SNR) in the attention mechanism, hurting accuracy and making the models incredibly memory-intensive ($O(N^2)$ complexity).

Figure 1: Empirical evidence of the over-globalizing problem. (a) shows label consistency decreasing with distance. (b) and (c) demonstrate that attention weights in vanilla Transformers and NodeFormer often peak at distant hops rather than local ones.

3. CoBFormer: Bi-Level Global Graph Transformer

To strike a balance between local focus and global reach, we introduce CoBFormer. The model integrates a local GCN module with a Bi-Level Global Attention (BGA) module through a collaborative training framework.

Figure 2: Overview of the CoBFormer architecture, featuring the Bi-Level Global Attention (BGA) module and the Collaborative Training strategy.

3.1 Bi-Level Global Attention (BGA)

Instead of one massive attention matrix, CoBFormer partitions the graph into clusters using the METIS algorithm. It then employs a two-stage attention process:

  • Intra-cluster Transformer: Learns fine-grained relationships within each cluster.
  • Inter-cluster Transformer: Learns relationships between clusters by treating each cluster as a single "super-node." This decoupling reduces complexity from $O(N^2)$ to roughly $O(N^{4/3})$, making it much more scalable for large datasets.

3.2 Collaborative Training

Rather than simply adding the outputs of the GCN and the Transformer, CoBFormer uses a mutual supervision strategy. On unlabeled nodes, the GCN and Transformer act as teachers for one another, encouraging the models to reach a consensus. This collaborative approach prevents "fusion issues" where one model might be confidently wrong, thereby improving overall generalization.

4. Key Results and Insights

The model was evaluated on seven diverse benchmarks, including homophilic graphs (Cora, PubMed) and heterophilic graphs (Actor, Deezer).

  • Superior Accuracy: CoBFormer consistently outperformed state-of-the-art baselines. For example, on Cora, it achieved 85.28% Micro-F1, compared to 81.48% for NodeFormer.
  • Efficiency and Scalability: By using bi-level attention, CoBFormer is drastically leaner. On the PubMed dataset, it reduced GPU memory usage by 94% compared to vanilla global attention. It also successfully handled the massive ogbn-products dataset (over 2.4 million nodes).
  • Robustness: Parameter studies showed the model is relatively robust to the number of clusters, though optimal partitioning helps peak performance.

5. Conclusion

The over-globalizing problem highlights that in graph learning, "more" global information is not always better. By explicitly managing the trade-off between local and global information through bi-level attention and collaborative training, CoBFormer provides a high-performance, scalable alternative to traditional Graph Transformers.

Summary updated

BibTeX
@inproceedings{xing2024less,
  author = {Yujie Xing and Xiao Wang and Yibo Li and Hai Huang and Chuan Shi},
  title = {{Less is More: on the Over-Globalizing Problem in Graph Transformers}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=uKmcyyrZae},
}
Figure