Stochastic Graph Recurrent Neural Network

Tijin Yan, Hongwei Zhang, Zirui Li, Yuanqing Xia

Abstract

SGRNN (Stochastic Graph Recurrent Neural Network) is a novel framework for learning representations of dynamic graphs that evolve over time. By decoupling deterministic temporal states from stochastic latent variables and employing semi-implicit variational inference, SGRNN captures complex evolutionary patterns and inherent network uncertainty more effectively than previous methods. Furthermore, the authors introduce a "Fixed Batch Normalization" technique to mitigate the common KL-vanishing problem in sequential variational autoencoders.

Introduction

Most graph neural networks (GNNs) are designed for static snapshots, yet real-world networks—such as social media interactions, traffic flows, or citation networks—are inherently dynamic. In these systems, nodes and edges appear and disappear, and their attributes evolve continuously.

Existing dynamic graph models face three primary hurdles:

  1. Deterministic Bias: Many models are purely deterministic, failing to account for the uncertainty in network evolution.
  2. State Interference: Previous stochastic models often mix deterministic recurrent states with stochastic variables, leading to mutual interference and limited expressive power.
  3. The KL-Vanishing Problem: In sequential Variational Autoencoders (VAEs), the model often learns to ignore stochastic latent variables (posterior collapse), rendering the probabilistic component ineffective.

Methodology

The authors introduce SGRNN and its advanced variant, SI-SGRNN, to address these challenges through several key technical innovations.

State Separation and Task Architectures

Unlike prior work, SGRNN maintains separate deterministic hidden states ($h_t$) and stochastic latent variables ($Z_t$) during the recurrence process. This separation allows the model to track long-term trends without conflating them with the probabilistic uncertainty of the current snapshot. The framework is adaptable to different tasks, specifically link detection (identifying unobserved edges in the current timeframe) and link prediction (predicting future edges).

Architectural diagrams for link detection and link prediction in the SGRNN framework.

Semi-Implicit Variational Inference (SIVI)

Standard VAEs assume latent variables follow a simple Gaussian distribution. SI-SGRNN utilizes SIVI to model complex, non-Gaussian distributions, which better reflect the multi-modal nature of real-world graph data.

Solving KL-Vanishing with FixedBN

To solve the KL-vanishing problem, the authors propose Fixed Batch Normalization (FixedBN). By applying a batch normalization layer with fixed parameters to the inference network, they effectively "force" a lower bound on the KL divergence. This ensures that latent variables always carry meaningful information, preventing posterior collapse.

Impact of Fixed Batch Normalization on KL divergence across various datasets, demonstrating the mitigation of posterior collapse.

Experiments and Results

The model was evaluated on six diverse real-world dynamic graph datasets, including communication networks (Enron, Colab), social interactions (Facebook), and citation networks (HEP-TH, Cora).

SGRNN and SI-SGRNN consistently outperformed state-of-the-art baselines like VGAE, GRNN, and VGRNN across three tasks: link detection, link prediction, and the challenging "new link prediction" (predicting edges between nodes that have never interacted before). Quantitatively, SI-SGRNN achieved an AUC of 0.9763 on the Enron dataset for link detection, significantly higher than the standard GRNN (0.9109). The results on Cora and Social Evolution datasets further demonstrated that capturing changes in node attributes is as critical as modeling topology for accurate dynamic representation.

Conclusion

SGRNN provides a robust framework for dynamic graph representation by treating nodes as distributions rather than fixed points, making it resilient to noise and superior at predicting new links. While the current model uses a Gaussian prior, future work may involve designing more flexible priors or integrating Generative Adversarial Networks (GANs) to further enhance performance.

Summary updated

BibTeX
@inproceedings{yan2020stochastic,
  author = {Tijin Yan and Hongwei Zhang and Zirui Li and Yuanqing Xia},
  title = {{Stochastic Graph Recurrent Neural Network}},
  booktitle = {Neurocomputing},
  year = {2020},
  doi = {10.1016/j.neucom.2022.05.105},
}
Figure