Beyond Simple Edits: X-Planner for Complex Instruction-Based Image Editing

Chun-Hsiao Yeh, Yilin Wang, Nanxuan Zhao, Richard Zhang, Yuheng Li, Yi Ma, Krishna Kumar SingharXiv 2025 · DOI

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.

Figure 4: X-Planner decomposes complex user instructions into specific sub-tasks like insertion, local texture changes, and background modification, outperforming end-to-end models like MGIE and SmartEdit.

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.

Figure 2: A final output from X-Planner showing successful thematic editing (Christmas) while maintaining the distinct features of the original animals.

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

BibTeX
@misc{yeh2025beyond,
  author = {Chun-Hsiao Yeh and Yilin Wang and Nanxuan Zhao and Richard Zhang and Yuheng Li and Yi Ma and Krishna Kumar Singh},
  title = {{Beyond Simple Edits: X-Planner for Complex Instruction-Based Image Editing}},
  year = {2025},
  eprint = {2507.05259},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.05259},
}
Figure