Multi-Agent Image Restoration

Xu Jiang, Gehui Li, Bin Chen, Jian Zhang

TL;DR

This paper introduces MAIR, a novel multi-agent system for image restoration that tackles complex, real-world degradations. By modeling degradations in a structured three-stage process and employing a team of specialized "scheduler" and "expert" agents, MAIR achieves superior image quality and efficiency compared to existing methods, while also offering greater flexibility.

What Problem Does This Paper Address?

Image restoration (IR) aims to recover high-quality images from degraded versions. While traditional IR models focus on single types of degradation (like noise or blur), real-world images often suffer from multiple, interacting degradations. All-in-one (AiO) models attempt to handle these mixed degradations but struggle with generalization and can be difficult to train. More recent "agentic" approaches use AI agents to intelligently select and apply pre-trained restoration tools. However, these agentic methods are often inefficient, requiring extensive trial-and-error searches and resource-intensive fine-tuning, leading to suboptimal results. MAIR aims to overcome these limitations by introducing a more structured and collaborative agent-based approach.

Methods

MAIR's core innovation lies in its three-stage restoration framework and its two-level multi-agent design.

The three-stage framework is based on a novel "real-world degradation prior." The authors observe that degradations tend to occur sequentially in three phases: scene-level (e.g., low light, rain), imaging-level (e.g., noise, blur), and compression-level (e.g., JPEG). MAIR reverses these in the opposite order (compression, then imaging, then scene), which significantly reduces the search space for restoration plans.

The two-level multi-agent system comprises:

  1. Scheduler Agent: This agent acts as the overall planner. It uses a perception model (DepictQA) to identify degradations and then, guided by user instructions and a learned "experience" of effective restoration sequences, formulates a plan for the restoration process, adhering to the three-stage framework.
  2. Expert Agents: These agents are specialized for specific degradation types (e.g., a "DeJPEG Expert," a "DeBlur Expert"). Each expert intelligently selects the most appropriate pre-trained restoration tools from a registry based on the current image, user instructions, and tool characteristics. They then apply these tools, reflect on the results, and pass the image to the next expert.

A key component is the tool registry mechanism, which allows users to easily add new restoration tools by providing textual descriptions of their functionality and characteristics. This eliminates the need for extensive fine-tuning of large language models (LLMs) when incorporating new tools.

Datasets

The paper uses several datasets for evaluation:

  • Synthesized Datasets: Groups A, B, and C from a previous work [85], containing images with 2-3 types of mixed degradations.
  • Real-World Datasets:
    • A paired dataset of 100 LQ-HQ image pairs, collected from various sources (I-Haze, NH-Haze, DRealSR, RealSR, T-OLED, SIDD, LHP-Rain) to cover diverse real-world degradations.
  • An unpaired dataset of 100 real-world LQ images, including hazy, ImageNet, and RealSR200 images.
  • Validation Sets (for degradation prior verification): T-OLED-Val, RealSR-Val, DRealSR-Val, LHP-/Real-Rain-Val, and SIDD-Val.

Key Insights and Ideas

  • Degradation Prior is Key: The structured, sequential nature of real-world degradations (scene, imaging, compression) is a crucial insight. Reversing this order provides a strong prior that dramatically simplifies the restoration planning problem.
  • Teamwork Makes the Dream Work: Decomposing the complex IR task into a "scheduler" for planning and specialized "experts" for execution leads to more intelligent decision-making and efficient resource utilization compared to a single, monolithic agent.
  • Registry for Flexibility: The tool registry mechanism is a clever way to enable easy integration of new restoration tools without requiring costly LLM fine-tuning, making the system highly adaptable.
  • Experience Matters: Leveraging past successful restoration attempts as "experience" for the scheduler agent significantly improves planning and leads to better results.

Key Results

  • Image Quality: MAIR achieves competitive image quality, often outperforming previous agentic methods (like AgenticIR) and other state-of-the-art AiO models across various synthetic and real-world datasets. For example, it ranks first or second in several groups and surpasses AgenticIR in perceptual metrics.
  • Efficiency: MAIR significantly reduces running time and tool invocations. Compared to AgenticIR, it shows a 44% reduction in running time and a 65% reduction in tool invocations. This is attributed to the three-stage framework and intelligent tool selection.
  • Flexibility: The system demonstrates flexibility in adding new tools (e.g., Real-ESRGAN, SUPIR) and in following user instructions for selective degradation removal.

Limitations and Future Work

  • Inference Speed: While more efficient than previous agentic methods, MAIR's inference still requires tens of seconds per image, which the authors acknowledge as a limitation.
  • Completeness of Framework: The proposed three-stage framework might not cover all possible real-world degradations, as these can be highly complex and unknown.

Future work could focus on further optimizing inference speed and exploring more comprehensive degradation modeling to handle even more challenging and unknown degradation scenarios.

Summary updated

BibTeX
@misc{jiang2025multi,
  author = {Xu Jiang and Gehui Li and Bin Chen and Jian Zhang},
  title = {{Multi-Agent Image Restoration}},
  year = {2025},
  eprint = {2503.09403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.09403},
}
Figure