$\textit{Revelio}$: Interpreting and leveraging semantic information in diffusion models
Dahye Kim, Xavier Thomas, Deepti Ghadiyaram
TL;DR
Revelio investigates how diffusion models encode semantic information across layers and denoising timesteps. It introduces k-Sparse Autoencoders (k-SAE) to extract monosemantic features from diffusion activations and validates these features with a lightweight Diff-C classifier for transfer learning and visual reasoning. The study spans UNet and DiT architectures, timesteps, and pretraining, revealing non-linear granularity of semantic information and architecture-induced biases, with practical benefits in transfer performance and inference speed. Overall, the work advances interpretability of diffusion models and informs design choices for semantic control and efficient deployment.
Abstract
We study $\textit{how}$ rich visual semantic information is represented within various layers and denoising timesteps of different diffusion architectures. We uncover monosemantic interpretable features by leveraging k-sparse autoencoders (k-SAE). We substantiate our mechanistic interpretations via transfer learning using light-weight classifiers on off-the-shelf diffusion models' features. On $4$ datasets, we demonstrate the effectiveness of diffusion features for representation learning. We provide an in-depth analysis of how different diffusion architectures, pre-training datasets, and language model conditioning impacts visual representation granularity, inductive biases, and transfer learning capabilities. Our work is a critical step towards deepening interpretability of black-box diffusion models. Code and visualizations available at: https://github.com/revelio-diffusion/revelio
