Towards Vision Transformer Unrolling Fixed-Point Algorithm: a Case Study on Image Restoration

Peng Qiao, Sidun Liu, Tao Sun, Ke Yang, Yong DouarXiv 2023

Abstract

The success of Deep Neural Networks (DNNs) has led to the development of DNN-based Fixed-Point (DNN-FP) algorithms for computer vision. However, traditional DNN-FP methods often suffer from limited representation ability. This paper proposes FPformer, a framework that unrolls fixed-point iterations and approximates them using Transformer blocks. To optimize efficiency, FPRformer introduces parameter sharing, while FPAformer incorporates a simplified Anderson acceleration module to enhance convergence. Applied to image restoration across 161 tasks, these models achieve state-of-the-art performance with significantly fewer parameters and reduced training time compared to existing models like SwinIR.

Introduction

Image restoration tasks, such as denoising, super-resolution, and JPEG artifact removal, are fundamentally optimization problems. Fixed-Point (FP) methods address these by iteratively applying a mapping until convergence. While unrolling these iterations into deep neural network layers is a common strategy, existing approaches face a "trilemma": CNN-based unrolling lacks representational power, Deep Equilibrium (DEQ) models are computationally expensive to train, and standard Transformers are too memory-intensive for deep iterative processes.

The authors propose a novel framework that leverages the representational strength of Vision Transformers within a mathematically grounded, efficient unrolling architecture.

Methodology

The proposed framework consists of three architectural evolutions designed to balance performance and efficiency:

  1. FPformer: The baseline model unrolls a fixed-point algorithm, approximating each iteration with a Residual Swin Transformer Block (RSTB).
  2. FPRformer (Recursive): To reduce memory and parameter overhead, this variant enforces parameter sharing across all unrolled blocks. Reusing weights acts as a form of regularization while maintaining the depth of the iterative process.
  3. FPAformer (Accelerated): This model integrates a simplified version of Anderson Acceleration via a ConvGRU module. This module summarizes information from previous iterations, allowing the model to converge more rapidly toward the fixed-point solution.
Overview of the proposed framework and the three variants: FPformer, FPRformer, and FPAformer.

The models are first subjected to self-supervised pre-training on 161 diverse restoration tasks before being fine-tuned for specific benchmarks.

Experimental Setup

The models were evaluated using standard image restoration benchmarks:

  • Pre-training Data: A large-scale dataset combining DIV2K, Flickr2K, BSD500, and the Waterloo Exploration Database (WED).
  • SISR Evaluation: Set5, Set14, and Manga109.
  • Denoising Evaluation: BSD68, CBSD68, and Kodak24.
  • JPEG Deblocking Evaluation: Classic5 and LIVE1.

Key Results and Insights

The experimental results highlight the efficiency and effectiveness of the proposed unrolling strategy:

  • Efficiency: FPAformer achieves superior or competitive performance using only 29.82% of the parameters required by SwinIR. Furthermore, the training process is highly efficient, requiring only 26.9% of the time compared to SwinIR.
  • Performance: On the Set5 benchmark for 4x Super-Resolution (SRx4), FPAformer reached a PSNR of 32.92 dB, matching state-of-the-art results with a much smaller footprint.
  • Convergence: Analysis of the $l_2$ distance between successive iterations confirms that the Transformer blocks effectively learn a contraction mapping, converging toward a stable point in the feature space.
Comparison of PSNR vs. Number of Parameters for various image restoration models on the Set5 (SRx4) task.

Discussion and Future Work

While the FPAformer demonstrates significant gains in efficiency, some limitations remain. GPU memory constraints currently limit the training patch size to 120x120, which may impact the capture of long-range dependencies. Additionally, the models currently use a fixed number of unrolled iterations ($T$); future iterations could implement dynamic stopping criteria based on convergence thresholds.

The success of this approach in low-level vision suggests that unrolling fixed-point algorithms via Transformers is a promising direction for high-level tasks, such as object detection or segmentation, where iterative refinement could provide similar benefits.

Summary updated

BibTeX
@misc{qiao2023towards,
  author = {Peng Qiao and Sidun Liu and Tao Sun and Ke Yang and Yong Dou},
  title = {{Towards Vision Transformer Unrolling Fixed-Point Algorithm: a Case Study on Image Restoration}},
  year = {2023},
  eprint = {2301.12332},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.12332},
}
Figure