SpotEdit: Selective Region Editing in Diffusion Transformers

Zhibin Qin, Zhenxiong Tan, Zeqing Wang, Songhua Liu, Xinchao Wang

TL;DR

SpotEdit is a training-free framework for Diffusion Transformers (DiTs) that selectively edits only the modified regions of an image. By identifying stable regions early in the denoising process and skipping their computation, it achieves up to a 1.95× inference speedup while perfectly preserving the unedited background.

What Problem Does This Paper Address?

Most image editing tasks are highly localized—for instance, changing a soccer ball into a sunflower or adding a suitcase to an empty car trunk. However, state-of-the-art instruction-based editing models built on Diffusion Transformers (DiTs) uniformly process and denoise every single token across the entire image at every timestep.

This full-image regeneration paradigm introduces two major drawbacks:

  1. Redundant Computation: It wastes massive computational resources denoising areas that do not need to change.
  2. Background Degradation: Indiscriminately processing unmodified regions can inadvertently introduce subtle artifacts, noise, or color shifts.

SpotEdit addresses this by asking a fundamental question: Is it truly necessary to regenerate every region of the image during an editing task?

Methods

SpotEdit introduces a training-free, region-aware framework that plugs directly into existing DiT architectures. It consists of two core components:

  1. SpotSelector (Region Detection): This module automatically identifies non-edited regions early in the denoising process without requiring manual masks. It leverages the linear interpolation dynamics of Rectified Flow to estimate a fully denoised reconstruction ($\hat{X}_0$) at early timesteps. It then computes a token-level perceptual similarity score (using LPIPS-like distances from VAE decoder layers) between this early reconstruction and the original image. Tokens with a distance below a threshold ($\tau$) are flagged as stable and routed away from subsequent DiT computations.
  2. SpotFusion (Context Feature Reuse): Simply dropping tokens would destroy the spatial context that DiTs rely on via cross-token attention. To maintain coherence, SpotFusion dynamically blends cached non-edited features with the original condition image features across timesteps. Instead of static caching (which causes temporal drift and artifacts), it uses a time-dependent cosine weighting function to smoothly interpolate features, ensuring temporal and contextual consistency.

Finally, a Token Replacement step directly overwrites the non-edited latent tokens with their original counterparts before decoding back into pixel space, guaranteeing perfect background preservation.

Overview of the SpotEdit framework

Datasets

The authors evaluated SpotEdit on two prominent image-editing benchmarks, with all images standardized to $1024 \times 1024$ resolution:

  • PIE-Bench++: The authors selected three subsets specifically tailored to partial editing tasks: change object, add object, and delete object.
  • imgEdit-Benchmark: The framework was tested under a single-turn setting across subsets most relevant to partial editing, including adjust, background, extract, remove, replace, add, compose, and action.

Key Insights and Ideas

  • Heterogeneous Convergence: The core "aha" moment is that different regions of an image stabilize at vastly different speeds during diffusion. Non-edited background regions converge and become visually identical to the source image at very early timesteps, while edited regions continue to evolve under the text prompt.
  • The Failure of Static Caching: Unlike language models with static embeddings, DiT hidden states drift significantly across timesteps. Reusing static Key-Value (KV) pairs creates statistical discontinuities and boundary artifacts. SpotFusion solves this by showing that non-edited tokens and reference tokens follow closely aligned trajectories in principal-component (PCA) space, meaning they can be smoothly blended rather than frozen.

Key Results

  • Significant Speedups: SpotEdit achieves a 1.67× speedup on imgEdit-Benchmark and a 1.95× speedup on PIE-Bench++ when using FLUX.1-Kontext as the base model.
  • High Fidelity: Unlike baseline acceleration methods that suffer from severe quality degradation, SpotEdit maintains or improves editing quality (achieving 18.73 PSNR on PIE-Bench++).
  • Cross-Model Generalizability: The framework is model-agnostic. When applied to Qwen-Image-Edit, it delivers a 1.59× to 1.72× speedup while boosting background fidelity metrics.
Qualitative comparison showing how SpotEdit perfectly preserves non-edited regions compared to other baselines

Limitations and Future Work

  • Threshold Sensitivity: The performance relies on the empirical tuning of the SpotSelector threshold $\tau$. Setting it too low causes computational fluctuations, while setting it too high can accidentally intrude into regions that genuinely need editing.
  • Numerical Error Accumulation: To prevent errors from compounding over skipped steps, the authors introduced a periodic token reset mechanism. While effective at stabilizing the denoising trajectory, it slightly trades off maximum potential speedup for image quality.

Summary updated

BibTeX
@inproceedings{qin2026spotedit,
  author = {Zhibin Qin and Zhenxiong Tan and Zeqing Wang and Songhua Liu and Xinchao Wang},
  title = {{SpotEdit: Selective Region Editing in Diffusion Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=4nsH3L6rPW},
}
Figure