[Paper Review] Adaptive Input Representations for Neural Language Modeling
The paper introduces adaptive input embeddings extending adaptive softmax to input representations, showing faster training and better perplexity on Wikitext-103 and Billion Word benchmarks.
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.
Motivation & Objective
- Motivate reducing overfitting and parameter count by varying input embedding capacity according to word frequency.
- Propose and implement adaptive input embeddings that partition vocabulary into frequency-based clusters with dimension scaling.
- Compare word, subword, and character-based input/output factorizations in a self-attentional architecture.
- Evaluate training efficiency and perplexity improvements on Wikitext-103 and Billion Word datasets.
Proposed method
- Extend adaptive softmax to input representations with variable capacity per word cluster.
- Partition the input vocabulary into frequency-based clusters and assign embedding dimensions by cluster, projecting to a common dimension before model input.
- Optionally tie input embeddings with output embeddings in an adaptive softmax to further reduce parameters.
- Systematically compare word-, subword-, and character-based inputs across different configurations in a Transformer-style decoder.
- Train with Nesterov momentum, cosine learning rate schedule, and distributed multi-GPU setup; apply dropout regularization in the tail projection of adaptive softmax.
Experimental results
Research questions
- RQ1Does adaptive input embedding improve language model performance and training speed compared to fixed-size embeddings and character-based inputs?
- RQ2What is the impact of different input/output factorizations (word, subword, character) on perplexity and parameter efficiency?
- RQ3How does tying input and output embeddings in adaptive setups affect performance and parameter count?
- RQ4How do rare vs. frequent word handling and regularization affect model accuracy?
- RQ5What are the effects of context size and training block size on perplexity for large-scale models?
Key findings
- Adaptive input embeddings reduce input/output parameter counts by up to 61% when used with adaptive softmax.
- Adaptive inputs train more than twice as fast as character-input CNN baselines while achieving higher accuracy.
- On Wikitext-103, the best model achieves 18.7 perplexity, a 10.5 perplexity improvement over previous best.
- On Billion Word, the best model achieves 23.02 perplexity, a substantial improvement over prior results.
- Tied adaptive inputs and outputs (ADP-T) reach the highest accuracy at comparable training speed to compact subword models.
- Regularization of rare words improves adaptive softmax performance on Wikitext-103.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.