Topology-Informed Graph Transformer

Yun Young Choi, Sun Woo Park, Minho Lee, Youngho Woo · DOI

Introduction

Graph Neural Networks (GNNs) typically face a trade-off between local structural awareness and global context. Message-Passing Neural Networks (MPNNs) capture local topology but struggle with "over-squashing" and limited expressive power, often bounded by the 1-Weisfeiler-Lehman (1-WL) test. Conversely, Graph Transformers leverage global attention for long-range dependencies but often lack a strong structural inductive bias, treating nodes as a fully connected set unless manually augmented with positional encodings.

The Topology-Informed Graph Transformer (TIGT) bridges this gap by explicitly encoding topological structures, such as cycles, into the Transformer architecture. By leveraging "clique adjacency matrices" and dual-path message passing, TIGT achieves state-of-the-art performance and theoretically surpasses the discriminative power of the standard 3-WL graph isomorphism test.

Methodology

TIGT integrates topology into the self-attention mechanism through several key components designed to make structure a first-class citizen within the model:

  1. Clique Adjacency Matrix ($A_C$): The model identifies a "cycle basis" and transforms these cyclic subgraphs into cliques. This secondary structure highlights topological "holes" and loops that standard adjacency matrices might obscure.
  2. Topological Positional Embedding (PE): TIGT uses MPNNs to extract features from both the original adjacency matrix and the clique adjacency matrix, learning embeddings based on "universal covers."
  3. Dual-Path Message Passing: Each encoder layer processes information through parallel MPNN paths for the original graph and the cycle-based clique graph.
  4. Graph Information Layer: Inspired by Squeeze-and-Excitation networks, this layer recalibrates node-level features using global graph features to maintain a holistic topological view.
The TIGT architecture, featuring the Cycle to Clique preprocessing and the dual-path encoder structure.

Experimental Evaluation

The authors evaluated TIGT across diverse benchmarks, including synthetic isomorphism tests (CSL), standard GNN benchmarks (ZINC, MNIST, CIFAR10), and large-scale datasets like PCQM4Mv2 (3.7 million graphs).

Key Results

TIGT demonstrated superior performance across multiple metrics, often outperforming much larger models:

  • ZINC: On the full ZINC dataset, TIGT achieved an MAE of 0.014, significantly outperforming GraphGPS (0.070) and SignNet (0.024).
  • PCQM4Mv2: It reached a Validation MAE of 0.0826 with only 13M parameters, proving more efficient than competitors that often exceed 40M parameters.
  • CSL: TIGT maintained near 100% accuracy across various depths, whereas other state-of-the-art models like GRIT or GPS saw performance degradation as depth increased.
Performance comparison of TIGT against state-of-the-art GNNs and Transformers across five benchmark datasets.

Discussion and Conclusion

TIGT's expressive power stems from its ability to distinguish non-isomorphic graphs that the 3-WL test cannot. By viewing graphs through the lens of "universal covers" and modifying their geometry via clique-based cycles, TIGT makes structural differences visible that are otherwise hidden from standard GNNs.

While the model introduces a preprocessing step for cycle identification and faces $O(N^2)$ complexity due to global attention, its parameter efficiency and robust performance across scales make it a powerful tool for graph representation learning. Future work may extend TIGT to node-level tasks and explore linear-complexity attention variants to handle even larger graphs.

Summary updated

BibTeX
@inproceedings{choi2024topology,
  author = {Yun Young Choi and Sun Woo Park and Minho Lee and Youngho Woo},
  title = {{Topology-Informed Graph Transformer}},
  booktitle = {GRaM @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=O5q2B2sGZe},
}
Figure