Introduction
Instruction-based image editing (IBIE) represents a significant frontier in computer vision and creative tools, aiming to enable users to modify images through natural language commands. While contemporary generative models excel at global style transfers, they frequently struggle with precise semantic modifications, spatial reasoning, and structured content editing. This paper introduces MultiEdit, a comprehensive dataset and benchmark designed to address these limitations by shifting from traditional caption-based data generation to a "visual-adaptive" approach.
The Challenge of Data Quality in IBIE
The primary bottleneck in training effective IBIE models lies in the quality and diversity of existing datasets. Most current datasets are either manually curated (limiting scale) or automatically generated using "caption-rephrasing." In the latter approach, an LLM rewrites an image's text caption into an editing instruction and a target caption, which is then used by a generative model to create the edited image.
However, text captions are inherently abstract and often omit the fine-grained visual details—such as precise spatial coordinates or specific typographic features—required for high-fidelity editing. This discrepancy leads to "misalignment," where the model's output fails to reflect the user's specific intent. Furthermore, existing benchmarks often overlook complex real-world scenarios, including spatial reasoning, editing structured content (e.g., text on posters), and multi-subject reference.
Methodology: The MultiEdit Pipeline
To overcome the "caption bottleneck," we propose a novel pipeline driven by Multi-Modal Large Language Models (MLLMs):
- Visual-Adaptive Instruction Generation: Instead of relying on text-only captions, the source image is fed directly into a state-of-the-art MLLM (e.g., GPT-4o). Guided by expert-designed meta-instructions, the MLLM generates editing commands grounded in the actual pixel data of the image.
- High-Fidelity Image Generation: Edited versions of the images are produced using GPT-Image-1, a model chosen for its exceptional compositional capacity. This ensures that the "ground truth" images in the dataset are of significantly higher quality than those in previous iterations.
- Rigorous Quality Control: A two-tier system ensures data integrity. We employ rule-based filtering followed by an automated post-quality assessment using Qwen2.5-VL. Ambiguous cases are resolved through human oversight.
- Multi-Task Learning (MTL) Strategies: To handle the varying difficulty levels across the dataset (from simple style transfer to complex GUI editing), we explored two strategies:
- Data-driven MTL (DMTL): A curriculum-based approach that up-weights more challenging tasks during the training process.
- Loss-driven MTL (LMTL): A method that dynamically re-weights the loss function based on task difficulty.
Dataset and Benchmark Overview
The project introduces two primary resources:
- MultiEdit-Train: A large-scale training set comprising 106,534 samples across six major categories: Object Reference, Person Reference, Text Editing, GUI Editing, View Editing, and Style Transfer (encompassing 38 artistic styles).
- MultiEdit-Test: A rigorous benchmark of 1,100 high-quality samples (50 per edit type) designed to evaluate model performance across 56 distinct subcategories.
Data was sourced from diverse real-world contexts, including MS-COCO, Movie-poster, GUI-world, and Google-landmark datasets.
Key Insights and Results
Our research highlights several critical findings for the advancement of IBIE:
- Visual Grounding: Generating instructions directly from images rather than captions significantly reduces information loss and noise, leading to better instruction-following.
- The "Hard Task" Advantage: Aggressively up-weighting complex tasks like GUI and text editing during training improves the model's general instruction comprehension across all tasks, not just the difficult ones.
- Quantitative Performance: Fine-tuning open-source models on MultiEdit-Train yielded substantial gains. On the MultiEdit-Test benchmark, fine-tuning SD3 (ME-SD-SFT) increased the DINO score—a metric for visual and semantic consistency—from 0.5751 to 0.7359. Our top-performing model, ME-UEdit-DMTL, achieved a CLIPimg score of 0.8174, rivaling specialized state-of-the-art models.
Conclusion and Future Work
MultiEdit represents a significant step toward a universal image editing agent. While the dataset significantly improves performance, limitations remain regarding the underlying model architectures (e.g., U-Net or DiT) and the handling of non-alphabetic languages like Chinese. Future research will focus on integrating MultiEdit with larger foundational corpora and exploring next-generation architectures like FLUX to further push the boundaries of instruction-based image editing.
Dataset available at: https://huggingface.co/datasets/inclusionAI/MultiEdit
Summary updated