WikiText-103 is about 100 million tokens of text for language modeling, extracted from 28,000 good-quality articles of English Wikipedia. Merity et al. released it in 2016, together with the smaller WikiText-2, in their paper on the pointer sentinel method for language models. It is the standard benchmark for comparing word-level language models by perplexity, used especially to compare how well models use long context.
It was motivated by the limits of the language modeling version of Penn Treebank (PTB), the previous standard. The paper raises the following issues with PTB.
- Unlike real text: everything is lowercase, there is no punctuation, and the vocabulary is limited to 10k words
- No rare words: because the vocabulary is cut at 10k words, it cannot measure the ability to predict rare words such as names
- Other large datasets have restrictions too: their licenses are strict, or their sentences are shuffled so long context cannot be learned
WikiText keeps case, punctuation, and numbers, and contains whole articles in order. Its training set is about 110 times larger than PTB's.
WikiText-2 and WikiText-103 share the same 60 articles each for validation and test; they differ only in the amount of training data and the vocabulary. WikiText-2 has a small training set of about 2.09M tokens and is used for quick experiments.

