Partially Shuffling the Training Data to Improve Language Models
Official code: ofirpress/PartialShuffle (14 stars, Python, last commit 2019-06-09).
Abstract
Although SGD requires shuffling the training data between epochs, currently none of the word-level language modeling systems do this. Naively shuffling all sentences in the training data would not permit the model to learn inter-sentence dependencies.
Show full abstractHide
Here we present a method that partially shuffles the training data between epochs. This method makes each batch random, while keeping most sentence ordering intact. It achieves new state of the art results on word-level language modeling on both the Penn Treebank and WikiText-2 datasets.