paper-with-me

Papers

Dissecting Query-Key Interaction in Vision Transformers

2024-04-04 · Xu Pan, Aaron Philip, Ziqian Xie, Odelia Schwartz

Self-attention in vision transformers is often thought to perform perceptual grouping where tokens attend to other tokens with similar embeddings, which could correspond to semantically similar features of an object. However, attending to dissimilar tokens can be beneficial by providing contextual information. We propose to analyze the query-key interaction by the singular value decomposition of the interaction matrix (i.e. ${\textbf{W}_q}^\top\textbf{W}_k$). We find that in many ViTs, especially those with classification training objectives, early layers attend more to similar tokens, while late layers show increased attention to dissimilar tokens, providing evidence corresponding to perceptual grouping and contextualization, respectively. Many of these interactions between features represented by singular vectors are interpretable and semantic, such as attention between relevant objects, between parts of an object, or between the foreground and background. This offers a novel perspective on interpreting the attention mechanism, which contributes to understanding how transformer models utilize context and salient features when processing images.

📄 PDF Abstract BibTeX arXiv:2405.14880

Code (1)

schwartz-cnl/DissectingViT 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Rethinking Query-Key Pairwise Interactions in Vision Transformers

2022-07-01 · Cheng Li, Yangxin Liu

Vision Transformers have achieved state-of-the-art performance in many visual tasks. Due to the quadratic computational and memory complexities of self-attention, recent works either apply attention only to low-resolutio…

object-detectionObject DetectionSemantic Segmentation

AttentionViz: A Global View of Transformer Attention

2023-05-04 · Catherine Yeh, Yida Chen, Aoyu Wu, Cynthia Chen 외

Transformer models are revolutionizing machine learning, but their inner workings remain mysterious. In this work, we present a new visualization technique designed to help researchers understand the self-attention mecha…

Query Resolution for Conversational Search with Limited Supervision

2020-05-24 · Nikos Voskarides, Dan Li, Pengjie Ren, Evangelos Kanoulas 외

In this work we focus on multi-turn passage retrieval as a crucial component of conversational search. One of the key challenges in multi-turn passage retrieval comes from the fact that the current turn query is often un…

Conversational SearchPassage RetrievalRetrieval

Learning Correlation Structures for Vision Transformers

2024-04-05 · CVPR 2024 1 · Manjin Kim, Paul Hongsuck Seo, Cordelia Schmid, Minsu Cho

We introduce a new attention mechanism, dubbed structural self-attention (StructSA), that leverages rich correlation patterns naturally emerging in key-query interactions of attention. StructSA generates attention maps b…

Action ClassificationAction RecognitionObjectVideo Classification

Dissecting Lottery Ticket Transformers: Structural and Behavioral Study of Sparse Neural Machine Translation

2020-09-17 · EMNLP (BlackboxNLP) 2020 11 · Rajiv Movva, Jason Y. Zhao

Recent work on the lottery ticket hypothesis has produced highly sparse Transformers for NMT while maintaining BLEU. However, it is unclear how such pruning techniques affect a model's learned representations. By probing…

Machine TranslationNMTTranslation