Efficient Heterogeneous Graph Learning via Random Projection

Jun Hu, Bryan Hooi, Bingsheng He

TL;DR

RpHGNN is a hybrid pre-computation framework for Heterogeneous Graph Neural Networks (HGNNs) that bridges the gap between high-fidelity relation-wise methods and high-efficiency representation-wise methods. By leveraging sparse random projection for dimensionality reduction and a novel even-odd propagation scheme, it achieves state-of-the-art accuracy on large-scale graphs while being over 230% faster than the most effective existing baselines.

What Problem Does This Paper Address?

Heterogeneous graphs—which contain multiple types of nodes and edges (e.g., papers, authors, and venues in an academic graph)—are rich in information but notoriously difficult to scale. Typical HGNNs rely on repetitive "message passing" during training, where nodes aggregate information from their neighbors across various relations.

As shown in the paper's analysis, this message passing can account for 95%–99% of total computation time. Furthermore, standard end-to-end models often run out of memory (OOM) on large-scale datasets because they require the entire graph to be loaded onto the GPU.

Recent "pre-computation" methods try to solve this by performing message passing once on the CPU to create fixed feature tensors. However, they face a dilemma:

  1. Relation-wise style: Keeps information from different relations separate (low information loss) but scales exponentially with the number of hops, making it slow for deep graphs.
  2. Representation-wise style: Merges relations into a single vector (high efficiency) but loses the fine-grained details needed for high accuracy.

Methods

The authors introduce RpHGNN (Random Projection Heterogeneous Graph Neural Network), a hybrid approach designed to capture the best of both worlds.

1. Relation-Wise Neighbor Collection (RWNC)

Unlike methods that squash all neighbor information immediately, RpHGNN collects information for different relations separately. This preserves the "semantics" of the graph—for example, keeping "co-author" relationships distinct from "published-in" relationships.

2. Random Projection Squashing

To prevent the dimensionality of node features from exploding as they propagate through the graph, the authors introduce a Random Projection Squashing step. They use sparse random projection to reduce the dimensionality of updated vertex representations while keeping it constant across iterations. This ensures that the computational complexity only grows linearly with the number of hops, rather than exponentially.

3. Even-Odd Propagation Scheme

The authors observed that "even" relations (2-hop symmetric paths like Paper → Author → Paper) often provide higher-quality features than "odd" 1-hop relations (like Paper → Author), especially when some node types lack rich attributes. The Even-Odd scheme allows the model to capture 2-hop information in a single iteration, effectively halving the number of "untrainable" update steps required and further reducing information loss.

Two main styles of pre-computation-based HGNNs compared to the proposed hybrid approach.

Datasets

The model was evaluated on seven benchmark datasets, ranging from small to very large:

  • Small: DBLP, IMDB, ACM, and Freebase (from the HGB benchmark).
  • Large: OGBN-MAG, OAG-Venue, and OAG-L1-Field (standard large-scale graph benchmarks).

Key Insights and Ideas

  • Untrainable doesn't mean weak: The paper proves that even though the pre-computation stage is "untrainable" (using fixed random weights for projection), it can capture enough structural detail to outperform complex end-to-end models.
  • The Power of Symmetry: The "Even-Odd" propagation highlights that in heterogeneous graphs, returning to a node of the same type (e.g., Paper-Author-Paper) often yields more useful features than stopping at a different node type that might be "featureless" or have low-quality attributes.
  • Random Projection as a Scalability Tool: While PCA is a common dimensionality reduction technique, random projection is significantly faster and computationally simpler, making it ideal for the massive scale of modern graph datasets.

Key Results

  • Superior Accuracy: RpHGNN achieved state-of-the-art results on all seven datasets, outperforming both pre-computation baselines (like NARS and SeHGNN) and end-to-end models (like HAN and HGT).
  • Massive Speedup: On the OGBN-MAG dataset, RpHGNN was 230% faster than SeHGNN, the most effective previous baseline.
  • Efficiency: As illustrated in the performance vs. time plots, RpHGNN sits in the "sweet spot" of the top-left corner—highest accuracy with the lowest time consumption.
Accuracy vs. Time consumption on the OGBN-MAG dataset, showing RpHGNN's efficiency.

Limitations and Future Work

  • Memory Overhead: While RpHGNN avoids GPU OOM errors, the pre-computation stage still requires significant CPU memory to store the collected neighbor information tensors before training. The authors suggest exploring ways to minimize the size of these tensors in future work.
  • Task Generalization: This paper focuses primarily on node classification. The authors plan to investigate how well this random projection approach translates to other tasks like link prediction.
  • Featureless Nodes: While the model handles featureless nodes using random embeddings, the authors note that more sophisticated pre-training for these nodes could potentially boost performance further.

Summary updated

BibTeX
@article{hu2024efficient,
  author = {Jun Hu and Bryan Hooi and Bingsheng He},
  title = {{Efficient Heterogeneous Graph Learning via Random Projection}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2024},
  url = {https://openreview.net/forum?id=9f7BD1tmab},
}
Figure