Giulianelli, Mario;
Harding, Jack;
Mohnert, Florian;
Hupkes, Dieuwke;
Zuidema, Willem;
(2018)
Under the Hood: Using Diagnostic Classifiers to Investigate and Improve
how Language Models Track Agreement Information.
In: Linzen, Tal and Chrupała, Grzegorz and Alishahi, Afra, (eds.)
Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP.
(pp. pp. 240-248).
Association for Computational Linguistics: Brussels, Belgium.
Preview |
PDF
W18-5426.pdf - Published Version Download (779kB) | Preview |
Abstract
How do neural language models keep track of number agreement between subject and verb? We show that ‘diagnostic classifiers’, trained to predict number from the internal states of a language model, provide a detailed understanding of how, when, and where this information is represented. Moreover, they give us insight into when and where number information is corrupted in cases where the language model ends up making agreement errors. To demonstrate the causal role played by the representations we find, we then use agreement information to influence the course of the LSTM during the processing of difficult sentences. Results from such an intervention reveal a large increase in the language model’s accuracy. Together, these results show that diagnostic classifiers give us an unrivalled detailed look into the representation of linguistic information in neural models, and demonstrate that this knowledge can be used to improve their performance.
| Type: | Proceedings paper |
|---|---|
| Title: | Under the Hood: Using Diagnostic Classifiers to Investigate and Improve how Language Models Track Agreement Information |
| Event: | 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP |
| Dates: | Nov 2018 - Nov 2018 |
| Open access status: | An open access version is available from UCL Discovery |
| DOI: | 10.18653/v1/W18-5426 |
| Publisher version: | https://doi.org/10.18653/v1/w18-5426 |
| Language: | English |
| Additional information: | Copyright © 1963–2025 ACL Permission is granted to make copies for the purposes of teaching and research. Materials published in or after 2016 are licensed on a Creative Commons Attribution 4.0 International License. https://creativecommons.org/licenses/by/4.0/ |
| UCL classification: | UCL UCL > Provost and Vice Provost Offices > School of Life and Medical Sciences UCL > Provost and Vice Provost Offices > School of Life and Medical Sciences > Faculty of Brain Sciences UCL > Provost and Vice Provost Offices > School of Life and Medical Sciences > Faculty of Brain Sciences > Div of Psychology and Lang Sciences UCL > Provost and Vice Provost Offices > School of Life and Medical Sciences > Faculty of Brain Sciences > Div of Psychology and Lang Sciences > Linguistics |
| URI: | https://discovery.ucl.ac.uk/id/eprint/10216470 |
Archive Staff Only
![]() |
View Item |

