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