DepTGL: A Parallel Framework for Memory-based TGNN Training with Adaptive Temporal Data Dependency Management

Linfang Chen, Zhen Song, Lei Liu, Yu Gu, Yushuai Li, Yanfeng Zhang, Lizhen Cui, Ge Yu, Tianyi LiarXiv 2026

TL;DR

DepTGL is a scalable distributed training framework for memory-based Temporal Graph Neural Networks (M-TGNNs) that resolves the performance bottlenecks caused by strict chronological data dependencies. By combining offline dependency tracking with adaptive cache synchronization and load-aware event pruning, it achieves an average 4.99× speedup over state-of-the-art baselines without sacrificing model accuracy.

What Problem Does This Paper Address?

Temporal Graph Neural Networks (TGNNs) are powerful tools for modeling real-world dynamic systems like social networks, financial transaction streams, and mobility patterns. Memory-based TGNNs (M-TGNNs), such as TGN and JODIE, achieve state-of-the-art accuracy by maintaining recursively updated node states (memories) that capture fine-grained interaction histories.

However, scaling M-TGNNs to large graphs via distributed training is notoriously difficult. Because a node's state depends strictly on the chronological order of its past interactions, processing an event on one worker often requires data from past events processed by a completely different worker. Existing distributed GNN frameworks either focus purely on spatial partitioning (ignoring temporal order) or enforce rigid, frequent global synchronization barriers. This results in massive communication overhead and severe load imbalances (stragglers) due to the highly skewed nature of real-world temporal data streams.

Methods

DepTGL restructures temporal-dependency management from a data-centric perspective using three core runtime components:

  1. Offline Mixed-Batch Construction: Instead of fetching remote states on the fly during training, DepTGL uses a backward dependency scanner within a fixed synchronization window. It traces dependencies to identify which historical remote events are needed to reconstruct states locally. It then blends these into worker-specific "mixed batches" containing both target training events and auxiliary replay events used solely to advance cached states in the correct chronological order.
  2. Gradient-Aware Dynamic Cache Synchronization: Rather than refreshing remote caches at every single boundary, DepTGL tracks the Exponential Moving Average (EMA) of gradient norms. As training stabilizes and gradient changes become smaller, the framework dynamically skips unnecessary cache refreshes, drastically lowering communication costs.
  3. Load-Aware Temporal Data Pruning: Real-world graph data is bursty and skewed, causing certain workers to become computational bottlenecks. DepTGL monitors batch execution times via an EMA. If a worker experiences a heavy-load spike, the framework selectively prunes pure auxiliary replay events before the forward pass, mitigating the straggler effect while keeping all target training events intact.
Fig. 3. Overview of the DepTGL architecture.

Datasets

The authors evaluated DepTGL on six diverse, public real-world temporal graph datasets from the SNAP repository:

  • AskUbuntu & MathOverflow: Large interaction networks spanning thousands of days.
  • Reddit & Wikipedia: Bipartite user-page interaction networks.
  • MOOC: User-action streams on an online course platform.
  • lastfm: A highly dense music-listening interaction stream.

Key Insights and Ideas

  • Moving Dependencies Off the Critical Path: The core "aha moment" is realizing that workers do not need to constantly communicate to fetch fresh remote states. Instead, they can use historical event data to reconstruct those states locally via timestamp-ordered replay.
  • Gradients as a Proxy for Cache Freshness: Linking cache synchronization frequency to model convergence is a highly effective optimization. Early in training, weights change rapidly, making fresh states vital. Later on, model updates stabilize, meaning local cached states remain safe to reuse longer.
  • Asymmetric Pruning for Load Balancing: Traditional load balancing requires expensive graph re-partitioning. DepTGL avoids this by dynamically dropping auxiliary computation (replay events) on overloaded workers. Because these dropped events do not contribute directly to the loss function, accuracy is preserved while stragglers are eliminated.

Key Results

  • Substantial Speedups: DepTGL achieves an average epoch-time speedup of 4.99× across all datasets and models compared to state-of-the-art baselines, reaching up to 7.32× over standard Distributed Data Parallel (Vanilla DDP) training.
  • Drastic Communication Reduction: On the AskUbuntu dataset, DepTGL slashed the communication share of total runtime from over 80% down to just 6.6%, reducing the average synchronization count from 3,215 to 26.1 per epoch.
  • Preserved Accuracy: The framework maintains comparable test AUC and Average Precision (AP) to standard training methods, proving that its controlled approximations do not degrade learning performance.
Fig. 1. Motivating case study of communication-cache trade-offs.

Limitations and Future Work

While DepTGL introduces highly effective adaptive thresholds ($\tau_g$ for gradients and $\tau_c$ for load control), these hyperparameters currently require manual tuning around a reference configuration to perfectly balance cache freshness and execution speed. Extreme values can lead to overly aggressive pruning or insufficient skew mitigation. The authors suggest that future work could explore fully automated, self-tuning hyperparameter policies that adapt dynamically to changing workloads without manual intervention.

Summary updated

BibTeX
@misc{chen2026deptgl,
  author = {Linfang Chen and Zhen Song and Lei Liu and Yu Gu and Yushuai Li and Yanfeng Zhang and Lizhen Cui and Ge Yu and Tianyi Li},
  title = {{DepTGL: A Parallel Framework for Memory-based TGNN Training with Adaptive Temporal Data Dependency Management}},
  year = {2026},
  eprint = {2608.16305},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.16305},
}
Figure