Manuscript Offprint

arXiv:2609.31170

TaskIR: Task-Driven Image Restoration via Degradation Adaptation and Task Feedback

Yanjie Tu, Qingsen Yan, Axi Niu, Wenxuan Cai, Tao Hu, Wei Dong, Haokui Zhang

ABSTRACT

Task-driven image restoration aims to improve both image quality and downstream task performance. However, existing methods predominantly focus on single degradation type and struggle to handle the diverse degradations encountered in real-world scenarios. Different degradations impose distinct restoration demands, and insufficient restoration may leave residual degradations and artifacts that impair object boundaries and semantic cues, thereby compromising downstream task performance. To address these challenges, we propose TaskIR, a two-stage task-driven unified image restoration framework that integrates degradation-adaptive restoration with task feedback refinement. In Stage I, a Degradation Representation Module (DRM) extracts degradation representations, enabling a Degradation-Guided Transformer Block (DGTB) to dynamically modulate feature transformations for adaptive restoration. In Stage II, a Task-to-Restoration Feedback Generation module (TRFG) transforms heterogeneous task features into restoration feedback by modeling task-representation discrepancies associated with the current restoration. Subsequently, a Selective Task Feedback Refinement module (STFR) assesses feedback relevance and selectively refines intermediate restoration features to mitigate interference with well-restored content. Extensive experiments demonstrate that TaskIR achieves competitive restoration quality and downstream task performance across diverse degradations and tasks.

1 INTRODUCTION

Image restoration aims to reconstruct high-quality images from degraded observations and provide reliable inputs for subsequent visual analysis. Images captured in real-world scenarios are often affected by various degradations, such as noise (Abdelhamed et al., 2018), blur (Ren et al., 2023), haze (Chen et al., 2019), and low illumination (Wei et al., 2018). These degradations not only deteriorate visual quality but may also corrupt task-relevant information, such as object textures, structures, and boundaries, thereby degrading the performance of downstream vision tasks, including image classification (Huang et al., 2017), semantic segmentation (Zhang et al., 2022), and object detection (Liu et al., 2016). Consequently, task-driven image restoration (Kim et al., 2025; Lee et al., 2026; Zhang et al., 2026) has attracted increasing attention, aiming to improve restoration quality while preserving or enhancing information relevant to downstream tasks. Existing task-driven image restoration methods typically guide the restoration process using task losses, task features, or prediction results and have achieved promising performance in specific scenarios such as super-resolution (Haris et al., 2021; Kim et al., 2024) and dehazing (Wan et al., 2025; Zhang et al., 2026). However, most of these methods are designed for a single degradation, with their network architectures and task-guidance mechanisms often tailored to specific degradation conditions, making them difficult to directly adapt to the diverse and complex degradations encountered in real-world scenarios. In fact, different degradations exhibit distinct corruption patterns and restoration requirements, and their effects on downstream task representations and prediction performance also vary. Therefore, extending task-driven image restoration from single-degradation settings to a unified multi-degradation scenario represents an important direction toward practical deployment in complex real-world environments.

*Corresponding author: qingsenyan@nwpu.edu.cn

In recent years, all-in-one image restoration (Potlapalli et al., 2023; Jiang et al., 2025; Zamfir et al., 2025; Tang et al., 2026) has attracted increasing attention by handling multiple degradations within a single model and enhancing multi-degradation restoration through mechanisms such as degradation representation, prompt learning, and dynamic experts. However, different degradations have distinct restoration requirements, making it difficult for shared feature transformations to achieve sufficient degradation adaptation, while improved restoration quality does not necessarily lead to better downstream task performance (Chen et al., 2025). On the other hand, downstream task features emphasize high-level semantic and discriminative information, which differs from the texture and structural information required for image restoration, and directly using such features for restoration may introduce interference. Moreover, different task feedback signals contribute differently to restoration, and indiscriminately using them to refine restoration features may disrupt already restored content (Lee et al., 2026). Therefore, adapting to the restoration requirements of diverse degradations while effectively utilizing heterogeneous task feedback to improve downstream task performance without compromising restoration quality remains a core challenge for task-driven image restoration.

To address the above challenges, we propose TaskIR, a two-stage task-driven all-in-one image restoration framework. In Stage I, we design a Degradation Representation Module (DRM) to jointly model global degradation characteristics and spatial degradation responses and employ a Degradation-Guided Transformer Block (DGTB) to dynamically modulate feature transformations for degradation-adaptive restoration. In Stage II, we further incorporate downstream task feedback to improve the suitability of restoration results for downstream tasks. Specifically, Task-to-Restoration Feedback Generation (TRFG) adaptively transforms heterogeneous task features and generates targeted task feedback based on discrepancies in the task representations of the current restoration results. Subsequently, Selective Task Feedback Refinement (STFR) assesses the contributions of different feedback signals to the current restoration state and selectively refines restoration features to minimize interference with already restored content. By combining degradation-adaptive restoration with task feedback refinement, TaskIR balances restoration quality and downstream task performance under diverse degradation conditions.

The main contributions of this work are summarized as follows:

• We propose TaskIR, a task-driven unified image restoration framework that combines degradation-adaptive restoration and task feedback refinement to balance restoration quality and downstream task performance under various degradation conditions.

• We develop DGTB that dynamically modulates feature transformations in a shared restoration network using degradation representations, enabling adaptive restoration across diverse degradations.

• We introduce TRFG and STFR to transform heterogeneous task features into targeted feedback and selectively refine restoration features, improving downstream task performance while minimizing interference with previously restored content.

• Extensive experiments across diverse image degradations and downstream vision tasks demonstrate that TaskIR effectively improves downstream task performance while maintaining high restoration quality.

References (40)

  • A high-quality denoising dataset for smartphone cameras
  • Retinexformer: One-stage retinex-based transformer for low-light image enhancement
  • Unified perceptual and task-oriented image restoration model using diffusion prior
  • Pms-net: Robust haze removal based on patch map for single images
  • The cityscapes dataset for semantic urban scene understanding
  • Adair: Adaptive all-in-one image restoration via frequency mining and modulation
  • Bio-inspired image restoration
  • Imagenet: A large-scale hierarchical image database
  • The pascal visual object classes (voc) challenge
  • Task-driven super resolution: Object detection in low-resolution images
  • Hndiff: Haze-noise diffusion for image dehazing (opens arXiv in a new tab)
  • Densely connected convolutional networks
  • A survey on all-in-one image restoration: Taxonomy, evaluation and future trends
  • Beyond image super-resolution for image recognition with task-driven perceptual loss
  • Exploiting diffusion prior for task-driven image restoration
  • Tasktok: Delving into task tokens for task-driven image restoration (opens arXiv in a new tab)
  • All-in-one image restoration for unknown corruption
  • Downstream task inspired underwater image enhancement: a perception-aware study from dataset construction to network design
  • Unirestorer: Universal image restoration via adaptively estimating image degradation at proper granularity
  • Microsoft coco: Common objects in context
  • Ssd: Single shot multibox detector
  • Decoupled Weight Decay Regularization
  • Promptir: Prompting for all-in-one image restoration
  • Efficient degradation-agnostic image restoration via channel-wise functional decomposition and manifold regularization
  • Multiscale structure guided diffusion for image deblurring
  • International journal of computer vision, 115(3):211–252, 2015
  • Learning continuous wasserstein barycenter space for generalized all-in-one image restoration
  • Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results
  • Degradation-aware feature perturbation for all-in-one image restoration
  • Tpgdiff: Hierarchical triple-prior guided diffusion for image restoration (opens arXiv in a new tab)
  • Collaboration of dehazing and object detection tasks: A multitask learning framework for foggy image
  • Deep retinex decomposition for low-light enhancement (opens arXiv in a new tab)
  • Scan clusters, not pixels: A cluster-centric paradigm for efficient ultra-high-definition image restoration (opens arXiv in a new tab)
  • Visual recognition-driven image restoration for multiple degradation with intrinsic semantics recovery
  • Neural degradation representation learning for all-in-one image restoration
  • Multi-Scale Context Aggregation by Dilated Convolutions
  • Complexity experts are task-discriminative learners for any image restoration
  • Vision-language gradient descent-driven all-in-one deep unfolding networks
  • Topformer: Token pyramid transformer for mobile semantic segmentation
  • Adaptive dynamic dehazing via instruction-driven and task-feedback closed-loop optimization for diverse downstream task adaptation