TIR-Agent: Training an Explorative and Efficient Agent for Image Restoration

Guoli Jia, Yisheng Zhang, Haote Hu, Shanxu Zhao, Kaikai Zhao, Long Sun, Xinwei Long, Kai Tian, Che Jiang, Zhaoxiang Liu, Kai Wang, Shiguo Lian, Kaiyan Zhang, Bowen ZhouarXiv 2026

TL;DR

TIR-Agent is a trainable vision-language agent designed to tackle complex, multi-degradation image restoration by directly learning which tool to call and when. By combining supervised fine-tuning with reinforcement learning guided by an adaptive multi-metric reward system, it eliminates the slow, exhaustive tool-searching of previous agents, achieving a 2.5$\times$ speedup while outperforming 12 state-of-the-art baselines.

What Problem Does This Paper Address?

Real-world images rarely suffer from just one flaw; they are often a messy combination of noise, blur, low light, and compression artifacts. Standard "all-in-one" restoration networks try to fix everything in a single forward pass but often run out of model capacity or fail on rare, long-tail degradation combinations.

Recently, researchers have turned to vision-language models (VLMs) to act as agents that orchestrate collections of specialized restoration tools. However, almost all existing frameworks are training-free. They rely on static, hardcoded rules to plan tasks and must exhaustively run every single available tool at each step to see which one yields the best metric score. This trial-and-error approach scales poorly and is computationally prohibitive for real-time deployment. TIR-Agent addresses this bottleneck by training the VLM to develop a learned, direct tool-calling policy.

Fig. 1: Comparison of restoration paradigms. (a) All-in-one model: Uses a single network with specialized heads to inject various degradation features. (b) Training-free Agent: Uses VLMs for static task planning, executing sub-tasks se- quentially via exhaustive tool traversal. (c) TIR-Agent (Ours): A trainable agent that dynamically decides the next sub-task based on current results and learns to di- rectly select the optimal tool, avoiding redundant execution.

Methods

TIR-Agent is built on top of the Qwen3-VL-8B-Instruct model and trained using a two-stage pipeline: Supervised Fine-Tuning (SFT) followed by Reinforcement Learning (RL).

To make this pipeline effective for image restoration, the authors introduced three core designs:

  1. Exploration-Driven Perturbation (EDP): During the SFT phase, vanilla training data can cause the model to converge onto narrow, repetitive paths. EDP injects controlled randomness by shuffling the order of restoration tasks and randomly substituting tools. This forces the agent to explore a much broader decision space during the subsequent RL phase.
  2. Multi-Dimensional Adaptive Reward (MAR): Restoring an image requires balancing conflicting goals (e.g., pixel-level accuracy vs. human-perceived sharpness). Naively combining metrics like PSNR and LPIPS into a single reward leads to "reward hacking," where the agent optimizes one metric at the expense of others. MAR tracks the Exponential Moving Average (EMA) of each metric and dynamically boosts the weight of under-optimized metrics to keep training balanced.
  3. Globally Shared MC-Pool: Because RL training requires generating thousands of image rollouts asynchronously, concurrent GPU tool calls can easily crash a system. The authors built a distributed model-call pool infrastructure to handle high-frequency, asynchronous tool execution safely at scale.
Fig. 3: Training pipeline of TIR-Agent. The process begins with SFT Data Gen- eration, followed by Exploration-Driven Perturbation to enhance data diversity via shuffled task sequences and tool substitutions. Following SFT, the agent undergoes RL with a Multi-Dimensional Adaptive Reward mechanism, which dynamically balances metric weights based on their EMA trends to optimize the restoration policy.

Datasets

  • SFT Stage: The authors constructed a dataset of 39,827 training trajectories generated using an existing training-free pipeline (4KAgent).
  • RL Stage: 4,000 high-quality image pairs were curated from ImageNet. These clean images were filtered for aesthetics and sharpness, then artificially corrupted with composite degradations to serve as training environments.
  • Evaluation: Testing was conducted on the MiO100 benchmark, utilizing three full-reference metrics (PSNR, SSIM, LPIPS) and three no-reference metrics (MANIQA, CLIPIQA, MUSIQ).

Key Insights and Ideas

  • The Exploration Collapse: The authors observed that without perturbation, over 35% of the agent's trajectories during RL became completely identical. Forcing task- and tool-level diversity during SFT is vital to maintaining a healthy exploration policy.
  • Metric Scales Dominate Rewards: Without the advantage-decoupling mechanism in MAR, metrics with larger numerical scales naturally dominate the reward signal, blinding the agent to subtle improvements in finer perceptual metrics.
  • Commercial VLM Biases: An analysis of proprietary models (like GPT-5.2 and Claude Opus) revealed a strong "task bias." They frequently choose denoising and defocus deblurring but rarely invoke motion deblurring or brightening tools, likely due to a lack of domain-specific training on low-level vision tasks.
Fig. 2: Observation of trajectory diversity, tool selection distribution, and optimization trend. (a) Statistics of the 8 rollouts per sample, including trajectory diversity (dis- tinct trajectories), order diversity (same tasks with different execution orders, line), and model (tool) diversity (identical task sequences, different tool sequences). (b) Con- vergence trends of evaluation metrics during 50 RL training steps.

Key Results

  • Performance: TIR-Agent consistently outperformed 12 prominent baselines, including 6 all-in-one networks, 3 training-free agents, and 3 proprietary LLMs (GPT-5.2, Claude Opus 4.5, Gemini 3.0 Pro) on both in-domain and out-of-domain degradation mixtures.
  • Efficiency: By directly predicting the correct tool instead of traversing all options, TIR-Agent achieved over a 2.5$\times$ inference speedup compared to AgenticIR and a 5$\times$ speedup over 4KAgent.
  • Generalization: As the complexity of the image corruption increased (mixtures of 3 or more degradations), TIR-Agent's performance gap over the baselines widened, demonstrating robust out-of-domain generalization.

Limitations and Future Work

While highly effective, the authors note that shuffling task orders too aggressively ($\alpha^t > 0.3$) can degrade performance because the model occasionally encounters confusing trajectories where low-quality images are generated before high-quality ones.

Additionally, TIR-Agent's performance is inherently bounded by the capabilities of its underlying specialist tools. A promising future direction is the joint, end-to-end optimization of both the routing agent and the specialist tools simultaneously.

Summary updated

BibTeX
@misc{jia2026tir,
  author = {Guoli Jia and Yisheng Zhang and Haote Hu and Shanxu Zhao and Kaikai Zhao and Long Sun and Xinwei Long and Kai Tian and Che Jiang and Zhaoxiang Liu and Kai Wang and Shiguo Lian and Kaiyan Zhang and Bowen Zhou},
  title = {{TIR-Agent: Training an Explorative and Efficient Agent for Image Restoration}},
  year = {2026},
  eprint = {2603.27742},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.27742},
}
Figure