Introduction
Instruction-following image editing has seen significant progress with models like InstructPix2Pix, enabling users to modify images through natural language. However, these models are primarily constrained to "static" edits—adding, removing, or replacing objects. They often fail to grasp world dynamics, the underlying physical laws and logical progressions that govern real-world transformations. For instance, asking a model to "pop a balloon" should result in a burst state, not just a missing object. EditWorld addresses this gap by simulating complex physical and logical dynamics through a novel "world-instructed" framework.
The EditWorld Framework
To enable models to understand instructions like "what happens if the tide comes in?" or "melt the snowman," the authors developed the EditWorld Dataset. This collection consists of 10,000 triplets (input image, instruction, output image) capturing non-linear transformations across real-world and virtual-world domains.
Dataset Generation Pipeline
The dataset is constructed using two primary branches:
- Combinational T2I Synthesis: Leveraging GPT-3.5 to generate textual quadruples (input prompt, instruction, output prompt, keywords), which are then processed through a pipeline using SDXL, IP-Adapter, and ControlNet to ensure identity and structural consistency.
- Video Frame Extraction: Recognizing that video is the richest source of physical dynamics, the authors extract start and end frames from the InternVid dataset. They then use Video-LLava and GPT-3.5 to "reverse-engineer" the instructions describing the transformation (e.g., a viewpoint shift or a material change).
Methodology
Beyond data, EditWorld employs a Post-Edit Strategy to maintain background consistency. Using the Segment Anything Model (SAM), the system identifies attention masks of the edited regions to create a precise localization mask. This allows the model to inpaint the edited content back into the original background, preventing unintended changes to static elements and significantly improving perceptual similarity (LPIPS).
Key Insights
- Video as Ground Truth: By using video frames as "before and after" snapshots, the model learns realistic physics and motion that static datasets lack. It treats the model not just as a painter, but as a mini-physics engine.
- MLLM-Based Evaluation: Traditional metrics like CLIP often fail to capture the logic of an edit. The authors introduced an MLLM Score using Video-LLava as an automated judge to verify if the physical or logical instruction was correctly executed.
Results and Evaluation
EditWorld significantly outperforms existing state-of-the-art methods like InstructPix2Pix, MagicBrush, and MGIE:
- Quantitative: On the MLLM Score, EditWorld achieved 0.8958 on text-based branches and 0.9920 on video branches, consistently beating competitors by a wide margin.
- Qualitative: Visual results demonstrate the model's ability to handle complex tasks like "cooking frozen peas" or "the tide coming in," where other models either did nothing or produced nonsensical artifacts.
Conclusion
EditWorld shifts the focus of image editing from simple texture modification to state simulation. By curating a dataset that captures the underlying logic of the world, the framework enables more intuitive and realistic interactions. While challenges remain in precise spatial control and scaling to even more complex scenes, EditWorld provides a robust foundation for the next generation of world-aware image editing models.
Summary updated