HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Adaptive Input Representations for Neural Language Modeling

Alexei Baevski; Michael Auli

Adaptive Input Representations for Neural Language Modeling

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.

Code Repositories

pytorch/fairseq
Official
pytorch
AranKomat/adapinp
pytorch
Mentioned in GitHub
yuhao318/UP-ViT
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
language-modelling-on-one-billion-wordAdaptive Input Large
Number of params: 0.46B
PPL: 23.91
Validation perplexity: 23.83
language-modelling-on-one-billion-wordAdaptive Input Very Large
Number of params: 1.0B
PPL: 23.02
Validation perplexity: 22.92
language-modelling-on-wikitext-103Transformer (Adaptive inputs)
Number of params: 247M
Test perplexity: 18.70
Validation perplexity: 17.97

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp