Heterogeneous Graph Transformer

Ziniu Hu, Yuxiao Dong, Kuansan Wang, Yizhou Sun
3/3/2020
1,996 citations
cs.LGcs.SIstat.ML
transformer-attentiongnn

Official code: acbull/pyHGT (939 stars, Python, MIT, last commit 2023-12-20).

Abstract

Recent years have witnessed the emerging success of graph neural networks (GNNs) for modeling structured data. However, most GNNs are designed for homogeneous graphs, in which all nodes and edges belong to the same types, making them infeasible to represent heterogeneous structures.

Show full abstract

In this paper, we present the Heterogeneous Graph Transformer (HGT) architecture for modeling Web-scale heterogeneous graphs. To model heterogeneity, we design node- and edge-type dependent parameters to characterize the heterogeneous attention over each edge, empowering HGT to maintain dedicated representations for different types of nodes and edges. To handle dynamic heterogeneous graphs, we introduce the relative temporal encoding technique into HGT, which is able to capture the dynamic structural dependency with arbitrary durations. To handle Web-scale graph data, we design the heterogeneous mini-batch graph sampling algorithm---HGSampling---for efficient and scalable training. Extensive experiments on the Open Academic Graph of 179 million nodes and 2 billion edges show that the proposed HGT model consistently outperforms all the state-of-the-art GNN baselines by 9%--21% on various downstream tasks.

View on arXivView PDF

Code Implementations(1)

acbull/pyHGTOfficial100%
MIT

Code for "Heterogeneous Graph Transformer" (WWW'20), which is based on pytorch_geometric

939172Python, DockerfileFeb 21, 20202 years agoMIT
graph-neural-networksgraph-representation-learningheterogeneous-networknetwork-embeddingtransformer

Similar Papers

Cite this paper

@article{hu2020heterogeneous,
  title  = {Heterogeneous Graph Transformer},
  author = {Ziniu Hu and Yuxiao Dong and Kuansan Wang and Yizhou Sun},
  year   = {2020},
  eprint = {2003.01332},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.01332}
}

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

Discussion