Manuscript Offprint

arXiv:2609.06602

Multi-History-Step SDE Inversion for Image Editing with Superior Regional Awareness

Haiyan Wei, Yunlong Wang, Huaibo Huang, Zhenan Sun, Kunbo Zhang

Haiyan Wei 1,2^{1,2}, Yunlong Wang 1^{1}, Huaibo Huang 1^{1}, Zhenan Sun 1^{1}, and Kunbo Zhang 1∗^{1*}

1^{1} New Laboratory of Pattern Recognition (NLPR), Institute of Automation, Chinese Academy of Sciences

2^{2} University of Chinese Academy of Sciences

{weihaiyan2026,yunlong.wang,kunbo.zhang}@ia.ac.cn,

huaibo.huang@cripac.ia.ac.cn, znsun@nlpr.ia.ac.cn

Abstract. In recent years, diffusion stochastic differential equation (SDE) inversion and inversion-free methods have become prevalent for training-free image editing, as they can achieve faithful reconstruction without tuning. However, existing approaches remain inefficient, exhibit limited plasticity, and struggle to accurately preserve unedited regions. To address these issues, we propose MIEdit, a training-free editing framework based on SDE inversion. MIEdit introduces a predictor-corrector multi-history-step scheme to achieve superior editing quality with fewer steps. We further mitigate heterogeneity and conflict between the multi-conditioned noise residuals and gradient terms during sampling, improving stability and editing plasticity under large edits. MIEdit also includes Inversion-Time Automatic Semantic Angle Masking (IASM); it leverages classifier-free guidance to automatically generate semantic angle masks during inversion and applies them throughout the sampling process for regional constraints, without extra user inputs. We additionally construct EditEval++ (30 fine-grained tasks, 1,000+ image-text-mask triplets) for comprehensive evaluation; experiments show that MIEdit outperforms state-of-the-art techniques. Project page: https://whywwwzzzg.github.io/MIEdit/.

Keywords: image editing · image generation · diffusion models

1 Introduction

Recently, pretrained text-to-image diffusion models have driven numerous training-free image editing methods [10, 12, 24, 26, 27, 42, 54]. Many image editing methods rely on deterministic ordinary differential equation (ODE) process inversion, such as Denoising Diffusion Implicit Models (DDIM) inversion and flow inversion [10, 27, 37, 39]. These approaches map an input image back to latent variables or a noise trajectory of the diffusion process, enabling the synthesis of an edited image under a new prompt [9, 25]. However, ODE inversion typically involves

∗^{*} Corresponding author.

H. Wei et al.

Figure

Fig. 1: Editing results under different methods and settings. DDIM inversion (ODE inversion) often suffers from poor consistency, while DDPM inversion (SDE inversion) may have limited plasticity: increasing CFG can degrade image quality before improving prompt adherence.

implicit equations over its own variables, and explicit approximations may introduce severe reconstruction errors, particularly when conditioning is incorporated [2,21,23]; consequently, many methods require tuning or multiple network evaluations within a single inversion step to enhance reconstruction consistency, which is highly time-consuming [11, 16, 33, 38]. Recently, approaches based on model prediction differences, including inversion-free editing and denoising diffusion probabilistic model (DDPM) inversion, have emerged, theoretically enabling error-free reconstruction, avoiding optimization and often achieving better background preservation [4, 51].

We generalize DDPM inversion as a form of stochastic differential equation (SDE) inversion. It leverages latents precomputed from the forward process to compute the noise terms required for reconstruction (sampling), thereby correcting the generation process [4, 18, 49]. Nevertheless, existing SDE inversion methods mainly focus on low-order SDE samplers, leaving room for improvement in both convergence speed and generation quality [18]. In particular, the generation quality (i.e., editing plasticity) of SDE-inversion-based editing sometimes suffers from insufficient stability and may even exhibit artifacts, as shown in Fig. 1. Moreover, both ODE- and SDE-inversion-based editing methods remain weak in preserving non-edited regions, making it difficult to precisely handle editing tasks with different modification extents [5, 13, 28, 51]. Some mask-control strategies attempt to alleviate this issue, yet they often require additional inputs or an independent mask branch [8, 56].

To address these issues, we propose MIEdit, an image editing method based on arbitrary multi-history-step (at least two history terms per step) diffusion SDE inversion that integrates a predictor-corrector mechanism for higher-quality image generation. MIEdit can reconstruct the input exactly (up to numerical precision) and requires no tuning. Compared to existing SDE inversion methods, our approach generates diverse samples of higher quality with fewer timesteps. Another key improvement is that we carefully modify the inference-time noise schedule, which substantially improves the generation quality of naive multi-history-step inversion in large-edit scenarios and effectively mitigates the artifact issue of SDE inversion.

To improve non-edited region control, we further propose Inversion-Time Automatic Semantic Angle Masking (IASM) without any external conditions. Specifically, we move mask generation from a byproduct of sampling to the early phase of inversion, and introduce a direction-based metric to obtain fine-grained mask control that is available throughout all generation steps. Importantly, the proposed mask does not rely on image quality during generation, nor on the gradual structural alignment between the inversion and generation stages. Our contributions are summarized as follows:

  • We reformulate DDPM inversion under a unified SDE inversion framework, and propose a predictor-corrector two-stage, multi-history-step SDE-based inversion-and-generation image editing method, improving both the efficiency and generation quality of current training-free image editing.
  • We address condition-induced mismatch and interference between the noise part and gradient terms, significantly improving the plasticity of multi-history-step SDE inversion.
  • We propose an inversion-time automatic semantic angle masking that leverages the classifier-free guidance (CFG) process within inversion itself to produce accurate semantic masks for guiding the entire generation process. It requires no extra inputs or inference branches.
  • We introduce a new benchmark, EditEval++, which expands EditEval's original 7 tasks [17] to 30 fine-grained editing tasks and contains 1,000+ image-text-mask triplets, featuring more diverse scenes and descriptions. Experiments on PIE-Bench and EditEval++ demonstrate the advantages of our method.

References (56)