[Paper Review] TAPE: Task-Agnostic Prior Embedding for Image Restoration
This paper proposes Task-Agnostic Prior Embedding (TAPE), a two-stage framework that learns a generalized, task-agnostic prior for image restoration using a transformer-based architecture. By pre-training on diverse clean image data via a pixel-wise contrastive loss and fine-tuning on specific tasks, TAPE improves PSNR by up to 1.45dB across multiple restoration tasks and generalizes effectively to unseen degradation types, outperforming task-specific models.
Learning a generalized prior for natural image restoration is an important yet challenging task. Early methods mostly involved handcrafted priors including normalized sparsity, l_0 gradients, dark channel priors, etc. Recently, deep neural networks have been used to learn various image priors but do not guarantee to generalize. In this paper, we propose a novel approach that embeds a task-agnostic prior into a transformer. Our approach, named Task-Agnostic Prior Embedding (TAPE), consists of two stages, namely, task-agnostic pre-training and task-specific fine-tuning, where the first stage embeds prior knowledge about natural images into the transformer and the second stage extracts the knowledge to assist downstream image restoration. Experiments on various types of degradation validate the effectiveness of TAPE. The image restoration performance in terms of PSNR is improved by as much as 1.45dB and even outperforms task-specific algorithms. More importantly, TAPE shows the ability of disentangling generalized image priors from degraded images, which enjoys favorable transfer ability to unknown downstream tasks.
Motivation & Objective
- To address the challenge of learning generalized, transferable image priors that are not specific to any single restoration task.
- To disentangle clean image priors from degradation artifacts in a way that enables transfer to unseen image restoration tasks.
- To develop a unified framework that improves performance across multiple low-level vision tasks without task-specific retraining.
- To explore whether a single pre-trained prior module can effectively support diverse downstream restoration tasks.
Proposed method
- TAPE employs a two-stage training pipeline: task-agnostic pre-training on clean images followed by task-specific fine-tuning on degraded data.
- A prior learning module (PLM) is trained using a pixel-wise contrastive loss to learn generalized features from clean images, encoding them into query embeddings.
- The transformer decoder uses these query embeddings to attend to relevant features in the input, enabling effective restoration of degraded images.
- The pre-training phase uses multiple restoration datasets (deraining, denoising, demoireing, etc.) without real degradation annotations, relying only on clean image data.
- The method explicitly disentangles clean image priors from degradation by learning a prior representation that is independent of specific degradation types.
- The framework is compatible with various transformer backbones and can be fine-tuned end-to-end for specific tasks.
Experimental results
Research questions
- RQ1Can a single, task-agnostic prior be learned from clean images and effectively transferred to multiple image restoration tasks?
- RQ2Does pre-training on clean images using a pixel-wise contrastive loss improve generalization to unseen degradation types?
- RQ3How does the disentanglement of clean image priors from degradation artifacts affect performance on unknown tasks?
- RQ4To what extent does the proposed prior embedding outperform task-specific models in terms of PSNR and generalization?
Key findings
- TAPE improves PSNR by 1.45dB on the Rain200L dataset, outperforming task-specific models.
- On unseen tasks such as desnowing, shadow removal, super-resolution, and deblurring, TAPE achieves PSNR gains of 0.91dB, 0.29dB, 0.41dB, and 0.48dB, respectively.
- Task-agnostic pre-training without access to real noisy images on the SIDD dataset still improves PSNR by 0.31dB, demonstrating the value of clean-image priors.
- Ablation studies show that pre-training the network θ and the PLM module is more critical than pre-training the backbone φ, with PSNR drops of 0.22dB and 0.34dB when omitted.
- The pixel-wise contrastive loss in pre-training enhances feature generalization, contributing to improved performance across diverse tasks.
- Visualization confirms that the PLM's output features preserve structural and edge information from clean images while suppressing degradation artifacts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.