Abstract
Video deblurring remains a significant challenge in computer vision due to the complex temporal dynamics and the inherent difficulty of aligning frames affected by motion blur. Traditional methods often rely on rigid alignment via optical flow, which frequently introduces artifacts when the flow estimation is inaccurate. We present the Spatio-Temporal Deformable Attention Network (STDANet), a novel architecture that selectively aggregates sharp pixels from adjacent frames while ignoring blurry regions. By utilizing a lightweight motion estimator to provide coarse "hints" for a deformable attention mechanism, STDANet achieves state-of-the-art results on major benchmarks with significantly reduced sensitivity to alignment errors.
Introduction
Unlike single-image deblurring, video deblurring offers the opportunity to recover lost details by leveraging information from neighboring frames. However, the standard approach—aligning neighboring frames to a reference frame before fusion—faces two critical hurdles. First, the "Blurry-to-Blurry" trap occurs when a neighboring frame is also blurry in the same spatial region, causing traditional alignment to simply propagate blur rather than providing restorative information. Second, alignment errors are common; most methods rely on heavy optical flow models that struggle with fast-moving or heavily blurred scenes, leading to ghosting artifacts in the final output.
STDANet addresses these issues by moving away from rigid warping. Instead, it treats temporal information as a pool of potential features, using a learned attention mechanism to identify and aggregate only the most useful (sharpest) pixels across a temporal window.
The STDANet Architecture
STDANet is built on an encoder-decoder framework featuring the Spatio-Temporal Deformable Attention (STDA) module. The architecture is designed for both efficiency and robustness, utilizing a multi-stage approach to feature refinement.
Lightweight Motion Estimation
While many contemporary models utilize pre-trained, computationally expensive models like PWC-Net for alignment, STDANet employs a tiny motion estimator. At approximately 1/70th the size of PWC-Net, this estimator predicts coarse optical flows that serve as "base offsets." These offsets are not intended to be perfectly accurate; rather, they provide a starting point for the attention mechanism to search for relevant features in the correct spatial neighborhood.
Spatio-Temporal Deformable Attention (STDA)
The STDA module is the core innovation of the network, consisting of two distinct layers:
- Multi-to-Multi Attention (MMA): This layer processes all input frames simultaneously, generating refined features for each and allowing information to flow bi-directionally across the temporal window.
- Multi-to-Single Attention (MSA): This layer aggregates the refined features from the MMA stage specifically to reconstruct the sharp version of the central reference frame.
Instead of a rigid warp, the STDA module uses deformable attention. It takes the coarse flow as a base and learns additional small offsets to locate the sharpest pixels. Crucially, the attention weights are learned such that the network naturally assigns higher importance to sharp pixels and ignores blurry ones, effectively becoming "blur-aware."
STDANet-Stack
For scenarios requiring maximum restoration quality, the authors propose STDANet-Stack. This version uses a cascaded strategy to process five adjacent frames, progressively refining the output through multiple passes of the STDA mechanism.
Experimental Evaluation
The model was evaluated on three standard video deblurring benchmarks:
- DVD (Deep Video Deblurring): Comprising 71 videos of real-world scenes.
- GoPro: A widely used dataset containing 3,214 pairs of blurry and sharp frames.
- BSD (Berkeley Segmentation Dataset): A subset specifically for video deblurring with three exposure-time configurations (1ms-8ms, 2ms-16ms, and 3ms-24ms) to test robustness across varying blur intensities.
Quantitative Results
STDANet consistently outperformed previous state-of-the-art (SOTA) methods across all benchmarks:
- On the DVD Dataset, STDANet-Stack achieved a 33.05 dB PSNR, surpassing the previous best (ARVo) of 32.80 dB.
- On the GoPro Dataset, the model reached 32.62 dB PSNR, a significant improvement over PVDNet-L (31.98 dB).
- On the BSD Dataset, STDANet maintained the top position across all exposure subsets, showing particular strength in the high-blur "3ms-24ms" category.
Qualitative Analysis
Visual results demonstrate that STDANet excels at reconstructing fine details that other methods smear. Text on signs and the edges of moving vehicles are rendered with significantly higher clarity. Analysis of the internal attention maps confirms that the network successfully learns to "down-weight" blurry regions in neighboring frames, pulling information from whichever frame in the sequence provides the sharpest representation of a specific object.
Conclusion
STDANet demonstrates that optical flow should be treated as a hint rather than a constraint in video restoration. By combining a lightweight motion estimator with a flexible, blur-aware deformable attention mechanism, the model achieves superior deblurring performance without the need for heavy alignment modules. While the "Stack" version introduces higher computational complexity, the base STDANet provides an efficient and robust solution for high-quality video restoration. Future work may explore extending this architecture to handle longer-range temporal dependencies through recurrent connections or more efficient sampling strategies.
Summary updated