SpotEdit: Selective Region Editing in Diffusion Transformers

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

Diffusion Transformers (DiTs) like FLUX have revolutionized high-fidelity image generation and editing. However, these models typically operate on a "full-image regeneration" paradigm, treating the entire canvas as noise even when only a small portion requires modification. This leads to significant computational redundancy and potential degradation of unedited background regions. SpotEdit is a training-free framework designed to address this inefficiency by dynamically identifying and isolating regions that require computation, achieving nearly 2x speedups without sacrificing quality.

The Efficiency Gap in Image Editing

Current state-of-the-art diffusion models spend substantial GPU resources re-denoising stable areas—such as the sky or background textures—at every timestep. For instance, when adding a localized object to a scene, the model redundantly re-calculates features for the entire environment. This process is not only computationally expensive but can also introduce unwanted artifacts into the original background, reducing the fidelity of the edit. SpotEdit asks: Is it necessary to regenerate every pixel during an editing task?

Methodology: SpotSelector and SpotFusion

SpotEdit introduces a two-stage approach to selective computation that integrates seamlessly into existing DiT pipelines without additional training.

1. SpotSelector: Automated Region Identification

Instead of relying on manual user masks, SpotEdit utilizes SpotSelector to automatically identify "stable" (non-edited) regions. It leverages the mathematical properties of Rectified Flow to predict the final image state early in the denoising process. By comparing this early prediction to the source image using a perceptual score derived from VAE decoder layers, the system identifies which latent tokens are likely to change. Regions that remain consistent with the original are marked as stable and excluded from subsequent heavy DiT computations.

2. SpotFusion: Context-Aware Blending

Simply removing tokens would disrupt the global context required for a realistic edit. SpotFusion addresses this by adaptively blending cached features from the original image with the active tokens in the edited region. During the attention mechanism, the model calculates Queries only for the edited tokens but allows them to attend to the Keys and Values of the entire image. This ensures that the new elements (e.g., a sunflower replacing a soccer ball) are contextually integrated into the existing scene.

SpotEdit demonstrates precise selective editing across various tasks, showing the source image, the final result, and the automatically detected regenerated region.

Key Insights

  • Dynamic Masking: SpotEdit discovers the necessary edit mask automatically by observing latent token stabilization, removing the need for manual input.
  • Perceptual vs. Pixel-wise Metrics: The authors found that standard L2 pixel distance is often misled by global lighting shifts. By using deep VAE features (similar to LPIPS), SpotEdit more accurately distinguishes between meaningful semantic changes and stable backgrounds.
  • Spatial-Temporal Orthogonality: SpotEdit accelerates the spatial dimension (skipping pixels), making it perfectly compatible with temporal acceleration methods like TeaCache (which skips timesteps). Combining these techniques can result in compounding speed gains of up to 4x.

Performance and Results

Evaluated on benchmarks like imgEdit-Benchmark and PIE-Bench++, SpotEdit demonstrates significant performance gains:

  • Speed: It achieves a 1.7x to 1.9x speedup on base models. When stacked with temporal skip methods, the total acceleration reaches approximately 4x.
  • Fidelity: SpotEdit maintains or improves semantic alignment (CLIP score) while significantly enhancing background preservation, as measured by higher PSNR and SSIM scores compared to full-regeneration baselines.
  • Zero-Shot Capability: As a training-free method, it is immediately applicable to various DiT-based architectures.

Limitations and Future Directions

While highly effective, SpotEdit requires a few initial "full" denoising steps to accurately identify stable regions. Additionally, the threshold for determining stability may require tuning for extremely subtle edits. Future research could explore more flexible blending techniques to handle dramatic global lighting changes while maintaining the efficiency of selective region processing.

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