Semantic-aware Node Synthesis for Imbalanced Heterogeneous Information Networks

Xinyi Gao, Wentao Zhang, Tong Chen, Junliang Yu, Nguyen Quoc Viet Hung, Hongzhi Yin

Introduction

Heterogeneous Information Networks (HINs) are essential for modeling complex real-world data, such as academic graphs (papers, authors, venues) or movie databases (actors, directors, genres). While Heterogeneous Graph Neural Networks (HGNNs) have shown significant success in learning representations from these multi-typed structures, they are frequently hindered by class imbalance.

This paper identifies a critical nuance in this challenge: semantic imbalance. Unlike simple quantity imbalance, where minority classes merely have fewer samples, semantic imbalance refers to the "impoverished" neighborhood context of minority nodes. In an HIN, a node's identity is largely defined by its connections to other node types. Minority nodes often suffer from fewer and less diverse relations, leading to biased and incomplete embeddings. To address this, the authors propose Semantic-aware Node Synthesis (SNS), a framework designed to re-balance HINs by synthesizing minority nodes with contextually relevant neighbors and robust attribute features.

The SNS Framework

The SNS framework operates through three integrated stages to ensure that synthetic nodes are both structurally integrated and semantically consistent.

1. Semantic-aware Neighbor Selection

Traditional oversampling methods like SMOTE or GraphENS are typically designed for homogeneous graphs and fail to account for the rich, multi-typed semantics of HINs. SNS addresses this by using Personalized PageRank (PPR) calculated over specific meta-paths. This process identifies which existing nodes are most "influential" for a specific minority class, ensuring that synthetic nodes are placed within a contextually relevant neighborhood rather than being randomly connected.

2. Attribute Synthesis with Saliency

To generate features for synthetic nodes, SNS performs interpolation between two existing minority nodes. To prevent the introduction of noise or out-of-distribution features, the framework employs a gradient-based saliency mask. This mask identifies and preserves the top $K\%$ most important attributes, ensuring that the synthetic data maintains the core characteristics of the target class.

3. Dual Regularization Constraints

To maintain the integrity of the graph after synthesis, SNS applies two forms of regularization:

  • Inter-type (Semantic) Constraint: A specialized loss function that ensures the synthetic node’s embedding remains consistent with its multi-typed neighbors, effectively acting as a link-prediction guardrail.
  • Intra-type (Prototype) Constraint: This utilizes class prototypes (centroids) to push synthetic node embeddings toward their respective class prototypes and away from dissimilar classes in both the target and semantic domains.

Experimental Evaluation

The authors evaluated SNS on four benchmark HIN datasets: MAG (Microsoft Academic Graph), ACM, DBLP, and IMDB. To simulate realistic challenges, the datasets were modified to an imbalance ratio of 0.1, where the minority class is only 10% the size of the majority.

Key Results

SNS consistently outperformed eight state-of-the-art baselines, including cost-sensitive learning and graph-specific augmentation methods like GraphENS.

  • Performance Gains: On the MAG dataset, SNS achieved an F1-score of 95.72%, a substantial improvement over the vanilla HGNN's 83.02%.
  • Robustness: The performance gap between SNS and other methods widened as the imbalance became more severe (moving from a 0.5 ratio down to 0.1), demonstrating its effectiveness in data-starved scenarios.
  • Architecture Agnostic: The framework proved to be versatile, providing similar performance boosts when integrated with different base models such as ie-HGCN and HGT.

Discussion and Future Work

The core insight of SNS is that in HINs, "the neighborhood is the message." Synthesizing a node in isolation is insufficient; it must be provided with the correct multi-typed neighbors to be processed effectively by an HGNN. Furthermore, the dual-constraint regularization is vital for suppressing noise propagation, which is a common risk when adding synthetic nodes to a graph structure.

While the results are promising, the authors note some areas for future exploration. The computational overhead of calculating PPR matrices for large-scale graphs is a consideration, though power-iteration approximations can mitigate this. Additionally, while the framework currently focuses on node classification, future research could extend semantic-aware synthesis to tasks like imbalanced link prediction or recommendation systems.

Summary updated

Abstract

Heterogeneous graph neural networks (HGNNs) have exhibited exceptional efficacy in modeling the complex heterogeneity in heterogeneous information networks (HINs). The critical advantage of HGNNs is their ability to handle diverse node and edge types in HINs by extracting and utilizing the abundant semantic information for effective representation learning. As a widespread phenomenon in many real-world scenarios, the class-imbalance distribution in HINs creates a performance bottleneck for existing HGNNs. Apart from the node imbalance in quantity, the more crucial and distinctive challenge in HINs is semantic imbalance. Minority classes in HINs often lack diverse and sufficient neighbor nodes, resulting in biased and incomplete semantic information. This semantic imbalance further compounds the difficulty of accurately classifying minority nodes, leading to the performance degradation of HGNNs. However, existing remedies are either tailored for non-graph data or designed specifically for homogeneous graphs, thus overlooking the inherent semantic imbalance in HINs. To tackle the imbalance of minority classes and supplement their inadequate semantics, we present the first method for the semantic imbalance problem in imbalanced HINs named Semantic-aware Node Synthesis (SNS). By assessing the influence on minority classes, SNS adaptively selects the heterogeneous neighbor nodes and augments the network with synthetic nodes while preserving the minority semantics. In addition, we introduce two dedicated regularization approaches for HGNNs that explore the inter-type and intra-type information and constrain the representation of synthetic nodes from both semantic and class perspectives to effectively suppress the potential noises from synthetic nodes, facilitating more expressive embeddings for classification. The comprehensive experimental study demonstrates that SNS consistently outperforms existing methods in different benchmark datasets.
BibTeX
@inproceedings{gao2023semantic,
  author = {Xinyi Gao and Wentao Zhang and Tong Chen and Junliang Yu and Nguyen Quoc Viet Hung and Hongzhi Yin},
  title = {{Semantic-aware Node Synthesis for Imbalanced Heterogeneous Information Networks}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2023},
  url = {https://openreview.net/forum?id=YWwXAapyUW},
}
Figure