Introduction
State Space Models (SSMs), such as Mamba, have recently gained prominence as efficient, linear-time alternatives to Transformers for modeling long sequences. However, a significant limitation persists when applying these models to high-dimensional data like images or event streams: they typically rely on rigid, one-dimensional scanning patterns. These "data-blind" paths—such as unrolling pixels into a 1D string or using fixed multi-directional scans—fail to account for the inherent spatial relationships within the data. If two semantically related features are spatially distant and do not fall on the same scanning line, the model struggles to capture their dependency.
GG-SSMs (Graph-Generating State Space Models) address this by moving beyond fixed scanning. Instead, they dynamically construct a graph based on feature relationships, allowing information to propagate along a data-adaptive topology.
Methodology: Dynamic Graph-Based Propagation
The core innovation of GG-SSMs lies in replacing predetermined scan paths with a three-step dynamic graph approach:
- Graph Construction: The model treats input elements (e.g., image patches) as nodes in a graph. It computes a dense web of potential connections by calculating the dissimilarity between nodes using cosine distance.
- Chazelle’s MST Algorithm: To maintain the linear computational complexity characteristic of SSMs, the model avoids processing the full dense graph. Instead, it employs Chazelle’s algorithm to extract a Minimum Spanning Tree (MST). This tree identifies the most efficient "highways" for information flow, ensuring a unique path exists between any two nodes while operating in near-linear time.
- State Propagation: Information is propagated along the edges of the MST. In the forward pass, states move from the leaves toward the root; in the backward pass, gradients flow in reverse. This mechanism allows every feature to interact with every other feature through paths defined by the data's own structure.
Experimental Results
The authors evaluated GG-SSMs across 11 diverse datasets, spanning computer vision, event-based sensing, and time series forecasting.
Image Classification and Efficiency
On the ImageNet-1K benchmark, GG-SSMs demonstrated superior performance compared to traditional CNNs, Transformers, and contemporary SSMs. The GG-SSM-B variant achieved a 84.9% top-1 accuracy, outperforming VMamba-B (83.9%) and Swin-B (83.5%). Notably, the model maintains high efficiency; the Tiny version (GG-SSM-T) requires only 4.4 GFLOPs, which is lower than VMamba-T (4.9 GFLOPs) despite achieving higher accuracy.
Versatility Across Modalities
Beyond standard image classification, GG-SSMs set new benchmarks in several specialized tasks:
- Optical Flow: On the KITTI-15 benchmark, the model achieved a record-low error rate of 2.77%.
- Event-Based Sensing: In eye-tracking tasks (INI-30 dataset), it reached a centroid error of 3.11, surpassing specialized models like Retina and 3ET.
- Time Series Forecasting: Across six benchmarks (e.g., Weather, Traffic, Solar-Energy), GG-SSMs consistently outperformed state-of-the-art models like iTransformer and PatchTST, proving that graph-based state evolution is effective even for 1D temporal data.
Conclusion
GG-SSMs represent a significant step forward in state-space modeling by breaking the 1D scanning barrier. By utilizing a data-dependent topology, the model captures complex, non-local dependencies that fixed-path SSMs miss. This approach proves that the mathematical elegance of state-space equations can be successfully applied to dynamic graph structures, offering a powerful and efficient framework for a wide array of high-dimensional data tasks.
Summary updated