Latent Conditional Diffusion-based Data Augmentation for Continuous-Time Dynamic Graph Model

Yuxing Tian, Yiyan Qi, Aiwen Jiang, Qi Huang, Jian Guo

TL;DR

Conda is a novel data augmentation framework for Continuous-Time Dynamic Graphs (CTDGs) that leverages latent conditional diffusion to generate high-quality historical neighbor embeddings. By operating in a compressed latent space and using an alternating training strategy, it significantly improves the performance of various dynamic graph models, particularly in "cold-start" scenarios where historical data is scarce.

What Problem Does This Paper Address?

Continuous-Time Dynamic Graphs (CTDGs) are essential for modeling real-world systems like social networks and e-commerce platforms where every interaction has a precise timestamp. However, these models face two major hurdles:

  1. Noise: Real-world data is often messy due to measurement errors or human mistakes.
  2. Data Scarcity: Many applications suffer from a "cold start" problem where only a few days of interaction data are available, making it difficult for deep learning models to generalize.

While Graph Data Augmentation (GDA) exists, most methods are designed for static graphs. Existing dynamic GDA methods often rely on manual heuristics (like randomly dropping edges) that require heavy domain expertise to tune and lack theoretical guarantees. Furthermore, some are tied to specific model architectures, limiting their versatility.

Methods

The authors introduce Conda, a "sandwich-like" architecture designed to generate enhanced historical neighbor embeddings.

  • VAE Compression: To manage the computational cost of diffusion, Conda first uses a Variational Auto-Encoder (VAE) to compress high-dimensional neighbor embeddings into a low-dimensional latent space.
  • Partial Noising Diffusion: Unlike standard diffusion models that noise an entire variable, Conda employs a partial noising strategy. It splits the latent vector into a "diffused part" and a "conditional part." During the forward process, noise is only added to the diffused part. During the reverse (denoising) process, the conditional part acts as a context anchor, ensuring the generated augmentation remains relevant to the node's actual history.
  • Alternating Training: Because Conda depends on the embeddings produced by the CTDG model itself, it cannot be pre-trained in isolation. The authors use an alternating strategy: first training the CTDG model, then freezing it to train Conda, and finally using Conda to provide augmented data for further CTDG training.
Figure 1: The Alternating Training Process of Conda and the CTDG model. While the Conda module is in the training phase, the other modules are frozen. Conversely, when the Conda module is frozen, other modules are in the training phase

Datasets

The researchers evaluated Conda across six diverse, real-world CTDG datasets:

  • Wiki & Reddit: User-page and user-subreddit interaction networks.
  • MOOC: Student-course interaction network.
  • UCI: Online communication network.
  • LastFM: User-song listening interactions.
  • SocialEvo: Mobile phone proximity network.

To test robustness against data scarcity, they used two different training split ratios: a standard 0.3 ratio and a sparse 0.1 ratio.

Key Insights and Ideas

  • Latent Space is Better for Augmentation: Instead of manipulating the raw graph structure (adding/deleting edges), Conda operates in the latent space. This allows for more subtle, "authentic" variations that are less likely to destroy the underlying transition patterns of the dynamic graph.
  • Contextual Anchoring: The partial noising mechanism is a key innovation. By keeping a portion of the original embedding as a condition, the model avoids generating "hallucinated" history that is too distant from the node's true state.
  • Model Agnostic: Conda is designed as a plug-and-play module. The authors successfully integrated it with seven different state-of-the-art CTDG backbones, including TGN, TGAT, and DyGFormer.
  • Theoretical Rigor: Unlike heuristic GDA, Conda is optimized using the Variational Lower Bound (VLB), providing a solid mathematical foundation for the augmentation process.

Key Results

  • Consistent Performance Gains: Conda improved the Average Precision (AP) of all baseline models across all datasets. In some cases, it provided a performance boost of up to 5%.
  • Superiority in Sparse Data: The benefits were most pronounced in the 0.1 training ratio experiments. While traditional GDA methods like DropEdge often hurt performance in sparse settings by removing critical data, Conda provided stable improvements.
  • Hyper-parameter Sensitivity: The authors found that the "diffused length" ($diff$) is a critical parameter. Performance peaks when only a small portion of the sequence (e.g., $1/8$ of the sampled neighbors) is diffused. If too much of the sequence is noised, the generated embeddings become too disconnected from the current state, leading to a drop in accuracy.
Performance comparison of different noise scales.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Scope of Augmentation: Currently, Conda focuses on augmenting neighbor embeddings. The authors aim to extend the framework to handle edge deletions explicitly in the future.
  • Hyper-parameter Tuning: While Conda reduces the need for domain-specific graph heuristics, it still requires tuning the diffusion length and noise scales to achieve optimal results.

Overall, Conda represents a significant step forward in making dynamic graph models more robust and effective for real-world applications where data is often noisy or limited.

Summary updated

BibTeX
@inproceedings{tian2024latent,
  author = {Yuxing Tian and Yiyan Qi and Aiwen Jiang and Qi Huang and Jian Guo},
  title = {{Latent Conditional Diffusion-based Data Augmentation for Continuous-Time Dynamic Graph Model}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  url = {https://openreview.net/forum?id=CvyskxDB5G},
}
Figure