Abstract: Video understanding requires the extraction of rich spatio-temporal representations, which transformer models achieve through self-attention. Unfortunately, self-attention poses a computational burden. In NLP, Mamba has surfaced as an efficient alternative for transformers. However, Mamba's successes do not trivially extend to computer vision tasks, including those in video analysis. In this paper, we theoretically analyze the differences between self-attention and Mamba. We identify two limitations in Mamba's token processing: historical decay and element contradiction. We propose VideoMambaPro (VMP) that solves the identified limitations by adding masked backward computation and elemental residual connections to a VideoMamba backbone. VideoMambaPro shows state-of-the-art video action recognition performance compared to transformer models, and surpasses VideoMamba by clear margins: 7.9% and 8.1% top-1 on Kinetics-400 and Something-Something V2, respectively. Our VideoMambaPro-M model achieves 91.9% top-1 on Kinetics-400, only 0.2% below InternVideo2-6B but with only 1.2% of its parameters. The combination of high performance and efficiency makes VideoMambaPro an interesting alternative for transformer models.
Introduction
Transformers have become the dominant architecture for video understanding due to their ability to capture complex spatio-temporal dependencies through self-attention. However, this power comes at a high computational cost, as self-attention complexity grows quadratically with sequence length. This "computational tax" is particularly restrictive for long-form video analysis.
Recently, State Space Models (SSMs) like Mamba have emerged as linear-time alternatives. While successful in Natural Language Processing, Mamba faces unique challenges in the visual domain. This research identifies two primary flaws when applying standard Mamba to video: historical decay, where early frame information fades over time, and element contradiction, where the model struggles to link related but temporally separated tokens (e.g., an object disappearing and reappearing).
Methodology: The VideoMambaPro Architecture
To address these limitations, we introduce VideoMambaPro (VMP). VMP enhances the standard VideoMamba backbone with two key structural innovations designed to improve temporal modeling without increasing parameter count.
Masked Backward SSM
Standard bi-directional scans often suffer from a "self-similarity trap," where a token's relationship to itself dominates the diagonal of the similarity matrix, obscuring relationships with other frames. VMP introduces a masked backward pass that specifically masks this diagonal. This forces the model to focus on cross-frame dependencies during the backward scan, effectively mitigating historical decay.
Residual SSM
To resolve element contradiction, VMP incorporates elemental residual connections directly into the Mamba matrix. This allows the network to distribute the learning of long-range dependencies across multiple layers. By making it easier for the model to maintain state across sparse or cluttered sequences, VMP significantly improves the modeling of fine-grained motion.
Experimental Results
VideoMambaPro was evaluated on major benchmarks including Kinetics-400 (K400) and Something-Something V2 (SSv2). The results demonstrate that VMP consistently outperforms the baseline VideoMamba across all model scales (Tiny, Small, and Middle).
Performance and Efficiency
On Kinetics-400, the VMP-Middle model achieved 84.0% top-1 accuracy, representing a +1.6% improvement over VideoMamba-M while utilizing fewer FLOPs. On the motion-heavy SSv2 dataset, VMP showed gains of up to 1.9%.
Most notably, VMP demonstrates extreme parameter efficiency. While massive models like InternVideo2-1B achieve slightly higher absolute accuracy, VMP-M delivers competitive performance using only approximately 7% of the parameters. This makes VideoMambaPro an ideal candidate for deployment on edge devices where computational resources are limited.
Conclusion
VideoMambaPro successfully bridges the performance gap between efficient SSMs and heavy-duty Transformers. By identifying and fixing the mathematical bottlenecks of historical decay and element contradiction, VMP provides a scalable, linear-time solution for state-of-the-art video understanding. Future work will explore scaling VMP with larger pre-training datasets to further challenge the current limits of video recognition performance.
Summary updated