paper-with-me

Papers

What Does BERT Look At? An Analysis of BERT's Attention

2019-06-11 · WS 2019 8 · Kevin Clark, Urvashi Khandelwal, Omer Levy, Christopher D. Manning

Large pre-trained neural networks such as BERT have had great recent success in NLP, motivating a growing body of research investigating what aspects of language they are able to learn from unlabeled data. Most recent analysis has focused on model outputs (e.g., language model surprisal) or internal vector representations (e.g., probing classifiers). Complementary to these works, we propose methods for analyzing the attention mechanisms of pre-trained models and apply them to BERT. BERT's attention heads exhibit patterns such as attending to delimiter tokens, specific positional offsets, or broadly attending over the whole sentence, with heads in the same layer often exhibiting similar behaviors. We further show that certain attention heads correspond well to linguistic notions of syntax and coreference. For example, we find heads that attend to the direct objects of verbs, determiners of nouns, objects of prepositions, and coreferent mentions with remarkably high accuracy. Lastly, we propose an attention-based probing classifier and use it to further demonstrate that substantial syntactic information is captured in BERT's attention.

📄 PDF Abstract BibTeX arXiv:1906.04341

Code (1)

clarkkev/attention-analysis 공식 구현 tf

Tasks

Language ModelingLanguage ModellingSentence

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
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 설명 없음
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
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…
Adam 설명 없음

Similar Papers 제목 키워드 기반

What's so special about BERT's layers? A closer look at the NLP pipeline in monolingual and multilingual models

2020-04-14 · Findings of the Association for Computational Linguistics 2020 · Wietse de Vries, Andreas van Cranenburgh, Malvina Nissim

Peeking into the inner workings of BERT has shown that its layers resemble the classical NLP pipeline, with progressively more complex tasks being concentrated in later layers. To investigate to what extent these results…

Part-Of-Speech TaggingTransfer Learning

What Does BERT with Vision Look At?

2020-07-01 · ACL 2020 6 · Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh 외

Pre-trained visually grounded language models such as ViLBERT, LXMERT, and UNITER have achieved significant performance improvement on vision-and-language tasks but what they learn during pre-training remains unclear. In…

Language ModelingLanguage Modelling

What does BERT Learn from Multiple-Choice Reading Comprehension Datasets?

2019-10-28 · Chenglei Si, Shuohang Wang, Min-Yen Kan, Jing Jiang

Multiple-Choice Reading Comprehension (MCRC) requires the model to read the passage and question, and select the correct answer among the given options. Recent state-of-the-art models have achieved impressive performance…

Multiple-choiceReading Comprehension

Does BERT look at sentiment lexicon?

2021-11-19 · Elena Razova, Sergey Vychegzhanin, Evgeny Kotelnikov

The main approaches to sentiment analysis are rule-based methods and ma-chine learning, in particular, deep neural network models with the Trans-former architecture, including BERT. The performance of neural network mode…

Sentiment Analysis

How does BERT capture semantics? A closer look at polysemous words

2020-11-01 · EMNLP (BlackboxNLP) 2020 11 · David Yenicelik, Florian Schmidt, Yannic Kilcher

The recent paradigm shift to contextual word embeddings has seen tremendous success across a wide range of down-stream tasks. However, little is known on how the emergent relation of context and semantics manifests geome…

Semanticity predictionSemantic SimilarityWord EmbeddingsWord Sense Disambiguation+2