Manuscript Offprint

arXiv:2609.06288

Object-Aware Background-Controlled Editing via Weighted Velocity Guidance

Wuji Wang, Yue Wu, Chenhao Yi, Shuhui Wang

WUJI WANG, Carnegie Mellon University, USA

YUE WU, Institute of Computing Technology, Chinese Academy of Sciences, China

CHENHAO YI, University of Chinese Academy of Sciences, China

SHUHUI WANG ∗^{*}, Institute of Computing Technology, Chinese Academy of Sciences, China

Training-free image editing steers diffusion or flow-matching generative models at inference time by modifying prompt-conditioned denoising velocities. Existing velocity-based editors often apply prompt-induced residuals globally over the latent space and rely on the model to localize semantic changes implicitly. For object-centric edits, these residuals are rarely zero outside the target object, so small non-target components can accumulate during multi-step integration, causing background drift and unstable object boundaries. We propose Object-Aware Velocity Control (OAVC), a training-free framework that introduces object-level control into the velocity-integration process. OAVC decouples where semantic residuals are allowed to act from how they are injected into the dynamics. It constructs a background-anchored reference interface under the source prompt and then performs object-localized safe semantic injection under the target prompt. A constrained injection operator suppresses drift-inducing velocity components, while time-adaptive spatial weighting stabilizes the transition near object boundaries. OAVC requires no training or modification of pretrained model parameters. Experiments on object-centric image and video benchmarks with image and video rectified-flow backbones show improved background preservation, structural fidelity, boundary stability, and temporal consistency while retaining effective localized editability.

CCS Concepts: • Computing methodologies → Computer vision.

Additional Key Words and Phrases: training-free image editing, rectified flow, velocity control, object-aware editing, video editing

1 Introduction

Diffusion and flow-matching generative models enable high-fidelity synthesis with strong prompt control [8, 17, 25]. An increasingly important capability is training-free image editing: given an input image and a textual instruction, the model should follow the instruction while preserving unrelated content at inference time, without finetuning or per-image optimization [6, 14, 23, 27]. This avoids the cost and instability of training-based editing pipelines [19].

A common strategy is to intervene in the sampling trajectory by comparing source- and target-conditioned denoising directions and injecting their difference as an editing signal [4, 7, 14, 18, 26–28]. Existing training-free methods improve editing fidelity through different mechanisms, including trajectory or inversion correction, source-information regulation, delayed or region-aware injection, and attention/cache modulation [10, 14, 20, 28, 33]. However, existing methods often derive spatial cues from the model response itself, such as prompt-induced velocity differences, attention maps, or internal feature changes. Because these cues remain coupled with the target-prompt residual, spatially imprecise responses may cause updates to leak into the background, miss parts of the object, or become unstable near boundaries.

∗^{*}Corresponding author.

Authors' Contact Information: Wuji Wang, Language Technologies Institute, School of Computer Science, Carnegie Mellon University, Pittsburgh, Pennsylvania, USA, wujiw@andrew.cmu.edu; Yue Wu, State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China, wyue0620@gmail.com; Chenhao Yi, Department of Computer Science and Technology, University of Chinese Academy of Sciences, Beijing, China, 1939177124@qq.com; Shuhui Wang, State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China, wangshuhui@ict.ac.cn.

Task 1: Image Editing

Figure

Task 2: Video Editing

Figure

Fig. 1. Object-centric image and video editing. Our approach enables localized edits while keeping non-target regions stable during multi-step integration. Prior training-free velocity-steering methods often accumulate small background residuals, leading to background drift, boundary artifacts, and temporal inconsistency. By enforcing object-localized semantic updates with explicit non-target preservation, we produce cleaner object removal/inpainting, faithful attribute or color changes, and temporally consistent video edits.

As shown in Fig. 1, this limitation becomes important for object-centric edits, such as object replacement, material change, deletion, or localized attribute modification. Users expect the semantic change to occur on the target object while the surrounding regions remain stable. However, prompt-induced velocity differences are rarely zero outside the intended object region. When such residuals are integrated globally in a spatially coupled latent space, small non-target components can accumulate over solver steps, producing background drift, layout changes, and unstable object boundaries, as illustrated in Fig. 3(a). This suggests that object-centric editing should not rely only on implicit localization from prompt responses; it needs an object-level support that is specified independently of the prompt residual and applied during velocity integration.

In this work, we propose Object-Aware Velocity Control (OAVC), a training-free framework for object-centric editing with rectified-flow backbones. Our key idea is to make the editable region a solver-level control variable and decouple it from the residual transformation itself. Specifically, OAVC controls where prompt-induced residuals may accumulate using an object support, and controls how they are injected by suppressing source-flow-aligned components before integration. It first constructs a background-anchored reference interface under the source prompt for stable source-target velocity comparison, and then injects target semantics through object-localized constrained velocity updates. The object support is used only as a velocity-level prior during solver integration.

To instantiate the object support, we use SAM3 [2] as the default zero-shot support provider. OAVC only requires an object-centric support prior, not a specific segmentation model, and can also use user-provided or brush-refined supports. Localization itself is not our contribution; controlled same-support and support-robustness studies isolate the contribution of the proposed trajectory controller and characterize its dependence on support quality.

We evaluate OAVC on object-centric image and video benchmarks under rectified-flow editing settings [4, 23, 29]. Unlike masked blending or inpainting, which enforce locality by replacing latent or image regions, OAVC constrains the prompt-induced residual field before solver integration.

Figure

Fig. 2. Illustration of Stage-2: Projected and Constrained Semantic Injection. We explicitly constrain the edit to the object region and a safe injection direction.

Experiments on PIE-Bench and DAVIS show improved background preservation, structural fidelity, boundary stability, and temporal consistency while retaining effective localized editability. We further show that the same where/how velocity-control principle can transfer to another RF-based editor [14], indicating that OAVC is not tied to a single base pipeline.

References (22)