Discrete-time Temporal Network Embedding via Implicit Hierarchical Learning in Hyperbolic Space

Menglin Yang, Min Zhou, Marcus Kalander, Zengfeng Huang, Irwin KingKDD 2021 · DOI

Abstract

Representation learning over temporal networks has drawn considerable attention in recent years. Efforts are mainly focused on modeling structural dependencies and temporal evolving regularities in Euclidean space which, however, underestimates the inherent complex and hierarchical properties in many real-world temporal networks, leading to sub-optimal embeddings. To explore these properties of a complex temporal network, we propose a hyperbolic temporal graph network (HTGN) that fully takes advantage of the exponential capacity and hierarchical awareness of hyperbolic geometry. More specially, HTGN maps the temporal graph into hyperbolic space, and incorporates hyperbolic graph neural network and hyperbolic gated recurrent neural network, to capture the evolving behaviors and implicitly preserve hierarchical information simultaneously. Furthermore, in the hyperbolic space, we propose two important modules that enable HTGN to successfully model temporal networks: (1) hyperbolic temporal contextual self-attention (HTA) module to attend to historical states and (2) hyperbolic temporal consistency (HTC) module to ensure stability and generalization. Experimental results on multiple real-world datasets demonstrate the superiority of HTGN for temporal graph embedding, as it consistently outperforms competing methods by significant margins in various temporal link prediction tasks. Specifically, HTGN achieves AUC improvement up to 9.98% for link prediction and 11.4% for new link prediction. Moreover, the ablation study further validates the representational ability of hyperbolic geometry and the effectiveness of the proposed HTA and HTC modules.

Introduction: The Geometry of Complex Networks

Most real-world networks—ranging from social media connections to citation indices—are not "flat." Instead, they exhibit two critical properties: they are hierarchical (organized in tree-like structures) and scale-free (following a power-law degree distribution where a few hubs have many connections).

Degree distribution of real-world networks showing scale-free properties.

Standard embedding techniques typically map these networks into Euclidean space. However, Euclidean space expands polynomially, while trees expand exponentially. This mismatch causes significant "distortion" when trying to represent complex hierarchies. Hyperbolic geometry provides a natural solution: its volume grows exponentially with its radius, perfectly matching the growth of hierarchical data and allowing for high-fidelity embeddings in lower dimensions.

The Hyperbolic Temporal Graph Network (HTGN)

To address the challenges of evolving hierarchical networks, we introduce the Hyperbolic Temporal Graph Network (HTGN). HTGN operates on discrete-time snapshots of a graph, leveraging hyperbolic geometry to capture both structural and temporal dependencies.

The overall architecture of HTGN, featuring HGNN, HTA, HGRU, and HTC modules.

Core Components

The architecture consists of four primary modules:

  1. HGNN (Hyperbolic Graph Neural Network): This layer extracts topological features by performing graph convolutions directly in the Poincaré ball model, preserving structural hierarchies.
  2. HTA (Hyperbolic Temporal Attention): To prevent the "forgetting" issue common in recurrent models, HTA uses a wrapped attention mechanism. This allows the model to look back across a window of historical states, weighting past snapshots based on their relevance to the current state.
  3. HGRU (Hyperbolic Gated Recurrent Unit): This module captures temporal evolution. For computational efficiency, operations are performed in the tangent space—a flat space that locally approximates the hyperbolic manifold—before projecting back to the manifold.
  4. HTC (Hyperbolic Temporal Consistency): This novel loss function ensures temporal smoothness. By penalizing erratic jumps between time steps, HTC ensures that a node's position in the latent space evolves gradually, improving stability and generalization.

Experimental Results and Insights

HTGN was evaluated on six real-world datasets, including academic citation networks (HepPh, COLAB) and social networks (Facebook). The model consistently outperformed strong baselines like DySAT and EvolveGCN.

  • Performance Gains: HTGN achieved AUC improvements of up to 9.98% for link prediction and 11.4% for new link prediction.
  • Dimensionality Efficiency: Hyperbolic embeddings are remarkably dense. An 8-dimensional hyperbolic embedding can outperform a 16-dimensional Euclidean embedding, making it ideal for resource-constrained environments.
  • Computational Efficiency: Despite the geometric complexity, HTGN is significantly faster than attention-heavy models. For instance, on the Facebook dataset, HTGN trained over 20 times faster per epoch than DySAT.
  • Ablation Study: The HTC module proved critical; removing it led to performance drops of up to 19%, highlighting the importance of temporal smoothness in latent representations.

Conclusion

HTGN demonstrates that hyperbolic geometry is a powerful tool for modeling the implicit hierarchies of temporal networks. By combining hyperbolic graph convolutions with temporal attention and consistency mechanisms, the framework achieves state-of-the-art performance with high efficiency. Future work will explore extending these concepts to continuous-time models and alternative hyperbolic manifolds like the Lorentz model.

Summary updated

BibTeX
@inproceedings{yang2021discrete,
  author = {Menglin Yang and Min Zhou and Marcus Kalander and Zengfeng Huang and Irwin King},
  title = {{Discrete-time Temporal Network Embedding via Implicit Hierarchical Learning in Hyperbolic Space}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467422},
}
Figure