Introduction
Instruction-based image editing has advanced significantly, yet models often struggle with complex spatial relationships, intricate object intersections, and physical consistency. For instance, a model might fail to erase an object's reflection in a mirror when removing the object itself. While Chain-of-Thought (CoT) reasoning has been applied to help models plan edits, these processes have historically been text-based. Text is fundamentally limited in its ability to describe pixel-level visual layouts and jagged shapes, leading to unintended or inaccurate edits.
To address these challenges, this paper introduces MURE (Multimodal Reasoning Edit), a framework that shifts from text-only reasoning to a natively multimodal, interleaved text-and-image CoT process.
The MURE Framework
MURE decomposes complex editing tasks into a sequence of interleaved text and visual tokens. Instead of just planning in words, the model generates intermediate visual artifacts such as precise segmentation masks and isolated object crops to anchor the final generation.
Interleaved Text-Image CoT
When tasked with an edit like "swap the TV for a lizard," the model follows a structured visual reasoning path:
- Mask Prediction: The model identifies and generates a precise mask for the target object (the TV).
- Object Generation: It generates an isolated image of the new object (the lizard) tailored to the scene's context.
- Final Composition: It merges these elements to produce the final edited image, ensuring the background remains unchanged.
Multimodal Deep Confidence (MMDC) Reasoning
Because diffusion models are stochastic, intermediate steps (like mask generation) can occasionally fail. MURE employs a tree-search approach called Multimodal Deep Confidence (MMDC). At each visual step, the model generates multiple candidates. An independent reward model (Qwen2.5-VL-7B) scores these candidates based on instruction adherence and quality, pruning low-quality branches and ensuring the model stays on a high-fidelity trajectory.
Datasets and Evaluation
To train and evaluate this multimodal approach, the authors introduced CoT-Edit-14K, a dataset of 14,000 high-quality examples across 10 editing sub-tasks, including object replacement, style changes, and background modifications. Each example includes the necessary intermediate masks and crops for interleaved reasoning.
The model was benchmarked against three standard datasets: MagicBrush, Emu Edit, and SmartEdit.
Key Results
MURE achieves state-of-the-art (SOTA) performance across multiple metrics:
- MagicBrush: Achieved an L1 distance of 0.049 and a CLIP-I score of 0.943, outperforming strong baselines like ICEdit and Bagel.
- Emu Test Set: Demonstrated superior visual fidelity (DINO: 0.897) and text alignment (CLIP-I: 0.920).
- Ablation on Modality: Transitioning from text-only CoT to interleaved text-image CoT resulted in a 13.4% reduction in L1 error, proving that visual tokens provide critical grounding for the diffusion process.
- Search Efficiency: Increasing the MMDC search width (e.g., 5 candidates per step) consistently improved performance metrics, highlighting the value of mid-generation quality control.
Conclusion and Future Work
MURE demonstrates that "showing" is as important as "telling" in complex image editing. By breaking the process into discrete, cached visual steps, the framework also enables "editable" reasoning chains where users can modify intermediate steps without restarting the entire generation.
However, the framework's reliance on parallel tree search increases computational costs and inference time. Future work will likely focus on optimizing the reward model bottleneck and reducing the overhead of generating multiple intermediate candidates.
Summary updated