ConceptAttention: Diffusion Transformers Learn Highly Interpretable Features
Alec Helbling, Tuna Han Salih Meral, Ben Hoover, Pinar Yanardag, Duen Horng Chau
TL;DR
This work tackles the interpretability of multi-modal diffusion transformers by introducing ConceptAttention, which repurposes DiT attention layers to create contextualized concept embeddings and high-quality saliency maps without retraining. By projecting image patch outputs into the attention output space of these concept embeddings, the method yields sharper, open-set saliency maps that can localize textual concepts in images and generalize to video. Across Flux DiT, Stable Diffusion 3.5 Turbo, and CogVideo X, ConceptAttention achieves state-of-the-art zero-shot image segmentation on ImageNet-Segmentation and Pascal VOC, outperforming CLIP-, DINO-, and UNet-based interpretability baselines. The results demonstrate that DiT representations are highly transferable to downstream vision tasks, offering a path toward more transparent and controllable diffusion models.
Abstract
Do the rich representations of multi-modal diffusion transformers (DiTs) exhibit unique properties that enhance their interpretability? We introduce ConceptAttention, a novel method that leverages the expressive power of DiT attention layers to generate high-quality saliency maps that precisely locate textual concepts within images. Without requiring additional training, ConceptAttention repurposes the parameters of DiT attention layers to produce highly contextualized concept embeddings, contributing the major discovery that performing linear projections in the output space of DiT attention layers yields significantly sharper saliency maps compared to commonly used cross-attention maps. ConceptAttention even achieves state-of-the-art performance on zero-shot image segmentation benchmarks, outperforming 15 other zero-shot interpretability methods on the ImageNet-Segmentation dataset. ConceptAttention works for popular image models and even seamlessly generalizes to video generation. Our work contributes the first evidence that the representations of multi-modal DiTs are highly transferable to vision tasks like segmentation.
