Heterogeneous Graph Structure Learning for Graph Neural Networks

Jianan Zhao, Xiao Wang, Chuan Shi, Binbin Hu, Guojie Song, Yanfang Ye

Introduction

Heterogeneous Information Networks (HINs)—graphs containing multiple types of nodes and edges—are fundamental to modeling complex real-world systems like bibliographic databases and recommendation engines. While Heterogeneous Graph Neural Networks (HGNNs) have become powerful tools for these datasets, they typically share a critical "blind spot": they assume the raw input graph is a perfect representation of the ground truth.

In reality, real-world graphs are often noisy (containing accidental or irrelevant edges), incomplete (missing latent relationships), and task-independent (constructed using fixed rules that may not be optimal for specific downstream tasks). To address these limitations, this paper introduces HGSL (Heterogeneous Graph Structure Learning), a framework that jointly learns an optimal graph structure and GNN parameters by fusing node features, topological propagation, and high-level semantics.

Methodology

HGSL treats the graph structure as a learnable component rather than a static input. Instead of learning a single global adjacency matrix, HGSL generates a refined structure for each relation type separately through three specialized generators:

  1. Feature Similarity Graph: This captures potential relationships based on node attributes by projecting different node types into a common feature space and calculating multi-head weighted cosine similarities.
  2. Feature Propagation Graph: This "neighbor-of-my-neighbor" approach assumes that nodes with similar features should likely share similar neighbors, propagating feature similarities through existing topology to discover new, indirect connections.
  3. Semantic Graph: To capture high-order relationships (e.g., "Author-Paper-Venue-Paper-Author"), the model utilizes pre-trained metapath embeddings (MP2Vec), connecting nodes that are semantically related even if they are distant in the raw graph.
The HGSL framework architecture, illustrating the three graph generators and the fusion process.

These three generated graphs, along with the original raw graph, are fused using a channel attention mechanism. This allows the model to learn which information source (features, semantics, or raw topology) is most vital for a specific relation. Finally, the learned structure and a GNN backbone are optimized jointly using a classification loss and a sparsity regularizer to prevent over-fitting and maintain computational efficiency.

Experimental Results

The model was evaluated on three widely used real-world heterogeneous benchmarks: DBLP, ACM, and Yelp. HGSL consistently outperformed 11 baselines, including standard GNNs (GCN, GAT), specialized HGNNs (HAN, GTN), and homogeneous structure learning methods.

In the Yelp dataset—notoriously difficult due to sparse and noisy connections—HGSL showed significant gains, achieving a Macro-F1 of 93.55% compared to the next best baseline (GTN) at 92.84%. Ablation studies further confirmed that removing any of the three generators resulted in a performance drop, proving that all three perspectives are necessary for a comprehensive graph view.

Key Insights and Discussion

A key finding of the research is that heterogeneity is a feature, not a bug. By learning separate structures for each relation, HGSL respects the distinct information carried by different edge types.

Attention weights for different graph sources on the Yelp dataset.

The attention analysis revealed that for the Yelp dataset, the model relied heavily on node features and semantic embeddings rather than the raw graph. As shown in the figure above, for relations like B-L and B-U, the Feature Graph receives significantly higher attention than the Original Graph. This suggests that the raw Yelp graph is particularly noisy, and HGSL successfully "fixed" it by prioritizing more reliable feature-based edges.

Conclusion

HGSL demonstrates that treating graph structure as a learnable component significantly improves the robustness and performance of GNNs on heterogeneous data. While computational overhead remains a challenge for massive graphs, the framework's ability to bridge the gap between raw topology and node features marks a significant advancement in graph representation learning.

Summary updated

BibTeX
@inproceedings{zhao2021heterogeneous,
  author = {Jianan Zhao and Xiao Wang and Chuan Shi and Binbin Hu and Guojie Song and Yanfang Ye},
  title = {{Heterogeneous Graph Structure Learning for Graph Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16600},
}
Figure