NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Seq-HGNN: Learning Sequential Node Representation on Heterogeneous Graph

Chenguang Du, Kaichun Yao, Hengshu Zhu, Deqing Wang, Fuzhen Zhuang, Hui Xiong · DOI

TL;DR

This paper introduces Seq-HGNN, a novel heterogeneous graph neural network that addresses information loss in existing models by representing nodes as sequences of meta-path representations. This sequential approach allows for better distinction of information from different relations and orders, leading to improved performance and efficiency on various downstream tasks.

What Problem Does This Paper Address?

Heterogeneous graphs, which contain nodes and edges of different types, are prevalent in real-world scenarios like social networks and recommendation systems. Heterogeneous Graph Neural Networks (HGNNs) are designed to leverage the rich structural and semantic information within these graphs. However, a common limitation of existing HGNNs is their representation of each node as a single, fixed-size vector at each layer of the graph convolution. This aggregation can lead to a loss of information, as it becomes difficult for higher layers to distinguish between messages originating from different relations or at different "hops" (orders) in the graph. Imagine trying to understand a complex conversation by only remembering a single summary of everything said so far – you'd miss crucial nuances. Seq-HGNN aims to solve this by preserving the distinct information pathways within the graph.

Methods

The core innovation of Seq-HGNN lies in its sequential node representation. Instead of a single vector, each node is represented as a sequence of vectors. This is achieved through two main components:

  1. Sequential Node Representation Learning: This mechanism allows each node to maintain multiple distinct representations, each potentially capturing information from a specific meta-path (a sequence of node and edge types that defines a semantic relationship). This is a departure from traditional methods that fuse all information into one vector.
  2. Heterogeneous Representation Fusion Module: After the sequential representations are learned through multiple layers, this module uses a self-attention mechanism to identify the most important meta-paths (and their corresponding representations) for a given node and task. It then fuses these important representations into a single, compact vector suitable for downstream tasks. This allows the model to dynamically weigh the importance of different information sources.

The message-passing mechanism itself is enhanced by a Transformer-based approach that incorporates neighbor importance estimation (using attention) and relation-aware encoding to better aggregate information from different relations.

Datasets

The paper evaluates Seq-HGNN on four widely used datasets:

  • DBLP: A bibliography dataset with node types like Author, Paper, Term, and Venue. The task is to predict author research fields.
  • IMDB: A dataset from the Internet Movie Database with node types like Movie, Director, Keyword, and Actor. The task is multi-label classification of movies into genres.
  • ACM: A citation network dataset with node types like Paper, Author, Subject, and Term. The task is to predict the category of a paper.
  • MAG: A large-scale heterogeneous academic network from the Microsoft Academic Graph, featuring Paper, Author, Field, and Institution nodes. The task is to predict the venue of a paper.

These datasets are drawn from the Heterogeneous Graph Benchmark (HGB) and the Open Graph Benchmark (OGB).

Key Insights and Ideas

  • Sequential Representation is Key: The most significant insight is that representing nodes as sequences, rather than single vectors, is crucial for preserving rich information from heterogeneous graphs. This allows the model to differentiate between information from various relations and orders, which is lost in traditional aggregation methods.
  • Dynamic Meta-Path Importance: The fusion module's ability to dynamically identify and weigh the importance of different meta-paths for each node and task is a powerful feature. This suggests that not all paths are equally relevant for every node or prediction, and the model can learn to prioritize.
  • Interpretability through Meta-Path Visualization: The paper demonstrates that the learned attention weights in the fusion module can be visualized to understand which meta-paths are most influential for specific nodes and tasks. This provides valuable insights into the model's decision-making process.
  • Scalability and Efficiency: Seq-HGNN not only achieves better accuracy but also demonstrates competitive training efficiency, making it suitable for large-scale heterogeneous graph analysis.

Key Results

  • State-of-the-Art Performance: Seq-HGNN outperforms several state-of-the-art baselines on the DBLP and ACM datasets in terms of macro-f1 and micro-f1 scores. For instance, it achieved improvements of 1.2% and 0.4% in macro-f1 on these datasets.
  • Competitive on IMDB: On the IMDB dataset, Seq-HGNN achieved the best micro-f1 scores and the second-best macro-f1 scores, highlighting its strong performance even on multi-label classification tasks.
  • Scalability on MAG: The model demonstrated excellent performance on the large-scale OGB-MAG dataset, indicating its scalability and effectiveness for real-world applications.
  • Efficiency Gains: Figure 3 shows that Seq-HGNN achieves higher accuracy within a shorter training time compared to a baseline like SeHGNN, demonstrating its computational efficiency.
  • Ablation Studies: Experiments with variants of Seq-HGNN (e.g., without sequential representation or fusion module) confirmed the importance of these proposed components for achieving high performance.

Limitations and Future Work

  • Over-smoothing: The paper notes that stacking too many Seq-HGNN layers can lead to performance degradation, potentially due to over-smoothing issues, a common challenge in deep graph neural networks.
  • Parameter Sensitivity: While parameter sensitivity was explored, further fine-tuning might be beneficial for optimal performance across diverse tasks and datasets.
  • Future Directions: The authors suggest that the model's ability to identify important meta-paths offers avenues for deeper interpretability and could be further explored for tasks requiring explainability. The sequential representation mechanism could also be adapted to other graph-based learning scenarios.

Summary updated

BibTeX
@inproceedings{du2023seq,
  author = {Chenguang Du and Kaichun Yao and Hengshu Zhu and Deqing Wang and Fuzhen Zhuang and Hui Xiong},
  title = {{Seq-HGNN: Learning Sequential Node Representation on Heterogeneous Graph}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591765},
}
Figure