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

TL;DR

TaskIR is a novel two-stage framework for "all-in-one" image restoration that optimizes for both visual quality and downstream machine vision performance. By combining degradation-adaptive transformers with a selective task-feedback mechanism, it effectively restores images across multiple corruption types while ensuring the results are highly "readable" for tasks like object detection and semantic segmentation.

What Problem Does This Paper Address?

Traditional image restoration focuses on pixel fidelity—making an image look good to the human eye by maximizing metrics like PSNR (Peak Signal-to-Noise Ratio). However, a "clean-looking" image isn't always the best input for a machine. Downstream vision models (like those in self-driving cars or medical imaging) rely on specific semantic cues, such as sharp object boundaries and consistent textures, which standard restoration methods might inadvertently blur or distort.

Furthermore, most existing "task-driven" restoration methods are specialists: they are designed for a single type of degradation (e.g., just dehazing). In the real world, images suffer from a mix of noise, blur, haze, and low light. Creating a unified model that handles diverse degradations while simultaneously catering to the needs of multiple downstream tasks is a significant challenge.

Methods

The authors propose TaskIR, a two-stage framework designed to bridge the gap between low-level restoration and high-level vision.

Stage I: Degradation-Guided Restoration

The first stage focuses on general restoration. It uses a Degradation Representation Module (DRM) to identify the type and spatial distribution of corruption in an image. This information is fed into Degradation-Guided Transformer Blocks (DGTB), which dynamically adjust their internal parameters to handle the specific noise or blur present. This allows a single model to adapt to "all-in-one" scenarios.

Stage II: Task-Driven Feedback Modeling

This is where the "task-driven" magic happens. The authors introduce two key modules:

  • Task-to-Restoration Feedback Generation (TRFG): This module takes features from pre-trained task networks (like a ResNet for classification or YOLO for detection) and predicts the "task gap"—the discrepancy between the current restoration and what the task network actually needs.
  • Selective Task Feedback Refinement (STFR): High-level semantic features are very different from low-level textures. Indiscriminately mixing them can create artifacts. STFR uses a gating mechanism to selectively refine features, ensuring that task-relevant details are enhanced without ruining parts of the image that are already well-restored.
Figure 1: Overview of the proposed TaskIR framework and its key components: (a) Overall ar- chitecture 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).

Datasets

The model was evaluated across eight degradation types using three major benchmarks:

  • ImageNet-1K: Used to evaluate image classification performance.
  • Cityscapes: Used to evaluate semantic segmentation in urban environments.
  • PASCAL VOC2012: Used to evaluate object detection.

The authors compared TaskIR against several state-of-the-art "all-in-one" models, including AirNet, PromptIR, and MoCE-IR.

Key Insights and Ideas

  • The "Task Gap" as a Signal: Instead of just using a task loss function, TaskIR explicitly models the representation discrepancy. It asks: "What is missing in this restored feature map that would make the detector more confident?"
  • Selective Refinement is Crucial: One of the biggest "aha" moments is the realization that task feedback can be "noisy" for restoration. The Conditional Restoration Refinement (CRR) module acts as a filter, deciding whether to "keep" the current state or "update" it based on the feedback, preventing the introduction of semantic artifacts into the visual reconstruction.
  • Unified Adaptation: By using spatial degradation maps, the model doesn't just treat the whole image as "blurry"; it can apply different restoration strengths to different regions, which is vital for complex real-world scenes.

Key Results

TaskIR consistently outperformed existing methods in both restoration quality and task accuracy.

  • Restoration Quality: On the Cityscapes dataset, TaskIR achieved a PSNR of 35.31 dB, significantly higher than the previous best of 34.81 dB (DFPIR).
  • Downstream Performance: In object detection (PASCAL VOC), TaskIR reached an mAP of 82.46%, surpassing other task-driven and all-in-one methods.
  • Qualitative Improvements: Visual results show that TaskIR is particularly good at recovering sharp boundaries, such as the edges of car headlights or building contours, which are critical for segmentation and detection models.
Table 2: Overall downstream task performance (%). The best and second-best results are shown in bold and underlined, respectively.

Limitations and Future Work

While TaskIR is powerful, the authors note a few areas for growth:

  • Two-Stage Training: The current training process is sequential. Moving toward a more integrated, end-to-end joint optimization could potentially improve efficiency.
  • Computational Overhead: Incorporating feedback from multiple task networks during training increases the computational load, though the authors emphasize that the task networks are frozen (not updated) during this stage.
  • Real-World Blind Restoration: While it handles eight degradation types, extending this to completely "blind" and unknown real-world corruptions remains an ongoing challenge for the field.

Summary updated

BibTeX
@misc{tu2026taskir,
  author = {Yanjie Tu and Qingsen Yan and Axi Niu and Wenxuan Cai and Tao Hu and Wei Dong and Haokui Zhang},
  title = {{TaskIR: Task-Driven Image Restoration via Degradation Adaptation and Task Feedback}},
  year = {2026},
  eprint = {2609.31170},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.31170},
}
Figure