Abstract
Heterogeneous Graphs (HGs) are ubiquitous in real-world applications, representing complex relationships between diverse node types. However, traditional Graph Neural Networks (GNNs) often struggle with HGs due to structural information loss during aggregation and feature space interference when mapping different node types into a single space. We present T-GNN (Tree structure-aware Graph Neural Network), a novel framework that explicitly preserves hierarchical "many-to-one" relationships. By combining GNNs with Gated Recurrent Units (GRUs) for hierarchical aggregation and employing relational metric learning for type-specific embedding spaces, T-GNN achieves state-of-the-art performance in clustering, classification, and link prediction tasks across multiple benchmark datasets.
Introduction
Real-world data, such as academic networks or e-commerce graphs, are naturally modeled as Heterogeneous Graphs (HGs) where nodes and edges possess distinct types. While GNNs have revolutionized representation learning on homogeneous graphs, their application to HGs faces two critical challenges:
- Structural Loss: Standard aggregation methods often fail to capture the specific multi-hop path correlations and hierarchical dependencies inherent in HGs. Even meta-path-based approaches may overlook intermediate "relay" nodes, leading to a loss of fine-grained structural context.
- Feature Space Conflict: Forcing disparate node types (e.g., "Venues" and "Papers") into a unified feature space can lead to distribution interference. Proximity required for one task may inadvertently disrupt the distribution necessary for another, degrading overall model performance.
Methodology
Integrated Hierarchical Aggregation
T-GNN addresses structural loss by identifying and leveraging Hierarchical Tree Schemas. Unlike flat neighborhood aggregation, T-GNN treats the neighborhood of a root node as a tree structure. For instance, in an academic graph, a "Venue" node can be viewed as the root of a tree with "Papers" as intermediate nodes and "Terms" as leaves.
The model employs a hybrid architecture combining spatial and temporal processing:
- Spatial Aggregation: A GNN aggregates information within each level of the tree.
- Temporal Evolution: A Gated Recurrent Unit (GRU) processes the aggregated representations across levels, moving from leaves to the root. This sequential processing ensures that the depth and order of relationships are preserved, capturing the "many-to-one" semantics that meta-paths often miss.
Relational Metric Learning
To mitigate feature space conflict, T-GNN embeds each node type into its own type-specific space. This approach prevents "distribution dampening," where the similarity of one node type forces unrelated nodes of another type to overlap.
The framework utilizes candidate metrics—such as Bilinear (multiplicative) or Perceptron (additive)—to compute similarities between nodes of different types. The model is optimized using a relation-aware graph context loss with negative sampling, ensuring that nodes related through specific schemas are appropriately positioned in their respective metric spaces.
Experimental Results
T-GNN was evaluated on three major datasets: DBLP (academic), IMDB (movies), and YELP (business reviews).
- Clustering and Classification: T-GNN demonstrated a relative improvement of 1.7% to 10.7% in clustering (NMI/ARI) and 1.4% to 2.2% in multi-class classification over baselines like HAN and HetGNN.
- Link Prediction: On the DBLP dataset, T-GNN achieved an AUC of 0.824, significantly outperforming the next best model, HetGNN (0.760).
- Visualization: t-SNE analysis showed that T-GNN produces clearer clusters with distinct boundaries between research areas, whereas models like GraphSAGE or Metapath2vec exhibited significant overlap.
Conclusion
T-GNN introduces a robust approach to heterogeneous graph representation learning by prioritizing hierarchical tree structures and type-specific metric spaces. By moving beyond flat aggregation and unified embeddings, the model effectively captures the complex semantics of HGs. Future work will focus on automating schema discovery and extending the framework to dynamic, evolving graphs.
Summary updated