Mind the RefGAP: Correcting Reference Attention in Diffusion-Based Visual Editing
Abstract
Reference-guided diffusion editors struggle to faithfully reproduce user-provided references. We observe that many diffusion editors allocate limited attention to the reference. For example, in LoomVideo, edit-region queries assign less than 1% of their attention mass to the reference. We introduce RefGAP, a training-free correction that determines logit-offset magnitudes online at each layer from the reference-attention mass measured during the forward pass. Positive offsets to reference logits strengthen reference usage by edit-region queries, while negative offsets for keep-region queries limit reference-induced changes outside the edit. Two global coefficients control the correction; they are selected once on validation data from four development diffusion editors and held fixed. Across seven diffusion-based image/video editors, RefGAP improves identity fidelity in head swapping and face swapping, where identity takes priority; on some editors this raises pose error, which delaying the correction reduces. RefGAP achieves a fidelity-preservation trade-off comparable to separately tuned constant edit-side biases, without per-approach strength sweeps. Additional experiments on virtual try-on and background replacement evaluate transfer beyond identity editing.
Create a lesson
Related papers
OceanFix: Reference-Guided Diffusion for Sparse-View Underwater 3D Reconstruction
Shared title terminologycs.CVGen Li, Maoxin Chen, Yao Xiao et al.
Less Supervision, Better Generalization: Weakly Supervised Fake Region Localization in Diffusion-Edited Images
Shared title terminologycs.CVJunhee Lee, Donghyeon Jeon, Taeoh Kim et al.
Learning via Self-Consistency for Diffusion-based Video Reasoning
Shared title terminologycs.CVZhenghao Ni, Weimin Qiu, Meng Tang
Attention-Scoped Guidance: Training-Free Spatial Control for Image Editing
Shared title terminologycs.CVZeyan Li, Wei Zhou, Hadi Amirpour et al.
Tracking Any Point with Agentic Visual Reasoning
Shared title terminologycs.CVXuweiyi Chen, Jin Yao, Linzhan Mou et al.
Improving and Expanding Video Editing Capabilities Without Videos
Shared title terminologycs.CVJi Xie, Yanhao Jia, Xiangpeng Yang et al.