Beyond Temporal Smoothing:
Spatial Energy Budgets Stabilize One-Step Diffusion Editing

1PCA Lab, School of Computer Science and Engineering, Nanjing University of Science and Technology
2College of Computer Science, Nankai University
*Corresponding author
{shengxiao.zhou, cslluo}@njust.edu.cn ยท csjyang@nankai.edu.cn
Source: panda with closed mouth
Instruction: close to open mouth
Source (base) Edited: panda with open mouth
Source: cat with yellow eyes
Instruction: yellow to green eyes
Source (base) Edited: cat with green eyes
Source: squirrel on a fence
Instruction: squirrel to rabbit
Source (base) Edited: rabbit on a fence
One-step editing by BudEdit. It converts background residual energy into a spatial budget and allocates the constructed injection only to edit-relevant regions for stronger, more coherent edits.

Abstract

One-step text-guided diffusion editing is efficient but prone to spatially misallocated updates that distort the edited object and alter the background. Existing methods often improve stability by averaging the editing field across timesteps. We instead identify spatial energy misallocation as a distinct and measurable failure mode: across two independent noise draws, the residual field is essentially unrepeatable, making the background field unreliable for direct transport, while its total energy still sets a usable magnitude for the draw at hand. BudEdit turns that magnitude into an explicit budget and reallocates it to edit-relevant regions selected jointly by residual energy and cross-attention, controlling where editing energy is spent rather than averaging over timesteps. The resulting training-free, inversion-free editor spends the budget on transport and reuses it to scale a correction in a lower-noise gated refinement. The budgeted injection field matches its prescribed budget exactly and vanishes on the identified background support, by construction. On PIE-Bench with SD-Turbo, BudEdit outperforms ChordEdit under each method's reported default settings on all 11 evaluated metrics, including a 2.1 dB gain in background PSNR, 31% lower DINO, and 36% lower LPIPS, while improving all five editing-quality metrics and reporting the lowest runtime in the comparison.

Motivation

  • Distilled one-step generators (e.g. SD-Turbo) make real-time image editing practical, but a single large integration step remains unstable: the editing signal is a difference of two conditioned outputs, distorting the background.
  • Recent editors such as ChordEdit stabilize this by averaging the editing field across nearby timesteps, a purely temporal remedy; WhereEdit infers an edit mask and amplifies conditional transport, and RRLS refines the transport with a Riemannian residual line search — neither controls where the single-draw field deposits its energy. We ask instead: can the spatial distribution of the field be controlled explicitly rather than averaged uniformly across timesteps?
  • Across two noise draws, the residual is essentially unrepeatable (cosine similarity ≈ 0.1), so its raw amplitude is unsafe to transport, but its total energy is a stable scale. BudEdit turns this into an explicit spatial budget.
BudEdit frontier plot on PIE-Bench
One-step editors on PIE-Bench. Background PSNR vs. CLIP-D; bubble size = runtime. BudEdit leads on both axes and reports the lowest runtime among the compared one-step editors.

Method

BudEdit separates how much editing energy is administered from where and how it is spent. A residual-energy support and a cross-attention localization signal, both read off the same transport forward pass at no additional UNet evaluation, determine where the budget is allocated, while a constrained allocation problem determines how it is distributed.

BudEdit framework overview
Comparison of editing paradigms. (a) multi-step editing buys stability by spreading the update over many small steps; (b) one-step editing integrates the measured field in a single large step; (c) chord transport forms the one-step update from a time-weighted average of residual fields at two timesteps; (d) energy transport converts background residual energy into a budget and spends it inside the effective injection support.

Harvesting the budget. The aggregate residual energy measured on the operational background support, the region outside the model's own thresholded energy support, sets an image-dependent budget $B = \beta E_{\mathrm{bg}}$ with $\beta{=}4.0$ by default. This is a measurement-derived scale, not a conserved quantity being transported: the construction matches this prescribed budget exactly, without assuming conservation of the measured background energy. Because the budget sums rather than averages, it carries the area of the background support, so the mean injected energy density scales with that area relative to the injection support: a small target on a large canvas receives a denser correction.

Allocation as information projection. Within the effective injection support, where the residual-energy support meets a prompt-difference attention gate, the budget is distributed by solving a KL-projection problem in closed form. The resulting amplitude map matches the attention-derived allocation profile exactly while consuming exactly the prescribed budget, and vanishes everywhere on the background support by construction.

Budget-aware gated refinement. A second forward pass at a lower noise level, reusing the noise realization of the transport pass, cleans up the transported image. Within a cleanup gate — the thresholded, dilated second-pass attention readout intersected with the second-pass energy support — GatedRefine starts from the target-conditioned prediction, reinjects a fraction of the same budget $B$ as a residual correction, and applies a gated local extrapolation to recover reliable but under-edited content; a low-amplitude high-frequency source anchor and an attention-modulated micro-swap then restore local texture and stabilize uncertain structure. Final fusion with the source image is governed by an output gate that keeps the transport support admitted by second-pass attention and adds only extensions jointly supported by the second-pass residual and attention.

Localization derives from the model itself. The residual-energy mask and the edit-attention map intersect to form the derived mask; editing uses no external or human-annotated mask, and the GT mask above is included for visual comparison only. In the Overlap panel, green marks the common support of the derived mask and the GT mask, while red and blue mark regions selected by only one of them. The appendix reports the overlap between the derived support and the annotated region over all $700$ pairs.

BudEdit annotation-free localization
Annotation-free localization. Two edits, from birds to origami birds and from a dog to a lion. The columns show the Real Image, Energy Mask, Edit-Attention Map, Derived Mask, GT Mask, Overlap, background energy, field energy of the composed transport field, and output.

Results

On PIE-Bench with SD-Turbo (700 images, 10 editing categories, all $512{\times}512$, seed fixed at 42 for all methods), BudEdit is compared against multi-step, few-step, and one-step editors under each method's own reported default configuration. Like ChordEdit, BudEdit uses one sampling step and two UNet evaluations, with $t_s{=}0.78$, $t_e{=}0.38$, $\alpha{=}0.7$ and $\beta{=}4.0$; runtimes are measured on an RTX 4090. Among one-step methods, BudEdit achieves the highest PSNR, CLIP-D, MUSIQ and MUSIQ-E while using two UNet evaluations and reporting the lowest runtime of 0.21 s per image. Among training-free one-step editors it leads all six background-fidelity metrics and exceeds ChordEdit on all five editing-quality metrics — a 2.1 dB background PSNR gain, 31% lower DINO, and 36% lower LPIPS — while SwiftEdit reaches its background numbers only with task-specific training. The few-step and multi-step methods provide a broader quality–compute reference rather than a same-budget ablation: they use $4$–$100$ evaluations and report $0.84$–$15.03$ s per image, compared with BudEdit's two evaluations and $0.21$ s.

Type Method Background Edited Properties Efficiency
PSNR↑MSE↓LPIPS↓SSIM↑DINO↓CLIP↑ CLIP-W↑CLIP-E↑CLIP-D↑MUSIQ↑MUSIQ-E↑ T-freeI-free StepNFERuntime(s)↓VRAM(MB)↓
Multi-stepSpotEdit27.2113.9269.390.8841.5596.6424.6422.5117.6367.0160.04✓✓505011.3726384
FlowEdit22.128.91104.710.8426.8895.1226.0122.7810.9069.3963.72✓✓33339.3920180
KV-Edit34.910.5211.260.9516.5797.0624.5620.837.9571.1162.10✓✓24489.4231618
PnPInversion22.328.29112.770.7928.1195.0325.4222.5310.4368.8261.17✓✗5010015.039290
Few-stepTurboEdit22.559.25101.930.8029.8795.2426.5423.0414.6271.1163.83✓✓440.9119574
InstantEdit28.612.7945.210.8712.7297.4124.8921.9313.0667.3860.41✓✗480.847812
InfEdit28.116.9856.090.8516.9097.3224.8722.079.6567.5460.83✓✓441.296794
One-stepSwiftEdit24.225.4176.390.8215.1496.3424.4821.547.5666.5260.05✗✗120.4519500
ChordEdit22.637.98122.660.7728.8195.0424.8322.1510.7267.2160.19✓✓120.267333
WhereEdit24.057.97108.220.8031.0394.9325.1822.6610.7864.2856.39✓✓130.297339
RRLS23.926.27111.400.8125.0795.2125.3822.0911.4765.9057.79✓✓140.527333
BudEdit24.715.5478.240.8220.0196.1725.2522.5212.2867.7760.31✓✓120.217319

← Scroll horizontally to see all columns →

Quantitative comparison on PIE-Bench. T-free: training-free. I-free: inversion-free. Best and second-best among one-step methods are highlighted in yellow and blue, ties included.

BudEdit qualitative comparison
Qualitative comparison with the methods of the table above. Several baselines exhibit background color shifts, ghosting, or structural distortion, while BudEdit better preserves the source surroundings and produces detailed edits with clean boundaries, retaining the intended edit semantics throughout. In the lion latte-art example it yields a clearly delineated mane while preserving the cup and table appearance of the source; in the steak-to-salmon example it preserves the dark plate and side dishes.

Ablation Study

Comparison with chord transport. Disabling ChordEdit's chord window ($\delta{=}0$) raises CLIP-E from $22.15$ to $22.54$, but lowers MUSIQ-E from $60.19$ to $55.97$ and background PSNR from $22.63$ to $20.13$ dB, and the window-off outputs show visible background and structural distortion. CLIP-E alone therefore does not fully reflect edit quality, which is why MUSIQ-E is reported as a complementary measure of edited-region perceptual quality. Without relying on temporal smoothing, BudEdit improves all five metrics over ChordEdit's smoothed default; against the window-off row it gives up only $0.02$ CLIP-E while improving background PSNR by $4.58$ dB and MUSIQ-E by $4.34$ points.

Matched effective timestep. ChordEdit's default window assigns six sevenths of its weight to $t_s-\delta$, so with $t_s{=}0.9$ and $\delta{=}0.15$ its weighted-average time is $t_s-6\delta/7=0.771$, close to BudEdit's direct timestep $t_s{=}0.78$. This is consistent with temporal smoothing shifting ChordEdit toward a lower effective timestep, while the mechanisms remain different: ChordEdit averages fields globally over time, whereas BudEdit evaluates directly at $t_s{=}0.78$ and controls the trade-off through spatial energy budgeting.

ConfigPSNR↑MSE↓CLIP-W↑CLIP-E↑MUSIQ-E↑
δ=020.1313.3425.1122.5455.97
δ=0.1522.637.9824.8322.1560.19
BudEdit24.715.5425.2522.5260.31

ChordEdit chord window ablation. $\delta{=}0.15$ is the default; $\delta{=}0$ disables the window.

ChordEdit window ablation
ChordEdit window ablation. ChordEdit with $\delta{=}0$ distorts the scene; BudEdit preserves the scene.

Component ablations. Setting $\beta{=}0$ drops the budgeted injection field $f^{\star}$ from the composed field, leaving only the attenuated residual term; disabling cleanup drops the second UNet evaluation, halving NFE. Each factor helps alone: energy reallocation alone raises CLIP-E/CLIP-D by $0.31$/$1.57$ without cleanup, while cleanup gives the larger editing-quality gain, $+1.30$/$+5.87$ and $+1.08$ CLIP-W. They also interact — with cleanup on, the reallocation gains grow to $0.71$/$2.93$ — and the full configuration attains the best CLIP-W, CLIP-E and CLIP-D. Transporting less energy changes the background less, so the no-energy, no-cleanup setting holds the highest PSNR and SSIM. In the office chair $\to$ straw chair edit, budgeted energy reallocation alone overlays straw texture on the cushion, cleanup alone yields only a slight change to the armrests, and only the full configuration converts the chair coherently.

EnergyCleanupPSNR↑SSIM↑CLIP-W↑CLIP-E↑CLIP-D↑NFE↓
✗✗26.140.8523.5120.513.481
✓✗25.730.8423.7320.825.051
✗✓25.920.8324.5921.819.352
✓✓24.710.8225.2522.5212.282

Factorial ablation of energy reallocation and cleanup. Highlighted cells mark column best.

BudEdit component ablation
Qualitative and energy analysis. Injection: energy of $f^{\star}$; field energy: energy of the transport field. Heatmaps use the full configuration.

Cross-Dataset and Cross-Backbone Analysis

The comparison crosses two datasets, PIE-Bench and the multi-aspect PIE-Bench++ of ParallelEdits, with two one-step backbones, SD-Turbo and SwiftBrushV2, using the same hyperparameters throughout. BudEdit achieves the best background preservation and editing quality across all four settings, improving background PSNR by over $2$ dB. The appendix reports all eleven metrics.

DatasetBackbone PSNR↑ CLIP-E↑
ChordEditBudEditChordEditBudEdit
PIE-BenchSD-Turbo22.6324.7122.1522.52
SwiftBrushV222.9325.4921.1821.26
PIE-Bench++SD-Turbo22.8725.0624.1224.27
SwiftBrushV223.1625.8322.4622.70

Quantitative comparison on different datasets and backbones. Blue marks BudEdit.

Conclusion

BudEdit addresses spatially misallocated updates in one-step diffusion editing by converting single-draw background residual energy into an image-dependent budget and re-injecting it into the regions selected jointly by residual energy and cross-attention, with exact injection-budget matching and zero injection on the operational background support. On PIE-Bench, it outperforms the temporal-smoothing approach of ChordEdit on all 11 reported metrics, including a 2.1 dB PSNR gain, at the lowest runtime in the comparison. Together, these results establish explicit spatial energy budgeting as an alternative to temporal smoothing for stable, efficient, controllable one-step editing.

BibTeX

@article{zhou2026budedit,
  title   = {Beyond Temporal Smoothing: Spatial Energy Budgets Stabilize One-Step Diffusion Editing},
  author  = {Zhou, Shengxiao and Luo, Lei and Yang, Jian},
  journal = {arXiv preprint arXiv:2609.32841},
  year    = {2026}
}