Transformers in the loop: Polarity in neural models of language

Lisa Bylinina, Alexey Tikhonov
9/8/2021
cs.CL
transformer-attention

Official code: altsoph/Transformers-in-the-loop (1 star, Python, last commit 2022-05-17).

Abstract

Representation of linguistic phenomena in computational language models is typically assessed against the predictions of existing linguistic theories of these phenomena. Using the notion of polarity as a case study, we show that this is not always the most adequate set-up.

Show full abstract

We probe polarity via so-called 'negative polarity items' (in particular, English 'any') in two pre-trained Transformer-based models (BERT and GPT-2). We show that - at least for polarity - metrics derived from language models are more consistent with data from psycholinguistic experiments than linguistic theory predictions. Establishing this allows us to more adequately evaluate the performance of language models and also to use language models to discover new insights into natural language grammar beyond existing linguistic theories. This work contributes to establishing closer ties between psycholinguistic experiments and experiments with language models.

View on arXivView PDF

Code Implementations(1)

11PythonSep 8, 20214 years ago

Similar Papers

Cite this paper

@article{bylinina2021transformers,
  title  = {Transformers in the loop: Polarity in neural models of language},
  author = {Lisa Bylinina and Alexey Tikhonov},
  year   = {2021},
  eprint = {2109.03926},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.03926}
}

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/2109.03926.svg)](https://codeofpaper.com/paper/2109.03926)

Discussion