DyG-Mamba: Continuous State Space Modeling on Dynamic Graphs
Dongyuan Li, Shiyin Tan, Ying Zhang, Ming Jin, Shirui Pan, Manabu Okumura, Renhe Jiang
TL;DR
DyG-Mamba tackles continuous-time dynamic graph modeling by treating irregular event times as control signals that govern memory forgetting in a continuous state-space model. It redefines the SSM core components (Delta t, A, B, C) to enable timespan-aware forgetting and input-dependent robustness with spectral-norm constraints, delivering selective memory and noise filtering. The approach integrates a dynamic-graph encoding pipeline and achieves state-of-the-art results on 12 benchmarks with linear-time/space complexity relative to sequence length, offering scalable, robust long-term temporal modeling for both dynamic link prediction and node classification. This work advances practical, efficient dynamic graph modeling under irregular timestamps and varying downstream tasks.
Abstract
Dynamic graph modeling aims to uncover evolutionary patterns in real-world systems, enabling accurate social recommendation and early detection of cancer cells. Inspired by the success of recent state space models in efficiently capturing long-term dependencies, we propose DyG-Mamba by translating dynamic graph modeling into a long-term sequence modeling problem. Specifically, inspired by Ebbinghaus' forgetting curve, we treat the irregular timespans between events as control signals, allowing DyG-Mamba to dynamically adjust the forgetting of historical information. This mechanism ensures effective usage of irregular timespans, thereby improving both model effectiveness and inductive capability. In addition, inspired by Ebbinghaus' review cycle, we redefine core parameters to ensure that DyG-Mamba selectively reviews historical information and filters out noisy inputs, further enhancing the model's robustness. Through exhaustive experiments on 12 datasets covering dynamic link prediction and node classification tasks, we show that DyG-Mamba achieves state-of-the-art performance on most datasets, while demonstrating significantly improved computational and memory efficiency. Code is available at https://github.com/Clearloveyuan/DyG-Mamba.
