Pay Attention to Hidden States for Video Deblurring: Ping-Pong Recurrent Neural Networks and Selective Non-Local Attention

JoonKyu Park, Seungjun Nah, Kyoung Mu LeearXiv 2022

Abstract

Video deblurring models exploit information in the neighboring frames to remove blur caused by the motion of the camera and the objects. Recurrent Neural Networks (RNNs) are often adopted to model the temporal dependency between frames via hidden states. When motion blur is strong, however, hidden states are hard to deliver proper information due to the displacement between different frames. While there have been attempts to update the hidden states, it is difficult to handle misaligned features beyond the receptive field of simple modules. Thus, we propose 2 modules to supplement the RNN architecture for video deblurring. First, we design Ping-Pong RNN (PPRNN) that acts on updating the hidden states by referring to the features from the current and the previous time steps alternately. PPRNN gathers relevant information from the both features in an iterative and balanced manner by utilizing its recurrent architecture. Second, we use a Selective Non-Local Attention (SNLA) module to additionally refine the hidden state by aligning it with the positional information from the input frame feature. The attention score is scaled by the relevance to the input feature to focus on the necessary information. By paying attention to hidden states with both modules, which have strong synergy, our PAHS framework improves the representation powers of RNN structures and achieves state-of-the-art deblurring performance on standard benchmarks and real-world videos.

Introduction

Video deblurring is essentially a challenge of effective information aggregation. To restore sharp details in a blurry frame, models must leverage information from adjacent frames. Recurrent Neural Networks (RNNs) are a standard choice for this task, utilizing hidden states as a temporal memory. However, conventional RNNs face significant hurdles: spatial misalignment due to large object displacements and information bias, where models often prioritize the current blurry frame at the expense of useful historical data. These issues often lead to suboptimal restoration and artifacts.

Proposed Methodology: The PAHS Framework

The Pay Attention to Hidden States (PAHS) framework addresses these limitations through two core innovations:

Ping-Pong RNN (PPRNN)

Rather than a single-pass update, the PPRNN employs an iterative "ping-pong" mechanism. It alternates between the current blurry feature and the previous deblurred feature, allowing the hidden state to refine itself through balanced, recurrent updates. This approach enables the model to extract richer information without a massive increase in parameter count. Experiments indicate that four iterations provide an optimal balance between performance and computational cost.

Selective Non-Local Attention (SNLA)

To resolve spatial misalignments that exceed a standard network's receptive field, the SNLA module utilizes non-local attention to search the entire frame for relevant features. Crucially, it incorporates a filtering module. Unlike standard attention mechanisms that may aggregate noisy or irrelevant data, the "Selective" component uses a sigmoid-based score to suppress unhelpful information, ensuring the model only integrates features that are truly relevant to the current frame.

Experimental Results

The PAHS framework was evaluated on three major benchmarks: DVD (Deep Video Deblurring), GOPRO, and REDS.

Quantitative Performance

PAHS achieved state-of-the-art (SOTA) results across all datasets. On the challenging REDS dataset, it reached a Peak Signal-to-Noise Ratio (PSNR) of 34.27 dB, significantly outperforming previous leaders like ARVo. Notably, PAHS is highly efficient, operating 9.53 times faster than ARVo while maintaining superior accuracy.

Qualitative Comparison

Visual evaluations demonstrate that PAHS excels at recovering fine details and sharp edges, particularly in scenarios involving fast motion where other models often produce "ghosting" artifacts or excessive blur.

Qualitative comparison of PAHS against other SOTA methods (IFI-RNN, STFAN, ESTRNN) and the Ground Truth (GT).

Discussion and Conclusion

The success of PAHS stems from the strong synergy between its two modules: the PPRNN expands the pool of available temporal information, while the SNLA provides the spatial precision needed to align that information with the current frame. Furthermore, these modules are highly versatile and can be integrated into existing RNN architectures (like LSTMs) to provide consistent performance gains.

While PAHS is significantly faster than many competitors, achieving real-time performance (30+ fps) on high-resolution video remains a target for future optimization. Future work may also explore applying these selective attention mechanisms to related video restoration tasks such as super-resolution.

Summary updated

BibTeX
@misc{park2022pay,
  author = {JoonKyu Park and Seungjun Nah and Kyoung Mu Lee},
  title = {{Pay Attention to Hidden States for Video Deblurring: Ping-Pong Recurrent Neural Networks and Selective Non-Local Attention}},
  year = {2022},
  eprint = {2203.16063},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.16063},
}
Figure