z-logo
open-access-imgOpen Access
Efficient Contextual Representation Learning With Continuous Outputs
Author(s) -
Liunian Harold Li,
Patrick H. Chen,
ChoJui Hsieh,
Kai-Wei Chang
Publication year - 2019
Publication title -
transactions of the association for computational linguistics
Language(s) - English
Resource type - Journals
ISSN - 2307-387X
DOI - 10.1162/tacl_a_00289
Subject(s) - computer science , softmax function , speedup , language model , vocabulary , embedding , sentence , encoder , representation (politics) , context (archaeology) , word (group theory) , artificial intelligence , natural language processing , overhead (engineering) , natural language , speech recognition , machine learning , deep learning , parallel computing , paleontology , linguistics , philosophy , politics , political science , law , biology , operating system
Contextual representation models have achieved great success in improving various downstream natural language processing tasks. However, these language-model-based encoders are difficult to train due to their large parameter size and high computational complexity. By carefully examining the training procedure, we observe that the softmax layer, which predicts a distribution of the target word, often induces significant overhead, especially when the vocabulary size is large. Therefore, we revisit the design of the output layer and consider directly predicting the pre-trained embedding of the target word for a given context. When applied to ELMo, the proposed approach achieves a 4-fold speedup and eliminates 80% trainable parameters while achieving competitive performance on downstream tasks. Further analysis shows that the approach maintains the speed advantage under various settings, even when the sentence encoder is scaled up.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom