Abstract
Real-world networks are characterized by heterogeneous entities, temporal dynamics, and high-order group interactions. Traditional Graph Neural Networks (GNNs) often struggle to capture these complexities simultaneously, frequently oversimplifying group interactions into pairwise relationships. We present the Heterogeneous Temporal Hypergraph Neural Network (HTHGN), a framework that utilizes automated hyperedge construction and hierarchical attention to model high-order semantic relationships. By incorporating a proximity-preserving contrastive learning objective, HTHGN maintains fundamental topological structures while excelling at link prediction across diverse datasets.
Introduction
Most contemporary networks—ranging from academic citation graphs to business review platforms—are inherently complex. They consist of multiple node types (e.g., authors, papers, venues), evolve continuously over time, and feature interactions involving groups of entities rather than just pairs. While standard GNNs excel at pairwise modeling, they often fail to capture the "wider receptive field" provided by group-level interactions. Conversely, existing hypergraph methods are typically restricted to static or homogeneous data.
HTHGN addresses these gaps by introducing a unified framework for Heterogeneous Temporal Hypergraphs (HTHGs). It resolves the "structural ambiguity" problem—where focusing exclusively on high-order modeling can obscure basic connectivity—through a multi-scale approach that balances complex group dynamics with the underlying network skeleton.
Methodology
The HTHGN architecture consists of three primary stages: hyperedge construction, multi-scale message passing, and contrastive optimization.
Automated Hypergraph Construction
To move beyond manual "meta-path" engineering, HTHGN employs an automated strategy for building hyperedges. The model utilizes $k$-hop and $k$-ring structures to define group boundaries based on topological distance.
- $k$-hop: Includes all nodes within a specific distance from a central node.
- $k$-ring: Focuses specifically on nodes at an exact distance $k$, isolating specific high-order semantic signals that might be diluted in a broader hop.
To ensure computational efficiency, the framework uses $P$-uniform sampling, which fixes the number of nodes per hyperedge to $P$. This prevents the exponential growth of graph components while maintaining a consistent representation space across different scales.
Hierarchical Attention and Contrastive Learning
Information is aggregated through a dual-attention mechanism. Heterogeneous Attention processes snapshots of the graph to integrate diverse node and hyperedge types. Subsequently, Temporal Attention utilizes position encodings to capture the evolution of node states across time steps, similar to the mechanisms found in Transformers.
A critical innovation is the Proximity-Preserving Contrastive head. By maximizing consistency between correlated node pairs, the model ensures that the pursuit of high-order features does not degrade the representation of basic pairwise links. This "safety rail" allows the model to learn complex semantics while preserving the fundamental network skeleton.
Experimental Evaluation
The model was evaluated on three benchmark datasets: Yelp (business reviews), DBLP (computer science bibliography), and AMiner (academic social network). HTHGN demonstrated superior performance in link prediction tasks, particularly in predicting "new links" that have never appeared before.
On the Yelp dataset, HTHGN achieved an AUC of 74.04%, a significant improvement over the previous state-of-the-art HTGNN (70.43%). The model maintained a stable average rank of 1.00 across all metrics and datasets compared to 16 other baselines. Ablation studies confirmed that both the hypergraph construction and the contrastive loss are essential; removing either component led to a marked decrease in predictive accuracy, proving that both high-order modeling and low-order preservation are necessary for robust representation learning.
Conclusion
HTHGN represents a significant step forward in modeling complex, evolving networks. By treating hyperedges as flexible receptive fields and balancing them with low-order structural preservation, the framework achieves state-of-the-art results on heterogeneous temporal data. Future work will focus on improving the interpretability of high-order interactions and scaling the construction process for massive, billion-node graphs.
Summary updated