MIRA: Multimodal Iterative Reasoning Agent for Image Editing
Ziyun Zeng, Hang Hua, Jiebo Luo
TL;DR
MIRA introduces a lightweight multimodal reasoning agent that reframes instruction-guided image editing as an iterative perception–reasoning–action loop. By training with a new 150K-trajectory dataset (MIRA-Editing) and a two-stage SFT+GRPO pipeline, MIRA learns to predict atomic edits step-by-step and leverage visual feedback to refine results using open-source editors. The approach demonstrates consistent improvements in semantic consistency and perceptual quality across multiple backbones, approaching or surpassing proprietary systems, and offers robustness through closed-loop error mitigation and a dynamic termination mechanism. This work delivers a scalable, plug-and-play framework for complex editing instructions, with practical open-source applicability and significant implications for controllable image editing.
Abstract
Instruction-guided image editing offers an intuitive way for users to edit images with natural language. However, diffusion-based editing models often struggle to accurately interpret complex user instructions, especially those involving compositional relationships, contextual cues, or referring expressions, leading to edits that drift semantically or fail to reflect the intended changes. We tackle this problem by proposing MIRA (Multimodal Iterative Reasoning Agent), a lightweight, plug-and-play multimodal reasoning agent that performs editing through an iterative perception-reasoning-action loop, effectively simulating multi-turn human-model interaction processes. Instead of issuing a single prompt or static plan, MIRA predicts atomic edit instructions step by step, using visual feedback to make its decisions. Our 150K multimodal tool-use dataset, MIRA-Editing, combined with a two-stage SFT + GRPO training pipeline, enables MIRA to perform reasoning and editing over complex editing instructions. When paired with open-source image editing models such as Flux.1-Kontext, Step1X-Edit, and Qwen-Image-Edit, MIRA significantly improves both semantic consistency and perceptual quality, achieving performance comparable to or exceeding proprietary systems such as GPT-Image and Nano-Banana.
