Exploiting Latent Attribute Interaction with Transformer on Heterogeneous Information Networks

Zeyuan Zhao, Qingqing Ge, Anfeng Cheng, Yiding Liu, Xiang Li, Shuaiqiang Wang

Abstract

Heterogeneous graph neural networks (HGNNs) have recently shown impressive capability in modeling heterogeneous graphs that are ubiquitous in real-world applications. Most existing methods for heterogeneous graphs mainly learn node embeddings by stacking multiple convolutional or attentional layers, which can be considered as capturing the high-order information from node-level aspect. However, different types of nodes in heterogeneous graphs have diverse features, it is also necessary to capture interactions among node features, namely the high-order information from feature-level aspect. In addition, most methods first align node features by mapping them into one same low-dimensional space, while they may lose some type information of nodes in this way. To address these problems, in this paper, we propose a novel Heterogeneous graph Cascade Attention Network (HetCAN) composed of multiple cascade blocks. Each cascade block includes two components, the type-aware encoder and the dimension-aware encoder. Specifically, the type-aware encoder compensates for the loss of node type information and aims to make full use of graph heterogeneity. The dimension-aware encoder is able to learn the feature-level high-order information by capturing the interactions among node features. With the assistance of these components, HetCAN can comprehensively encode information of node features, graph heterogeneity and graph structure in node embeddings. Extensive experiments demonstrate the superiority of HetCAN over advanced competitors and also exhibit its efficiency and robustness.

Introduction

Heterogeneous Information Networks (HINs)—graphs containing multiple types of nodes and edges, such as citation networks with papers, authors, and venues—present unique challenges for graph neural networks. While current Heterogeneous Graph Neural Networks (HGNNs) have made strides, they often struggle with two fundamental issues:

  1. The Identity Crisis: To process diverse node types, models typically project them into a shared low-dimensional space. This alignment often discards specific "type" information. Consequently, when a node aggregates neighbor information, it loses the nuance of the neighbor's identity (e.g., distinguishing between a paper neighbor and an author neighbor).
  2. Ignoring Feature Synergy: Most models focus on node-level structural interactions but overlook feature-level interactions. For instance, the co-occurrence of "GNN" and "Recommendation" features in a paper is a strong semantic signal. Standard models treat these features as independent, missing high-order semantic synergy.
Motivation for preserving type information in heterogeneous graphs.

The HetCAN Framework

To address these limitations, the authors introduce HetCAN (Heterogeneous graph Cascade Attention Network). HetCAN is structured around multiple cascade blocks, each integrating two specialized encoders designed to capture both structural and feature-level information.

The architecture of HetCAN, featuring the Type-aware and Dimension-aware encoders within a Cascade Block.

Type-aware Encoder

Rather than simple projection, this encoder explicitly incorporates learnable type embeddings for both nodes and edges. By fusing these embeddings with node features via a Hadamard product, the model ensures that the specific heterogeneity of the graph is preserved during neighborhood aggregation. This allows the attention mechanism to "remember" the distinct roles of different node and edge types.

Dimension-aware Encoder

Drawing inspiration from Transformers in NLP, this module treats the dimensions of a node’s embedding as a sequence of "tokens." It applies Multi-Head Self-Attention (MHSA) across these dimensions, enabling the model to learn complex interactions between different attributes of a single node. This captures the "high-order" semantic information often missed by standard aggregation layers.

Dual-Level Awareness

By concatenating the outputs of these encoders, HetCAN produces node representations that encapsulate both the structural context of the graph and the internal synergy of its attributes. Notably, HetCAN is metapath-free, eliminating the need for manually defined complex paths (e.g., Author-Paper-Venue) and simplifying its application to new datasets.

Experimental Evaluation

HetCAN was evaluated across several diverse benchmarks for both node classification and link prediction:

  • Node Classification: DBLP, IMDB, ACM, Freebase (from the Heterogeneous Graph Benchmark), and the large-scale OGB-MAG dataset.
  • Link Prediction: Amazon, LastFM, and PubMed.

Key Results

  • State-of-the-Art Performance: HetCAN consistently outperformed leading models like SeHGNN and HINormer. For example, it achieved a 95.78% Micro-F1 score on the DBLP dataset.
  • Efficiency and Scalability: On the complex Freebase dataset (36 edge types), HetCAN reached optimal performance in ~20 seconds, representing a 25x speedup over SeHGNN (~500 seconds). Its complexity scales linearly with the number of nodes and edges.
  • Robustness: Ablation studies confirmed that the dimension-aware encoder is crucial, particularly for identifying minority classes in imbalanced data (Macro-F1 scores).

Conclusion

HetCAN rethinks heterogeneous graph modeling by treating node dimensions as tokens and node/edge types as first-class learnable entities. This dual-level awareness—capturing both structural heterogeneity and feature-level synergy—allows it to outperform existing methods while maintaining high efficiency. While performance gains are most pronounced on highly complex graphs like Freebase, HetCAN offers a robust, metapath-free solution for a wide range of HIN applications. Future work may further explore deeper semantic relational modeling within the cascade architecture.

Summary updated

BibTeX
@inproceedings{zhao2024exploiting,
  author = {Zeyuan Zhao and Qingqing Ge and Anfeng Cheng and Yiding Liu and Xiang Li and Shuaiqiang Wang},
  title = {{Exploiting Latent Attribute Interaction with Transformer on Heterogeneous Information Networks}},
  booktitle = {ECML/PKDD},
  year = {2024},
  doi = {10.1007/978-3-031-70365-2\_4},
}
Figure