Manuscript Offprint

arXiv:2609.02504

SR-Edit: Region-Aware Image Editing via Self-Refinement

Andong Wang, Zehua Chen, Yuxuan Jiang, Jun Zhu

Andong Wang 1,2^{1,2}, Zehua Chen 1^{1}, Yuxuan Jiang 1^{1}, and Jun Zhu 1^{1}

1^{1} Tsinghua University, Beijing, China

2^{2} Renmin University of China, Beijing, China

andong000@ruc.edu.cn {zhc23thuml,dcszj}@mail.tsinghua.edu.cn

Abstract. With the recent rapid progress in generative models, image editing has made remarkable advances, yet achieving faithful edits that precisely modify only the target regions while strictly preserving all other regions remains challenging. Since externally provided region annotations are often difficult to obtain in practice, a growing body of work seeks to improve preservation by automatically inferring edit and non-edit regions, and then enforcing consistency on the latter. However, these approaches still suffer from inaccurate region estimation and heuristic correction strategies that distort the native inference process, making methods designed for fidelity themselves a new source of artifacts. We propose SR-Edit, an image editing framework that overcomes these issues via iterative self-refinement. Specifically, at each iteration, SR-Edit first (i) extracts progressively precise and self-consistent region separation from the model's own predictions by lightweight post-processing, and then (ii) enforces preservation in non-edit areas through correction updates that remain aligned with the original sampling dynamics. Extensive experiments demonstrate that SR-Edit achieves superior preservation and overall image quality compared to existing editing techniques.

Keywords: Image Editing · Generative Models · h-transform theory

1 Introduction

Recent progress in generative models [20,34,37,49,55] has greatly expanded the capabilities of image editing. A variety of editing paradigms have been proposed, including editing with forward noising followed by conditional denoising [41], training-based editors that learn an explicit mapping from a source image and a textual editing instruction to the edited image [5,36,62,63,66], and inversion-based methods that invert an image into a diffusion trajectory and then modify the denoising process to achieve the edit [19,28,38,44,64,72].

Despite impressive results, a persistent bottleneck remains: faithful editing, i.e., producing the desired modifications while strictly preserving all other content. In real-world edits, users typically expect backgrounds, identity cues, fine

∗^{*} Corresponding authors: Zehua Chen and Jun Zhu.

Wang et al.

Figure

Fig. 1: Examples of edited images produced by SR-Edit. The edit regions are automatically inferred by the model and indicated by red overlays.

textures, and geometric details outside the target concept to remain unchanged. However, most generative editing pipelines still rely on sampling dynamics that start from a noisy state and evolve under a new condition, which inherently operates on global image content [41]. As a result, even when the semantic edit succeeds, the output may exhibit unintended drift in non-edited regions, such as subtle background changes, texture inconsistencies, or identity degradation.

A common strategy to improve preservation is to explicitly separate the image into edit and non-edit regions, and then enforce consistency on the latter. When accurate user-provided masks are available, spatially constrained editing can be effective [1, 39, 52], but manual annotation is costly and often unavailable in practice. This motivates mask-free approaches that infer editable regions automatically, for example by manipulating or interpreting attention maps [18, 19, 46, 53, 56] or by computing differences between generation trajectories under source and target prompts [11, 38].

Nevertheless, automatic region estimation remains challenging. The inferred masks are often insufficiently precise, failing to align with true pixel boundaries, and can also be temporally unstable across sampling steps [6]. Moreover, many preservation mechanisms rely on heuristic interventions such as feature fusion and reuse, or KV [57] interpolation in intermediate representations, which are not consistent with the original sampling dynamics [38, 47]. Consequently, the techniques introduced above to improve fidelity do not reliably enhance preservation. Instead, they can become a new source of imprecision and artifacts.

We propose SR-Edit, a self-refined image editing framework that addresses both failure modes: inaccurate region estimation and heuristic preservation corrections. The key idea is to use the model's own output as self-feedback to construct a reliable pixel-space separation between edited and preserved content, and then to enforce preservation through an update rule that remains aligned with intrinsic sampling dynamics.

Concretely, SR-Edit leverages the model's predictions to build self-consistent difference maps and converts them into a precise edit and non-edit decomposi-

Figure

Fig. 2: Overview of SR-Edit. The edit instruction of the case is Change the animal's fur color to a darker shade. We use uθu_\theta to denote the sampling vector field that drives the generative trajectory. ss denotes the start time of self-correction update while nn denotes the time duration. NN denotes the number of self-refinement iterations.

tion via lightweight pixel-space post-processing [17, 54]. Unlike latent-space discrimination, pixel-space differences directly reflect decoded visual changes and admit mature refinement operations, yielding sharper and more stable region estimates.

To enforce preservation, we adopt a principled conditioning mechanism based on Doob's h-transform theory [4, 14]. We formulate preservation as a constraint on the non-edit region by modeling it as a vanishing-noise observation, and derive an additive guidance term that enhances fidelity while preserving the structure of the sampling procedure. Under a plug-in approximation, this guidance reduces to a masked residual on the model's clean-image prediction, which can be injected into diffusion samplers as an additive drift correction and analogously into flow-matching samplers as a velocity correction.

In contrast to heuristic state interventions (e.g., direct feature replacement or blending) [47, 57], our update is derived from a distribution transform and therefore tends to preserve native inference dynamics while suppressing non-edit drift. This complements existing methods that improve fidelity to the source image through more accurate inversion [23, 44, 58] and structural conditioning approaches that anchor geometry of the source via external controls [62, 69].

SR-Edit operates in an iterative self-correction loop: region separation is inferred from current predictions, preservation guidance is applied to suppress non-edit drift, and the model produces a progressively refined result across iterations. This self-refinement gradually improves region localization and preservation while maintaining edit intent. Extensive experiments demonstrate that SR-Edit yields superior non-edit preservation and improved overall visual quality compared to prior region-aware and mask-free editing techniques [11, 38, 47].

Our contributions can be summarized as follows:

Wang et al.

  • We introduce SR-Edit, an image editing framework that improves faithfulness by jointly enhancing region identification and preservation in an iterative self-refinement process.
  • We propose self-consistent region identification derived from the model's own predictions and show that pixel-space post-processing enables more precise and stable edit and non-edit separation than latent or attention-based discrimination.
  • We develop a Doob's h-transform formulation for region preservation and derive a practical masked guidance rule that integrates naturally with both diffusion and flow-matching samplers.
  • We validate that SR-Edit improves non-edit preservation and overall image quality across diverse editing scenarios, outperforming existing editing techniques.

References (70)