Picking BERT's Brain: Probing for Linguistic Dependencies in Contextualized Embeddings Using Representational Similarity Analysis

Michael A. Lepori, R. Thomas McCoy
11/24/2020
cs.CL

Official code: mlepori1/Picking_BERTs_Brain (4 stars, Python, MIT, last commit 2021-01-05).

Abstract

As the name implies, contextualized representations of language are typically motivated by their ability to encode context. Which aspects of context are captured by such representations?

Show full abstract

We introduce an approach to address this question using Representational Similarity Analysis (RSA). As case studies, we investigate the degree to which a verb embedding encodes the verb's subject, a pronoun embedding encodes the pronoun's antecedent, and a full-sentence representation encodes the sentence's head word (as determined by a dependency parse). In all cases, we show that BERT's contextualized embeddings reflect the linguistic dependency being studied, and that BERT encodes these dependencies to a greater degree than it encodes less linguistically-salient controls. These results demonstrate the ability of our approach to adjudicate between hypotheses about which aspects of context are encoded in representations of language.

View on arXivView PDF

Code Implementations(1)

MIT

Code and Data for Picking BERT's Brain: Probing for Linguistic Dependencies in Contextualized Embeddings Using Representational Similarity Analysis by Michael Lepori and R. Thomas McCoy, presented at COLING 2020

41PythonNov 1, 20205 years agoMIT

Similar Papers

Cite this paper

@article{lepori2020picking,
  title  = {Picking BERT's Brain: Probing for Linguistic Dependencies in Contextualized Embeddings Using Representational Similarity Analysis},
  author = {Michael A. Lepori and R. Thomas McCoy},
  year   = {2020},
  eprint = {2011.12073},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.12073}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.12073.svg)](https://codeofpaper.com/paper/2011.12073)

Discussion