Localizing Knowledge in Diffusion Transformers
Arman Zarei, Samyadeep Basu, Keivan Rezaei, Zihao Lin, Sayan Nag, Soheil Feizi
TL;DR
This work tackles the problem of understanding where knowledge is encoded in Diffusion Transformers (DiTs) and enabling targeted, efficient edits. It introduces a model- and knowledge-agnostic localization method based on attention-contribution signals to identify the top-$K$ blocks that carry specific concepts, evaluating across three DiT architectures (PixArt-$\alpha$, FLUX, SANA) and six knowledge categories. A new LocK (Localization of Knowledge) probe dataset supports large-scale, diverse evaluation. Building on localization, the authors demonstrate practical applications in model personalization and concept unlearning with localized fine-tuning that preserves unrelated content and reduces computational costs, offering a path toward more interpretable and efficient DiT editing.
Abstract
Understanding how knowledge is distributed across the layers of generative models is crucial for improving interpretability, controllability, and adaptation. While prior work has explored knowledge localization in UNet-based architectures, Diffusion Transformer (DiT)-based models remain underexplored in this context. In this paper, we propose a model- and knowledge-agnostic method to localize where specific types of knowledge are encoded within the DiT blocks. We evaluate our method on state-of-the-art DiT-based models, including PixArt-alpha, FLUX, and SANA, across six diverse knowledge categories. We show that the identified blocks are both interpretable and causally linked to the expression of knowledge in generated outputs. Building on these insights, we apply our localization framework to two key applications: model personalization and knowledge unlearning. In both settings, our localized fine-tuning approach enables efficient and targeted updates, reducing computational cost, improving task-specific performance, and better preserving general model behavior with minimal interference to unrelated or surrounding content. Overall, our findings offer new insights into the internal structure of DiTs and introduce a practical pathway for more interpretable, efficient, and controllable model editing.
