HeadRouter: A Training-free Image Editing Framework for MM-DiTs by Adaptively Routing Attention Heads

Yu Xu, Fan Tang, Juan Cao, Yuxin Zhang, Xiaoyu Kong +3 more
11/22/2024
cs.CVcs.LG

No official code found. Best implementation: ICTMCG/HeadRouter (92 stars, last commit 2026-03-18).

Abstract

Diffusion Transformers (DiTs) have exhibited robust capabilities in image generation tasks. However, accurate text-guided image editing for multimodal DiTs (MM-DiTs) still poses a significant challenge. Unlike UNet-based structures that could utilize self/cross-attention maps for semantic editing, MM-DiTs inherently lack support for explicit and consistent incorporated text guidance, resulting in semantic misalignment between the edited results and texts. In this study, we disclose the sensitivity of different attention heads to different image semantics within MM-DiTs and introduce HeadRouter, a training-free image editing framework that edits the source image by adaptively routing the text guidance to different attention heads in MM-DiTs. Furthermore, we present a dual-token refinement module to refine text/image token representations for precise semantic guidance and accurate region expression. Experimental results on multiple benchmarks demonstrate HeadRouter's performance in terms of editing fidelity and image quality.

View on arXivView PDF

Code Implementations(1)

ICTMCG/HeadRouterCommunity75%

ACM TOG 2026πŸŽ‰ Offical repository for "HeadRouter: A Training-free Image Editing Framework for MM-DiTs by Adaptively Routing Attention Heads".

922Shell, PythonNov 26, 20247 months ago

Similar Papers

Cite this paper

@article{xu2024headrouter,
  title  = {HeadRouter: A Training-free Image Editing Framework for MM-DiTs by Adaptively Routing Attention Heads},
  author = {Yu Xu and Fan Tang and Juan Cao and Yuxin Zhang and Xiaoyu Kong and Jintao Li and Oliver Deussen and Tong-Yee Lee},
  year   = {2024},
  eprint = {2411.15034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.15034v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.15034.svg)](https://codeofpaper.com/paper/2411.15034)

Discussion