TL;DR
MVSSM introduces a motion-aware scanning mechanism for Visual State Space Models (Mamba) to tackle video deblurring efficiently. By leveraging optical flow to dynamically align the model's 1D scanning direction with actual motion trajectories, it captures long-range spatiotemporal dependencies with linear complexity, achieving state-of-the-art performance with a fraction of the computational cost of Transformers.
What Problem Does This Paper Address?
Video deblurring is notoriously difficult because motion blur is spatially varying and highly complex, often caused by rapid object movement or camera shake.
To restore sharp frames, models need to capture long-range spatiotemporal context. Traditional Convolutional Neural Networks (CNNs) struggle here due to their localized receptive fields. On the other hand, Vision Transformers (ViTs) excel at capturing global dependencies via self-attention, but their computational complexity scales quadratically ($O(N^2)$) with image resolution. This makes them prohibitively expensive for high-resolution video processing.
Recently, Visual State Space Models (VSSMs or Mamba architectures) have emerged as a linear-complexity ($O(N)$) alternative. However, VSSMs require flattening 2D images into 1D sequences using fixed scanning paths (e.g., strictly horizontal or vertical). This rigid scanning strategy breaks spatial continuity and completely ignores the directional nature of motion blur, leaving a significant performance gap.
Methods
The authors propose MVSSM (Motion-aware Visual State Space Model), which adapts its internal processing to the physical characteristics of the blur. The architecture consists of two primary novel components integrated into an encoder-decoder pipeline:
- Motion-aware Scanning Block (MSB): Instead of utilizing a fixed or omnidirectional scanning strategy that incurs high overhead, the MSB uses a lightweight optical flow estimator (SpyNet) to calculate the dominant global motion angle ($\theta$) of the blurred frame. It then adaptively maps this angle to one of four optimal scanning paths: horizontal, vertical, diagonal, or flipped diagonal. This ensures that the state-space model propagates information directly along the trajectory of the blur, maximizing feature correlation while minimizing noise.
- Multi-scale Dynamic Feature Fusion (MDFF): To merge features across adjacent frames without relying on heavy cross-attention mechanisms, the MDFF module splits feature channels into groups and applies pixel-wise dynamic depthwise convolutions at multiple scales (using kernel sizes of $3\times3$, $5\times5$, and $7\times7$). This allows the network to adaptively weigh and fuse spatiotemporal contexts based on local image content.
Datasets
The model was trained and evaluated on three widely accepted video deblurring benchmarks:
- GOPRO: A large-scale synthetic dataset containing pairs of blurred and sharp frames generated from high-frame-rate videos.
- DVD (DeepVideoDeblurring): Another popular synthetic dataset simulating realistic camera motion blur.
- BSD (Real-World Video Deblurring): A dataset capturing real-world motion blur using a dual-camera system to record blurred and sharp videos simultaneously.
Key Insights and Ideas
- Alignment Matters More Than Multi-Directionality: Previous Mamba variants tried to fix the 1D flattening problem by scanning in 4, 8, or more directions simultaneously, which drastically increases computational overhead. MVSSM proves that aligning a single scan direction with the physical motion trajectory yields better results at a lower cost.
- Exploiting Blur Correlation: Pixels along a motion blur trajectory are inherently highly correlated. By restricting the SSM's long-range dependency modeling to these trajectories, the network naturally avoids introducing irrelevant interference or noise from unrelated regions of the frame.
- Dynamic, Multi-Scale Fusion over Stacking: Directly stacking standard convolutions is computationally heavy and struggles with varying blur scales. Grouping channels and assigning pixel-dependent dynamic kernels allows the network to handle multi-scale motion contexts efficiently.
Key Results
MVSSM achieves an exceptional balance between restoration quality and computational efficiency:
- State-of-the-Art Efficiency: On the GOPRO dataset, the large variant (MVSSM-L) achieves a competitive 35.66 dB PSNR, approaching heavy Transformer models like BSSTNet (35.98 dB) while using only half the parameters (26.1M vs 44.6M) and boasting significantly faster inference times (0.26s vs 0.31s on an RTX 4090).
- The standard MVSSM model runs even faster at 0.15s per frame with only 10.3M parameters, outperforming all other Mamba-based architectures.
- Real-World Robustness: On the real-world BSD dataset, MVSSM-L achieves the highest performance (35.82 dB PSNR), demonstrating strong generalization capabilities beyond synthetic data.
Limitations and Future Work
The primary limitation of MVSSM is its reliance on an explicit optical flow estimator. As shown in the paper's ablation studies, using a higher-performance flow estimator (like RAFT) further boosts deblurring accuracy, meaning the model's performance is partially bounded by the quality of the optical flow.
Future work could explore joint end-to-end learning frameworks where motion estimation and state-space scanning are more tightly coupled, or investigate completely implicit motion-guided scanning mechanisms that don't require a separate optical flow network.
Summary updated