Revealing the Dark Secrets of BERT

By Olga Kovaleva, Alexey Romanov, Anna Rogers, Anna Rumshisky. 2019

635 citations recorded by the source corpus.

BERT-based architectures currently give state-of-the-art performance on many NLP tasks, but little is known about the exact mechanisms that contribute to its success. In the current work, we focus on the interpretation of self-attention, which is one of the fundamental underlying components of BERT. Using a subset of GLUE tasks and a set of handcrafted features-of-interest, we propose the methodology and carry out a qualitative and quantitative analysis of the information encoded by the individual BERT’s heads. Our findings suggest that there is a limited set of attention patterns that are repeated across different heads, indicating the overall model overparametrization. While different heads consistently use the same attention patterns, they have varying impact on performance across different tasks. We show that manually disabling attention in certain heads leads to a performance improvement over the regular fine-tuned BERT models.

Subfields: Artificial Intelligence, Information Systems, Large Language Models

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Yonatan Belinkov
  3. Jianfeng Gao
  4. Luke S. Zettlemoyer
  5. Graham Neubig
  6. Furu Wei
  7. Yejin Choi
  8. Noah A. Smith

In Information Systems

  1. Rodrigo Nogueira
  2. Andrew Yates
  3. Yiqun Liu
  4. Jimmy J. Lin
  5. Shaoping Ma
  6. Ji-rong Wen
  7. Wayne Xin Zhao
  8. Zhiyuan Liu

In Large Language Models

  1. Jimmy J. Lin
  2. Furu Wei
  3. Yonatan Belinkov
  4. Li Dong
  5. Zhiyuan Liu
  6. Jianfeng Gao
  7. Hinrich Schütze
  8. Caiming Xiong

Citations in the corpus