RefGAP:在基于扩散的视觉编辑中校正参考注意力
Mind the RefGAP: Correcting Reference Attention in Diffusion-Based Visual Editing
针对扩散编辑器对用户参考图注意力分配不足的问题,RefGAP提出一种免训练校正方法,在前向传播中按层测量参考注意力质量并在线确定logit偏移幅度,用两个全局系数控制校正强度。在七个扩散图像/视频编辑器上,RefGAP提升了换脸与换头场景的身份保真度,部分编辑器上姿态误差上升可通过延迟校正缓解,并在虚拟试穿与背景替换任务上验证了迁移性。
arXiv:2609.35708v2 Announce Type: replace 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org