Degradations vary widely across images, so a practical restoration system has to handle many degradation types with one model. A recent and effective recipe adapts a large pretrained image-editing model to restoration using a small low-rank adapter with a text prompt. We replace that prompt with an instruction derived from the degraded image itself. The image reaches the editor through two paths: its structure comes from the model's VAE, and its semantic instruction comes from a lightweight token mapper that shifts the degraded image's vision-language embedding toward the embedding a clean image would produce. Because the instruction is a continuous vector, scaling it yields a family of valid restorations for tasks whose target is not unique, such as low-light enhancement. We adapt one Qwen-Image-Edit model to six tasks with a single adapter trained in about three hours on one GPU. The image instruction outperforms text conditioning under a matched comparison, and it supports task agnostic restoration without a degradation label, which the text variant does not.
Figures & tables
Figure 1: One adapter, six tasks, no prompt. In each tile the left half is the degraded input and the right half is the output of the task-agnostic ImIR, produced from the input image alone with no text prompt and no degradation label.
Figure 2: Framework. Qwen2.5-VL encodes y as ey ; the mapper predicts e^x to condition the LoRA-adapted MMDiT. The token MLP is modulated by ϕagg from the task identity τ and masked mean-pool eˉy , and learns ex−ey from an identity initialization.
Method
Prior
Pairs
Low-light
Deraining
Dehazing
Deblurring
Denoising
JPEG
PN ↑
SS ↑
LP ↓
PN ↑
SS ↑
LP ↓
PN ↑
SS ↑
LP ↓
PN ↑
SS ↑
LP ↓
PN ↑
SS ↑
LP ↓
PN ↑
SS ↑
LP ↓
Image Editing Models (zero-shot)
Step1X-Edit
✓
Zero-shot
16.9
0.53
0.31
20.6
0.68
0.34
15.8
0.72
0.25
19.4
0.65
0.35
17.1
0.60
0.57
20.3
0.66
0.32
FLUX.1-Kontext-dev
✓
Zero-shot
16.8
0.57
0.29
26.4
0.83
0.10
18.8
0.81
0.13
24.2
0.76
0.25
29.8
0.88
0.25
25.9
0.77
0.21
Qwen-Image-Edit-2509
✓
Zero-shot
12.6
0.43
0.42
23.0
0.68
0.17
15.4
0.64
0.24
26.3
0.81
0.12
20.3
0.59
0.37
24.8
0.83
0.33
Qwen-Image-Edit-2511
✓
Zero-shot
10.9
0.31
0.47
19.9
0.70
0.26
17.7
0.75
0.16
22.9
0.72
0.23
24.3
0.83
0.36
19.1
0.60
0.38
Table 1: Main comparison on six restoration tasks (PSNR / SSIM / LPIPS). The Prior column marks whether a method builds on a pretrained generative model; # Pairs is the number of training pairs. The best and second-best results among methods that build on a pretrained prior or train on little data (the Image Editing and PEFT panels) are highlighted. The Full-Data Training panel is included as a from-scratch upper-bound reference and is not highlighted. ∗ includes training data for desnowing. † trained on additive Gaussian noise.
Task
n
PSNR
SSIM
LPIPS
Low-light
43
91% ✓
88% ✓
88% ✓
Deraining
100
51% ✗
56% ✗
68% ✓
Dehazing
150
65% ✓
76% ✓
84% ✓
Deblurring
150
76% ✓
65% ✓
69% ✓
Denoising
32
81% ✓
78% ✓
69% ✗
JPEG
144
65% ✓
71% ✓
78% ✓
Table 2: Per-image comparison against Text LoRA . Each cell is the win rate, the fraction of images on which ImIR scores better on that metric; a ✓ marks a difference that is significant at p<0.05 under a two-sided sign test over the n paired images.
Figure 3: Qualitative comparison. One example per task. Rows: degraded input, zero-shot editor, text adapter, RealRestorer, ImIR, and ground truth.
Figure 4: Controllability. Instruction scaling (Eq. 5 ) adjusts low-light exposure and haze removal through a band of plausible outputs. Mean luma readouts for low-light and mean Color Attenuation Prior (CAP) readouts for dehazing show these changes.
Instruction
Low-light
Deraining
Dehazing
Deblurring
Denoising
JPEG
Identity ( ey , no mapper)
15.8/0.67/0.18
26.2/0.78/0.10
21.9/0.89/0.07
24.0/0.77/0.12
33.1/0.90/0.20
24.0/0.67/0.17
ImIR w/o global context
18.4/0.71/0.15
28.3/0.90/0.07
23.5/0.88/0.07
26.2/0.81/0.12
33.5/0.90/0.20
24.1/0.68/0.17
ImIR
21.3/0.84/0.12
33.2/0.95/0.05
24.7/0.92/0.05
27.6/0.85/0.11
35.7/0.91/0.19
28.1/0.81/0.15
ImIR, test-only ex
20.9/0.83/0.12
33.0/0.95/0.05
24.3/0.91/0.06
27.6/0.85/0.11
35.7/0.92/0.19
28.0/0.80/0.15
Oracle ( ex , train and test)
22.4/0.86/0.10
33.4/0.95/0.04
25.3/0.91/0.06
27.5/0.84/0.11
36.2/0.92/0.19
28.6/0.81/0.14
Table 3: Mapper ablations in image space (PSNR / SSIM / LPIPS). Identity feeds the raw degraded embedding ey to the adapter. Test-only ex swaps the clean embedding into the LoRA that was trained on e^x . Oracle is a separate LoRA trained and evaluated with the clean embedding ex , an upper bound that is not available at test time.
Image restoration seeks to recover high-quality images from degraded inputs but becomes highly ill-posed under complex, mixed degradations. While unified all-in-one models are common, their performance declines as degradation complexity increases. Recent works adopt Chain-of-Thought (CoT) reasoning for multi-round restoration using specialized modules. However, this approach faces two key limitations: (i) increased computational cost due to multi-step processing, and (ii) weak modeling of interactions between degradations during stepwise inference. We introduce CoTIR, a universal image restoration framework that internalizes CoT reasoning within a single model. Concretely, we view image restoration as a specialized subtask of image editing, which implies that a large-scale pre-trained editing model provides a more favorable optimization starting point. Building on this, we fine-tune the model for restoration and further encode structured CoT-style reasoning into the learning objective via a differentiable formulation inspired by Lagrangian optimization, enabling holistic restoration without chaining specialized restorers. To facilitate training and evaluation, we further present CoTIR-Bench, a large-scale benchmark comprising 5.2 million samples with CoT-style reasoning traces. Extensive experiments on CoTIR-Bench and broad real composite degradation scenes show that CoTIR achieves stronger perceptual quality and more competitive fidelity than both all-in-one models and multi-round restoration methods. The source code is available at https://github.com/gy65896/CoTIR.
Yu Guo, Zhengru Fang, Shengfeng He +4
Hong Kong JC Lab of Smart City and the Department of Computer Science, City University of Hong Kong · School of Computing and Information Systems, Singapore Management University · Computer Science and Information Engineering, National Taiwan University
All-in-one image restoration aims to recover clean images degraded by multiple corruption types using a single unified model. Existing methods typically rely on image-level prompts or shared guidance to handle diverse degradations. However, such a paradigm becomes inadequate when degradations are spatially heterogeneous or even coexist in mixed forms within a single image. Yet spatially adaptive guidance alone is not sufficient, since accurate restoration also requires each spatial query to reliably aggregate complementary information from local neighborhoods and global contexts. To this end, we propose QuReC, a unified framework for all-in-one image restoration. QuReC consists of a Degradation-Guided Query Reconstruction Module (DQRM) and a Local-Global Response Calibration Module (LGRCM). Specifically, DQRM matches each spatial query against a degradation prototype space to reconstruct a query-specific degradation-aware representation, thereby providing fine-grained spatially adaptive restoration guidance. To further stabilize this query-wise matching process, we introduce a weakly supervised prototype matching learning strategy to improve optimization stability and degradation semantic consistency. Meanwhile, LGRCM performs local-global dual-branch aggregation and calibrates the aggregated responses with learnable priors, improving the reliability of feature aggregation and the coordination between local detail modeling and global context modeling. Extensive experiments demonstrate that QuReC achieves superior performance on multiple all-in-one image restoration benchmarks. The code is released at https://github.com/zhoushen1/QuReC.
Shen Zhou, Jinghui Zhang, Wenbo Huang +7
Southeast University Nanjing, China · Hainan University Hainan, China
Vision-language agents that orchestrate specialized tools for image restoration (IR) have emerged as a promising method, yet most existing frameworks operate in a training-free manner. They rely on heuristic task scheduling and exhaustive tool traversal, resulting in sub-optimal restoration paths and prohibitive computational cost. We argue that the core bottleneck lies in the absence of a learned policy to make decision, as a vision-language model cannot efficiently handle degradation-aware task ordering and tool composition. To this end, we propose TIR-Agent, a trainable image restoration agent that performs a direct tool-calling policy through a two-stage training pipeline of supervised fine-tuning (SFT) followed by reinforcement learning (RL). Two key designs underpin effective RL training: (i) a random perturbation strategy applied to the SFT data, which broadens the policy's exploration over task schedules and tool compositions, and (ii) a multi-dimensional adaptive reward mechanism that dynamically re-weights heterogeneous image quality metrics to mitigate reward hacking. To support high-throughput, asynchronous GPU-based tool invocation during training, we further develop a globally shared model-call pool. Experiments on both in-domain and out-of-domain degradations show that TIR-Agent outperforms 12 baselines, including 6 all-in-one models, 3 training-free agents, and 3 proprietary models, and achieves over 2.5× inference speedup by eliminating redundant tool executions.
Guoli Jia, Yisheng Zhang, Haote Hu +11
Tsinghua University, Beijing, China · Data Science & Artificial Intelligence Research Institute, China Unicom, Beijing, China · Hunan University, Changsha, China +2