Adaptive Input Representations for Neural Language Modeling
Alexei Baevski、Michael Auli Affiliation: Facebook AI Research, Affiliation: Menlo Park, CA, USA
Abstract
We introduce adaptive input representations for neural language modeling which extend the adaptive softmax of Grave et al. 2017 to input representations of variable capacity. There are several choices on how to factorize the input and output layers, and whether to model words, characters or sub-word units. We perform a systematic comparison of popular choices for a self-attentional architecture. Our experiments show that models equipped with adaptive embeddings are more than twice as fast to train than the popular character input CNN while having a lower number of parameters. On the wikitext-103 benchmark we achieve 18.7 perplexity, an improvement of 10.5 perplexity compared to the previously best published result and on the billion word benchmark, we achieve 23.02 perplexity.11 1 Code and pre-trained models available at http://github.com/pytorch/fairseq
原文 arXiv:1809.10853;中英对照 + 大白话阅读 https://aha.fim.ai/paper/1809.10853v3