TL;DR
This paper introduces MAEIP, a novel masked autoencoder pre-training framework specifically designed for image processing tasks. By adapting the successful MAE strategy to the unique demands of low-level vision, they demonstrate significant performance improvements on various tasks like denoising and deblurring, achieving state-of-the-art results with their proposed CSformer architecture.
What Problem Does This Paper Address?
While masked autoencoders (MAE) have revolutionized high-level vision tasks like image classification and object detection by enabling powerful self-supervised pre-training of Transformers, their application to low-level vision tasks (e.g., denoising, deblurring, deraining) has been largely unexplored. Low-level vision tasks often require preserving fine details and understanding local image structures, which might be challenging for standard MAE approaches that focus on reconstructing global image content. This paper aims to bridge this gap by investigating the effectiveness of MAE pre-training for image processing and proposing a tailored framework, MAEIP, to leverage its benefits for these tasks.
Methods
The authors propose two main contributions:
- CSformer Architecture: They introduce CSformer, an efficient Transformer-based model designed for image processing. It combines channel attention and shifted-window-based self-attention within a hierarchical U-shape encoder-decoder structure. This design aims to balance capturing long-range dependencies (inherent to Transformers) with the need for local detail preservation crucial in image processing. They also introduce a gated convolutional feed-forward network (GCFFN) for improved feature refinement. To address computational costs, they propose an inference speed-up technique by padding features rather than entire input images.
- MAEIP Framework: They develop MAEIP (Masked Autoencoder for Image Processing), a self-supervised pre-training framework. Unlike typical MAE approaches that mask tokens, MAEIP directly masks random image patches on raw pixels. The encoder reconstructs the masked patches, while the decoder reconstructs the entire image. This is crucial for image processing tasks where preserving global image integrity is important. They also propose a two-stage pre-training strategy: first pre-training the encoder, then the entire autoencoder, to improve efficiency and performance.
Datasets
The paper evaluates their approach on a variety of standard datasets for different image processing tasks:
- Denoising: Set12, BSD68, Urban100, Kodak24, McMaster (grayscale); CBSD68, Kodak24, McMaster, Urban100 (color); SIDD, DND (real-world).
- Motion Deblurring: GoPro, HIDE, RealBlur-R, RealBlur-J.
- Defocus Deblurring: DPDD (indoor and outdoor scenes).
- Deraining: Rain100L, Rain100H, Test100, Test1200, Test2800.
They also mention pre-training on the ImageNet-1K (IN1K) dataset.
Key Insights and Ideas
- MAE is Scalable for Image Processing: The core insight is that MAE, a successful strategy for high-level vision, is indeed effective for low-level image processing tasks, unlocking significant performance gains.
- Tailoring MAE for Low-Level Vision: Directly masking image patches (rather than tokens) and using a decoder to reconstruct the entire image is critical for preserving fine details and global consistency in image processing, differentiating it from MAE for classification.
- CSformer's Efficiency and Effectiveness: The proposed CSformer architecture, with its blend of channel and shifted-window attention within a U-Net-like structure, proves to be an efficient and powerful backbone for these tasks.
- Two-Stage Pre-training Benefits: The two-stage pre-training approach (encoder first, then full autoencoder) offers a good balance between performance and training time, making MAEIP more practical.
- Pre-training Boosts Generalization: MAEIP pre-training demonstrably improves the performance of the CSformer model across a wide range of image processing tasks, suggesting it learns more robust and generalizable image representations.
Key Results
- State-of-the-Art Performance: The MAEIP-pre-trained CSformer (CSformer) achieves state-of-the-art (SOTA) results on multiple image processing tasks, including Gaussian denoising, real image denoising, motion deblurring, defocus deblurring, and image deraining.
- Denoising Gains: For grayscale denoising on Urban100 (σ=50), CSformer achieved 0.23 dB gain over Restormer and 0.54 dB over SwinIR. For color denoising on Urban100 (σ=50), it showed similar improvements. On real denoising datasets (SIDD, DND), it also achieved SOTA or competitive performance.
- Deblurring Improvements: CSformer achieved a 0.44 dB boost over Restormer on the GoPro motion deblurring dataset and showed superior results on other test sets. It also outperformed previous models on defocus deblurring.
- Deraining Excellence: CSformer achieved SOTA performance on various deraining benchmarks, producing visually pleasant rain-free images.
- Efficiency: The CSformer architecture itself is noted for its computational efficiency, and the MAEIP pre-training framework is shown to be efficient, especially with the two-stage approach.
Limitations and Future Work
- Pre-training Length: While MAEIP pre-training significantly improves performance, the paper notes that performance steadily improves with longer pre-training durations, suggesting further gains are possible with more extensive training.
- Computational Cost: While CSformer is efficient, MAEIP pre-training, especially for larger models, can still be computationally intensive. The two-stage approach mitigates this, but further optimizations might be beneficial.
- Broader Applications: The authors suggest that their pre-trained CSformer is expected to perform well on other image processing tasks beyond those tested, hinting at future work in exploring its versatility. They also mention that while they demonstrate a few applications, the framework has potential for many more.
Summary updated