Open Sesame: Getting inside BERT’s Linguistic Knowledge

By Yongjie Lin, Y. Tan, Robert Frank. 2019

314 citations recorded by the source corpus.

How and to what extent does BERT encode syntactically-sensitive hierarchical information or positionally-sensitive linear information? Recent work has shown that contextual representations like BERT perform well on tasks that require sensitivity to linguistic structure. We present here two studies which aim to provide a better understanding of the nature of BERT’s representations. The first of these focuses on the identification of structurally-defined elements using diagnostic classifiers, while the second explores BERT’s representation of subject-verb agreement and anaphor-antecedent dependencies through a quantitative assessment of self-attention vectors. In both cases, we find that BERT encodes positional information about word tokens well on its lower layers, but switches to a hierarchically-oriented encoding on higher layers. We conclude then that BERT’s representations do indeed model linguistically relevant aspects of hierarchical structure, though they do not appear to show the sharp sensitivity to hierarchical structure that is found in human processing of reflexive anaphora.

Subfields: Artificial Intelligence, Cognitive Neuroscience, Language and Linguistics, Large Language Models, Natural Language Processing

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. Samuel R. Bowman
  5. Luke S. Zettlemoyer
  6. Yoav Goldberg
  7. Percy Liang
  8. Yejin Choi

In Cognitive Neuroscience

  1. Anna Rogers
  2. Anna Rumshisky
  3. Tal Linzen
  4. R. Thomas McCoy
  5. Michael A. Lepori
  6. Yanai Elazar
  7. Joelle Pineau
  8. Shauli Ravfogel

In Language and Linguistics

  1. Yada Pruksachatkun
  2. Marta Ruiz Costa-jussà
  3. Alex Wang
  4. Anna Rogers
  5. R. Thomas McCoy
  6. Nebojsa Jojic
  7. Anders Søgaard
  8. Minlie Huang

In Large Language Models

  1. Samuel R. Bowman
  2. Jonathan Berant
  3. Zhiyuan Liu
  4. Yoav Goldberg
  5. Richard Socher
  6. Jie Tang
  7. Minlie Huang
  8. Hinrich Schütze

In Natural Language Processing

  1. Mohit Bansal
  2. Yonatan Belinkov
  3. Samuel R. Bowman
  4. Jianfeng Gao
  5. Yejin Choi
  6. Caiming Xiong
  7. Yoav Goldberg
  8. Luke S. Zettlemoyer

Citations in the corpus