Elamur Research
☰
home / papers / 2019 / BERT Rediscovers the Classical NLP Pipeline

BERT Rediscovers the Classical NLP Pipeline

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

Summary

Pre-trained encoders like BERT perform very well, but it is unclear where and how they store linguistic knowledge. The authors ask whether BERT's layers mirror the stages of a classical NLP pipeline. They freeze the uncased BERT-base and BERT-large models and apply the "edge probing" suite of Tenney et al. (2019). This suite covers eight span-labeling tasks drawn from OntoNotes 5.0, the English Web Treebank, SPR1 and SemEval 2010 Task 8, all scored with micro-averaged F1. They introduce two complementary layer-wise measures. Scalar mixing weights, learned on training data, reveal which layers a probe relies on. Cumulative scoring, computed on evaluation data, estimates the layer at which an example first becomes solvable. The tasks emerge in the traditional order: POS, constituents, dependencies, semantic roles, then coreference. Syntactic information sits in a few layers, while semantic information is spread across the whole network. Per-sentence analysis shows that BERT can revise early decisions once higher-level evidence appears. The work offers an interpretable picture of how deep language models organize hierarchical linguistic structure.

Key points

  • The probes cover eight tasks: POS, Consts., Deps., entities, SRL, Coref., SPR and SemEval relations. Their classifiers can see only the token vectors inside the target spans.
  • In BERT-large (24 layers), differential scores peak early, around layers 1–7, because many cases have shallow shortcuts. Mixing weights concentrate later, around layers 9–20.
  • At layer 0 (non-contextual embeddings), 89% of POS tags are already correct. SPR and relation classification show near-uniform weights and improve gradually through almost all layers.
  • BERT-base (12 layers) shows the same task ordering, with a "stretching effect": each task occupies similar positions relative to the top of the model.
  • In one example, "Toronto" is first tagged GPE and then corrected to ORG (a sports team) once its semantic role (ARG1 of "smoked") is resolved.

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

Topics: Semantic role labeling

Cited by

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

Cite

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/p19-1452 · arXiv 1905.05950

@inproceedings{tenney2019bert,
  title = {{BERT Rediscovers the Classical NLP Pipeline}},
  author = {Tenney, Ian and Das, Dipanjan and Pavlick, Ellie},
  booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1452},
  eprint = {1905.05950},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/p19-1452}
}

References

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

  1. Yonatan Belinkov. 2018. On internal language representations in deep learning: An analysis of machine translation and speech recognition. Ph.D. thesis, Massachusetts Institute of Technology. find
  2. Terra Blevins, Omer Levy, and Luke Zettlemoyer. 2018. Deep RNNs encode soft hierarchical syntax. In Proceedings of ACL. find
  3. Alexis Conneau, Germán Kruszewski, Guillaume Lample, Loı̈c Barrault, and Marco Baroni. 2018. What you can cram into a single $&\#* vector: Probing sentence embeddings for linguistic properties. In Proceedings of ACL. find our card
  4. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL. find
  5. Iris Hendrickx, Su Nam Kim, Zornitsa Kozareva, Preslav Nakov, Diarmuid Ó Séaghdha, Sebastian Padó, Marco Pennacchiotti, Lorenza Romano, and Stan Szpakowicz. 2009. Semeval-2010 task 8: Multi-way classification of semantic relations between pairs of nominals. In Proceedings of the Workshop on Seman… find our card
  6. Xiaodong Liu, Pengcheng He, Weizhu Chen, and Jianfeng Gao. 2019. Multi-task deep neural networks for natural language understanding. arXiv preprint 1901.11504. find our card
  7. Christopher Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven Bethard, and David McClosky. 2014. The Stanford CoreNLP natural language processing toolkit. In Proceedings of ACL: System Demonstrations. find our card
  8. Rebecca Marvin and Tal Linzen. 2018. Targeted syntactic evaluation of language models. In Proceedings of EMNLP. find
  9. Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S. Corrado, and Jeff Dean. 2013. Distributed representations of words and phrases and their compositionality. In Proceedings of NIPS. find
  10. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Proceedings of NIPS. find
  11. Ralph Weischedel, Martha Palmer, Mitchell Marcus, Eduard Hovy, Sameer Pradhan, Lance Ramshaw, Nianwen Xue, Ann Taylor, Jeff Kaufman, Michelle Franchini, et al. 2013. OntoNotes release 5.0 LDC2013T19. Linguistic Data Consortium, Philadelphia, PA. find
  12. Matthew Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. 2018a. Deep contextualized word representations. In Proceedings of NAACL. find
  13. Matthew Peters, Mark Neumann, Luke Zettlemoyer, and Wen-tau Yih. 2018b. Dissecting contextual word embeddings: Architecture and representation. In Proceedings of EMNLP. find our card
  14. Adam Poliak, Aparajita Haldar, Rachel Rudinger, J. Edward Hu, Ellie Pavlick, Aaron Steven White, and Benjamin Van Durme. 2018. Collecting diverse natural language inference problems for sentence representation evaluation. In Proceedings of EMNLP. find our card
  15. Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. https://blog.openai.com/language-unsupervised. ↗
  16. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. https://blog.openai.com/better-language-models. ↗
  17. Drew Reisinger, Rachel Rudinger, Francis Ferraro, Craig Harman, Kyle Rawlins, and Benjamin Van Durme. 2015. Semantic proto-roles. Transactions of the Association of Computational Linguistics. find
  18. Xing Shi, Inkit Padhi, and Kevin Knight. 2016. Does string-based neural MT learn source syntax? In Proceedings of EMNLP. find our card
  19. Natalia Silveira, Timothy Dozat, Marie-Catherine de Marneffe, Samuel Bowman, Miriam Connor, John Bauer, and Christopher D. Manning. 2014. A gold standard dependency corpus for English. In Proceedings of the Ninth International Conference on Language Resources and Evaluation. find
  20. Adam Teichert, Adam Poliak, Benjamin Van Durme, and Matthew Gormley. 2017. Semantic proto-role labeling. In Proceedings of AAAI. find
  21. Ian Tenney, Patrick Xia, Berlin Chen, Alex Wang, Adam Poliak, R Thomas McCoy, Najoung Kim, Benjamin Van Durme, Sam Bowman, Dipanjan Das, and Ellie Pavlick. 2019. What do you learn from context? probing for sentence structure in contextualized word representations. In International Conference on Lear… find our card