Robust Knowledge Adaptation for Dynamic Graph Neural Networks

Hanjie Li, Changsheng Li, Kaituo Feng, Ye Yuan, Guoren Wang, Hongyuan Zha

TL;DR

Most dynamic graph neural networks blindly update all neighboring nodes whenever a new link appears, which can propagate noise and lead to model collapse. Ada-DyGNN solves this by using reinforcement learning to adaptively decide which nodes actually need an update, ensuring robust knowledge adaptation even in the presence of noisy or outdated information.

What Problem Does This Paper Address?

Dynamic graphs—like social networks or recommendation systems—are constantly evolving as new edges (interactions) are added. Traditional Dynamic Graph Neural Networks (DyGNNs) operate on a simple assumption: when a new link forms between two nodes, the embeddings of those nodes and their neighbors should be updated to reflect this new temporal information.

However, real-world data is messy. As illustrated in the figure below, a new interaction might be accidental (noise) or involve nodes connected by very old, irrelevant links (outdated information).

An illustration of noise and outdated links. A new link is built between v1 and v2. v7 contains noise, and the link to v3 is outdated.

If a model blindly propagates information from a noisy node like $v_7$ to the rest of the graph, the entire representation can become unreliable. The challenge is determining when to propagate knowledge and which nodes should be influenced by a new event.

Methods

The authors propose Ada-DyGNN, a framework consisting of two primary modules that work together to manage knowledge adaptation:

  1. Time-Aware Attentional Aggregating Module: This module uses an attention mechanism combined with a time-decay function. It recognizes that recent interactions are generally more important than older ones. It aggregates information from a node's neighborhood to create an "interaction message" whenever a new link is formed.
  2. Reinforced Neighbor Selection Module: This is the core innovation. Instead of updating every neighbor, an RL agent treats the update process as a sequence decision problem.
  3. State: The concatenation of the current node embedding and the new interaction message.
  4. Action: A binary decision—Update the node's representation or Retain the old one.
  5. Reward: A novel reward function designed to encourage the stability of local structures. It measures the cosine similarity between a node and its neighbors, rewarding actions that maintain a consistent local topology.
The overall architecture of Ada-DyGNN, showing the flow from link creation to the RL-based update decision.

To optimize this discrete selection process, the authors use self-critical training, which helps the model converge faster by using a greedy baseline to normalize rewards.

Datasets

The model was evaluated on three widely-used real-world dynamic graph benchmarks:

  • UCI: A message communication network between students at UC Irvine.
  • Wikipedia: A bipartite graph of users editing Wikipedia pages.
  • Reddit: A bipartite graph of users posting in various subreddits.

The authors also created synthetic variants of the UCI dataset by adding varying levels of Gaussian noise to node embeddings to specifically test robustness.

Key Insights and Ideas

  • Selective Updates as a Gatekeeper: By framing node updates as a decision-making process, the model acts as a filter. It prevents "bad" information from polluting the graph's global state.
  • RL for Discrete Sampling: Standard gradient descent struggles with the "either/or" nature of updating a node. Reinforcement learning is naturally suited for these discrete choices and can capture long-term dependencies in how updates affect the graph over time.
  • Stability as a Reward: The insight that a "good" update should maintain local structural consistency (similarity to neighbors) provides a strong signal for training the RL agent without needing explicit labels for every update.
  • Robustness to Noise: Visualizations show that as noise levels increase, the RL agent becomes more conservative, selecting fewer nodes to update, thereby shielding the model from corruption.

Key Results

Ada-DyGNN consistently outperformed state-of-the-art baselines (like TGN and DyRep) across all datasets in both transductive (predicting links between known nodes) and inductive (predicting links for previously unseen nodes) settings.

  • Performance Boost: On the UCI dataset, Ada-DyGNN improved the Mean Reciprocal Rank (MRR) by a staggering 217% over the next best model (DyRep).
  • Noise Resilience: In robustness tests, when high levels of noise ($\sigma^2 = 0.3$) were introduced, the performance of baselines like TGN dropped by over 30-40%. In contrast, Ada-DyGNN's performance only decreased by about 3.5% to 5%, demonstrating its superior ability to handle "dirty" data.

Limitations and Future Work

The authors identify a few areas for improvement:

  • Granularity of Decisions: Currently, the model makes decisions at the individual node level. Future work could explore hierarchical RL to make higher-level decisions about which regions of a graph require updates.
  • Complex Relationships: The current model assumes a single type of relationship between nodes. Extending the framework to multi-relational graphs (where edges have different meanings) is a logical next step.
  • Assumption of Consistency: The model assumes that neighbors should be similar. In graphs where interactions are highly inconsistent or irrelevant to history, this specific reward mechanism might underperform.

Summary updated

BibTeX
@article{li2024robust,
  author = {Hanjie Li and Changsheng Li and Kaituo Feng and Ye Yuan and Guoren Wang and Hongyuan Zha},
  title = {{Robust Knowledge Adaptation for Dynamic Graph Neural Networks}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2024},
  url = {https://openreview.net/forum?id=Hw36QugVoI},
}
Figure