paper-with-me

홈 › Papers

What the DAAM: Interpreting Stable Diffusion Using Cross Attention

2022-10-10 · Raphael Tang, Linqing Liu, Akshat Pandey, Zhiying Jiang, Gefei Yang, Karun Kumar, Pontus Stenetorp, Jimmy Lin, Ferhan Ture

Large-scale diffusion neural networks represent a substantial milestone in text-to-image generation, but they remain poorly understood, lacking interpretability analyses. In this paper, we perform a text-image attribution analysis on Stable Diffusion, a recently open-sourced model. To produce pixel-level attribution maps, we upscale and aggregate cross-attention word-pixel scores in the denoising subnetwork, naming our method DAAM. We evaluate its correctness by testing its semantic segmentation ability on nouns, as well as its generalized attribution quality on all parts of speech, rated by humans. We then apply DAAM to study the role of syntax in the pixel space, characterizing head--dependent heat map interaction patterns for ten common dependency relations. Finally, we study several semantic phenomena using DAAM, with a focus on feature entanglement, where we find that cohyponyms worsen generation quality and descriptive adjectives attend too broadly. To our knowledge, we are the first to interpret large diffusion models from a visuolinguistic perspective, which enables future lines of research. Our code is at https://github.com/castorini/daam.

📄 PDF Abstract BibTeX arXiv:2210.04885

Code (2)

castorini/daam 공식 구현 pytorch
rishidarkdevil/daam-i2i pytorch

Tasks

DenoisingDescriptiveImage AttributionImage GenerationInstance SegmentationSemantic SegmentationText to Image GenerationText-to-Image GenerationUnsupervised Semantic Segmentation

Methods 이 논문이 사용한 방법론

Diffusion Diffusion models generate samples by gradually removing noise from a signal, and their training objective can be expressed as a reweighted variational lower-bound…

Similar Papers 제목 키워드 기반

Density Adaptive Attention-based Speech Network: Enhancing Feature Understanding for Mental Health Disorders

2024-08-31 · Georgios Ioannides, Adrian Kieback, Aman Chadha, Aaron Elkins

Speech-based depression detection poses significant challenges for automated detection due to its unique manifestation across individuals and data scarcity. Addressing these challenges, we introduce DAAMAudioCNNLSTM and …

Depression DetectionDiagnosticExplainable Models

DeHate: A Stable Diffusion-based Multimodal Approach to Mitigate Hate Speech in Images

2025-09-26 · Dwip Dalal, Gautam Vashishtha, Anku Rani, Aishwarya Reganti 외 arxiv

The rise in harmful online content not only distorts public discourse but also poses significant challenges to maintaining a healthy digital environment. In response to this, we introduce a multimodal dataset uniquely cr…

Density Adaptive Attention is All You Need: Robust Parameter-Efficient Fine-Tuning Across Multiple Modalities

2024-01-20 · Georgios Ioannides, Aman Chadha, Aaron Elkins

We propose the Multi-Head Density Adaptive Attention Mechanism (DAAM), a novel probabilistic attention framework that can be used for Parameter-Efficient Fine-tuning (PEFT), and the Density Adaptive Transformer (DAT), de…

AllEmotion Recognitionimage-classificationImage Classification+3

Picturing Ambiguity: A Visual Twist on the Winograd Schema Challenge

2024-05-25 · Brendan Park, Madeline Janecek, Naser Ezzati-Jivan, Yifeng Li 외

Large Language Models (LLMs) have demonstrated remarkable success in tasks like the Winograd Schema Challenge (WSC), showcasing advanced textual common-sense reasoning. However, applying this reasoning to multimodal doma…

Common Sense Reasoning

Dynamic Accumulated Attention Map for Interpreting Evolution of Decision-Making in Vision Transformer

2025-03-18 · Yi Liao, Yongsheng Gao, Weichuan Zhang

Various Vision Transformer (ViT) models have been widely used for image recognition tasks. However, existing visual explanation methods can not display the attention flow hidden inside the inner structure of ViT models, …

Decision Making