Introduction
Recent advancements in diffusion-based image editing have enabled impressive single-turn modifications. However, these models often struggle with complex, multi-faceted human instructions. Requests like "make this image look like a cozy Christmas scene" require a nuanced understanding of style, object addition, and identity preservation. Current end-to-end methods frequently suffer from "over-editing," where the identity of original subjects is lost, or they fail to interpret indirect cues that necessitate multiple specific changes.
Methodology: The X-Planner Framework
X-Planner addresses these challenges by decoupling the planning of an edit from its execution. Utilizing a Multimodal Large Language Model (MLLM) as a central "brain," the system follows a structured pipeline to decompose complex intents into manageable sub-tasks.
Instruction Decomposition and Localization
The process begins with Instruction Decomposition, where a complex prompt is broken down into a sequence of simpler sub-instructions (e.g., "Add a hat," "Change the background"). For each sub-task, X-Planner performs Automatic Localization, generating precise segmentation masks or bounding boxes. A key innovation is the model's ability to "hallucinate" bounding boxes for insertion tasks—predicting where a non-existent object should be placed based on world knowledge.
Iterative Editing and Verification
The system executes these sub-tasks iteratively, calling specialized editing models (e.g., UltraEdit, PowerPaint) tailored to the specific type of change required. To ensure high-fidelity results, X-Planner incorporates a Closed-Loop Verification step, where an MLLM "critic" evaluates intermediate outputs and triggers re-tries if quality thresholds are not met.
Experimental Results
The effectiveness of X-Planner was evaluated using the newly introduced COMPIE (Complex Instruction-based Editing) dataset, which contains over 260,000 paired instructions.
Performance and Identity Preservation
X-Planner demonstrates state-of-the-art performance, significantly outperforming existing MLLM-based editors such as MGIE and SmartEdit. Quantitative metrics, including DINO and CLIP-I scores, confirm that X-Planner excels at preserving the identity of original subjects even after multiple editing steps.
User Preference
In human evaluation studies, X-Planner was consistently preferred for its superior alignment with complex instructions and its ability to maintain image consistency. On the MagicBrush benchmark, the framework improved baseline performance to levels comparable with models using human-provided masks, highlighting the accuracy of its automated localization.
Conclusion
X-Planner represents a significant shift from end-to-end editing to a planning-based approach. By leveraging MLLMs to handle the "what" and "where" of an edit, and specialized diffusion models for the "how," it achieves a new level of precision in instruction-based image manipulation. Future work will focus on reducing inference latency and improving the handling of non-rigid transformations.
Summary updated