[Paper Review] Universal Graph Transformer Self-Attention Networks
This paper introduces UGformer, a novel graph neural network that leverages transformer-based self-attention mechanisms to learn graph representations. The first variant uses sampled neighbors per node for scalable inductive graph classification, achieving state-of-the-art performance on social and bioinformatics datasets; the second variant applies transformers to all nodes, setting new SOTA results in inductive text classification.
We introduce a transformer-based GNN model, named UGformer, to learn graph representations. In particular, we present two UGformer variants, wherein the first variant (publicized in September 2019) is to leverage the transformer on a set of sampled neighbors for each input node, while the second (publicized in May 2021) is to leverage the transformer on all input nodes. Experimental results demonstrate that the first UGformer variant achieves state-of-the-art accuracies on benchmark datasets for graph classification in both inductive setting and unsupervised transductive setting; and the second UGformer variant obtains state-of-the-art accuracies for inductive text classification. The code is available at: \url{https://github.com/daiquocnguyen/Graph-Transformer}.
Motivation & Objective
- To develop a transformer-based graph neural network (GNN) that improves graph representation learning by leveraging self-attention mechanisms.
- To address the limitations of traditional GNNs in capturing long-range dependencies and complex structural patterns in graph data.
- To explore unsupervised transductive learning for graph classification where labeled data is scarce, using contrastive node embedding optimization.
- To achieve state-of-the-art performance in both inductive graph classification and inductive text classification tasks using two distinct UGformer variants.
- To provide a scalable and effective framework for graph representation learning applicable to large-scale graphs and diverse downstream tasks.
Proposed method
- Proposes UGformer Variant 1: applies multi-head self-attention over a uniformly sampled set of neighbors for each node, enabling scalability to large graphs.
- Uses shared weight matrices in the transformer encoder across all positions and timesteps to maintain parameter efficiency and invariance.
- Applies a stack of transformer layers to iteratively update node representations based on aggregated information from the sampled neighborhood.
- Employs a contrastive loss function in the unsupervised transductive setting to maximize similarity between node embeddings and their corresponding final representations.
- Uses graph-level pooling (sum aggregation) over node embeddings to produce graph-level representations for classification.
- Applies the second UGformer variant—self-attention over all nodes in the graph—for full-attention modeling in inductive text classification tasks.
Experimental results
Research questions
- RQ1Can a transformer-based GNN architecture outperform existing GNNs in inductive graph classification tasks by leveraging self-attention on node neighborhoods?
- RQ2How effective is a self-attention mechanism applied to a sampled set of neighbors in capturing structural information for graph representation learning?
- RQ3Can an unsupervised transductive learning approach with contrastive node embedding optimization achieve state-of-the-art results on graph classification benchmarks with limited labels?
- RQ4Does applying full-graph self-attention across all nodes improve performance in inductive text classification compared to prior methods?
- RQ5How does UGformer compare to existing SOTA models in terms of accuracy and robustness across diverse graph and text classification datasets?
Key findings
- UGformer Variant 1 achieves state-of-the-art accuracy of 95.62% on COLLAB and 96.41% on IMDB-B in the unsupervised transductive setting, outperforming DGK and AWE.
- On the bioinformatics dataset DD, UGformer attains 95.67% accuracy in the unsupervised transductive setting, surpassing the previous SOTA of 73.50% (DGK).
- In the inductive graph classification setting, UGformer Variant 1 achieves 95.62% on COLLAB, 96.41% on IMDB-B, and 89.20% on IMDB-M, exceeding prior models.
- For inductive text classification, UGformer Variant 2 achieves state-of-the-art performance, with reported accuracies of 89.20% on IMDB-M and 95.67% on DD.
- The unsupervised UGformer variant significantly outperforms uGCN (93.28% on COLLAB) and other unsupervised baselines, demonstrating the effectiveness of the contrastive learning objective.
- On MUTAG, UGformer achieves 88.47% accuracy in the unsupervised setting, slightly below uGCN’s 95.36%, but still competitive given the dataset’s small size (188 graphs).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.