Dissecting Contextual Word Embeddings: Architecture and Representation
Preprint
Abstract
Contextual word representations derived from pre-trained bidirectional language models (biLMs) have recently been shown to provide significant improvements to the state of the art for a wide range of NLP tasks. However, many questions remain as to how and why these models are so effective. In this paper, we present a detailed empirical study of how the choice of neural architecture (e.g. LSTM, CNN, or self attention) influences both end task accuracy and qualitative properties of the representations that are learned. We show there is a tradeoff between speed and accuracy, but all architectures learn high quality contextual representations that outperform word embeddings for four challenging NLP tasks. Additionally, all architectures learn representations that vary with network depth, from exclusively morphological based at the word embedding layer through local syntax based in the lower contextual layers to longer range semantics such coreference at the upper layers. Together, these results suggest that unsupervised biLMs, independent of architecture, are learning much more about the structure of language than previously appreciated.Keywords
All Related Versions
This publication has 26 references indexed in Scilit:
- Deep Semantic Role Labeling With Self-AttentionProceedings of the AAAI Conference on Artificial Intelligence, 2018
- Efficient Contextualized Representation: Language Model Pruning for Sequence Labeling2018
- What’s Going On in Neural Constituency Parsers? An Analysis2018
- Representation of Linguistic Form and Function in Recurrent Neural NetworksComputational Linguistics, 2017
- What Do Recurrent Neural Network Grammars Learn About Syntax?2017
- Unsupervised Pretraining for Sequence to Sequence Learning2017
- End-to-end Neural Coreference Resolution2017
- Assessing the Ability of LSTMs to Learn Syntax-Sensitive DependenciesTransactions of the Association for Computational Linguistics, 2016
- Deep Residual Learning for Image Recognition2016
- Character-Aware Neural Language ModelsProceedings of the AAAI Conference on Artificial Intelligence, 2016