TL;DR
This paper introduces the Temporal Graph AutoEncoder (TGAE), a novel method for learning representations of dynamic graphs. TGAE uses Neural Ordinary Differential Equations (Neural ODEs) to model node embeddings as a continuous, history-independent dynamical system, allowing it to capture long-term temporal patterns and extrapolate beyond observed data. This approach offers a more principled way to understand and predict the evolution of complex networks compared to existing event-driven methods.
What Problem Does This Paper Address?
Dynamic graphs, which represent evolving relationships over time (like social networks or communication patterns), are crucial for many applications. Existing methods for learning representations of these graphs often rely on updating node embeddings incrementally with each new event. While this captures recent interactions, it tends to focus on short-term correlations and struggles to model the underlying, continuous dynamics of the system. It's also unclear how well these "history-dependent" embeddings can generalize to predict future interactions beyond the observed data. This paper aims to address this by developing a "history-free" approach that models the graph's dynamics as a continuous system, enabling better long-term prediction and understanding.
Methods
The core of TGAE is its use of Neural ODEs. Instead of updating embeddings based on discrete events, TGAE treats node embeddings as continuous trajectories governed by a global vector field. This vector field is parameterized by a neural network and learns the underlying dynamics of the entire graph. The model is trained using a self-supervised approach based on an inhomogeneous Poisson process, where the rate of interactions between nodes is determined by the distance between their latent embeddings. This allows the model to learn from observed events without explicitly conditioning on the event history. The model also incorporates time information using Fourier features to capture periodic patterns. For generating new events, TGAE uses a decoder that assigns a Poisson rate to node pairs based on their current embeddings, enabling simulation of future interactions.
Datasets
The paper evaluates TGAE on two types of datasets:
- Synthetic datasets: Three scenarios were created to test specific capabilities:
- Time-varying interaction rates.
- Periodic community switching.
- Communities merging and splitting over time.
- High School Contact Network Dataset: A real-world dataset of face-to-face interactions among students in a French high school, collected at a 20-second resolution. This dataset was used to observe how TGAE captures temporal patterns like class breaks and lunch periods.
Key Insights and Ideas
- History-Free Dynamics: The most significant insight is the shift from history-dependent, jump-driven updates to history-free, continuous dynamics using Neural ODEs. This allows for a more principled modeling of the underlying system evolution.
- Extrapolation Power: By learning a continuous dynamical system, TGAE demonstrates an ability to extrapolate and predict interactions beyond the observed training horizon, a key limitation of many existing methods.
- Macroscopic Pattern Capture: TGAE effectively captures macroscopic temporal patterns, such as fluctuating interaction rates and dynamic community structures, as shown in both synthetic and real-world experiments.
- Latent Space as a Dynamical System: The paper frames node embeddings not just as static representations but as points in a latent space that evolve according to learned differential equations, providing a richer understanding of network dynamics.
Key Results
- Synthetic Data: TGAE successfully captured time-varying interaction rates, with embeddings contracting during high-rate periods and expanding during low-rate periods. It accurately tracked periodic community structures, achieving high Adjusted Rand Index (ARI) scores. The model also demonstrated its ability to capture merging and splitting community dynamics, with embeddings visually merging and separating as expected.
- High School Data: On the high school contact network, TGAE learned trajectories that reflected temporal patterns like class breaks and lunch periods. It was able to separate students into their respective classes and also capture cross-class interactions during social times, demonstrating its ability to model complex social dynamics.
Limitations and Future Work
- Assumption of Smoothness: The paper acknowledges that the assumption of smooth dynamics might not hold in all scenarios, especially when abrupt changes occur due to sudden events.
- Scalability: The current model's parameters scale linearly with the number of nodes, which limits its scalability to very large graphs. The authors suggest that incorporating initial node features could help address this.
- Macroscopic vs. Microscopic Dynamics: TGAE focuses on learning macroscopic, learnable patterns and cannot capture microscopic, unpredictable events.
- Future Directions: The authors suggest exploring the theoretical effects of adding jumps to the ODE dynamics (e.g., via Graph Neural Networks) and extending the model to capture uncertainty using stochastic differential equations and variational inference.
Summary updated