TL;DR
ImageEdit-R1 is a novel multi-agent framework that treats complex, multi-step image editing as a sequential decision-making problem. By leveraging reinforcement learning (specifically Group Relative Policy Optimization) to coordinate specialized vision-language and generative agents, it successfully breaks down intricate user prompts into structured sub-tasks. The framework achieves significant performance gains across multiple benchmarks, outperforming both monolithic open-source diffusion models and leading proprietary closed-source systems.
What Problem Does This Paper Address?
While large vision-language models (VLMs) and generative diffusion models have drastically advanced image manipulation, current systems still stumble when faced with complex, indirect, or multi-step user instructions. For instance, a prompt like "remove the couple in the background, blur the balloons, and clean up the image quality" requires a level of compositionality and context-awareness that monolithic models often fail to execute reliably.
On the other hand, professional image editing software offers the necessary tools but demands human expertise to plan and execute the correct workflow. Existing automated attempts either rely on rigid, hand-crafted pipelines or monolithic architectures that lack modularity. ImageEdit-R1 addresses this gap by introducing an intelligent, RL-coordinated multi-agent system capable of dynamic, structured reasoning for complex image editing tasks.
Methods
ImageEdit-R1 formulates image editing as a sequential decision-making problem executed by three specialized agents:
- Decomposition Agent ($A_{decom}$): A vision-language model (Qwen2.5-VL-7B-Instruct) that analyzes the input image and user request to extract a structured tuple containing edit actions, edit subjects, and edit goals.
- Sequencing Agent ($A_{order}$): Organizes these extracted components into a logical, ordered sequence of sub-requests.
- Editing Agent ($A_{edit}$): A diffusion-based image editing model that executes the final modifications based on the planned sub-requests.
Reinforcement Learning Enhancement
The core innovation lies in training the Decomposition Agent using Group Relative Policy Optimization (GRPO). To ensure high-quality structured reasoning, the authors implement a dense reward function consisting of:
- Format Reward: Enforces strict compliance with XML-like formatting tags (e.g.,
<think>,<action>,<subjects>,<goals>). - Semantic Rewards (Action, Subject, Goal): Evaluates the precision and recall of the extracted components against ground truth annotations using F1-scores rather than rigid exact matching.
Datasets
The framework was evaluated across three established multi-turn instruction image editing benchmarks:
- PSR: 328 test-time editing requests covering a wide range of difficulty levels.
- RealEdit: A large-scale dataset based on Reddit edits; the authors randomly sampled 1,000 instances for evaluation efficiency.
- UltraEdit: A massive dataset containing over 4 million fine-grained edits, from which 1,000 examples were sampled.
Evaluation was conducted using an LLM-as-a-judge paradigm (utilizing GPT-4o and Gemini-2.5-Flash) scoring from 0 to 10 based on Request Fulfillment, Image Quality, and Preservation.
Key Insights and Ideas
- RL is Essential, Not Optional: Simply using a multi-agent framework without reinforcement learning (
ImageEdit-R1 (w/o RL)) often results in a performance drop or only marginal gains compared to the base models. RL training via GRPO is what unlocks the framework's true potential. - Single-Turn Beats Multi-Turn Execution: When passing sub-requests to the editing model, executing them all at once in a unified context (single-turn) consistently outperforms step-by-step sequential execution (multi-turn). Multi-turn execution suffers from compounding errors across editing rounds and a lack of global context.
- Goal Conditioning Matters: Incorporating explicit "goals" into the reward function doesn't change how fast the model learns low-level tasks (like identifying subjects), but it drastically improves final image editing quality by ensuring semantic consistency with human intent.
Key Results
ImageEdit-R1 achieved substantial, consistent improvements across all evaluated diffusion backbones without modifying the underlying image generation models:
- FLUX.1-Kontext-dev: Boosted the average score from 7.21 to 8.23 (+1.02).
- Qwen-Image-Edit: Improved from 8.39 to 8.85 (+0.46).
- NanoBanana: Improved from 8.32 to 8.66 (+0.34).
Notably, when paired with Qwen-Image-Edit, ImageEdit-R1 achieved an average score of 8.85, outperforming top-tier proprietary closed-source models like GPT-4o (8.47).
The authors also validated their VLM-based judge against human annotators, finding a relatively strong correlation, particularly for request fulfillment (0.66) and content preservation (0.59).
Limitations and Future Work
- Localized RL Training: Currently, reinforcement learning is only applied to optimize the decomposition agent. The authors note that extending RL training to the sequencing and editing agents represents a promising direction for future work.
- Evaluation Discrepancies: The VLM judge tended to score request fulfillment slightly higher and content preservation lower than human annotators, indicating that automated evaluation metrics for image editing still have room for refinement.
Summary updated