2025-02-26 · 专家 · 机器学习 · 计算机视觉

KV-Edit: Training-Free Image Editing for Precise Background Preservation

本文提出了一种名为KV-Edit的无监督图像编辑方法,通过在DiT中实现KV缓存来维持背景一致性,从而在编辑过程中实现精确的背景保留。

更新于 2025-02-26。作者:Tianrui Zhu、Shiyi Zhang、Jiawei Shao、Yansong Tang。

中文摘要

背景一致性在图像编辑任务中仍然是一个重大挑战。尽管取得了广泛的发展,现有的工作仍然需要在保持与原始图像的相似性和生成符合目标内容之间进行权衡。在这里,我们提出了KV-Edit,一种无需训练的方法,它利用DiTs中的KV缓存来保持背景一致性,其中背景标记被保留而不是重新生成,从而消除了对复杂机制或昂贵训练的需求,最终生成与用户提供的区域背景无缝集成的新内容。我们进一步探讨了编辑过程中KV缓存的内存消耗,并使用一种无反转的方法将空间复杂度优化到O(1)。我们的方法与任何基于DiT的生成模型兼容,无需额外训练。实验表明,KV-Edit在背景和图像质量方面都显著优于现有方法,甚至超过了基于训练的方法。项目网页可在https://xilluill.github.io/projectpages/KV-Edit查看。

英文摘要

Background consistency remains a significant challenge in image editing tasks. Despite extensive developments, existing works still face a trade-off between maintaining similarity to the original image and generating content that aligns with the target. Here, we propose KV-Edit, a training-free approach that uses KV cache in DiTs to maintain background consistency, where background tokens are preserved rather than regenerated, eliminating the need for complex mechanisms or expensive training, ultimately generating new content that seamlessly integrates with the background within user-provided regions. We further explore the memory consumption of the KV cache during editing and optimize the space complexity to O(1) using an inversion-free method. Our approach is compatible with any DiT-based generative model without additional training. Experiments demonstrate that KV-Edit significantly outperforms existing approaches in terms of both background and image quality, even surpassing training-based methods. Project webpage is available at https://xilluill.github.io/projectpages/KV-Edit

解读

一句话总结

本文提出了一种名为KV-Edit的无监督图像编辑方法,通过在DiT中实现KV缓存来维持背景一致性,从而在编辑过程中实现精确的背景保留。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt