NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Message-Passing State-Space Models: Improving Graph Learning with Modern Sequence Modeling

Andrea Ceni, Alessio Gravina, Carola-Bibiane Schönlieb, Claudio Gallicchio, Davide Bacciu, Moshe Eliasof

TL;DR

Message-Passing State-Space Models (MP-SSM) bridge modern sequence modeling (like S4 and Mamba) and graph representation learning by embedding purely linear state-space recurrences directly into message passing. By moving nonlinearities outside the recurrence into multilayer perceptrons (MLPs), MP-SSM preserves permutation equivariance, allows exact Jacobian-based sensitivity analysis of over-squashing and vanishing gradients, and runs with the efficiency of a simple GCN while matching or beating complex graph transformers.

What Problem Does This Paper Address?

Message-Passing Neural Networks (MPNNs) such as Graph Convolutional Networks (GCNs) excel at local feature aggregation, but they struggle with long-range reasoning. When networks are made deep, two well-known bottlenecks arise:

  1. Vanishing gradients: Repeatedly applying nonlinear activation functions at each layer shrinks gradient signals exponentially.
  2. Over-squashing: Information from an exponentially growing multi-hop neighborhood is compressed into fixed-size node vectors.

Existing remedies—such as graph rewiring, full graph transformers, or serializing graphs into 1D sequences for state-space models (SSMs)—often introduce high computational complexity, require heuristic path orderings, or break structural symmetries like permutation equivariance (the guarantee that reordering node indices does not alter the output). MP-SSM addresses how to bring the long-range modeling strengths of SSMs directly into standard message passing without breaking structural inductive biases or blowing up runtime.

Methods

MP-SSM rethinks the message-passing step by treating multi-hop graph aggregation analogously to a linear recurrent sequence model:

  • Linear Recurrent Aggregation: Within each MP-SSM block, hidden states $X_t$ evolve via a purely linear recurrence driven by the Graph Shift Operator $A$ (e.g., symmetrically normalized adjacency with self-loops) and input features $U_{t+1}$: $$X_{t+1} = A X_t W + U_{t+1} B$$ In static graphs, the input is repeated ($U = [U_1, \dots, U_1]$); in temporal graphs, $U$ represents the dynamic time series.

  • Decoupled Non-linear Readout: Unlike standard MPNNs that interleave activations at each hop, MP-SSM keeps the recurrence linear and applies a graph-agnostic MLP only at the end of the block: $$Y_{t+1} = \text{MLP}(X_{t+1})$$ Stacking $s$ blocks with recurrence depth $k$ yields an effective receptive field of $s \cdot k$ hops.

  • Fast Closed-Form Parallelization: Because the recurrence is strictly linear, an entire block can be unfolded into a closed-form summation. By diagonalizing the GSO ($A = P \Lambda P^{-1}$) and the recurrent weight matrix $W$, the authors formulate an equivalent complex-diagonal recurrence that evaluates all $k$ steps simultaneously in parallel on GPUs.

  • Exact Jacobian Formulation: The absence of intermediate activations allows exact Jacobian computation across steps: $$\frac{\partial X_t^{(i)}}{\partial X_s^{(j)}} = (A^{t-s})_{ij} (W^\top)^{t-s}$$

Datasets

The authors evaluated MP-SSM across several standard static and dynamic graph benchmarks:

  • Synthetic Graph Property Prediction: Diameter, Single-Source Shortest Path (SSSP), and Node Eccentricity.
  • Long-Range Graph Benchmark (LRGB): Peptides-func (classification) and Peptides-struct (regression).
  • Heterophilic Benchmarks: Roman-empire, Amazon-ratings, Minesweeper, Tolokers, and Questions.
  • Spatio-Temporal Traffic & Dynamics: Large-scale traffic datasets (Metr-LA, PeMS-Bay) and smaller dynamic graphs (Chickenpox Hungary, PedalMe London, Wikipedia math).

No new datasets were introduced.

Key Insights and Ideas

  • Nonlinearities are the primary culprit in vanishing gradients on graphs: The authors prove that a standard $k$-layer ReLU GCN vanishes gradient signals at a rate $2^{-k/2}$ faster than an MP-SSM block of depth $k$. Shifting nonlinearities outside the recurrence stabilizes gradient flow dramatically across deep layers.
  • Exact worst-case over-squashing bounds: Using the exact Jacobian, the authors show the minimum local sensitivity across any node pair is lower-bounded by $\frac{2}{|V| + 2|E|} \|W^{t-s}\|$. Graph topologies with severe bottlenecks (such as a chain of $m$ cliques of order $d$) reach sensitivities scaling down to $O(1 / (m d^2))$, demonstrating analytically how structural bottlenecks choke sensitivity unless recurrent weight norms compensate.
  • Native MIMO Processing: While language-oriented SSMs (like S4 or Mamba) commonly rely on Single-Input Single-Output (SISO) channels mixed with projections, MP-SSM naturally supports Multiple-Input Multiple-Output (MIMO) processing over graph feature channels.

Key Results

  • Synthetic Tasks: MP-SSM outperforms GNN and Transformer baselines on long-range synthetic tasks, achieving test $\log_{10}(\text{MSE})$ of -3.235 on Diameter (vs. -0.5188 for A-DGN and 0.7424 for GCN) and -2.972 on Eccentricity (vs. 0.4296 for A-DGN).
  • Spatio-Temporal Forecasting: On Metr-LA, MP-SSM achieves an MAE of 3.17 (outperforming dedicated temporal SSM baselines like GGRNN at 3.88 and GraphSSM-S4 at 3.74). On PeMS-Bay, it achieves 1.62 MAE (vs. 2.34 for GGRNN and 1.98 for GraphSSM-S4).
  • Heterophilic Graphs: MP-SSM secured the best overall average ranking (2.4) across five heterophilic datasets, outperforming specialized heterophily architectures (FSGNN, FAGCN) and Graph Transformers.
  • LRGB & Efficiency: On Peptides-struct, MP-SSM achieved a Mean Absolute Error of 0.2458, beating DRew-GCN (0.2781) and matching Graph Transformers. Computationally, MP-SSM avoids Transformer $O(N^2)$ scaling, maintaining $O(k(|V| + |E|))$ linear cost comparable to standard GCNs while unlocking up to a 1000× speedup over sequential iteration via its parallel implementation.

Limitations and Future Work

  • GPU Memory Footprint in Parallel Mode: The fast closed-form implementation materializes full intermediate tensors of shape $(\text{steps}, n, d)$, trading GPU memory for constant-time parallel inference. For very large graphs or ultra-long recurrence horizons, this can cause Out-Of-Memory (OOM) issues.
  • Eigendecomposition Overhead: The parallel implementation relies on computing the eigenvalues and eigenvectors of the Graph Shift Operator ($A = P \Lambda P^{-1}$), which is computationally expensive for large or dynamically changing graph topologies.
  • Bottlenecks Persist Structurally: While MP-SSM improves gradient flow through linear propagation, structural bottlenecks (e.g., narrow bridges between large cliques) still mathematically bound sensitivity transfer unless paired with structural interventions like graph rewiring.

Summary updated

BibTeX
@inproceedings{ceni2025message,
  author = {Andrea Ceni and Alessio Gravina and Carola-Bibiane Schönlieb and Claudio Gallicchio and Davide Bacciu and Moshe Eliasof},
  title = {{Message-Passing State-Space Models: Improving Graph Learning with Modern Sequence Modeling}},
  booktitle = {UniReps @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=OKjbvWx16V},
}
Figure