Skip to main content
QUICK REVIEW

[Paper Review] U2-Former: A Nested U-shaped Transformer for Image Restoration

Haobo Ji, Xin Feng|arXiv (Cornell University)|Dec 4, 2021
Image Enhancement TechniquesComputer Science14 citations
TL;DR

U2-Former proposes a deep, nested U-shaped Transformer architecture for image restoration, leveraging multi-scale feature interactions and a feature-filtering mechanism to enhance computational efficiency. It achieves state-of-the-art performance across reflection removal, deraining, and dehazing by integrating multi-view contrastive learning to disentangle noise from clean images.

ABSTRACT

While Transformer has achieved remarkable performance in various high-level vision tasks, it is still challenging to exploit the full potential of Transformer in image restoration. The crux lies in the limited depth of applying Transformer in the typical encoder-decoder framework for image restoration, resulting from heavy self-attention computation load and inefficient communications across different depth (scales) of layers. In this paper, we present a deep and effective Transformer-based network for image restoration, termed as U2-Former, which is able to employ Transformer as the core operation to perform image restoration in a deep encoding and decoding space. Specifically, it leverages the nested U-shaped structure to facilitate the interactions across different layers with different scales of feature maps. Furthermore, we optimize the computational efficiency for the basic Transformer block by introducing a feature-filtering mechanism to compress the token representation. Apart from the typical supervision ways for image restoration, our U2-Former also performs contrastive learning in multiple aspects to further decouple the noise component from the background image. Extensive experiments on various image restoration tasks, including reflection removal, rain streak removal and dehazing respectively, demonstrate the effectiveness of the proposed U2-Former.

Motivation & Objective

  • Address the limited depth of Transformer application in image restoration due to high computational cost and poor cross-scale communication.
  • Overcome the inefficiency of standard encoder-decoder Transformers in image restoration by enabling deeper feature learning with improved inter-scale interactions.
  • Enhance noise-background separation by introducing multi-view contrastive learning across patch-level, content-level, and noise-level representations.
  • Optimize computational efficiency of self-attention blocks through a feature-filtering mechanism that compresses low-quality tokens.
  • Achieve superior performance across diverse image restoration tasks, including reflection removal, deraining, and dehazing, without relying on CNN-based priors.

Proposed method

  • Employ a nested U-shaped architecture with an outer encoder-decoder framework and an inner U-shaped Transformer block to enable deep, multi-scale feature interaction.
  • Introduce a feature-filtering mechanism that prunes low-quality tokens before self-attention computation, reducing computational load while preserving critical features.
  • Implement multi-view contrastive learning with three positive pair configurations: (1) patches from the same restored image, (2) restored image and ground-truth clean image, and (3) restored image and random ground-truth image to learn noise-invariant features.
  • Use standard supervision with ground-truth images alongside contrastive learning to jointly optimize restoration and feature disentanglement.
  • Structure the model to stack Transformer blocks deeply in both encoding and decoding paths, enabling global context modeling across scales.
  • Leverage the self-attention mechanism across all layers to capture long-range dependencies, improving spatial coherence in restored images.

Experimental results

Research questions

  • RQ1Can a deep Transformer-based architecture with nested U-shapes improve feature communication across scales in image restoration?
  • RQ2Does a feature-filtering mechanism in the Transformer block significantly reduce computational cost while maintaining performance?
  • RQ3Can multi-view contrastive learning effectively disentangle noise components from clean image content in image restoration?
  • RQ4How does the proposed U2-Former compare to state-of-the-art methods in terms of PSNR and SSIM across diverse image restoration tasks?
  • RQ5To what extent does the nested U-shaped design enhance performance compared to standard U-Net or Uformer-style architectures?

Key findings

  • On the real-world reflection removal benchmark, U2-Former achieved 23.67 dB PSNR and 0.835 SSIM on the Real20 set, outperforming Uformer (22.02 dB PSNR) and other SOTA methods.
  • For deraining on Rain100L, U2-Former achieved 39.31 dB PSNR, a 1.63 dB improvement over Uformer (37.68 dB), with superior detail recovery in visualizations.
  • On the Rain100H dataset, U2-Former reached 30.87 dB PSNR, a 1.50 dB gain over Uformer, demonstrating strong performance on heavy rain conditions.
  • In image dehazing, U2-Former achieved 36.42 dB PSNR and 0.988 SSIM on the indoor set, and 31.10 dB PSNR and 0.976 SSIM on the outdoor set, outperforming Uformer by 4.51 dB and 4.58 dB respectively.
  • Visual results showed that U2-Former mitigated color distortion and over-smoothing, preserving fine details better than DCP, DA, and other baseline methods.
  • The ablation study confirmed that both the nested U-shape and multi-view contrastive learning contributed significantly to performance gains, with the feature-filtering mechanism improving inference efficiency without performance drop.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.