Towards Efficient Vision State Space Models via Token Merging

Jinyoung Park, Minseok Son, Changick KimarXiv 2025 · DOI

Abstract

State Space Models (SSMs), particularly the Mamba architecture, have emerged as efficient linear-time alternatives to Vision Transformers (ViTs). However, further optimization is required for deployment on resource-constrained devices. This paper introduces MaMe, a novel token-merging framework tailored for Vision SSMs. MaMe leverages the model's internal state transition parameter ($\Delta$) as an importance metric and employs a sequential-aware token arrangement strategy. Experimental results demonstrate that MaMe can reduce computational costs (FLOPs) by up to 25% while maintaining or slightly improving accuracy across image, video, and audio benchmarks.

Introduction

Vision Transformers (ViTs) have set the standard in computer vision but suffer from quadratic complexity relative to sequence length. While SSMs offer a more scalable linear-time complexity, they still benefit from token-level efficiency techniques. Existing methods like token merging (ToMe), designed for Transformers, rely on attention scores to identify redundant information. Applying these directly to SSMs leads to significant performance degradation because SSMs process data as a continuous stream rather than a "bag of tokens," making them highly sensitive to sequence order and lacking explicit attention maps.

Methods: The MaMe Framework

MaMe addresses the limitations of traditional token merging through two core innovations designed for the sequential nature of SSMs.

Overview of the MaMe framework, illustrating $\Delta$-based token scoring and sequential token arrangement.

$\Delta$-based Token Scoring

In the Mamba architecture, the discretization parameter $\Delta$ (delta) controls how much of the current input state is incorporated into the hidden state. The authors identify $\Delta$ as a proxy for token "informativeness": a high $\Delta$ indicates the model is focusing on novel, salient features (e.g., foreground objects), while a low $\Delta$ suggests the model is maintaining its current state (e.g., background). MaMe combines this $\Delta$ score with cosine similarity to identify merge candidates without losing critical information.

Sequential Token Arrangement

Unlike Transformers, SSMs are order-dependent. MaMe introduces Order-based Insertion to preserve the spatial-temporal integrity of the sequence. When tokens are merged, the resulting "merged token" is placed at the original position of the frontmost token in the sequence. This prevents the "shattering" of the model's memory that occurs when tokens are arbitrarily reordered or moved to the end of a sequence.

Bipartite Matching

To maintain efficiency, MaMe utilizes bipartite matching to group and merge tokens in a single pass, similar to the approach used in ToMe, but adapted for the SSM's specific scoring and arrangement requirements.

Key Results

The effectiveness of MaMe was evaluated on ImageNet-1K (images), Something-Something V2 (video), and Speech Commands V2 (audio).

Performance comparison of MaMe against baselines (ToMe, ToP) across different Vision Mamba models (ViM-T, ViM-S) in both fine-tuned and off-the-shelf settings.
  • Efficiency Gains: On ViM-T, MaMe achieved a 25% reduction in FLOPs with a +0.2% increase in accuracy.
  • Off-the-shelf Robustness: MaMe is particularly effective as a plug-and-play module. In aggressive reduction scenarios (75% tokens removed) without fine-tuning, MaMe maintained ~67% accuracy on ViM-T, whereas the baseline ToMe dropped to ~32%.
  • Cross-Modal Versatility: In video tasks, MaMe increased throughput by 26% on VideoMamba. In audio, it outperformed specialized models like AST-S while requiring fewer computational resources.

Discussion and Conclusion

MaMe reveals that the $\Delta$ parameter in Mamba serves a functional role analogous to attention in Transformers, providing a "free" importance map for token reduction. By respecting the sequential nature of SSMs through careful token arrangement, MaMe enables significant efficiency gains without the typical performance trade-offs.

Future work includes extending MaMe to dense prediction tasks like object detection and semantic segmentation, where spatial precision is paramount, and further optimizing hardware-specific kernels to maximize real-world throughput.

Summary updated

BibTeX
@misc{park2025towards,
  author = {Jinyoung Park and Minseok Son and Changick Kim},
  title = {{Towards Efficient Vision State Space Models via Token Merging}},
  year = {2025},
  eprint = {2508.13599},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.13599},
}
Figure