Pre-Trained Image Processing Transformer

Hanting Chen, Yunhe Wang, Tianyu Guo, Chang Xu, Yiping Deng, Zhenhua Liu, Siwei Ma, Chunjing Xu, Chao Xu, Wen Gao

Introduction

The Image Processing Transformer (IPT) represents a paradigm shift in low-level computer vision. Traditionally dominated by task-specific convolutional neural networks (CNNs), tasks like super-resolution, denoising, and deraining are now being unified under a single, massive pre-trained architecture. By leveraging the Transformer's capacity for global context and large-scale pre-training on ImageNet, IPT demonstrates that the "pre-train then fine-tune" strategy—highly successful in natural language processing—is equally effective for pixel-level image restoration.

The Challenge in Low-Level Vision

Low-level vision tasks aim to recover high-quality images from degraded inputs. Despite significant progress, two major hurdles remain:

  1. Data Scarcity: Obtaining high-quality paired data (e.g., matching blurry and sharp images) is labor-intensive and task-dependent.
  2. Specialization vs. Generalization: Most models are "one-trick ponies"; a state-of-the-art denoising network cannot perform super-resolution. There has been a lack of a "foundation model" capable of learning universal image priors across different types of degradation.

The IPT Architecture

The authors propose a unified framework consisting of three core components:

  • Task-Specific Heads and Tails: To accommodate diverse inputs (e.g., different super-resolution scales or noise levels), IPT utilizes lightweight convolutional "heads" at the input and "tails" at the output. These layers map pixels to feature space and back.
  • Shared Transformer Body: The heart of the model is a standard Transformer encoder-decoder. By partitioning images into patches—analogous to words in a sentence—the model captures long-range dependencies across the entire image. This global receptive field allows IPT to utilize information from distant, similar textures to reconstruct local details, a feat difficult for traditional CNNs.
  • Hybrid Learning Strategy:
    • Supervised Learning: The model is trained using an L1 loss to reconstruct clean images from synthetically corrupted versions.
  • Contrastive Learning: To learn task-agnostic features, a contrastive loss is introduced. This ensures that patches from the same image maintain similar representations regardless of the specific degradation applied, fostering a more robust understanding of image structure.

Training and Evaluation

IPT was pre-trained on the ImageNet dataset, using over 10 million corrupted patches across six degradation types: bicubic interpolation (x2, x3, x4), Gaussian noise (levels 30, 50), and synthetic rain streaks. The model was then fine-tuned and evaluated on standard benchmarks including Set5, Set14, B100, Urban100 (for SR), BSD68 (for denoising), and Rain100L (for deraining).

Key Results and Insights

The results indicate that Transformers scale remarkably well with data. While CNNs may plateau, IPT's performance continues to climb as training volume increases.

Performance comparison of IPT against previous state-of-the-art methods across super-resolution, denoising, and deraining tasks.

As shown in the figure above, IPT achieved substantial gains over previous state-of-the-art (SOTA) methods:

  • Super-Resolution: On the Urban100 (x2) dataset, IPT reached 33.76dB PSNR, surpassing the previous leader (HAN) by 0.4dB.
  • Denoising: For noise level 50 on Urban100, IPT improved the SOTA by nearly 2dB.
  • Deraining: On Rain100L, the model achieved 41.62dB, a 1.62dB jump over RCDNet.

Beyond metrics, qualitative results show that IPT excels at recovering sharp textures and fine architectural details where CNNs often produce "smudged" artifacts.

Limitations and Future Outlook

While powerful, IPT is computationally demanding, requiring significant GPU resources (e.g., 32 NVIDIA V100s) for pre-training. Additionally, while it generalizes well from synthetic to benchmark data, its performance on complex, real-world sensor noise remains an open question. Future work may extend this "generalist" approach to other tasks like image inpainting and dehazing, further solidifying the role of Transformers in the future of image processing.

Summary updated

BibTeX
@inproceedings{chen2021pre,
  author = {Hanting Chen and Yunhe Wang and Tianyu Guo and Chang Xu and Yiping Deng and Zhenhua Liu and Siwei Ma and Chunjing Xu and Chao Xu and Wen Gao},
  title = {{Pre-Trained Image Processing Transformer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01212},
}
Figure