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

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 memory consumption of KV cache during editing and optimize the space complexity from $O(N)$ to $O(1)$ using an inversionfree method. Our approach is compatible with any DiTbased 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.

Paper

References (79)

Scroll for more · 38 remaining

Similar papers

© 2026 NYSGPT2525 LLC