Transitivity-Preserving Graph Representation Learning for Bridging Local Connectivity and Role-based Similarity

Van Thuy Hoang, O-Joun Lee
8/18/2023
cs.LGcs.SI

Official code: NSLab-CUK/Unified-Graph-Transformer (28 stars, MIT, last commit 2025-07-17). 2 more implementations below.

Abstract

Graph representation learning (GRL) methods, such as graph neural networks and graph transformer models, have been successfully used to analyze graph-structured data, mainly focusing on node classification and link prediction tasks. However, the existing studies mostly only consider local connectivity while ignoring long-range connectivity and the roles of nodes. In this paper, we propose Unified Graph Transformer Networks (UGT) that effectively integrate local and global structural information into fixed-length vector representations. First, UGT learns local structure by identifying the local substructures and aggregating features of the $k$-hop neighborhoods of each node. Second, we construct virtual edges, bridging distant nodes with structural similarity to capture the long-range dependencies. Third, UGT learns unified representations through self-attention, encoding structural distance and $p$-step transition probability between node pairs. Furthermore, we propose a self-supervised learning task that effectively learns transition probability to fuse local and global structural features, which could then be transferred to other downstream tasks. Experimental results on real-world benchmark datasets over various downstream tasks showed that UGT significantly outperformed baselines that consist of state-of-the-art models. In addition, UGT reaches the expressive power of the third-order Weisfeiler-Lehman isomorphism test (3d-WL) in distinguishing non-isomorphic graph pairs. The source code is available at https://github.com/NSLab-CUK/Unified-Graph-Transformer.

View on arXivView PDF

Code Implementations(3)

MIT

Community-aware Graph Transformer (CGT) is a novel Graph Transformer model that utilizes community structures to address node degree biases in message-passing mechanism and developed by NS Lab @ CUK based on pure PyTorch backend.

152PythonDec 12, 20231 years agoMIT
degree-biasdegree-fairnessgraph-algorithmsgraph-neural-networksgraph-representation-learning+7 more
MIT

LiteralKG is a novel Attributed Knowledge Graph Embedding Model developed by NS Lab @ CUK based on pure PyTorch backend.

71Python, BatchfileNov 28, 20221 years agoMIT
companion-animalsdiagnosticsdisease-predictiongraph-neural-networksknowledge-graph+2 more
MIT

Unified Graph Transformer (UGT) is a novel Graph Transformer model specialised in preserving both local and global graph structures and developed by NS Lab @ CUK based on pure PyTorch backend.

285PythonAug 16, 20231 years agoMIT
graphgraph-neural-networksgraph-representation-learninggraph-transformerpretrained-graph-model+3 more

Similar Papers

Cite this paper

@article{hoang2023transitivitypreserving,
  title  = {Transitivity-Preserving Graph Representation Learning for Bridging Local Connectivity and Role-based Similarity},
  author = {Van Thuy Hoang and O-Joun Lee},
  year   = {2023},
  eprint = {2308.09517},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.09517v1}
}

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/2308.09517.svg)](https://codeofpaper.com/paper/2308.09517)

Discussion