paper-with-me

홈 › Papers

The heads hypothesis: A unifying statistical approach towards understanding multi-headed attention in BERT

2021-01-22 · Madhura Pande, Aakriti Budhraja, Preksha Nema, Pratyush Kumar, Mitesh M. Khapra

Multi-headed attention heads are a mainstay in transformer-based models. Different methods have been proposed to classify the role of each attention head based on the relations between tokens which have high pair-wise attention. These roles include syntactic (tokens with some syntactic relation), local (nearby tokens), block (tokens in the same sentence) and delimiter (the special [CLS], [SEP] tokens). There are two main challenges with existing methods for classification: (a) there are no standard scores across studies or across functional roles, and (b) these scores are often average quantities measured across sentences without capturing statistical significance. In this work, we formalize a simple yet effective score that generalizes to all the roles of attention heads and employs hypothesis testing on this score for robust inference. This provides us the right lens to systematically analyze attention heads and confidently comment on many commonly posed questions on analyzing the BERT model. In particular, we comment on the co-location of multiple functional roles in the same attention head, the distribution of attention heads across layers, and effect of fine-tuning for specific NLP tasks on these functional roles.

📄 PDF Abstract BibTeX arXiv:2101.09115

Code (1)

iitmnlp/heads-hypothesis 공식 구현 tf

Tasks

Sentence

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
WordPiece 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Residual Connection 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
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…
Attention 설명 없음
Adam 설명 없음

Similar Papers 제목 키워드 기반

Why Attention Patterns Exist: A Unifying Temporal Perspective Analysis

2026-01-29 · Qingyue Yang, Jie Wang, Xing Li, Yinqi Bai 외 arxiv

Attention patterns play a crucial role in both training and inference of large language models (LLMs). Prior works have identified individual patterns such as retrieval heads, sink heads, and diagonal traces, yet these o…

The Stem Cell Hypothesis: Dilemma behind Multi-Task Learning with Transformer Encoders

2021-09-14 · EMNLP 2021 11 · Han He, Jinho D. Choi

Multi-task learning with transformer encoders (MTL) has emerged as a powerful technique to improve performance on closely-related tasks for both accuracy and efficiency while a question still remains whether or not it wo…

Multi-Task LearningNERPOS

A Model of Understanding in Deep Learning Systems

2026-04-05 · David Peter Wallis Freeborn arxiv

I propose a model of systematic understanding, suitable for machine learning systems. On this account, an agent understands a property of a target system when it contains an adequate internal model that tracks real regul…

Unifying 3D Vision-Language Understanding via Promptable Queries

2024-05-19 · Ziyu Zhu, Zhuofan Zhang, Xiaojian Ma, Xuesong Niu 외

A unified model for 3D vision-language (3D-VL) understanding is expected to take various scene representations and perform a wide range of tasks in a 3D scene. However, a considerable gap exists between existing methods …

3D Question Answering (3D-QA)DecoderInformation RetrievalInstance Segmentation+1

Are Unified Vision-Language Models Necessary: Generalization Across Understanding and Generation

2025-05-29 · Jihai Zhang, Tianle Li, Linjie Li, Zhengyuan Yang 외

Recent advancements in unified vision-language models (VLMs), which integrate both visual understanding and generation capabilities, have attracted significant attention. The underlying hypothesis is that a unified archi…