Here is a blog-style summary of the paper "EditThinker: Unlocking Iterative Reasoning for Any Image Editor".
TL;DR
Current instruction-based image editors often fail on complex requests because they operate as "reactive executors" in a single, non-deliberative step. This paper introduces EditThinker, a framework that wraps any image editor in an iterative "Think-while-Edit" loop, using a multimodal LLM to critique intermediate results and refine instructions. By treating editing as a multi-turn reasoning process, EditThinker significantly boosts the instruction-following capabilities of existing state-of-the-art editors without modifying the underlying image generation models.
What Problem Does This Paper Address?
Instruction-based image editing allows users to modify images using natural language (e.g., "animate the cat in the image while keeping the background consistent"). While modern diffusion models generate highly aesthetic images, their ability to precisely follow complex instructions remains a major bottleneck.
The authors argue that current models fail because they attempt instruction understanding, visual planning, and content generation simultaneously in a single, one-pass step. This coupled nature deprives the model of the opportunity to self-correct intermediate errors—such as text distortion, missing objects, or unintended style drift. EditThinker addresses this by shifting the paradigm from a single-turn reactive execution to an iterative, reflective cognitive loop.
Methods
The core innovation is the Think-while-Edit framework, which explicitly decouples the editing workflow into two distinct roles: a Thinker (for judging and planning) and an Editor (any off-the-shelf image editing model, such as FLUX.1 or OmniGen2).
As illustrated in Figure 2, the process operates in a multi-turn loop:
- Critique: At each iteration, the Thinker evaluates the previous edited image against the source image and original instruction. It outputs a structured text string containing a natural-language reasoning trace (
<think>) and a continuous scoring scheme (<score>) evaluating semantic alignment and perceptual quality. - Refine: Based on its own critique, the Thinker generates an optimized, highly specific rewritten prompt (
<answer>). - Repeat: The Editor executes this refined prompt on the original source image. This loop continues until a satisfactory score threshold is met or a maximum number of turns is reached.
Training Strategy
EditThinker (built on a Qwen3-VL-8B base) is trained in two stages:
- Supervised Fine-Tuning (SFT): A "cold start" phase where the model learns the structured I/O format and basic reasoning from expert (GPT-4) demonstrations.
- Reinforcement Learning Tuning (RLT): Using Group Relative Policy Optimization (GRPO), the model is optimized using a dual-component reward function. A Critic Reward penalizes prediction errors to calibrate the model's self-assessment, while an Edit Reward provides positive feedback only if the refined prompt leads to a measurable improvement in the final image. This bridges the gap between ideal expert reasoning and the practical limitations/failure modes of real image editors.
Datasets
The authors constructed THINKEDIT-140k, a large-scale multi-round dataset built via an automated pipeline that pairs source images, diverse editing requests, expert reasoning traces, and quality scores.
The dataset was split into two specialized subsets:
- THINKEDIT-SFT-140k: Comprising low-variance, consistently high-quality refinement steps to teach stable behavior.
- THINKEDIT-RL-10k: Containing 10k high-variance trajectories (unrolled into 27k step-wise samples) where the model initially struggled but successfully self-corrected, providing rich reward signals for reinforcement learning.
For evaluation, the authors utilized four benchmarks: ImgEdit-Bench and GEdit-Bench-EN for general editing, alongside RISEBench and KRIS-Bench to specifically evaluate complex, reasoning-heavy editing tasks.
Key Insights and Ideas
- Decoupling Reasoning from Generation: Instead of trying to fine-tune image generation models to be better planners, wrapping them with an external MLLM planner is highly effective and universally applicable to any editor.
- "Think while Edit" vs. "Think before Edit": Ablation studies revealed that iteratively critiquing intermediate images vastly outperforms simply rewriting the prompt once before editing. Initial prompt-rewriting introduces biases and fails to account for the stochastic failures of the image generator.
- RL Aligns Planning with Reality: While SFT teaches the model how to reason ideally, RL is critical for grounding that reasoning in the actual quirks and constraints of the physical editor it is guiding.
Key Results
EditThinker consistently delivered substantial performance gains across all evaluated base models and benchmarks:
- General Editing: On ImgEdit-Bench, wrapping FLUX.1-Kontext [Dev] with EditThinker-8B boosted its overall score from 3.44 to 3.98.
- Reasoning-Heavy Editing: The framework achieved its most dramatic improvements on complex spatial, causal, and temporal tasks. On RISE-Bench, FLUX.1-Kontext's score jumped from 5.8 to 14.4, while Qwen-Image-Edit improved from 8.9 to 17.8.
- Scalability: The framework scales beautifully with the capability of the underlying expert model. Substituting the 8B model with a proprietary expert like GPT-4.1 pushed FLUX.1's RISE-Bench score up to 20.6.
As shown in Figure 5, the model successfully identifies specific visual flaws (like incorrect coat patterns on a giraffe or missing mold textures on bread) and progressively sharpens the prompt text to force the editor into compliance.
Limitations and Future Work
- Multi-Image Inputs: The current framework does not support multi-image editing inputs, which led the authors to exclude temporal subsets of factual knowledge during certain benchmark tests.
- Inference Cost: Because the framework relies on a multi-turn loop running both an MLLM and a heavy diffusion model at each step, it inherently increases computational overhead and latency compared to single-turn baselines. Future work will likely need to address efficiency and early-stopping optimization.
Summary updated