Heterogeneous Graph Fully-Connected Attention Network

Rui Wang, Cheng Xie, Haoran Duan, XinHao WanResearch 2023

Abstract

Learning effective node representations in Heterogeneous Information Networks (HINs) is challenging due to the diversity of node and edge types. Traditional methods often rely on fixed-length meta-paths and simple weighted summations for feature aggregation, which can lead to significant information loss. We propose the Heterogeneous Graph Fully-Connected Attention Network (HGFAN), which utilizes a relational adjacency matrix to generate meta-paths of varying lengths and a fully connected attention mechanism to capture complex, non-linear relationships between node features. Extensive experiments on the ACM, DBLP, and IMDB datasets demonstrate that HGFAN achieves state-of-the-art performance, proving its ability to generate high-quality embeddings by aggregating multi-length meta-path information.

Introduction

Heterogeneous Information Networks (HINs) are ubiquitous in real-world applications, representing complex systems like bibliographic networks or social media platforms. Unlike homogeneous graphs, HINs contain multiple types of nodes and relations, requiring specialized embedding techniques to preserve their rich semantic and structural properties. Current meta-path-guided methods often simplify HINs into isomorphic graphs, ignoring intermediate node data and failing to model the intricate dependencies between neighbors. HGFAN addresses these limitations by automating meta-path discovery and employing a more sophisticated feature fusion strategy.

Methodology

The HGFAN model consists of two primary components designed to maximize information retention and feature discriminability.

Variable-Length Meta-Path Capture

Instead of relying on predefined, fixed-length meta-paths, HGFAN iteratively computes adjacency matrices to capture structural information across different scales. By applying relational attention, the model automatically learns the importance of various edge types at each step. This process allows the network to "discover" the most relevant semantic paths of different lengths without manual intervention, ensuring that information from intermediate nodes is preserved throughout the aggregation process.

Fully Connected Attention Module

A key innovation of HGFAN is its approach to feature fusion. While conventional models use simple weighted sums to combine neighbor information, HGFAN employs a fully connected attention mechanism. As illustrated in the architecture diagram, features from all captured path lengths are concatenated and passed through a Multi-Layer Perceptron (MLP). This enables the model to learn complex, high-dimensional interactions between features, making the final node representations significantly more distinguishable for downstream classification tasks.

Figure 3: The HGFAN architecture, showcasing the variable-length metapath capture and fully connected attention modules.

Experimental Results

We evaluated HGFAN on three standard benchmarks: DBLP, ACM, and IMDB. These datasets vary in size and complexity, providing a rigorous test for the model's generalization capabilities.

HGFAN consistently outperformed strong baselines, including HAN, MAGNN, and GTN, across all metrics. On the ACM dataset, HGFAN achieved a Macro-F1 score of 93.16%, surpassing the previous state-of-the-art. Similarly, on the DBLP dataset, it reached 94.88%. The most notable improvement was observed on the IMDB dataset, where HGFAN's ability to capture complex relationships allowed it to handle the inherent class imbalance more effectively than competing models.

Figure 4: Performance comparison (Macro-F1 and Micro-F1) of HGFAN against state-of-the-art graph embedding methods.

Ablation studies further validated the design choices. Removing the variable-length capture module ($HGFAN_{vm}$) led to the most significant drop in performance, confirming that multi-scale path information is critical for understanding HIN structures.

Conclusion

HGFAN introduces a powerful new approach to heterogeneous graph embedding. By combining automated variable-length meta-path discovery with a fully connected attention mechanism, the model overcomes the limitations of traditional fixed-path and linear aggregation methods. The results across multiple benchmarks demonstrate that HGFAN produces superior node representations, paving the way for more accurate analysis of complex networked data.

Summary updated

BibTeX
@inproceedings{wang2023heterogeneous,
  author = {Rui Wang and Cheng Xie and Haoran Duan and XinHao Wan},
  title = {{Heterogeneous Graph Fully-Connected Attention Network}},
  booktitle = {Research},
  year = {2023},
  doi = {10.21203/rs.3.rs-3418925/v1},
}
Figure