Spatio-Temporal Deformable Attention Network for Video Deblurring

Huicong Zhang, Haozhe Xie, Hongxun Yao

Abstract

Video deblurring aims to restore sharp frames from blurry sequences by leveraging temporal information. Traditional methods using optical flow alignment often fail due to flow estimation errors and the blending of blurry patches. This paper introduces the Spatio-Temporal Deformable Attention Network (STDANet), which replaces rigid alignment with a deformable attention mechanism. This approach allows the network to selectively aggregate sharp features from neighboring frames based on learned "sharpness scores." STDANet achieves state-of-the-art results on DVD, GoPro, and BSD datasets with high efficiency.

Introduction

The core challenge in video deblurring is effectively utilizing temporal redundancy. If a frame is blurry, a neighboring frame might contain the missing sharp details. However, standard optical flow methods suffer from two major flaws: error propagation, where slight misalignments lead to ghosting artifacts, and "blur-to-blur" alignment, where aligning two blurry patches fails to produce a sharp result. The authors argue that instead of rigid alignment, models should specifically seek out sharp pixels across the temporal window.

Proposed Method: STDANet

STDANet employs an encoder-decoder architecture designed to move away from rigid optical flow. The system consists of three primary components: a lightweight motion estimator, the Spatio-Temporal Deformable Attention (STDA) module, and a reconstruction network.

Figure 1: Overall architecture of the STDANet, featuring the feature extraction, motion estimator, and the STDA module.

Lightweight Motion Estimator

Unlike massive pre-trained networks, STDANet uses a custom estimator (1/70th the size of PWC-Net) to predict "coarse" optical flows. These serve as base offsets rather than final alignments, reducing computational overhead while providing a starting point for the attention mechanism.

Spatio-Temporal Deformable Attention (STDA)

The STDA module is the core innovation, consisting of two cascaded layers:

  1. Multi-to-Multi Attention (MMA): Aggregates features across all input frames to refine the representation of each.
  2. Multi-to-Single Attention (MSA): Specifically aggregates the sharpest features from all frames into the target mid-frame.

Deformable Attention as a Sharpness Filter

The key innovation is the use of deformable sampling. Instead of looking at a fixed grid, the module "deforms" its search area. It uses the coarse optical flow to find the general area of a pixel in a neighboring frame and then uses learned offsets to "look around" for the sharpest nearby pixel.

Figure 3: Visualization of attention weights and sampling points. The model learns to assign higher weights (red) to sharp pixels and lower weights (blue) to blurry ones.

As shown in Figure 3, the attention mechanism effectively acts as a sharpness filter. By visualizing the attention maps, it is evident that the model ignores blurry regions in neighboring frames and focuses on high-quality reference points, making it robust to flow errors.

Experimental Results

The model was evaluated on three standard benchmarks: DVD (DeepVideoDeblurring), GoPro, and BSD (Berkeley Segmentation Dataset).

  • Superior Accuracy: On the DVD dataset, the "Stack" version of the model achieved a PSNR of 33.05 dB, outperforming previous bests. On GoPro, it reached 32.62 dB PSNR.
  • Efficiency: The base STDANet uses significantly fewer GMACs (Giga multiply-add operations) than competitors like EDVR or TSP while maintaining competitive or better accuracy.
  • Qualitative Improvement: Visual results demonstrate much sharper text and finer textures compared to previous state-of-the-art methods, which often produced smudged results.

Conclusion and Future Work

STDANet demonstrates that deformable attention is a robust and efficient alternative to rigid flow alignment for video restoration. While the "Stack" version increases computational cost, the base architecture provides a strong balance of performance and speed. Future work includes scaling the architecture for longer temporal sequences and adapting the STDA module for other tasks such as video super-resolution or frame interpolation.

Summary updated

BibTeX
@inproceedings{zhang2022spatio,
  author = {Huicong Zhang and Haozhe Xie and Hongxun Yao},
  title = {{Spatio-Temporal Deformable Attention Network for Video Deblurring}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19787-1\_33},
}
Figure