TL;DR
This paper introduces a robust framework for complex, multi-step image editing by utilizing an in-context sequential decomposition strategy. By training a multimodal model on a custom, procedurally generated synthetic dataset and employing a novel "Context-Guided Sequential Editing" paradigm, the authors successfully mitigate the compounding errors typical of multi-step editing while enabling seamless generalization to real-world images.
What Problem Does This Paper Address?
While modern generative models excel at executing single, straightforward image edits (e.g., "change the dog to a cat"), they struggle with complex, compositional instructions that require multiple operations or feature inter-step dependencies (e.g., "move the speaker onto the table, add a shaver near it, and replace the lightbulb").
Currently, practitioners rely on two main paradigms, both of which have significant drawbacks:
- Single-Turn Editing: Attempting to apply all edits simultaneously in a single pass. This frequently causes the model to miss instructions or introduce unintended modifications.
- Sequential Editing: Decomposing the complex prompt into simpler sub-tasks executed one after another. While intuitive, this approach suffers from severe compounding errors—minor visual artifacts introduced in early steps propagate and degrade the final image quality.
The authors address this dilemma by investigating how to balance the structural benefits of sequential decomposition against its error-accumulation pitfalls.
Methods
The authors implement their solution within an In-Context Editing Framework using a unified multimodal model (BAGEL). The model is trained to generate interleaved sequences of text instructions and images, formalizing the editing process as a multi-turn dialogue with the image state.
The core methodological innovations include:
- Finetuning Objectives: The model is jointly optimized using three tasks: Instruction Decomposition (predicting text sub-steps), In-Context Editing (generating intermediate images based on history), and Single-Turn Editing (maintaining the ability to jump straight from source to target).
- Context-Guided Sequential Editing (CGSE): To combat compounding errors, the authors introduce CGSE. Instead of directly feeding the previous step's imperfect image as the absolute starting point for the next edit, CGSE isolates the historical images into a separate context guidance term. The strength of this historical influence is controlled by a tunable coefficient ($\gamma_{ctx}$). This allows the model to retain semantic awareness of prior steps without blindly inheriting their visual artifacts.
Datasets
To train the model to decompose tasks effectively, the authors built a scalable, high-quality data pipeline:
- Synthetic Dataset (New): Built using Blender, this dataset contains 60K independent operation chains and 34K dependent chains ranging from 3 to 17 steps. Because it is procedurally generated, the ground-truth intermediate images are perfectly clean and free of generative artifacts. It introduces inter-step dependencies such as operation references ("move the object that was just recolored") and position references ("add a book where the chair originally was").
- Pico-Banana: A real-world, single-turn image editing dataset used during co-training to facilitate sim-to-real transfer.
- Complex-Edit: An existing benchmark split of 531 real-world tasks used exclusively for evaluating complex instruction-following capabilities.
Key Insights and Ideas
- Naive Sequential Decomposition is Counterproductive Zero-Shot: Testing state-of-the-art models like GPT-4o and Gemini 2.5 Flash revealed that breaking instructions down sequentially actually decreased visual similarity metrics due to the models' sensitivity to minor visual artifacts.
- Decoupled History via Guidance: The "aha moment" of the paper is that history shouldn't be treated as a rigid input image sequence. By treating history as a flexible guidance vector, the model can balance the original source image's high fidelity against the sequential instructions' semantic requirements.
- Sim-to-Real via Dense Supervision: Procedural synthetic data provides dense supervision on how to keep unedited regions intact (identity preservation). Co-training on this synthetic data alongside real single-turn data successfully transfers complex multi-step editing capabilities to real-world images.
Key Results
- Synthetic Performance: On complex tasks with inter-step dependencies, the proposed CGSE paradigm achieved the highest GPT-5 evaluated scores (4.14 with 5 decomposition steps, compared to 2.03 for zero-shot BAGEL).
- Real-World Generalization: When evaluated on the Complex-Edit benchmark, the co-trained model (BAGEL-SR) utilizing CGSE outperformed single-turn baselines in both Instruction Following (IF: 8.25) and Identity Preservation (IP: 6.38).
- Human Preference: A user study with 33 participants confirmed that the context-guided sequential approach (K=2) was preferred over single-turn alternatives for overall quality and instruction adherence.
Limitations and Future Work
While the proposed method significantly improves semantic consistency and instruction following, sequential editing still inherently risks minor reductions in overall perceptual quality (PQ) compared to single-turn models trained purely on real data. The authors note that synthetic data finetuning can sometimes introduce subtle domain shifts or impair fine-grained textures. Future work will focus on enhancing the perceptual fidelity of sequentially edited images, potentially through advanced sampling or model distillation techniques.
Summary updated