Inline Critic Steers Image Editing

Weitai Kang, Xiaohang Zhan, Yizhou Wang, Mang Tik Chiu, Jason Kuen, Kangning Liu, Yan Yan

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.

Figure 1: Motivation for inline critic. Top: On a frozen model, we add lightweight heads at intermediate blocks (L6–L54) to probe the generation outputs, with the original final output at L60. Middle: Each head runs its own multi-step denoising to generate an image. Bottom: Based on the final output, we compute a MSE map against the ground truth in each block. After 8x pooling and rank-normalization, we measure the Spearman correlation between each intermediate map and the final map. Results: Although generation capability only emerges in the last few blocks, the spatial error pattern is set far earlier. Even at L6, agreement with the final-layer map already reaches ρ = 0.83, and grows monotonically with depth. We therefore ask whether this prior can be exploited within the forward pass to let the model recognize and correct its weak regions in time.

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:

  1. 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.
  2. 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.
  3. 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.

Figure 2: Three-stage training of Inline Critic. Left: Stage 1 trains probe heads at several intermediate layers to predict the generation target from frozen hidden states. Middle: Stage 2 adds a critic token that is trained, at every probed block, to predict the error of Stage-1’s probes; an attention mask hides it from other tokens so the model and the probes are unaffected. Right: Stage 3 removes the mask and trains the critic jointly with the generation loss to steer generation.

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

BibTeX
@inproceedings{kang2026inline,
  author = {Weitai Kang and Xiaohang Zhan and Yizhou Wang and Mang Tik Chiu and Jason Kuen and Kangning Liu and Yan Yan},
  title = {{Inline Critic Steers Image Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=RT1DXXQkZm},
}
Figure