arXiv:cs.AI· Tiancheng Shen, Zilong Huang, Xiangtai Li, Zhijie Lin, Jiyang Liu, Yitong Wang, Jiashi Feng, Ming-Hsuan Yang, Jun Hao Liew·· 20 小时前
QK-Edit:重新审视 MM-DiT 中基于注意力的图像与视频编辑注入方法
QK-Edit: Revisiting Attention-based Injection in MM-DiT for Image and Video Editing
AI 导读
QK-Edit 是一个无需训练的框架,通过新型 query-key 操作策略利用 MM-DiT 的多模态自注意力机制,实现精确的文本引导图像和视频编辑,在 FLUX 和 HunyuanVideo 等模型上展现出更优的编辑性能。该方法支持对象添加、移除、替换、背景更换、材质更换、颜色更换和风格转换等任务,且可通过推理时的特征替换轻松实现。
正文
Abstract:Multimodal Diffusion Transformers (MM-DiTs) have recently emerged as a powerful framework for unified text-vision synthesis, surpassing traditional U-Net architectures in generative tasks. One key innovation lies in its Multimodal Self-Attention (MM-SA) interaction, where image and text tokens are concatenated and processed via self-attention. However, this mechanism poses significant challenges for editing, rendering conventional U-Net-based attention manipulation methods ineffective. To address this limitation, we propose QK-Edit, a training-free framework that exploits the unique attention dynamics of MM-DiTs for precise text-guided image and video editing. By introducing a novel query-key manipulation strategy, our method isolates and adjusts critical attention components to achieve an optimal balance between prompt fidelity and structural consistency. This enables seamless edits across various tasks, including object addition, object removal, object replacement, changing background, changing material, changing color, and style transformation. Notably, it can be easily implemented with feature replacement in inference. QK-Edit demonstrates superior editing performance on state-of-the-art models, such as FLUX and HunyuanVideo, effectively bridging the gap between generative power and editable flexibility in MM-DiTs, and paving the way for scalable multimodal content creation.
| Comments: | Accepted at ICCV 2025 |
| Subjects: | Computer Vision and Pattern Recognition (cs.CV); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.17829 [cs.CV] |
| (or arXiv:2610.17829v2 [cs.CV] for this version) | |
| https://doi.org/10.48550/arXiv.2610.17829 arXiv-issued DOI via DataCite |
Submission history
From: Tiancheng Shen [view email]
[v1]
Tue, 13 Oct 2026 06:49:25 UTC (24,081 KB)
[v2]
Wed, 14 Oct 2026 05:32:56 UTC (24,081 KB)
来源:arXiv:cs.AI · arxiv.org