Gaussian Embedding of Temporal Networks
Raphaël Romero, Jefrey Lijffijt, Riccardo Rastelli, Marco Corneli, Tijl De Bie
TL;DR
This work addresses the challenge of representing continuous-time temporal networks with embeddings that quantify uncertainty in node trajectories. It introduces TGNE, a Bayesian approach that embeds nodes as piecewise Gaussian trajectories by combining a Gaussian Random Walk prior with variational inference within the Continuous-time Latent Position Model framework and edge likelihoods modeled by Poisson processes. The key contributions are (i) a scalable, uncertainty-aware temporal embedding method, (ii) a mean-field variational inference scheme for critical points, (iii) analysis of hyperparameter effects on uncertainty and reconstruction, and (iv) open-source implementation and comprehensive experiments demonstrating competitive reconstruction and meaningful uncertainty insights. The approach advances temporal network analysis by providing interpretable, uncertainty-aware embeddings suitable for tasks like reconstruction and anomaly detection in continuous time.
Abstract
Representing the nodes of continuous-time temporal graphs in a low-dimensional latent space has wide-ranging applications, from prediction to visualization. Yet, analyzing continuous-time relational data with timestamped interactions introduces unique challenges due to its sparsity. Merely embedding nodes as trajectories in the latent space overlooks this sparsity, emphasizing the need to quantify uncertainty around the latent positions. In this paper, we propose TGNE (\textbf{T}emporal \textbf{G}aussian \textbf{N}etwork \textbf{E}mbedding), an innovative method that bridges two distinct strands of literature: the statistical analysis of networks via Latent Space Models (LSM)\cite{Hoff2002} and temporal graph machine learning. TGNE embeds nodes as piece-wise linear trajectories of Gaussian distributions in the latent space, capturing both structural information and uncertainty around the trajectories. We evaluate TGNE's effectiveness in reconstructing the original graph and modelling uncertainty. The results demonstrate that TGNE generates competitive time-varying embedding locations compared to common baselines for reconstructing unobserved edge interactions based on observed edges. Furthermore, the uncertainty estimates align with the time-varying degree distribution in the network, providing valuable insights into the temporal dynamics of the graph. To facilitate reproducibility, we provide an open-source implementation of TGNE at \url{https://github.com/aida-ugent/tgne}.
