Patronus: Interpretable Diffusion Models with Prototypes

Nina Weng, Aasa Feragen, Siavash Bigdeli
3/28/2025
cs.CVcs.AIcs.LG

Official code: nina-weng/patronus (4 stars, last commit 2026-03-19).

Abstract

Uncovering the opacity of diffusion-based generative models is urgently needed, as their applications continue to expand while their underlying procedures largely remain a black box. With a critical question -- how can the diffusion generation process be interpreted and understood? -- we proposed Patronus, an interpretable diffusion model that incorporates a prototypical network to encode semantics in visual patches, revealing what visual patterns are modeled and where and when they emerge throughout denoising. This interpretability of Patronus provides deeper insights into the generative mechanism, enabling the detection of shortcut learning via unwanted correlations and the tracing of semantic emergence across timesteps. We evaluate Patronus on four natural image datasets and one medical imaging dataset, demonstrating both faithful interpretability and strong generative performance. With this work, we open new avenues for understanding and steering diffusion models through prototype-based interpretability.\\ Our code is available at https://github.com/nina-weng/patronus}{https://github.com/nina-weng/patronus.

View on arXivView PDF

Code Implementations(1)

nina-weng/patronusOfficial100%
41Python, Jupyter NotebookApr 23, 20257 months ago

Similar Papers

Cite this paper

@article{weng2025patronus,
  title  = {Patronus: Interpretable Diffusion Models with Prototypes},
  author = {Nina Weng and Aasa Feragen and Siavash Bigdeli},
  year   = {2025},
  eprint = {2503.22782},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.22782v2}
}

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/2503.22782.svg)](https://codeofpaper.com/paper/2503.22782)

Discussion