JarvisIR: Elevating Autonomous Driving Perception with Intelligent Image Restoration

Yunlong Lin, Zixu Lin, Haoyu Chen, Panwang Pan, Chenxin Li, Sixiang Chen, Kairun Wen, Yeying Jin, Wenbo Li, Xinghao Ding

Abstract

Vision-centric perception systems in autonomous vehicles frequently encounter unpredictable and overlapping weather conditions, such as simultaneous rain, fog, and low-light environments. Traditional image restoration methods often struggle with these coupled degradations or fail to generalize from synthetic training data to real-world scenarios. This paper introduces JarvisIR, an intelligent Vision-Language Model (VLM) agent that dynamically orchestrates specialized restoration tools. By utilizing a two-stage training process involving supervised fine-tuning and a novel alignment strategy called Modified Rank Responses with Human Feedback (MRRHF), JarvisIR bridges the domain gap and achieves a 50% improvement in perception metrics on real-world datasets.

Introduction

Reliable perception is the cornerstone of autonomous driving. However, atmospheric conditions like heavy rain, dense fog, and nighttime darkness significantly degrade the quality of visual inputs, leading to potential safety risks. Current restoration solutions typically fall into two categories: task-specific models and all-in-one models. Task-specific models require prior knowledge of the degradation type and struggle when multiple effects are present. All-in-one models, while more versatile, are often trained on synthetic data and suffer from a "domain gap" that results in artifacts or poor performance when deployed in the wild.

While chaining multiple expert models (e.g., denoising followed by dehazing) is a potential solution, the specific order of operations is critical and varies frame-by-frame. JarvisIR addresses this by acting as an intelligent controller that autonomously and dynamically coordinates expert models without requiring paired "clean vs. degraded" real-world data.

The JarvisIR Framework

JarvisIR is powered by a VLM (Llava-Llama3-8b) that functions as a decision-making agent. When presented with a degraded image, the agent performs a three-step process:

  1. Visual Analysis: The model analyzes the image to identify specific degradations.
  2. Reasoning: Using a Chain-of-Thought rationale, the model describes the flaws and justifies the necessary interventions.
  3. Tool Orchestration: The model outputs a specific sequence of expert restoration tools—such as SCUNet for denoising or RIDCP for dehazing—to optimize the image.

Training Strategy

To ensure the VLM can effectively manage these tools, the authors developed a two-stage training framework:

  • Supervised Fine-Tuning (SFT): The VLM is initially trained on synthetic data to learn instruction-following and basic degradation recognition.
  • Alignment with MRRHF: To handle real-world images where no "clean" ground truth exists, the authors employ Modified Rank Responses with Human Feedback. This reinforcement learning-style approach uses multiple VLM-based Image Quality Assessment (IQA) models as a unified reward signal. The agent explores various tool sequences on real-world images, and the IQA models score the results. The agent then learns to prioritize sequences that yield the highest quality outputs. To prevent the model from over-optimizing or "collapsing," MRRHF uses a hybrid sample generation strategy that mixes offline and online tool-sequence exploration.

CleanBench: A New Standard for Evaluation

To support the development of JarvisIR, the authors introduced CleanBench, a comprehensive benchmark consisting of two parts:

  • CleanBench (Synthetic): 150K instruction-response pairs featuring simulated degradations (night, fog, rain, snow) created via physics-based libraries. This set is used for the initial SFT phase.
  • CleanBench-Real: 80K real-world degraded images sourced from internet repositories and driving datasets like BDD100K and nuScenes. These images are used for the unsupervised MRRHF alignment and final performance evaluation.

Key Insights and Results

JarvisIR demonstrates that dynamic routing is superior to static pipelines. By allowing a VLM to assess an image and choose a sequence on the fly, the system outperforms even human-designed expert sequences. Key findings include:

  • Significant Metric Gains: JarvisIR achieved a 50% improvement in average perception metrics (including MUSIQ, MANIQA, and CLIP-IQA+) on the CleanBench-Real dataset compared to state-of-the-art all-in-one methods like PromptIR and InstructIR.
  • Nighttime Performance: In challenging night scenes, JarvisIR-MRRHF scored 67.25 on the MUSIQ metric, a 42.2% increase over the competing AutoDIR model.
  • Optimal Decision Making: The tool sequences selected by JarvisIR ranked in the top 4.8% of all possible combinations, significantly outperforming manually crafted sequences, which ranked in the top 18.6%.

Limitations and Future Work

While JarvisIR represents a major step forward, it is currently optimized for autonomous driving weather conditions. Its framework could be adapted for other domains, such as underwater restoration, but it is not currently out-of-the-box compatible with them. Additionally, the VLM's reliance on fixed-resolution inputs (e.g., 336x336) can sometimes obscure fine degradation details. Future research will focus on maintaining original image resolutions during the assessment phase and integrating even more powerful, state-of-the-art expert models into the toolset.

Conclusion

JarvisIR provides a robust solution for the "domain gap" in image restoration by combining the reasoning capabilities of VLMs with an unsupervised alignment strategy. By dynamically orchestrating expert tools, it ensures that autonomous vehicles can maintain high-quality perception regardless of the complexity of the weather conditions they encounter.

Summary updated

BibTeX
@inproceedings{lin2025jarvisir,
  author = {Yunlong Lin and Zixu Lin and Haoyu Chen and Panwang Pan and Chenxin Li and Sixiang Chen and Kairun Wen and Yeying Jin and Wenbo Li and Xinghao Ding},
  title = {{JarvisIR: Elevating Autonomous Driving Perception with Intelligent Image Restoration}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02084},
}
Figure