VDTR: Video Deblurring With Transformer

Mingdeng Cao, Yanbo Fan, Yong Zhang, Jue Wang, Yujiu Yang

TL;DR

VDTR (Video Deblurring TRansformer) is the first successful attempt to adapt the Transformer architecture specifically for the task of video deblurring. By utilizing a hierarchical encoder-decoder structure and a novel temporal fusion module, VDTR outperforms state-of-the-art CNN-based methods on both synthetic and real-world benchmarks while remaining computationally efficient.

What Problem Does This Paper Address?

Video deblurring is a notoriously difficult "restoration" task because blurs are non-uniform—they vary both across a single frame (spatial) and across time (temporal) due to camera shake or fast-moving objects.

Traditional approaches rely on Convolutional Neural Networks (CNNs). However, CNNs have two major weaknesses in this context:

  1. Limited Receptive Fields: CNNs struggle to capture the long-range spatial dependencies needed to resolve large, complex blurs.
  2. Alignment Issues: To restore a frame, models usually "borrow" sharp pixels from neighboring frames. Most CNNs use optical flow or deformable convolutions to align these frames, but if the input is too blurry, these alignment methods often fail, leading to artifacts.

While Transformers have revolutionized NLP and image classification by modeling long-range relations, they are difficult to apply to high-resolution video because their computational cost grows quadratically with the number of pixels.

Methods

The authors introduce VDTR, which tackles these challenges through three main architectural innovations:

  • Hierarchical Encoder-Decoder Transformer: Instead of a flat architecture, VDTR uses a multi-scale approach. This allows the model to handle blurs of different magnitudes (e.g., small jitters vs. large motion streaks) by extracting features at various resolutions.
  • Local Window-Based Attention: To solve the "quadratic complexity" problem, VDTR performs self-attention within non-overlapping local windows (similar to the Swin Transformer). This keeps the computational cost linear relative to the image size, making it feasible for high-definition video.
  • Temporal Transformer: Instead of relying on error-prone optical flow to align frames, VDTR uses a Transformer module to build correspondences across multiple frames. It looks at a "spatial-temporal window" to find and aggregate sharp information from adjacent frames, even when they are significantly misaligned.
  • Fine-Grained Embedding: While standard Vision Transformers (ViT) use 16x16 patches, VDTR uses 4x4 patches. This preserves the high-frequency details essential for image reconstruction.

Datasets

The model was evaluated on four major benchmarks:

  • DVD & GOPRO: The standard synthetic datasets for video deblurring.
  • REDS: A large-scale dataset often used for video super-resolution and deblurring.
  • BSD: A real-world dataset featuring paired sharp and blurry videos captured with different exposure times, providing a more rigorous test of "in-the-wild" performance.

Key Insights and Ideas

  • Implicit Alignment > Explicit Flow: One of the biggest "aha" moments is that the Temporal Transformer can outperform explicit alignment methods (like optical flow). By treating alignment as an attention problem, the model can "ignore" the messiest parts of a blurry neighbor and only attend to the sharpest features.
  • Multi-Scale is Mandatory: The paper demonstrates that a single-scale Transformer struggles with non-uniform blur. The encoder-decoder structure is vital for capturing the "context" of a blur at lower resolutions while refining the "details" at higher resolutions.
  • The Efficiency Sweet Spot: The authors show that VDTR achieves better results than heavy-duty CNNs like CDVDTSP while using 60% fewer GFLOPs. This suggests that Transformers aren't just more powerful; they can be more efficient for dense prediction tasks if windowed correctly.

Key Results

VDTR set new state-of-the-art records across the board:

  • GOPRO Dataset: Achieved 33.15 dB PSNR, outperforming the previous best CNN (CDVDTSP) by a significant 1.3 dB.
  • DVD Dataset: Reached 33.13 dB PSNR, a 0.7 dB improvement over competitive models like PVDNet.
  • Real-World (BSD): Consistently outperformed all baselines across different exposure settings (1ms-8ms, 2ms-16ms, and 3ms-24ms), proving its robustness beyond synthetic data.
  • Visual Quality: Qualitative results show that VDTR is much better at restoring legible text and sharp edges on moving vehicles compared to CNN-based counterparts, which often leave "ghosting" artifacts.

Limitations and Future Work

Despite its success, the authors note a few areas for improvement:

  • Standard Embeddings: VDTR still uses the basic patch embedding and position encoding strategies from the original ViT. The authors suspect that designing task-specific embeddings tailored for image restoration could further boost performance.
  • Complexity at Ultra-High Res: While local windows make the model linear, very high-resolution video (4K+) still presents a memory challenge for current Transformer blocks.
  • Future Directions: The team plans to explore more efficient Transformer architectures and potentially integrate more sophisticated spatial-temporal priors to handle even more extreme motion blur.

Summary updated

BibTeX
@article{cao2023vdtr,
  author = {Mingdeng Cao and Yanbo Fan and Yong Zhang and Jue Wang and Yujiu Yang},
  title = {{VDTR: Video Deblurring With Transformer}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2023},
  doi = {10.1109/tcsvt.2022.3201045},
}
Figure