TL;DR
This paper introduces GRAPHSSM, a novel framework that extends State Space Models (SSMs) to temporal graphs from first principles. By integrating graph topology directly into the continuous-time history compression objective via Laplacian regularization, the authors overcome the long-range forgetting of RNNs and the quadratic complexity of Transformers. The resulting model achieves state-of-the-art performance on dynamic network benchmarks while scaling linearly with sequence length.
What Problem Does This Paper Address?
Real-world networks—such as social, financial, and traffic systems—are inherently dynamic. To capture their evolution, researchers typically model them as temporal graphs: sequences of static graph snapshots recorded over discrete time intervals.
Traditionally, sequence backbones like Recurrent Neural Networks (RNNs) or Transformers have been paired with Graph Neural Networks (GNNs) to handle these datasets. However, both face severe scaling bottlenecks:
- RNNs suffer from rapid forgetting, making them poor at capturing long-range dependencies.
- Transformers scale quadratically ($O(n^2)$) in time and memory relative to sequence length, frequently triggering Out-Of-Memory (OOM) errors on long graph sequences.
State Space Models (SSMs), such as S4 or Mamba, have emerged as a powerful linear-time alternative for sequence modeling. However, they are fundamentally designed for independent, unstructured sequences. Extending SSMs to temporal graphs requires a principled way to inject time-varying structural (topological) information into the underlying continuous-time linear dynamical system. Furthermore, because we only observe discrete snapshots, the structural mutations that occur between snapshots remain hidden, creating severe mathematical challenges during discretization.
Methods
The authors build their framework from the ground up using a two-step approach:
- The GHIPPO Abstraction: The authors adapt the foundational HIPPO framework (which optimizes history compression using orthogonal polynomials) for graph-structured data. They introduce a Laplacian-regularized online function approximation objective. This mathematical addition forces the compressed memory of the node features to be smooth across adjacent nodes, naturally embedding the graph's evolving topology into the continuous-time system.
- Mixed Discretization Strategy: Because graph mutations between snapshots are unobserved, standard discretization methods (like Zero-Order Hold) introduce significant approximation bias. To preserve temporal continuity, GRAPHSSM employs a mixed discretization strategy:
- Inter-node mixing: A shallow GNN layer approximates the continuous diffusion process across neighborhoods.
- Intra-node mixing: A specialized module (e.g., 1D Convolution or a gating mechanism) blends features or representations across consecutive snapshots.
The resulting architecture, GRAPHSSM, processes snapshots through depth-$K$ blocks consisting of GNN layers, SSM layers, and residual connections. The authors evaluate three variants based on popular SSM backbones: GRAPHSSM-S4 (SISO configuration), GRAPHSSM-S5 (MIMO configuration), and GRAPHSSM-S6 (selective scan mechanism).
Datasets
The framework was evaluated on six real-world temporal graph benchmarks:
- Small-scale benchmarks: DBLP-3, Brain, Reddit, and DBLP-10.
- Large-scale / Long-range benchmarks: arXiv (35 time steps, ~169k nodes) and Tmall (186 time steps, ~577k nodes).
Tasks focused on temporal node classification, evaluating performance using Micro-F1 and Macro-F1 metrics.
Key Insights and Ideas
- Bridging SSMs and GNNs Mathematically: The addition of the Laplacian regularization term to the HIPPO objective provides an elegant theoretical bridge. When dropping higher-order terms from the continuous-time solution, the equations naturally mirror standard spatial graph convolutions like GCN and GraphSAGE.
- The Importance of the "In-Between": Simply feeding snapshots into an SSM fails because graphs mutate invisibly between observation intervals. The "mixed discretization" step acts as the essential connective tissue that maintains temporal continuity.
- S4 Outperforms Selective Mechanisms (S6): Interestingly, while the selective scan mechanism of S6 (Mamba) dominates language modeling,
GRAPHSSM-S4proved to be the most robust variant for temporal graphs. This suggests that input-dependent selection mechanisms might require alternative formulations to properly harmonize with graph topologies.
Key Results
- Superior Accuracy: GRAPHSSM consistently outperformed strong snapshot-based baselines like ROLAND and SpikeNet. On the topology-heavy Reddit dataset,
GRAPHSSM-S4achieved a Micro-F1 score of 49.21%, notably outperforming ROLAND (44.22%). - Long-Range Scalability: On large-scale, long-sequence datasets (arXiv and Tmall), advanced baselines like STAR and tNodeEmbed suffered from OOM errors. GRAPHSSM handled these long sequences efficiently, achieving state-of-the-art results (e.g., 66.29% Micro-F1 on Tmall) due to its linear $O(VLDN)$ FLOP complexity.
Limitations and Future Work
- Discrete-Time Limitation: The current framework is strictly tailored for discrete-time temporal graphs (DTTGs). Extending it to continuous-time temporal graphs (CTTGs)—where interactions arrive as irregular event streams—is challenging because event streams provide complete longitudinal data but are highly lossy latitudinally (states of non-participating nodes are unobserved during an event).
- Approximated Discontinuity: The mixing module acts as an empirical approximation to handle unobserved mutations. The authors note that exploring inherently smoother Laplacians or alternative regularization formulations could help mitigate these piecewise discontinuities entirely.
Summary updated