TL;DR
Inline Critic introduces a learnable token that evaluates and corrects an image-editing model's predictions during a single forward pass. By exploiting the discovery that a model's spatial error patterns are established in its earliest layers, this method dynamically steers hidden states to achieve state-of-the-art editing performance, even outperforming proprietary models like GPT-4o on reasoning-heavy benchmarks.
What Problem Does This Paper Address?
Instruction-based image editing (e.g., "replace the wooden chair with a black leather recliner") varies wildly in difficulty depending on the image and the specific instruction. Some regions require massive overhauls, while others should remain completely untouched.
To handle this, modern systems use "refinement signals" to identify where a model is struggling and allocate extra computational effort. However, existing refinement methods suffer from a major delay: they provide feedback either post-generation (analyzing the final image using an external vision-language model) or post-step (waiting for a complete denoising step to finish).
The authors ask a compelling question: Can we generate a refinement signal that acts within an ongoing forward pass, correcting errors before a denoising step even completes?
Methods
The authors discover a fascinating property of Multimodal Diffusion Transformers (MM-DiTs): while actual image generation capability only emerges in the final layers, the spatial error pattern (the map of where the model will succeed or fail) crystallizes very early on. At layer 6 of a 60-layer model, the error map already shares a 0.83 rank correlation with the final layer's error map.
To exploit this, they introduce Inline Critic, a learnable token appended to the text prompt stream. To train this token without destabilizing the frozen base model, they develop a three-stage training recipe:
- Stage 1 (Mid-layer Generation Probes): They train lightweight, temporary probe heads at intermediate layers to predict the final generation target, establishing baseline error maps across the network.
- Stage 2 (Masked Critic Training): They train the critic token to predict the error maps generated by the Stage 1 probes. Crucially, an attention mask hides the critic token from the rest of the network so it doesn't alter the model's internal states while learning to critique.
- Stage 3 (Unmasked Joint Training): The attention mask is removed. The critic token is now allowed to actively steer subsequent layers via attention mechanisms, optimizing both the generation loss and the critic's accuracy.
At inference time, the probe heads are completely discarded. Only the unmasked critic token remains in the prompt sequence, providing dynamic self-correction with virtually zero computational overhead.
Datasets
- Training: The model was trained on a massive 2.2 million image-instruction pair mixture compiled from public datasets, including OmniEdit, UltraEdit, HQ-Edit, ShareGPT-4o-Image, OpenGPT-4o-Image, UniREdit-Data-100K, Nano-Consistent-150K, and the SFT split of Pico-Banana-400K.
- Evaluation: The authors evaluated their method across four prominent benchmarks targeting different editing capabilities: GEdit-Bench (general editing), KRIS-Bench and RISEBench (complex, reasoning-heavy editing), and ImgEdit (fine-grained category analysis).
Key Insights and Ideas
- Early Error Crystallization: A diffusion model "knows" where it is going to fail long before it can actually synthesize a coherent image.
- Causal Steering: The inline critic token doesn't just passively predict errors; causal intervention experiments proved that it actively redistributes the model's internal attention maps, steering the generation path to fix predicted flaws on the fly.
- Zero-Overhead Self-Correction: Instead of relying on heavy external critic models or multiple iterative loops, self-evaluation can be entirely internalized as a single prompt token interacting via standard self-attention.
Key Results
Inline Critic consistently elevated its frozen backbones (Qwen-Image-Edit variants) to achieve state-of-the-art results:
- GEdit-Bench: Achieved a state-of-the-art overall score of 7.89, outperforming strong baselines like UniWorld-V2 and ReasonEdit.
- KRIS-Bench: Reached an overall score of 81.92, delivering the strongest open-source result to date and notably surpassing the proprietary GPT-4o (80.09).
- RISEBench: Achieved a massive +9.4 point gain over its native backbone model, demonstrating superior performance in temporal, causal, and spatial reasoning tasks.
- Hard-Case Concentration: Performance breakdowns on ImgEdit revealed that the gains from Inline Critic are heavily concentrated on the most difficult editing tasks (e.g., complex object extraction), validating its design as a targeted refinement mechanism.
Limitations and Future Work
The primary limitation acknowledged by the authors is their choice of training target. The critic is currently optimized to predict the per-position Mean Squared Error (MSE) of the probe heads. However, pixel-space MSE is notoriously noisy and does not always perfectly align with human visual or semantic judgment.
As a next step, the authors propose replacing the raw MSE target with a feature-space or perceptual criterion, which would allow the Inline Critic to learn and correct more semantically meaningful errors.
Summary updated