HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Heterogeneous Graph Transformer

Ziniu Hu; Yuxiao Dong; Kuansan Wang; Yizhou Sun

Heterogeneous Graph Transformer

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. 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.

Code Repositories

syyunn/node2vec
Mentioned in GitHub
acbull/pyHGT
Official
pytorch
Mentioned in GitHub
acbull/pyHGT/tree/master/ogbn-mag
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
heterogeneous-node-classification-on-acmHGT
Macro-F1: 91.12
Micro-F1: 91.00
heterogeneous-node-classification-on-dblp-2HGT
Macro-F1: 93.01
Micro-F1: 93.49
heterogeneous-node-classification-on-freebaseHGT
Macro-F1: 29.28
Micro-F1: 60.51
heterogeneous-node-classification-on-imdbHGT
Macro-F1: 63.00
Micro-F1: 67.20
heterogeneous-node-classification-on-oagHGT
MRR: 29.82
NDCG: 47.31
heterogeneous-node-classification-on-oag-l1HGT
MRR: 82.16
NDCG: 84.13

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Heterogeneous Graph Transformer | Papers | HyperAI