paper-with-me

홈 › Papers

Quantifying Attention Flow in Transformers

2020-05-02 · ACL 2020 6 · Samira Abnar, Willem Zuidema

In the Transformer model, "self-attention" combines information from attended embeddings into the representation of the focal embedding in the next layer. Thus, across layers of the Transformer, information originating from different tokens gets increasingly mixed. This makes attention weights unreliable as explanations probes. In this paper, we consider the problem of quantifying this flow of information through self-attention. We propose two methods for approximating the attention to input tokens given attention weights, attention rollout and attention flow, as post hoc methods when we use attention weights as the relative relevance of the input tokens. We show that these methods give complementary views on the flow of information, and compared to raw attention, both yield higher correlations with importance scores of input tokens obtained using an ablation method and input gradients.

📄 PDF Abstract BibTeX arXiv:2005.00928

Code (7)

samiraabnar/attention_flow 공식 구현 tf
jacobgil/vit-explain pytorch
leemsaebom/attention-guided-cam-visual-explanations-of-vision-transformer-guided-by-self-attention pytorch
mt-upc/transformer-contributions pytorch
vasgaowei/TS-CAM pytorch
vasgaowei/ts-cam-voc pytorch
yiyixuxu/TimeSformer-rolled-attention pytorch

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Residual Connection 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…

Similar Papers 제목 키워드 기반

Flowformer: Linearizing Transformers with Conservation Flows

2022-02-13 · Haixu Wu, Jialong Wu, Jiehui Xu, Jianmin Wang 외

Transformers based on the attention mechanism have achieved impressive success in various areas. However, the attention mechanism has a quadratic complexity, significantly impeding Transformers from dealing with numerous…

D4RLOffline RLTime SeriesTime Series Analysis

ViewFormer: Exploring Spatiotemporal Modeling for Multi-View 3D Occupancy Perception via View-Guided Transformers

2024-05-07 · Jinke Li, Xiao He, Chonghua Zhou, Xiaoqiang Cheng 외

3D occupancy, an advanced perception technology for driving scenarios, represents the entire scene without distinguishing between foreground and background by quantifying the physical space into a grid map. The widely ad…

3D Object Detectionobject-detectionObject Detection

Paying Attention to Facts: Quantifying the Knowledge Capacity of Attention Layers

2025-02-07 · Liang Ze Wong

In this paper, we investigate the ability of single-layer attention-only transformers (i.e. attention layers) to memorize facts contained in databases from a linear-algebraic perspective. We associate with each database …

Towards Mechanistic Interpretability of Graph Transformers via Attention Graphs

2025-02-17 · Batu El, Deepro Choudhury, Pietro Liò, Chaitanya K. Joshi

We introduce Attention Graphs, a new tool for mechanistic interpretability of Graph Neural Networks (GNNs) and Graph Transformers based on the mathematical equivalence between message passing in GNNs and the self-attenti…

Node Classification

Temporal Fusion Transformers for Streamflow Prediction: Value of Combining Attention with Recurrence

2023-05-21 · Sinan Rasiya Koya, Tirthankar Roy

Over the past few decades, the hydrology community has witnessed notable advancements in streamflow prediction, particularly with the introduction of cutting-edge machine-learning algorithms. Recurrent neural networks, e…

Prediction