SmartEdit: Exploring Complex Instruction-based Image Editing with Multimodal Large Language Models
Yuzhou Huang, Liangbin Xie, Xintao Wang, Ziyang Yuan, Xiaodong Cun, Yixiao Ge, Jiantao Zhou, Chao Dong, Rui Huang, Ruimao Zhang, Ying Shan
TL;DR
This work tackles the challenge of complex instruction-based image editing by integrating Multimodal Large Language Models with diffusion-based editing through a Bidirectional Interaction Module, enabling richer reasoning and image-text interaction. A two-stage training regime plus a novel data strategy that includes segmentation data and a synthetic complex-edit dataset enhances perception and reasoning capabilities, while Reason-Edit provides a targeted benchmark for evaluating such complex edits. Empirical results show SmartEdit surpasses prior methods on Reason-Edit in both understanding and reasoning scenarios, supported by qualitative analyses and a user-study indicating stronger alignment with instructions and higher perceived quality. The approach advances practical complex instruction-based image editing and highlights the importance of bidirectional multimodal interaction and carefully curated data for enabling advanced editing tasks.
Abstract
Current instruction-based editing methods, such as InstructPix2Pix, often fail to produce satisfactory results in complex scenarios due to their dependence on the simple CLIP text encoder in diffusion models. To rectify this, this paper introduces SmartEdit, a novel approach to instruction-based image editing that leverages Multimodal Large Language Models (MLLMs) to enhance their understanding and reasoning capabilities. However, direct integration of these elements still faces challenges in situations requiring complex reasoning. To mitigate this, we propose a Bidirectional Interaction Module that enables comprehensive bidirectional information interactions between the input image and the MLLM output. During training, we initially incorporate perception data to boost the perception and understanding capabilities of diffusion models. Subsequently, we demonstrate that a small amount of complex instruction editing data can effectively stimulate SmartEdit's editing capabilities for more complex instructions. We further construct a new evaluation dataset, Reason-Edit, specifically tailored for complex instruction-based image editing. Both quantitative and qualitative results on this evaluation dataset indicate that our SmartEdit surpasses previous methods, paving the way for the practical application of complex instruction-based image editing.
