Skip to main content
QUICK REVIEW

[Paper Review] Heterogeneous Graph Transformer

Ziniu Hu, Yuxiao Dong|arXiv (Cornell University)|Mar 3, 2020
Advanced Graph Neural NetworksComputer Science28 references30 citations
TL;DR

Heterogeneous Graph Transformer (HGT) introduces meta relation-aware attention, heterogeneous message passing, and relative temporal encoding to model Web-scale heterogeneous graphs, enabling training on Open Academic Graph and outperforming baselines by 9%–21%.

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.

Motivation & Objective

  • Capture heterogeneity by designing node- and edge-type dependent representations using meta relations.
  • Model dynamic graphs with a relative temporal encoding mechanism.
  • Enable scalable training on Web-scale heterogeneous graphs via a specialized sub-graph sampling method.
  • Demonstrate effectiveness on Open Academic Graph and domain-specific heterogeneous graphs.

Proposed method

  • Propose meta relation-aware heterogeneous mutual attention that uses triplet parameters ⟨τ(s), φ(e), τ(t)⟩ to compute attention heads.
  • Design heterogeneous message passing with relation-aware linear projections and edge-specific transformation matrices.
  • Apply target-specific aggregation with residual connections and type-specific linear mappings to produce H^(l)[t].
  • Introduce Relative Temporal Encoding (RTE) using sinusoidal bases and a learned projection to inject ΔT(t,s) into node representations.
  • Develop HGSampling to create dense, balanced heterogeneous sub-graphs for Web-scale training with per-type node budgets.
  • Provide inductive timestamp assignment to attach timestamps to plain nodes by inheriting from event-connected nodes.

Experimental results

Research questions

  • RQ1How to effectively model heterogeneous graphs with differing node/edge distributions while enabling cross-type interactions?
  • RQ2Can a Transformer-inspired attention mechanism parameterize relations through meta relation triplets to improve representation quality?
  • RQ3How can temporal dynamics be incorporated into heterogeneous graphs without constructing separate time-sliced graphs?
  • RQ4What sampling strategy enables scalable training on Web-scale heterogeneous graphs without type-imbalance or information loss?
  • RQ5Do the proposed methods improve downstream tasks on large-scale heterogeneous graphs like OAG?

Key findings

  • HGT consistently outperforms state-of-the-art GNN baselines by 9%–21% on downstream tasks.
  • Open Academic Graph with 179 million nodes and 2 billion edges used to demonstrate scalability and effectiveness.
  • HGSampling yields balanced, dense sub-graphs enabling training on Web-scale heterogeneous graphs.
  • RTE enables modeling of dynamic structural dependencies with arbitrary durations and unseen timestamps.
  • Meta relation-based parameterization enables sharing while preserving type-specific patterns, improving generalization.
  • Case studies show HGT can automatically infer important implicit meta paths for tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.