Spatial-Aware Reduction Framework: Towards Efficient and Faithful Visual State Space Models

Jindi Lv, Aoyu Li, Yuhao Zhou, Zheng Zhu, Xiaofeng Wang, Qing Ye, Yueqi Duan, Wentao Feng, Jiancheng Lv

Introduction

In the quest for efficient computer vision, "token reduction"—pruning or merging redundant image patches—has become a standard technique to accelerate Vision Transformers (ViTs). However, applying these same techniques to newer, highly efficient State Space Models (SSMs) like Vision Mamba yields catastrophic results. While a ViT might lose only a few percentage points of accuracy, structurally enhanced Mamba variants (like VMamba) experience severe performance collapse.

The root cause of this degradation is spatial agnosticism. Standard reduction methods flatten a 2D image into a 1D sequence, globally selecting the "best" tokens and discarding the rest. This approach works for ViTs due to their global self-attention mechanisms. However, Mamba relies on a 2D Selective Scan (SS2D) that processes the image in specific directional paths (e.g., left-to-right, top-to-bottom). Flattening and pruning tokens globally destroys the 2D grid topology. When Mamba attempts to scan the remaining tokens, the spatial neighborhood is scrambled, leading to a complete breakdown of the model's internal state.

The STORM Framework

To address this, researchers introduce STORM (Spatial-aware TOken Reduction fraMework), designed to maintain structural integrity throughout the compression process. Instead of a global, unstructured pruning approach, STORM reformulates reduction into a structured operation on spatial units using two key constraints:

  1. Structured Spatial Reduction: Reduction is decomposed into two decoupled stages. Tokens are first reduced row-wise, and then column-wise. This orthogonal approach ensures that the output remains a regular, contiguous sub-grid, perfectly preserving the scan paths that Mamba's SS2D expects.
  2. Localized Window Mechanism: To prevent long-range interference—such as erroneously merging a pixel from the top-left with one from the bottom-right—STORM confines all reduction decisions to small, non-overlapping windows (e.g., 5x5). This maintains local semantic coherence.

Crucially, STORM operates as a training-free, plug-and-play wrapper. It can be seamlessly integrated to "fix" existing reduction algorithms, such as ToMe (Token Merging) or EViT (Token Pruning), equipping them with explicit spatial awareness without requiring any model retraining.

Key Insights

  • Topology Trumps Saliency: For Mamba models, maintaining the structural integrity of the data is far more critical than retaining the most "salient" individual tokens. A slightly less informative token that preserves the grid is more valuable than a highly salient token that disrupts the scanning path.
  • Mathematical Error Bounding: The authors provide theoretical analysis demonstrating that by limiting "spatial displacement" (the distance a token moves from its original position post-pruning), the cumulative error in Mamba’s hidden state can be strictly bounded.
  • Parallel Efficiency: Because STORM decomposes reduction into independent row and column operations, it can be executed in parallel. This architectural advantage actually results in higher throughput compared to global methods like ToMe, which suffer from the computational overhead of processing large similarity matrices.

Empirical Results

STORM was rigorously evaluated across standard benchmarks, including ImageNet-1K for classification and COCO 2017 for object detection and instance segmentation, using backbones like VMamba, PlainMamba, and LocalMamba.

  • Massive Accuracy Recovery: On the VMamba-B architecture, standard ToMe reduction resulted in a dismal 35.7% accuracy. Applying the STORM wrapper restored performance to 82.6%, nearly matching the baseline model's 83.9%.
  • Superior to State-of-the-Art: STORM outperformed recent Mamba-specific pruning methods by massive margins. For instance, on VMamba-S, STORM achieved 82.0% accuracy compared to just 46.2% for the HSA method.
  • Downstream Task Success: In dense prediction tasks like object detection (COCO), VMamba-S with standard pruning collapsed to a 2.8 AP. STORM recovered this to 44.2 AP, proving its efficacy beyond simple classification.
  • Robustness to Randomness: Remarkably, even when employing random token selection within the STORM framework, the model still outperforms "smart" global selection methods. This underscores that the spatial structure enforced by STORM is the primary driver of success.

Limitations and Future Directions

While highly effective, STORM has a few limitations. The framework exhibits sensitivity to window size; as the window size increases, performance begins to decline toward the collapsed state seen in global methods, making window size a necessary hyperparameter choice. Additionally, STORM currently excludes the final stage of the model from pruning, as the resolution at that depth (e.g., 7x7) is too low and the semantic density too high to safely discard tokens.

Future work may explore whether this spatial-aware philosophy can benefit other non-Transformer architectures that rely on structured data processing, such as specialized Convolutional Neural Networks (CNNs) or Recurrent Neural Networks (RNNs).

Summary updated

BibTeX
@inproceedings{lv2026spatial,
  author = {Jindi Lv and Aoyu Li and Yuhao Zhou and Zheng Zhu and Xiaofeng Wang and Qing Ye and Yueqi Duan and Wentao Feng and Jiancheng Lv},
  title = {{Spatial-Aware Reduction Framework: Towards Efficient and Faithful Visual State Space Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=v0lOwZnull},
}
Figure