Recent inversion-free, flow-based image editing methods evolve the source image toward the target via a differential velocity field. We observe that this velocity field does not explicitly account for which regions should be preserved, leading to unintended drift in non-editing regions. To address this, we formulate source fidelity control as a stochastic optimal control problem in which a selective fidelity term on the editing residual is enforced along the editing trajectory. Solving this problem and approximating its solution yields the Residual Gating Principle: each latent component is pulled back toward the source with a gain that decays exponentially with the local residual magnitude, so that small deviations are suppressed while large, semantically meaningful edits pass through unimpeded. The proposed method, RAGE, requires only one lightweight gated interpolation per sampling step, involves no mask estimation, attention maps, retraining, or architecture-specific modifications, and is applied on top of FlowEdit-based editors. On PIE-Bench, RAGE achieves the best overall rank among 17 methods and substantially improves background preservation on both Stable Diffusion 3 and FLUX backbones while maintaining competitive editing quality.
Figures & tables
Figure 1: Without RAGE (top), the base editing velocity Vθ causes unintended drift in non-editing regions that accumulates over timesteps. With RAGE (bottom), the source-aware correction λ∇R selectively suppresses small deviations while leaving large, meaningful edits unimpeded.
Table 1: Quantitative comparison on PIE-Bench ( Ju et al., 2023 ) . Bold : best. Underline : second best. Structure Distance ( ×103 ), LPIPS ( ×103 ), MSE ( ×104 ), SSIM ( ×102 ), CLIP Sim. ( ×102 ). Background preservation metrics are computed over the region outside the annotated mask. Rank Avg. is computed by globally ranking all methods on each of the seven individual metrics and averaging the resulting ranks with equal weights. Rankings are computed using the original unrounded metric values. Results for FlowEdit (SD3, FLUX) and FlowAlign (SD3) are reproduced using their official implementations; results for all other baselines are taken from Xie et al. (2025) .
Figure 2: Qualitative comparison on PIE-Bench with FLUX.1-dev. From left to right: Source, DNAEdit-FLUX, FireFlow-FLUX, FlowEdit-FLUX, and Ours (FLUX). Source and target prompts appear below each example, with the changed concepts highlighted. Red boxes mark unintended changes outside the edited region. The selected rows cover shape modification, object replacement, color editing, object addition, and expression editing.
Figure 3: Qualitative comparison on PIE-Bench with Stable Diffusion. From left to right: Source, DNAEdit-SD3.5, FlowAlign-SD3, FlowEdit-SD3, and Ours (SD3). Source and target prompts appear below each example, with the changed concepts highlighted. Red boxes mark unintended changes outside the edited region. The selected rows cover object replacement, color editing, expression editing, and background replacement.
Variant
Struct.
Background Preservation
CLIP Sim.
Dist. ↓
PSNR ↑
LPIPS ↓
MSE ↓
SSIM ↑
Whole ↑
Edited ↑
SD3 instantiation (Algorithm 3.4.4 )
RAGE (full)
10.69
29.84
32.85
24.22
92.12
26.48
22.76
w/o Correction
25.79
23.76
90.05
67.74
86.49
26.90
22.99
w/o Warm-up
5.89
32.08
19.88
12.28
93.48
25.93
22.26
+ original schedule
5.72
32.20
19.51
11.94
93.51
25.88
22.19
Table 2: Component ablation on PIE-Bench. Metrics follow the conventions of Table 1 . All variants share the same base editor; only the specified correction, warm-up, or fidelity settings differ. The full model row for each backbone reproduces the corresponding entry from Table 1 .
Figure 4: Geometric decomposition of correction terms (representative PIE-Bench example, SD3). Gray region: warm-up ( K0=4 steps; only FlowAlign active). (a) Residual ratio: FlowAlign stays near zero in the early phase and rises gradually afterwards; the RAGE gate stabilizes at 0.5 – 0.7 in the late phase (spatially selective). (b) Retreat residual magnitude (log scale): the gated correction exceeds FlowAlign by >10× , confirming a structural difference.
Figure 5: Human preference study on PIE-Bench (pairwise 2AFC, 15 evaluators, 600 comparisons). Each bar shows the fraction of comparisons in which the baseline is preferred (red), no preference is expressed (gray), or RAGE is preferred (green). RAGE is consistently preferred across all baselines on both backbones.
Recent advances in flow-based generative models have enabled training-free, text-guided image editing by inverting an image into its latent noise and regenerating it under a new target conditional guidance. However, existing methods struggle to preserve source fidelity: higher-order solvers incur additional model inferences, truncated inversion constrains editability, and feature injection methods lack architectural transferability. To address these limitations, we propose SteerFlow, a model-agnostic editing framework with strong theoretical guarantees on source fidelity. In the forward process, we introduce an Amortized Fixed-Point Solver that implicitly straightens the forward trajectory by enforcing velocity consistency across consecutive timesteps, yielding a high-fidelity inverted latent. In the backward process, we introduce Trajectory Interpolation, which adaptively blends target-editing and source-reconstruction velocities to keep the editing trajectory anchored to the source. To further improve background preservation, we introduce an Adaptive Masking mechanism that spatially constrains the editing signal with concept-guided segmentation and source-target velocity differences. Extensive experiments on FLUX.1-dev and Stable Diffusion 3.5 Medium demonstrate that SteerFlow consistently achieves better editing quality than existing methods. Finally, we show that SteerFlow extends naturally to a complex multi-turn editing paradigm without accumulating drift.
Thinh Dao, Zhen Wang, Kien T. Pham +1
The Hong Kong University of Science and Technology, Clear Water Bay, Hong Kong · VinUniversity, Ha Noi, Viet Nam
Flow-based image editing (FlowEdit) enables inversion-free semantic changes through the difference between source and target velocities. In this paper, we observe that FlowEdit's default classifier-free guidance (CFG) configuration, with asymmetric source and target scales, causes substantial background leakage. Matching these guidance scales, for example by removing CFG, improves edit-relevant localization but severely degrades editability. To get the best of both worlds, we propose DecFlowEdit, which decouples the optimal guidance scales for localization and for editing in flow-based generative models. In particular, DecFlowEdit first extracts an edit-relevant prior by temporally aggregating velocity differences evaluated without CFG, and then uses this prior to reweight the original updates under default CFG. Our method remains training-free and inversion-free, requiring neither external spatial masks nor attention manipulation. Experiments on PIE-Bench across FLUX.1-dev, SD3, and SD3.5 show that DecFlowEdit improves background preservation, reducing structure distance by approximately 61-73% and background LPIPS by 68-80% relative to FlowEdit at comparable editing fidelity.
Zheyuan Zhan, Can Wang, Jiawei Chen +4
Zhejiang University · University at Buffalo · University of California, Berkeley
Diffusion and flow models enable powerful generative modeling, but controlled editing remains challenging due to the need to balance source fidelity and edit compliance along the generative trajectory. We propose a principled, inversion-free framework for flow-based image editing from a trajectory centric perspective. Rather than relying on inversion or heuristic guidance, we introduce a one-step look-ahead mechanism that evaluates the effect of candidate updates on both edit and fidelity rewards estimated via denoising, and adjusts the current update based on this evaluation. At each step, our method applies reward-driven corrections guided by the look-ahead evaluation under an explicit fidelity constraint, resulting in stable and coherent trajectory evolution. This look-ahead design mitigates gradient interference between edit and fidelity objectives by anticipating their interaction in future states, leading to improved trade-offs. Experiments demonstrate that the proposed approach achieves stronger semantic edits while better preserving source content compared to existing strong baselines.