Instruct-IPT: All-in-One Image Processing Transformer via Weight Modulation

Yuchuan Tian, Jianhong Han, Hanting Chen, Yuanyuan Xi, Guoyang Zhang, Jie Hu, Chao Xu, Yunhe WangarXiv 2024 · DOI

Abstract

Instruct-IPT is a versatile "All-in-One" image restoration framework designed to handle a wide array of degradation tasks—including denoising, deblurring, deraining, dehazing, and desnowing—within a single, unified architecture. By shifting from conventional feature-based adaptation to a novel weight modulation approach, the model effectively mitigates task interference and "task competition." Utilizing low-rank biases added to a shared transformer backbone, Instruct-IPT achieves state-of-the-art performance across multiple benchmarks while remaining parameter-efficient. Furthermore, the integration of a text encoder enables the model to respond to natural language instructions, allowing for dynamic, multimodal task execution.

Introduction

In the domain of low-level vision, specialized models are typically engineered for single restoration tasks, such as Gaussian denoising or motion deblurring. While "All-in-One" models offer the promise of versatility, they often struggle when tasks are fundamentally different. For instance, the logic required to reverse structured motion blur differs significantly from that needed to remove stochastic noise. Existing multi-task models often rely on feature adaptation, which can lead to "task competition," where learning one task negatively impacts the performance of another. Consequently, these models frequently fail to match the quality of single-task experts.

Instruct-IPT addresses these challenges by introducing weight modulation. Instead of merely filtering data through a shared backbone, the model reconfigures its internal logic for each task, allowing it to bridge the "inter-task gap" and maintain high performance across diverse restoration scenarios.

Methodology

The Instruct-IPT architecture is built upon the Image Processing Transformer (IPT) and incorporates several key technical innovations:

Weight Modulation via Low-Rank Biases

The core innovation is the adaptation of network weights rather than intermediate features. For any specific task, the effective weights $W'$ are calculated as $W' = W_{general} + B_{task}$, where $W_{general}$ represents the universal restoration knowledge stored in the shared backbone, and $B_{task}$ is a task-specific bias. To ensure the model remains scalable, these biases are implemented using low-rank decomposition ($B_{task} = B_1 \times B_2$). This approach allows the model to acquire new expertise with minimal parameter overhead.

Synchronous Training and Feature Decoupling

Unlike traditional two-stage training (pre-training followed by fine-tuning), Instruct-IPT employs a synchronous training strategy. The backbone and task-specific biases are updated simultaneously, forcing the model to automatically decouple general restoration features from task-specific nuances. Through rank analysis, the authors determined that a Constant Rank strategy across all layers is superior to Proportional Rank, which tends to lose critical information in the shallow layers of the U-Net.

Multimodal Instruction Integration

To enhance usability, the model integrates a text encoder that processes human-language prompts. Instructions such as "Please clarify the blurred portions" are mapped to the appropriate weight modulation parameters, enabling the model to perform restoration based on high-level user intent.

Experimental Results

The model was rigorously evaluated on a comprehensive suite of benchmarks, including BSD68 for denoising, GoPro and HIDE for deblurring, Rain100L for deraining, SOTS for dehazing, and CSD for desnowing.

Restoration Performance

Instruct-IPT establishes a new state-of-the-art for All-in-One models. It consistently outperformed existing leaders like PromptIR and AirNet across all five primary restoration tasks. Notably, the model achieved a significant 9.37 dB improvement in dehazing and a 1.15 dB gain in deblurring over previous best results.

Blurred input image

Efficiency and Scalability

The "Tiny" variant of Instruct-IPT, utilizing only 2.6M parameters, demonstrates remarkable efficiency by outperforming models like InstructIR, which contains 15.8M parameters. Furthermore, the weight modulation technique proved universally applicable; when extrapolated to Diffusion Models (specifically U-Net denoisers), it improved logical consistency and realism in generative tasks such as outpainting on the COCO-Stuff dataset.

Conclusion

Instruct-IPT represents a significant advancement in universal image restoration. By leveraging weight modulation and low-rank adaptation, it achieves expert-level performance across multiple tasks without the compromises typical of multi-task architectures. Its ability to interpret natural language instructions further bridges the gap between complex vision algorithms and user-centric applications. Future research will focus on expanding the task repertoire and further refining the multimodal alignment for more ambiguous human requests.

Summary updated

BibTeX
@misc{tian2024instruct,
  author = {Yuchuan Tian and Jianhong Han and Hanting Chen and Yuanyuan Xi and Guoyang Zhang and Jie Hu and Chao Xu and Yunhe Wang},
  title = {{Instruct-IPT: All-in-One Image Processing Transformer via Weight Modulation}},
  year = {2024},
  eprint = {2407.00676},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.00676},
}
Figure