Learning to Evolve on Dynamic Graphs (Student Abstract)

Xintao Xiang, Tiancheng Huang, Donglin Wang

Abstract

Dynamic graphs, where structure and attributes evolve over time, present a significant challenge for traditional Graph Neural Networks (GNNs). Existing methods often rely on Recurrent Neural Networks (RNNs) to capture temporal dynamics, which can suffer from poor generalization and optimization difficulties. This paper introduces LEDG (Learning to Evolve on Dynamic Graphs), a model-agnostic framework that employs gradient-based meta-learning and feature disentanglement. By separating node representations into intrinsic structural and temporal components, LEDG enables GNNs to rapidly adapt to evolving graph states. Experimental results on link prediction tasks across synthetic and real-world datasets demonstrate that LEDG significantly outperforms state-of-the-art dynamic graph models.

Introduction

Most real-world graphs—such as social networks, transaction logs, and internet traffic—are dynamic. To effectively learn from these structures, models must capture both the "what" (graph topology) and the "when" (temporal patterns). Currently, Recurrent Neural Networks (RNNs) are the standard for handling temporal aspects. However, RNNs struggle with long-range dependencies, are difficult to parallelize, and are prone to overfitting when updating model parameters. Existing "model-based" meta-learning approaches often lack the generalization power needed to adapt to future, unseen graph states.

Methods

The authors propose LEDG, a model-agnostic framework compatible with standard Message Passing Graph Neural Networks (e.g., GCN or GAT). LEDG introduces two core innovations:

Feature Disentanglement

Instead of a single embedding, LEDG splits node representations into two distinct parts:

  1. Graph Intrinsic Embeddings ($H_G$): Capturing structural properties.
  2. Time Embeddings ($H_T$): Capturing temporal context.

This is achieved via a "Time Adapter"—an MLP with an attention mechanism—that masks original embeddings to separate these signals. To ensure $H_T$ contains relevant temporal information, a Time Predictor regresses the actual timestamp from the embedding, acting as a powerful regularizer that prevents "feature interference."

Gradient-Based Meta-Learning

Rather than using an RNN to store history, LEDG employs an episodic training strategy inspired by Model-Agnostic Meta-Learning (MAML).

  • Inner Loop: The model uses a small window of historical snapshots to perform quick gradient updates, adapting the GNN and Time Adapter to the current temporal context.
  • Outer Loop: The model is evaluated on a target snapshot. The resulting "meta-loss" updates global initialization parameters, ensuring the model can quickly adapt to any point in the graph's evolution.
Overview of the LEDG framework showing the inner and outer loop meta-learning process and feature disentanglement.

Results and Discussion

LEDG was evaluated on three benchmark datasets: SBM (synthetic community structures), UCI (student communication network), and AS (internet topology). The primary task was link prediction, measured by Mean Average Precision (MAP) and Mean Reciprocal Rank (MRR).

Performance comparison of LEDG against various baselines on link prediction tasks across three datasets.

As shown in the results table, LEDG-GCN achieved massive gains on real-world data. On the AS dataset, it reached a MAP of 0.1932, compared to just 0.0019 for a vanilla GCN. LEDG consistently outperformed specialized baselines like EvolveGCN-O across almost all metrics on the UCI and AS datasets. Interestingly, GCNs generally performed better than GATs within this framework, suggesting that simpler architectures may generalize better when paired with meta-learning in dynamic settings.

Conclusion

LEDG demonstrates that learning how to update via gradients is more robust than compressing graph history into an RNN's hidden state. By disentangling time from structure, the model improves generalization to future snapshots. Future work should address the computational overhead of nested meta-learning loops and explore performance on long-term forecasting and diverse tasks like node classification.

Summary updated

BibTeX
@inproceedings{xiang2022learning,
  author = {Xintao Xiang and Tiancheng Huang and Donglin Wang},
  title = {{Learning to Evolve on Dynamic Graphs (Student Abstract)}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i11.21682},
}
Figure