Introduction
Temporal Graph Neural Networks (TGNNs) have become essential for modeling evolving networks, such as social interactions, financial transactions, and recommendation systems. However, most existing TGNNs are limited by a focus on pairwise interactions (e.g., Node A interacting with Node B). This approach fails to capture the "group dynamics" inherent in real-world data, where multiple entities often interact simultaneously in higher-order structures like cliques or group chats.
Furthermore, capturing long-range dependencies in temporal graphs often leads to high computational costs and "memory staleness" due to the exponential growth of historical data. To address these challenges, we present HTGN (Higher-order structure Temporal Graph Neural Network), a framework that dynamically identifies and leverages group structures to improve both expressiveness and efficiency.
Methodology: The HTGN Framework
HTGN shifts the modeling paradigm from individual nodes to higher-order structures. The framework is built upon three core components designed to process event streams into meaningful embeddings.
1. Dynamic Hyperedge Construction
Unlike static hypergraph models, HTGN constructs hyperedges on the fly. For homogeneous graphs, it identifies maximal cliques within short temporal snapshots. For bipartite graphs, it groups nodes that interact with a common target within a specific time window. This temporal constraint ensures that identified structures represent active group interactions rather than coincidental overlaps.
2. Higher-order Structure Memory (HSM)
Traditional TGNNs maintain a memory vector for every node, which scales poorly. HTGN introduces a memory module that assigns units to higher-order structures. By tracking the evolution of groups rather than isolated nodes, HSM reduces the total number of memory units required and provides a more stable context for link prediction.
3. Hypergraph Embedding and Prediction
The model employs hypergraph convolutions to facilitate message passing between nodes and their associated hyperedges. This allows HTGN to capture multi-hop neighborhood information more efficiently than standard pairwise methods. Mathematically, HTGN is proven to be strictly more expressive than traditional pairwise TGNNs.
Experimental Evaluation
HTGN was evaluated against state-of-the-art baselines (including TGN, NAT, and TGAT) across ten diverse real-world datasets. These included homogeneous social and email networks (UCI, Enron) and bipartite interaction graphs (Reddit, Wiki, LastFM). The evaluation focused on Mean Reciprocal Rank (MRR) for link prediction and computational efficiency.
Results and Discussion
HTGN demonstrated superior performance, outperforming all baselines on 9 out of 10 datasets with an average improvement of 5% over the next best method.
Efficiency and Scalability
A significant advantage of HTGN is its computational efficiency. By aggregating multiple edge features into single hyperedge representations, the model effectively compresses the graph's history.
As shown in the figure above, HTGN (represented by the red marker) consistently occupies the bottom-left region of the memory-time trade-off space. On the tgbl-coin and tgbl-wiki datasets, HTGN achieved a 30% to 50% reduction in GPU memory consumption compared to models like TGN and TNCN. Moreover, HTGN maintained scalability on massive datasets where several subgraph-based baselines encountered out-of-memory (OOM) errors or timeouts.
Conclusion
HTGN represents a significant step forward in temporal graph modeling by prioritizing higher-order structures. By combining dynamic hyperedge construction with a group-level memory module, the framework achieves state-of-the-art accuracy while drastically reducing memory overhead. Future work will explore the potential of these structural insights in developing Temporal Graph Foundation Models capable of zero-shot generalization across diverse network types.
Summary updated