Residual Non-local Attention Networks for Image Restoration

Yulun Zhang, Kunpeng Li, Kai Li, Bineng Zhong, Yun Fu

Image restoration tasks—such as denoising, super-resolution, and compression artifact reduction—often struggle to balance the preservation of fine, low-level details with the need to understand broad, global image contexts. To address this, researchers introduced Residual Non-local Attention Networks (RNAN), a versatile architecture designed to push the boundaries of image restoration by combining local and non-local attention mechanisms within a deep residual framework.

The Challenge with Traditional CNNs

Most traditional Convolutional Neural Networks (CNNs) for image restoration rely heavily on local convolutional operations. This presents two major hurdles:

  1. Limited Receptive Fields: Convolutions only "see" a small neighborhood of pixels at a time. This makes it difficult for the network to exploit long-range dependencies, such as repeating patterns or textures found in distant parts of the image.
  2. Equal Treatment of Features: Standard networks often treat all spatial regions and feature channels as equally important. In reality, corrupted images have an uneven distribution of information; flat areas like skies are relatively easy to restore, while complex textures require significantly more "attention."

The core challenge is building a network capable of looking at the "big picture" while remaining deep enough to learn complex restoration mappings—all without losing the fine details essential for high-quality output.

Overall architecture of the Residual Non-local Attention Network (RNAN).

The RNAN Approach: Residual Attention Learning

RNAN addresses these limitations by capturing long-range pixel dependencies through non-local attention. By using a novel residual attention learning strategy, the network preserves critical low-level details while effectively suppressing noise and artifacts.

The powerhouse of this architecture is the Residual Non-local Attention Block (RNAB), which consists of two main components:

  • Trunk Branch: This acts as the "main road" of the block, responsible for extracting hierarchical features using a series of simplified residual blocks.
  • Mask Branch: Acting as the "guidance system," this branch uses downscaling and upscaling to enlarge the receptive field and incorporates a Non-local Block (NLB). The NLB computes a weighted sum of all pixels in the feature map to capture global dependencies. The output is a "mask" that rescales the trunk's features, effectively telling the network where to focus its computational resources.
Detailed structure of the Residual Non-local Attention Block (RNAB), featuring the Trunk and Mask branches.

Crucially, the authors propose a specific Residual Attention Learning formulation: $$H_{RNA}(x) = H_{trunk}(x) \cdot H_{mask}(x) + x$$

Unlike previous attention models used in image classification—which often discard low-level information—this additive identity shortcut ($+ x$) ensures that the network can easily pass through the original low-level features vital for accurate image restoration.

Key Insights and Performance

RNAN was evaluated across four major restoration tasks using standard benchmarks (including DIV2K for training, and datasets like Kodak24, Urban100, and LIVE1 for testing). The results highlight several key advantages:

  • Global Context Matters: By using non-local blocks, the network leverages information from distant pixels to help restore local patches. This proves exceptionally effective for images with repetitive structures.
  • Efficiency through Attention: RNAN achieves competitive results with significantly fewer parameters than competing models. For example, in super-resolution tasks, RNAN (with 7.5M parameters) performs similarly to or better than heavier models like EDSR (43M parameters). It proves that where a network looks is just as important as how much it looks.
  • State-of-the-Art Results: RNAN consistently outperformed or matched leading methods (like DnCNN, FFDNet, and RCAN). In high-noise denoising scenarios (e.g., Urban100 with $\sigma=70$), RNAN achieved a notable 1.06 dB PSNR gain over FFDNet. Visually, RNAN produces sharper edges and more faithful textures, avoiding the over-smoothing common in other CNN-based denoisers.

Limitations and Future Directions

The primary limitation of RNAN is the computational cost associated with the non-local blocks. Because the non-local operation calculates the relationship of every pixel to every other pixel, it can become highly memory-intensive and slow for very high-resolution images. Consequently, the authors limited the number of non-local blocks to two in their final architecture.

Future advancements will likely focus on finding more efficient implementations for non-local attention—such as sparse attention mechanisms or localized windows—allowing for deeper non-local integration without the prohibitive computational overhead.

Summary updated

BibTeX
@inproceedings{zhang2019residual,
  author = {Yulun Zhang and Kunpeng Li and Kai Li and Bineng Zhong and Yun Fu},
  title = {{Residual Non-local Attention Networks for Image Restoration}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
}
Figure