Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.28 KB

File metadata and controls

33 lines (22 loc) · 1.28 KB

Language Modeling with Recurrent Neural Networks

This code is currently implemented in TensorFlow and experimentally in PyTorch. There are two implemented models (WordLanguageModel, CharCompLanguageModel) based on these two papers:

To run the Zaremba model with their "medium regularized LSTM" configuration, early stopping, and pre-trained word vectors:

python wchar_lm.py --optim sgd --eta 1 --epochs 39 --decay_rate 1.2 \
    --batchsz 20 --unif 0.05 --hsz 650 \
    --train /data/ptb/train.txt \
    --valid /data/ptb/valid.txt \
    --test /data/ptb/test.txt \
    --embed /data/GoogleNews-vectors-negative300.bin

Status

The "medium regularized LSTM" above (Word Med below) has a lower perplexity than the original paper (even the large model). As noted above, the run above differs in that it uses pre-trained word vectors.

Model Framework Dev Test
Word Med (Zaremba) TensorFlow 80.168 77.2213

TODO: Add LSTM Char Small Configuration results