Linguistic Knowledge and Transferability of Contextual Representations
Preprint
Abstract
Contextual word representations derived from large-scale neural language models are successful across a diverse set of NLP tasks, suggesting that they encode useful and transferable features of language. To shed light on the linguistic knowledge they capture, we study the representations produced by several recent pretrained contextualizers (variants of ELMo, the OpenAI transformer language model, and BERT) with a suite of seventeen diverse probing tasks. We find that linear models trained on top of frozen contextual representations are competitive with state-of-the-art task-specific models in many cases, but fail on tasks requiring fine-grained linguistic knowledge (e.g., conjunct identification). To investigate the transferability of contextual word representations, we quantify differences in the transferability of individual layers within contextualizers, especially between recurrent neural networks (RNNs) and transformers. For instance, higher layers of RNNs are more task-specific, while transformer layers do not exhibit the same monotonic trend. In addition, to better understand what makes contextual word representations transferable, we compare language model pretraining with eleven supervised pretraining tasks. For any given task, pretraining on a closely related task yields better performance than language model pretraining (which is better on average) when the pretraining dataset is fixed. However, language model pretraining on more data gives the best results.Keywords
All Related Versions
This publication has 12 references indexed in Scilit:
- Analysis Methods in Neural Language Processing: A SurveyTransactions of the Association for Computational Linguistics, 2019
- Cross-Lingual Alignment of Contextual Word Embeddings, with Applications to Zero-shot Dependency Parsing2019
- The Parallel Meaning Bank: Towards a Multilingual Corpus of Translations Annotated with Compositional Meaning Representations2017
- A Joint Many-Task Model: Growing a Neural Network for Multiple NLP Tasks2017
- Assessing the Ability of LSTMs to Learn Syntax-Sensitive DependenciesTransactions of the Association for Computational Linguistics, 2016
- Aligning Books and Movies: Towards Story-Like Visual Explanations by Watching Movies and Reading Books2015
- Did It Happen? The Pragmatic Complexity of Veridicality AssessmentComputational Linguistics, 2012
- Are You Sure That This Happened? Assessing the Factuality Degree of Events in TextComputational Linguistics, 2012
- FactBank: a corpus annotated with event factualityLanguage Resources and Evaluation, 2009
- CCGbank: A Corpus of CCG Derivations and Dependency Structures Extracted from the Penn TreebankComputational Linguistics, 2007