Elamur Research
☰
home / papers / 2020 / A Primer in BERTology: What We Know About How BERT Works

A Primer in BERTology: What We Know About How BERT Works

Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/2020.tacl-1.54.pdf

Summary

BERT quickly became a default baseline across NLP, but it was still unclear why it worked so well, and that made principled improvements to the architecture hard. This TACL 2020 survey brings together findings from more than 150 analysis papers. It briefly recaps the model: stacked Transformer encoder layers, wordpiece input, pre-training with MLM and NSP, then task-specific fine-tuning. It then sorts the evidence on what syntactic, semantic and world knowledge BERT learns, how researchers detect it (cloze-style MLM probes, attention-weight analysis, probing classifiers) and where in the network that knowledge seems to sit. Later sections cover proposed changes to training objectives, architecture and fine-tuning, the evidence that the model is overparameterized, and compression methods. The overall finding is that BERT stores a lot of linguistic and factual information but often fails to use it robustly. It relies on shallow heuristics and struggles with reasoning, numbers and negation. The paper ends with a research agenda, which makes it a useful starting point for anyone analysing or adapting BERT-style models, including for Ukrainian NLP.

Key points

  • Syntactic structure can be recovered from BERT's token embeddings: Hewitt and Manning learned linear transformations that reconstructed dependencies on Penn Treebank data. Full parse trees could not be extracted from individual attention heads, though.
  • BERT is fragile in ways that undercut its apparent linguistic skill. Its outputs barely change under shuffled word order or truncated input (Ettinger, 2019), and swapping names in a coreference task changes 85% of its predictions.
  • Through cloze queries, vanilla BERT matches knowledge-base methods for some relation types (Petroni et al., 2019, LAMA). However, it cannot reason over those facts, and some of its apparent world knowledge comes from stereotypical associations.
  • Embeddings become more context-specific in later layers and fill a narrow, anisotropic cone in vector space. Many heads and layers can be disabled with little loss, and "winning" lottery-ticket subnetworks exist.
  • The suggested research directions include harder benchmarks that need verbal reasoning, behavioural stress tests such as Checklist (Ribeiro et al., 2020), and caution when using pruning or ablation as analysis tools, because knowledge may be spread across the network or duplicated.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

Fields: Natural language processing

Cited by

600 papers of our library cite it (of the 140673 whose bibliographies we read); 18 of them have a page here, 582 not yet.

Cite

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1162/tacl_a_00349 · arXiv 2002.12327

@misc{rogers2020primer,
  title = {{A Primer in BERTology: What We Know About How BERT Works}},
  author = {Rogers, Anna and Kovaleva, Olga and Rumshisky, Anna},
  year = {2020},
  doi = {10.1162/tacl\_a\_00349},
  eprint = {2002.12327},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1162/tacl_a_00349}
}

References

2 references, 0 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Gustavo Aguilar, Yuan Ling, Yu Zhang, Benjamin Yao, Xing Fan, and Edward Guo. 2019. Knowledge Distillation from Internal Representations. arXiv preprint arXiv:1910.03723. — [arXiv:1910.03723](https://arxiv.org/abs/1910.03723) find
  2. Alan Akbik, Tanja Bergmann, and Roland Vollgraf. 2019. Pooled Contextualized Embeddings for Named Entity Recognition. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), p… find