TL;DR
The authors introduce State Space Prompting (SSP), a parameter-efficient fine-tuning (PEFT) method designed specifically for Mamba-based video models like VideoMamba. By introducing complementary modules that gather local spatial information and spread global temporal context, SSP overcomes the "information decay" problem inherent to sequential state space models while tuning only ~3% of the model's parameters.
What Problem Does This Paper Address?
While Vision Transformers (ViTs) excel at video understanding, their self-attention mechanism incurs a quadratic computational cost ($O(N^2)$) relative to sequence length. This makes processing long videos incredibly expensive. Recently, State Space Models (SSMs) like VideoMamba have emerged as a linear-complexity ($O(N)$) alternative.
However, adapting these massive pre-trained Mamba models to downstream tasks remains a challenge. Full fine-tuning is computationally heavy, and existing Parameter-Efficient Fine-Tuning (PEFT) methods—like visual prompt tuning—were originally designed for ViTs. When you directly apply ViT-style prompting (appending learnable tokens to the input) to a Mamba architecture, it fails. Because Mamba compresses tokens sequentially, the prompt tokens suffer from severe information decay over long sequences, failing to capture crucial spatiotemporal context.
Methods
To bridge this gap, the authors propose State Space Prompting (SSP), which consists of two main components that interact dynamically:
- Intra-Frame Gathering (IFG) Module: This module uses a low-rank local 2D convolution to aggregate spatial information within each individual video frame. It produces intra-frame prompts ($p^s_i$), along with two gating mechanisms:
- Information Entropy Weights ($w_i$): Measures the certainty/significance of the information in a frame to adjust its temporal attention.
- Spatial Variance ($v_i$): Controls how strongly global context influences local features.
- Inter-Frame Spreading (IFS) Module: This module operates after the first Mamba layer. It samples the final token of each frame (which naturally aggregates that frame's sequential context) and passes it through a low-rank attention mechanism. This allows key temporal information to be explicitly spread across frames, bypassing Mamba's strict sequential bottleneck.
During training, the pre-trained VideoMamba backbone remains completely frozen. Only the classification head and the lightweight SSP modules are optimized.
Datasets
The method was evaluated on four standard video recognition benchmarks:
- HMDB51: 6,849 video clips across 51 action categories.
- UCF101: 13,320 clips across 101 realistic action categories.
- Something-Something V2 (SSV2): A large-scale dataset (220,847 videos) focused on fine-grained human-object interactions.
- Breakfast: A long-video dataset (1,989 clips, averaging over 2 minutes each) detailing cooking activities.
Key Insights and Ideas
- Shortening the Information Path: Mathematically, without inter-frame prompts, the maximum information transmission path length in a Mamba sequence is $O(TN)$ (where $T$ is frames and $N$ is tokens per frame), leading to exponential decay. By inserting the IFS module's temporal prompts after each frame, the path length drops drastically to $O(N)$, facilitating much better global context retention.
- Dynamic Gating via Entropy and Variance: Rather than treating all frames equally, SSP uses information entropy to dynamically emphasize frames with high informational certainty. Concurrently, frame-specific spatial variance acts as a gate to prevent global temporal blending from washing out distinct local features.
Key Results
SSP achieves state-of-the-art PEFT performance across all four benchmarks, outperforming existing methods by an average of 2.76% while tuning minimal parameters:
- Something-Something V2 (SSV2): Reached 53.72% top-1 accuracy using VideoMamba-M, outperforming the closest prompt-based competitor (SVP) by 4.64%.
- Breakfast Dataset: Achieved 93.23% accuracy, demonstrating strong capabilities in long-video understanding.
- Efficiency: On VideoMamba-S, SSP requires only 0.98M tunable parameters compared to the 25.42M required for full fine-tuning, yet it beats full fine-tuning accuracy on HMDB51 (74.38% vs 67.58%).
Limitations and Future Work
The authors note that SSP introduces additional hyperparameters, specifically the number of IFS modules to insert and their internal low-rank dimensions. While they provide robust defaults (e.g., setting the number of IFS modules to 3 for VideoMamba-M and 1 for VideoMamba-S), performance can fluctuate if these are not properly tuned to the scale of the backbone architecture.
Future work could explore automating the placement and dimensionality of these spatiotemporal prompts across different state-space backbones.
Summary updated