N-gram Language Modeling using Recurrent Neural Network Estimation
arXiv:1703.10724
Abstract
We investigate the effective memory depth of RNN models by using them for -gram language model (LM) smoothing. Experiments on a small corpus (UPenn Treebank, one million words of training data and 10k vocabulary) have found the LSTM cell with dropout to be the best model for encoding the -gram state when compared with feed-forward and vanilla RNN models. When preserving the sentence independence assumption the LSTM -gram matches the LSTM LM performance for and slightly outperforms it for . When allowing dependencies across sentence boundaries, the LSTM -gram almost matches the perplexity of the unlimited history LSTM LM. LSTM -gram smoothing also has the desirable property of improving with increasing -gram order, unlike the Katz or Kneser-Ney back-off estimators. Using multinomial distributions as targets in training instead of the usual one-hot target is only slightly beneficial for low -gram orders. Experiments on the One Billion Words benchmark show that the results hold at larger scale: while LSTM smoothing for short -gram contexts does not provide significant advantages over classic N-gram models, it becomes effective with long contexts (); depending on the task and amount of data it can match fully recurrent LSTM models at about . This may have implications when modeling short-format text, e.g. voice search/query LMs. Building LSTM -gram LMs may be appealing for some practical situations: the state in a -gram LM can be succinctly represented with bytes storing the identity of the words in the context and batches of -gram contexts can be processed in parallel. On the downside, the -gram context encoding computed by the LSTM is discarded, making the model more expensive than a regular recurrent LSTM LM.
10 pages, including references
Cited by in corpus (8)
- Sharp Nearby, Fuzzy Far Away: How Neural Language Models Use Context
- Do Neural Nets Learn Statistical Laws behind Natural Language?
- Investigation on N-gram Approximated RNNLMs for Recognition of Morphologically Rich Speech
- LSTM-LM with Long-Term History for First-Pass Decoding in Conversational Speech Recognition
- What's Going On in Neural Constituency Parsers? An Analysis
- Understanding Recurrent Neural State Using Memory Signatures
- Analysis of memory in LSTM-RNNs for source separation
- Neural Language Modeling With Implicit Cache Pointers