paper-with-me

홈 › Papers

Telling BERT's full story: from Local Attention to Global Aggregation

2020-04-10 · EACL 2021 2 · Damian Pascual, Gino Brunner, Roger Wattenhofer

We take a deep look into the behavior of self-attention heads in the transformer architecture. In light of recent work discouraging the use of attention distributions for explaining a model's behavior, we show that attention distributions can nevertheless provide insights into the local behavior of attention heads. This way, we propose a distinction between local patterns revealed by attention and global patterns that refer back to the input, and analyze BERT from both angles. We use gradient attribution to analyze how the output of an attention attention head depends on the input tokens, effectively extending the local attention-based analysis to account for the mixing of information throughout the transformer layers. We find that there is a significant discrepancy between attention and attribution distributions, caused by the mixing of context inside the model. We quantify this discrepancy and observe that interestingly, there are some patterns that persist across all layers despite the mixing.

📄 PDF Abstract BibTeX arXiv:2004.05916

Code (0)

등록된 구현이 없습니다.

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 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
Weight Decay 설명 없음
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…

Similar Papers 제목 키워드 기반

BERT-hLSTMs: BERT and Hierarchical LSTMs for Visual Storytelling

2020-12-03 · Jing Su, Qingyun Dai, Frank Guerin, Mian Zhou

Visual storytelling is a creative and challenging task, aiming to automatically generate a story-like description for a sequence of images. The descriptions generated by previous visual storytelling approaches lack coher…

SentenceVisual Storytelling

Hide-and-Tell: Learning to Bridge Photo Streams for Visual Storytelling

2020-02-03 · Yunjae Jung, Dahun Kim, Sanghyun Woo, Kyung-Su Kim 외

Visual storytelling is a task of creating a short story based on photo streams. Unlike existing visual captioning, storytelling aims to contain not only factual descriptions, but also human-like narration and semantics. …

Image CaptioningVisual Storytelling

Visual Storytelling with Hierarchical BERT Semantic Guidance

2022-01-10 · ACM Multimedia Asia 2022 1 · Ruichao Fan, Hanli Wang, Jinjing Gu, and Xianhui Liu

Visual storytelling, which aims at automatically producing a narrative paragraph for photo album, remains quite challenging due to the complexity and diversity of photo album content. In addition, open-domain photo album…

SentenceText GenerationVisual Storytelling

GLAC Net: GLocal Attention Cascading Networks for Multi-image Cued Story Generation

2018-05-28 · Taehyeong Kim, Min-Oh Heo, Seonil Son, Kyoung-Wha Park 외

The task of multi-image cued story generation, such as visual storytelling dataset (VIST) challenge, is to compose multiple coherent sentences from a given sequence of images. The main difficulty is how to generate image…

SentenceStory GenerationVisual Storytelling

AttriStory: Fine-grained Attribute Realization for Visual Storytelling with Diffusion Models

2026-05-20 · Manogna Sreenivas, Rohit Kumar, Soma Biswas arxiv

Visual storytelling with diffusion models has made impressive strides in maintaining character consistency across narrative scenes. However, a critical gap remains: while these methods ensure a character remains consiste…

Visual StorytellingStory Generation