TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Heterogeneous Graph Transformer

Heterogeneous Graph Transformer

Ziniu Hu, Yuxiao Dong, Kuansan Wang, Yizhou Sun

2020-03-03Heterogeneous Node ClassificationGraph SamplingNode Property Prediction
PaperPDFCodeCodeCode(official)Code

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.

Results

TaskDatasetMetricValueModel
Node ClassificationIMDB (Heterogeneous Node Classification) Macro-F163HGT
Node ClassificationIMDB (Heterogeneous Node Classification)Micro-F167.2HGT
Node ClassificationFreebase (Heterogeneous Node Classification) Macro-F129.28HGT
Node ClassificationFreebase (Heterogeneous Node Classification)Micro-F160.51HGT
Node ClassificationDBLP (Heterogeneous Node Classification) Macro-F193.01HGT
Node ClassificationDBLP (Heterogeneous Node Classification)Micro-F193.49HGT
Node ClassificationACM (Heterogeneous Node Classification) Macro-F191.12HGT
Node ClassificationACM (Heterogeneous Node Classification)Micro-F191HGT
Node ClassificationOAG-VenueMRR29.82HGT
Node ClassificationOAG-VenueNDCG47.31HGT
Node ClassificationOAG-L1-FieldMRR82.16HGT
Node ClassificationOAG-L1-FieldNDCG84.13HGT
Node Property Predictionogbn-magNumber of params26877657HGT (TransE embs)
Node Property Predictionogbn-magNumber of params21173389HGT (LADIES Sample)

Related Papers

Equivariance Everywhere All At Once: A Recipe for Graph Foundation Models2025-06-17Keyed Chaotic Dynamics for Privacy-Preserving Neural Inference2025-05-29Simple yet Effective Graph Distillation via Clustering2025-05-27Beyond Self-Repellent Kernels: History-Driven Target Towards Efficient Nonlinear MCMC on General Graphs2025-05-23The Limits of Graph Samplers for Training Inductive Recommender Systems: Extended results2025-05-20Graph Learning at Scale: Characterizing and Optimizing Pre-Propagation GNNs2025-04-17Distributed Graph Neural Network Inference With Just-In-Time Compilation For Industry-Scale Graphs2025-03-08Hierarchical graph sampling based minibatch learning with chain preservation and variance reduction2025-03-02