Manuscript Offprint
arXiv:2609.31170TaskIR: Task-Driven Image Restoration via Degradation Adaptation and Task Feedback
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.

Figure 1: Overview of the proposed TaskIR framework and its key components: (a) Overall architecture of TaskIR; (b) Task-to-restoration feedback generation (TRFG); (c) Degradation-guided transformer block (DGTB); (d) Degradation representation module (DRM); and (e) Degradation-conditioned parameter generator (DPG).
and degradation-content decoupling, respectively. Despite these advances, existing AiOIR methods still mainly optimize pixel fidelity and visual quality, with limited attention to the suitability of restored images for downstream tasks.
Task-Driven Image Restoration. Task-Driven Image Restoration (TDIR) (Yang et al., 2023; Kim et al., 2024; Lin et al., 2026a; Zhang et al., 2026) introduces downstream visual task constraints to make restored images more suitable for machine vision analysis. Existing studies (Chen et al., 2025) have shown that image degradations can substantially affect the performance of tasks such as classification, semantic segmentation, and object detection, while optimizing only pixel-level or perceptual quality is insufficient for practical visual applications. To address this issue, SR4IR (Kim et al., 2024) and TDSR (Haris et al., 2021) employ task-related losses to improve the recognition and detection performance of super-resolved images, respectively; MS-FODN (Wan et al., 2025) jointly optimizes object detection and dehazing to improve detection under hazy conditions; ADeT-Net (Zhang et al., 2026) combines task feedback with textual instructions to perform dynamic dehazing for different downstream requirements; and DTIUIE (Lin et al., 2026a) introduces task-driven constraints to improve the suitability of underwater image enhancement for recognition tasks. However, most existing methods are designed for a single degradation and are therefore difficult to balance restoration requirements and task performance under multiple degradations. Moreover, downstream task representations do not fully align with the requirements of image restoration, and indiscriminate refinement using task information may introduce irrelevant information and interfere with already restored content.
3 METHOD
As shown in Fig. 1, given a degraded image , TaskIR adopts a two-stage task-driven all-in-one image restoration framework to jointly improve restoration quality and downstream task performance under diverse degradations. In Stage I, the DRM extracts a global degradation representation and a spatial degradation response . The DGTB then dynamically modulates the feature transformations of the shared restoration network to produce an initial restored image . In Stage II, TRFG transforms heterogeneous downstream task features into task feedback and predicts the task-representation discrepancy of the current restored image. Based on this feedback, STFR dynamically integrates multiple task feedback signals according to their relevance to the current restoration state and selectively refines intermediate restoration features, yielding the final restored image .
3.1 STAGE I: DEGRADATION-GUIDED RESTORATION
Degradation Representation Module. Different degradations exhibit distinct local spatial patterns and also induce changes in feature statistics. To characterize both types of information, we design the DRM, which generates a global degradation representation and a spatial degradation response . Specifically, given a degraded image , a convolution is first applied to obtain shallow features . Subsequently, Multi-scale Degradation Extraction (MDE) employs parallel depth-wise convolution branches with different receptive fields to extract multi-scale degradation patterns, followed by feature fusion and a residual connection to obtain the degradation feature , as illustrated in Fig. 1(d). To characterize degradation-induced changes in global statistics, we apply GAP and Global Standard Deviation Pooling (GSP) to to capture its mean and dispersion, respectively. The resulting statistics are concatenated and mapped into the global degradation representation through an MLP.
In addition to image-level degradation statistics, the degradation distribution may also vary across spatial locations. We further employ a spatial mapper to predict the spatial degradation response from . For the -th restoration stage, is resized according to the resolution of the current features and then mapped through a Sigmoid function to obtain the corresponding spatial degradation map:
where denotes the Sigmoid function, and denotes the spatial degradation map whose resolution matches the features at the -th restoration stage.
Degradation-Guided Transformer Block. After obtaining the global degradation representation and the spatial degradation map , we design the DGTB, as illustrated in Fig. 1(c). DGTB explicitly incorporates degradation information into the MDTA and GDFN sublayers of the Transformer, enabling the shared restoration network to adjust channel responses, residual update strengths, and feature update magnitudes at different spatial locations according to the current degradation state. For the -th restoration stage, a Degradation-conditioned Parameter Generator (DPG) first generates two sets of degradation modulation parameters from . As shown in Fig. 1(e), DPG employs normalization and two mapping layers to generate channel scales , channel biases , and residual scales for the MDTA and GDFN branches, respectively, where .
Given the input feature F of DGTB, the first set of degradation parameters modulates the normalized features of the MDTA branch, followed by feature updates using the residual scale and the spatial degradation map of the current stage:
The second set of degradation parameters takes the updated feature as input to modulate the GDFN branch, yielding the DGTB output:
Here, and adjust the channel scales and biases of the input features to MDTA or GDFN, while controls the update strength of the corresponding residual branch. The spatial degradation map further modulates the update magnitudes at different spatial locations according to the spatial distribution of degradations. We employ DGTBs in the latent and decoder stages, allowing degradation information to continuously guide feature restoration and ultimately producing the Stage I restoration result .
3.2 STAGE II: TASK-DRIVEN FEEDBACK MODELING
Building upon the initial restoration results generated in Stage I, Stage II introduces downstream task feedback to further improve task performance. Specifically, we design Task-to-Restoration

Figure 2: Architecture of the proposed selective task feedback refinement (STFR) module. (a) Task-related feedback (TRF); (b) Conditional restoration refinement (CRR).
Feedback Generation (TRFG) and Selective Task Feedback Refinement (STFR). TRFG transforms features from different downstream tasks into task feedback, while STFR reduces interference with already restored content through feedback fusion and selective feature refinement.
3.2.1 TASK-TO-RESTORATION FEEDBACK GENERATION
Features from different downstream tasks vary in channel dimensions, spatial scales, and representation forms. Moreover, these features are primarily designed for task prediction, making them difficult to directly apply to image restoration. To address this issue, we design TRFG to generate task feedback through adaptive feature transformation and task representation discrepancy prediction.
Given the feature extracted at position for task , a task- and position-specific Projection Bank first performs channel mapping and spatial alignment to obtain , where denotes the corresponding independent projection mapping. Subsequently, the Task-Conditioned Dynamic Adapter (TCDA) employs three depth-wise convolution branches with dilation rates to extract multi-scale information (Yu & Koltun, 2015), as illustrated in Fig. 1(b). TCDA predicts channel-wise weights for each branch based on the global statistics of and the learnable condition embedding associated with task and position :
Denoting the output of the -th branch as , the adapted task features are obtained through dynamic weighted aggregation, lightweight feature mapping, and a residual connection:
where denotes the lightweight feature mapping, and is a learnable residual scale.
On this basis, the Task Gap Predictor (TGP) predicts the task representation discrepancy of the current restoration result through , where denotes the discrepancy predictor corresponding to position . During training, an exponential moving average (EMA) teacher (Tarvainen & Valpola, 2017) is employed to construct supervision targets based on the task representation discrepancy between the initial restored image and the reference image . During inference, the reference image is not required. Subsequently, a lightweight gate modulates the contribution of the predicted discrepancy to generate the final task feedback:
where denotes the gating mapping.
3.2.2 SELECTIVE TASK FEEDBACK REFINEMENT
The multiple task feedback signals generated by TRFG differ in their relevance to the current restoration state, and directly applying them to restoration features may interfere with already restored content. We therefore design STFR, as shown in Fig. 2, in which Task-Related Feedback (TRF) estimates the relative contributions of different feedback signals, while Conditional Restoration Refinement (CRR) further controls their actual updates to the restoration features.
Task-Related Feedback. Given the restoration feature at the -th restoration position and three task feedback signals , TRF first projects them into a unified -dimensional space and flattens them to obtain and . To model the overall relationship between restoration features and task feedback, we introduce a shared prototype bank containing learnable prototypes, which is shared across all restoration positions and feedback paths. For any projected feature , soft assignments are computed based on its cosine similarity to the shared prototypes:
where and denote the L2-normalized feature and prototype, respectively. Softmax denotes normalization along the prototype dimension, and denotes the prototype assignment temperature. Subsequently, the -th prototype representation is obtained through weighted aggregation:
This yields the restoration feature prototypes and the prototypes for the -th task feedback signal. We then compute the cosine similarity matrix between the two sets of prototypes and approximate the entropy-regularized transport plan through log-domain Sinkhorn (Cuturi, 2013) iterations. The relevance score between the -th task feedback signal and the current restoration state, along with its contribution weight, is defined as:
where denotes normalization across the three task feedback signals, and is the path weighting temperature. Each task feedback signal is then projected and resized to match the spatial resolution of the current restoration position, yielding . The aligned feedback signals are fused according to their corresponding contribution weights:
Thus, TRF dynamically determines the relative contributions of different task feedback signals based on the prototype matching relationships between the current restoration state and each feedback signal, providing fused feedback for subsequent feature refinement.
Conditional Restoration Refinement. Given , CRR further controls the extent to which task feedback modifies the current restoration features. First, channel-wise cross-attention is employed to establish interactions between restoration features and task feedback, where the query is projected from , while the key and value are projected from , yielding a candidate refinement:
where consists of a depth-wise convolution, GELU, and a convolution, and is a learnable refinement scale. Based on , we construct a keep state and an update state . The two candidate states and the fused feedback are mapped into a unified feature space, yielding and , respectively. A shared Scorer then computes responses based on the conditional relationship between each candidate state and the fused feedback:
An update gate is then generated based on the response difference between the update and keep states:
Table 1: Overall restoration performance across eight degradation types. The best and second-best results are shown in bold and underlined, respectively.
| Methods | Venue | ImageNet-1K | Cityscapes | VOC2012 | |||
|---|---|---|---|---|---|---|---|
| PSNR (dB) ↑ | SSIM ↑ | PSNR (dB) ↑ | SSIM ↑ | PSNR (dB) ↑ | SSIM ↑ | ||
| AirNet (Li et al., 2022) | CVPR'22 | 25.20 | 0.7785 | 30.81 | 0.9005 | 25.30 | 0.7792 |
| PromptIR (Potlapalli et al., 2023) | NeurIPS'23 | 27.37 | 0.8280 | 33.43 | 0.9290 | 27.32 | 0.8268 |
| NDR-Restore (Yao et al., 2024) | TIP'24 | 27.26 | 0.8261 | 33.67 | 0.9318 | 27.19 | 0.8243 |
| AdaIR (Cui et al., 2025) | ICLR'25 | 27.70 | 0.8330 | 33.70 | 0.9321 | 27.63 | 0.8314 |
| DFPIR (Tian et al., 2025) | CVPR'25 | 28.23 | 0.8420 | 34.81 | 0.9334 | 28.17 | 0.8408 |
| MoCE-IR (Zamfir et al., 2025) | CVPR'25 | 24.23 | 0.7070 | 28.97 | 0.7977 | 24.20 | 0.7071 |
| VLU-Net (Zeng et al., 2025) | CVPR'25 | 27.75 | 0.8359 | 34.01 | 0.9341 | 27.67 | 0.8342 |
| BaryIR (Tang et al., 2026) | TPAMI'26 | 28.26 | 0.8451 | 34.76 | 0.9384 | 28.17 | 0.8434 |
| C2SSM (Wu et al., 2026) | CVPR'26 | 27.32 | 0.8295 | 33.60 | 0.9345 | 27.29 | 0.8286 |
| MIRAGE (Ren et al., 2026) | ICLR'26 | 27.83 | 0.8407 | 34.24 | 0.9397 | 27.80 | 0.8398 |
| TaskIR (Ours) | - | 28.31 | 0.8491 | 35.31 | 0.9481 | 28.28 | 0.8484 |
Table 2: Overall downstream task performance (%). The best and second-best results are shown in bold and underlined, respectively.
| Methods | Venue | ImageNet-1K | Cityscapes | VOC2012 | |||
|---|---|---|---|---|---|---|---|
| Top-1 ↑ | Top-5 ↑ | mIoU ↑ | Dice ↑ | ||||
| AirNet (Li et al., 2022) | CVPR'22 | 68.31 | 87.30 | 70.95 | 82.08 | 76.90 | 58.35 |
| PromptIR (Potlapalli et al., 2023) | NeurIPS'23 | 72.26 | 89.78 | 74.12 | 84.36 | 81.92 | 63.32 |
| NDR-Restore (Yao et al., 2024) | TIP'24 | 72.15 | 90.06 | 74.08 | 84.33 | 81.65 | 63.13 |
| AdaIR (Cui et al., 2025) | ICLR'25 | 72.10 | 90.36 | 74.12 | 84.35 | 82.05 | 63.44 |
| DFPIR (Tian et al., 2025) | CVPR'25 | 72.13 | 90.41 | 74.05 | 84.30 | 82.44 | 63.14 |
| MoCE-IR (Zamfir et al., 2025) | CVPR'25 | 65.95 | 86.50 | 66.39 | 78.39 | 72.11 | 54.01 |
| VLU-Net (Zeng et al., 2025) | CVPR'25 | 72.63 | 90.56 | 74.19 | 84.40 | 82.06 | 63.65 |
| BaryIR (Tang et al., 2026) | TPAMI'26 | 72.95 | 90.30 | 74.17 | 84.40 | 82.40 | 64.15 |
| C2SSM (Wu et al., 2026) | CVPR'26 | 71.49 | 89.86 | 73.89 | 84.19 | 80.98 | 62.46 |
| MIRAGE (Ren et al., 2026) | ICLR'26 | 72.25 | 90.43 | 74.63 | 84.71 | 81.95 | 63.45 |
| TaskIR (Ours) | - | 73.00 | 90.65 | 74.69 | 84.77 | 82.46 | 63.98 |
where denotes a learnable gating mapping at the -th restoration position, implemented using a convolution. Finally, the refined restoration features are obtained by selectively fusing the keep and update states:
By comparing the responses of the two candidate states under the same task feedback, CRR adaptively controls the extent of feature refinement, reducing interference with already restored content.
4 EXPERIMENTS
We evaluate TaskIR on ImageNet-1K (Deng et al., 2009), Cityscapes (Cordts et al., 2016), and PAS-CAL VOC2012 (Everingham et al., 2010) across eight degradation types in terms of both image restoration quality and downstream task performance. We further conduct comprehensive comparisons and ablation studies to validate the effectiveness of the proposed framework.
4.1 IMPLEMENTATION DETAILS
TaskIR adopts a two-stage training strategy. In Stage I, the degradation-guided restoration network is trained using a pixel-wise reconstruction loss and a degradation classification loss. In Stage II, the pretrained Stage-I weights are loaded, while the restoration backbone and downstream task networks are frozen, and only TRFG and STFR are optimized. All experiments are conducted on four NVIDIA A100 GPUs with a batch size of 8. We use the AdamW (Loshchilov & Hutter, 2017) optimizer with an initial learning rate of . Stage I and Stage II are trained for 200K and 100K iterations, respectively.

Figure 3: Qualitative comparison of image restoration results under diverse degradations on ImageNet-1K (Deng et al., 2009), Cityscapes (Cordts et al., 2016), and PASCAL VOC2012 (Everingham et al., 2010). Zoom in for a better view.

Figure 4: Qualitative comparison of downstream task results under diverse degradations, including classification (Cls.), segmentation (Seg.), and detection (Det.). Zoom in for a better view.
4.2 COMPARISONS WITH THE STATE-OF-THE-ART METHODS
Image Restoration Performance. Tab. 1 reports the overall image restoration performance of different methods after two-stage training. TaskIR achieves competitive PSNR and SSIM in the overall evaluation across eight degradation types, demonstrating that it maintains high restoration quality even after incorporating downstream task feedback. Fig. 3 further presents a qualitative comparison of image restoration results from different methods. Compared with other methods, TaskIR more effectively removes degradations and restores texture and structural details. For example, in the car headlight region, some competing methods produce blurred edges and distorted contours, whereas TaskIR better recovers the sharp boundaries and original shape of the headlight, yielding a visual result closer to the ground truth.
Downstream Task Performance. We further evaluate the performance of the restored images on image classification, semantic segmentation, and object detection. As shown in Tab. 2, compared with other restoration methods trained with downstream task supervision, TaskIR achieves competi-
Table 3: Ablation study on the feedback modules. We report both restoration quality and downstream task performance across three datasets.
| TRFG | STFR | ImageNet-1K | Cityscapes | VOC2012 | ||||
|---|---|---|---|---|---|---|---|---|
| TRF | CRR | Restoration | Classification | Restoration | Segmentation | Restoration | Detection | |
| ✓ | ✕ | ✕ | 28.29/0.8489 | 72.95/90.59 | 35.28/0.9479 | 74.52/84.64 | 28.26/0.8481 | 82.24/63.83 |
| ✓ | ✓ | ✕ | 28.28/0.8489 | 72.98/90.58 | 35.28/0.9480 | 74.65/84.74 | 28.25/0.8482 | 82.29/63.87 |
| ✓ | ✕ | ✓ | 28.30/0.8487 | 72.98/90.64 | 35.30/0.9480 | 74.67/84.75 | 28.27/0.8484 | 82.37/63.92 |
| ✕ | ✓ | ✓ | 28.31/0.8490 | 72.99/90.62 | 35.29/0.9481 | 74.64/84.73 | 28.28/0.8483 | 82.44/63.91 |
| ✓ | ✓ | ✓ | 28.31/0.8491 | 73.00/90.65 | 35.31/0.9481 | 74.69/84.77 | 28.28/0.8484 | 82.46/63.98 |
(a) ImageNet-1K

Input
LQ
(C1)
(C2)
(C3)
GT
Figure 5: Ablation study on the two-stage design. Qualitative segmentation results on Cityscapes are shown for further comparison.
tive performance in terms of Top-1/Top-5 accuracy (Russakovsky et al., 2015), mIoU/Dice (Everingham et al., 2010; Dice, 1945), and mAP (Lin et al., 2014), demonstrating that its restoration results can better support diverse downstream vision tasks. Fig. 4 presents qualitative comparisons of downstream task results obtained with different methods. Compared with other methods, TaskIR produces classification predictions that are more consistent with the ground truth, segmentation results that better preserve object boundaries and local structures, and detection boxes that more closely align with target locations. For example, in building segmentation, some competing methods exhibit local misclassifications and discontinuous semantic regions, whereas TaskIR more completely preserves building regions and their boundaries, yielding better segmentation results.
4.3 ABLATION STUDY
To evaluate the effectiveness of each component in TaskIR, we conduct ablation studies under the same training settings and report both image restoration quality and downstream task performance.
Effectiveness of the Two-Stage Design. We first conduct ablation studies on Stage I and Stage II to evaluate the effects of the spatial degradation map and task feedback, respectively. As shown in Fig. 5, C1 uses only the global degradation representation while retaining task feedback, C2 represents the full TaskIR model, and C3 removes task feedback and directly uses the initial restored images for task prediction. Compared with C1, C2 improves restoration quality by incorporating . Compared with C3, C2 improves downstream task performance while maintaining comparable restoration quality.
Effectiveness of Feedback Modules. We further conduct ablation studies on the feedback modules in Stage II. As shown in Tab. 3, retaining only TRFG results in relatively low downstream task performance. Incorporating either TRF or CRR improves overall task performance, indicating that feedback fusion and selective feature refinement both contribute to more effective utilization of task feedback. Compared with configurations in which any individual module is removed, the full TaskIR model achieves better results across all downstream task metrics while maintaining comparable restoration quality.
5 CONCLUSION
In this paper, we propose TaskIR, a task-driven all-in-one image restoration framework that jointly models degradation adaptation and task feedback through a two-stage design. In Stage I, degradation representations are used to dynamically modulate Transformer feature transformations, enabling adaptive restoration across diverse degradations. In Stage II, downstream task feedback is introduced to selectively refine restoration features, enhancing their suitability for downstream tasks while reducing interference with already restored content. Extensive experiments demonstrate that TaskIR achieves competitive performance across diverse degradations and downstream vision tasks, validating the effectiveness of the proposed framework.
ACKNOWLEDGMENTS
This work is supported by NSFC of China under Grant 62622125, 62672410, 62301432, 62306240, 62576267, the Fundamental Research Funds for Central Universities, and Guangdong Basic and Applied Basic Research Foundation 2025A1515011119.
REFERENCES
Abdelrahman Abdelhamed, Stephen Lin, and Michael S Brown. A high-quality denoising dataset for smartphone cameras. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1692–1700. IEEE, 2018.
Yuanhao Cai, Hao Bian, Jing Lin, Haoqian Wang, Radu Timofte, and Yulun Zhang. Retinexformer: One-stage retinex-based transformer for low-light image enhancement. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 12504–12513, 2023.
I Chen, Wei-Ting Chen, Yu-Wei Liu, Yuan-Chun Chiang, Sy-Yen Kuo, Ming-Hsuan Yang, et al. Unirestore: Unified perceptual and task-oriented image restoration model using diffusion prior. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 17969–17979, 2025.
Wei-Ting Chen, Jian-Jiun Ding, and Sy-Yen Kuo. Pms-net: Robust haze removal based on patch map for single images. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11673–11681. IEEE, 2019.
Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3213–3223, 2016.
Yuning Cui, Syed Waqas Zamir, Salman Khan, Alois Knoll, Mubarak Shah, and Fahad Khan. Adair: Adaptive all-in-one image restoration via frequency mining and modulation. In International Conference on Learning Representations, volume 2025, pp. 101306–101327, 2025.
Yuning Cui, Wenqi Ren, and Alois Knoll. Bio-inspired image restoration. Advances in Neural Information Processing Systems, 38:80452–80481, 2026.
Marco Cuturi. Sinkhorn distances: Lightspeed computation of optimal transport. Advances in neural information processing systems, 26, 2013.
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
Lee R Dice. Measures of the amount of ecologic association between species. Ecology, 26(3): 297–302, 1945.
Mark Everingham, Luc Van Gool, Christopher KI Williams, John Winn, and Andrew Zisserman. The pascal visual object classes (voc) challenge. International journal of computer vision, 88(2): 303–338, 2010.
Muhammad Haris, Greg Shakhnarovich, and Norimichi Ukita. Task-driven super resolution: Object detection in low-resolution images. In International conference on neural information processing, pp. 387–395. Springer, 2021.
Jin-Ting He, Fu-Jen Tsai, Yan-Tsung Peng, Min-Hung Chen, Chia-Wen Lin, and Yen-Yu Lin. Hndiff: Haze-noise diffusion for image dehazing. arXiv preprint arXiv:2608.10995, 2026.
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In 2017 IEEE conference on computer vision and pattern recognition (CVPR), pp. 2261–2269. Ieee, 2017.
Junjun Jiang, Zengyuan Zuo, Gang Wu, Kui Jiang, and Xianming Liu. A survey on all-in-one image restoration: Taxonomy, evaluation and future trends. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025.
Jaeha Kim, Junghun Oh, and Kyoung Mu Lee. Beyond image super-resolution for image recognition with task-driven perceptual loss. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2651–2661. IEEE, 2024.
Jaeha Kim, Junghun Oh, and Kyoung Mu Lee. Exploiting diffusion prior for task-driven image restoration. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 10151–10161. IEEE, 2025.
Hongjae Lee, Sojung Kang, Jaeseong Yu, and Seung-Won Jung. Tasktok: Delving into task tokens for task-driven image restoration. arXiv preprint arXiv:2606.26615, 2026.
Boyun Li, Xiao Liu, Peng Hu, Zhongqin Wu, Jiancheng Lv, and Xi Peng. All-in-one image restoration for unknown corruption. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 17431–17441. IEEE, 2022.
Bosen Lin, Feng Gao, Yanwei Yu, Junyu Dong, and Qian Du. Downstream task inspired underwater image enhancement: a perception-aware study from dataset construction to network design. IEEE Transactions on Image Processing, 2026a.
Jingbo Lin, Zhilu Zhang, Wenbo Li, Renjing Pei, Hang Xu, Hongzhi Zhang, and Wangmeng Zuo. Unirestorer: Universal image restoration via adaptively estimating image degradation at proper granularity. In International Conference on Learning Representations, volume 2026, pp. 2369–2409, 2026b.
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pp. 740–755. Springer, 2014.
Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In European conference on computer vision, pp. 21–37. Springer, 2016.
Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
Vaishnav Potlapalli, Syed Waqas Zamir, Salman H Khan, and Fahad Shahbaz Khan. Promptir: Prompting for all-in-one image restoration. Advances in neural information processing systems, 36:71275–71293, 2023.
Bin Ren, Yawei Li, Xu Zheng, Yuqian Fu, Danda Pani Paudel, Hong Liu, Ming-Hsuan Yang, Luc Van Gool, and Nicu Sebe. Efficient degradation-agnostic image restoration via channel-wise functional decomposition and manifold regularization. In The Fourteenth International Conference on Learning Representations(ICLR), 2026.
Mengwei Ren, Mauricio Delbracio, Hossein Talebi, Guido Gerig, and Peyman Milanfar. Multiscale structure guided diffusion for image deblurring. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 10687–10699. IEEE, 2023.
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015.
Xiaole Tang, Xiaoyi He, Jiayi Xu, Xiang Gu, and Jian Sun. Learning continuous wasserstein barycenter space for generalized all-in-one image restoration. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026.
Antti Tarvainen and Harri Valpola. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. Advances in neural information processing systems, 30, 2017.
Xiangpeng Tian, Xiangyu Liao, Xiao Liu, Meng Li, and Chao Ren. Degradation-aware feature perturbation for all-in-one image restoration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 28165–28175, 2025.
Yanjie Tu, Qingsen Yan, Axi Niu, and Jiacong Tang. Tpgdiff: Hierarchical triple-prior guided diffusion for image restoration. arXiv preprint arXiv:2601.20306, 2026.
Yu Wan, Jie Li, Liupeng Lin, Qiangqiang Yuan, and Huanfeng Shen. Collaboration of dehazing and object detection tasks: A multitask learning framework for foggy image. IEEE Transactions on Geoscience and Remote Sensing, 63:1–13, 2025.
Chen Wei, Wenjing Wang, Wenhan Yang, and Jiaying Liu. Deep retinex decomposition for low-light enhancement. arXiv preprint arXiv:1808.04560, 2018.
Chen Wu, Ling Wang, Zhuoran Zheng, Yuning Cui, Zhixiong Yang, Xiangyu Chen, Yue Zhang, Weidong Jiang, and Jingyuan Xia. Scan clusters, not pixels: A cluster-centric paradigm for efficient ultra-high-definition image restoration. arXiv preprint arXiv:2602.21917, 2026.
Zizheng Yang, Jie Huang, Jiahao Chang, Man Zhou, Hu Yu, Jinghao Zhang, and Feng Zhao. Visual recognition-driven image restoration for multiple degradation with intrinsic semantics recovery. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14059–14070. IEEE, 2023.
Mingde Yao, Ruikang Xu, Yuanshen Guan, Jie Huang, and Zhiwei Xiong. Neural degradation representation learning for all-in-one image restoration. IEEE transactions on image processing, 2024.
Fisher Yu and Vladlen Koltun. Multi-scale context aggregation by dilated convolutions. arXiv preprint arXiv:1511.07122, 2015.
Eduard Zamfir, Zongwei Wu, Nancy Mehta, Yuedong Tan, Danda Pani Paudel, Yulun Zhang, and Radu Timofte. Complexity experts are task-discriminative learners for any image restoration. In Proceedings of the Computer Vision and Pattern Recognition Conference, pp. 12753–12763, 2025.
Haijin Zeng, Xiangming Wang, Yongyong Chen, Jingyong Su, and Jie Liu. Vision-language gradient descent-driven all-in-one deep unfolding networks. In Proceedings of the Computer Vision and Pattern Recognition Conference, pp. 7524–7533, 2025.
Wenqiang Zhang, Zilong Huang, Guozhong Luo, Tao Chen, Xinggang Wang, Wenyu Liu, Gang Yu, and Chunhua Shen. Topformer: Token pyramid transformer for mobile semantic segmentation. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 12073–12083. IEEE, 2022.
Yafei Zhang, Shuaitian Song, Huafeng Li, Shujuan Wang, and Yu Liu. Adaptive dynamic dehazing via instruction-driven and task-feedback closed-loop optimization for diverse downstream task adaptation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 12888–12896, 2026.