On the State of the Art of Evaluation in Neural Language Models

Gábor Melis, Chris Dyer, Phil Blunsom

TL;DR

This paper reveals that many "state-of-the-art" breakthroughs in neural language modeling are actually the result of superior hyperparameter tuning rather than superior architectures. By using large-scale, black-box optimization to level the playing field, the authors show that the classic LSTM—when properly regularized—actually outperforms more recent, complex models like Recurrent Highway Networks (RHN) and NAS cells.

What Problem Does This Paper Address?

In the fast-moving world of deep learning, researchers constantly propose new recurrent neural network (RNN) architectures that claim to beat existing benchmarks. However, these comparisons are often "apples-to-oranges." One researcher might spend weeks tuning their new model on a specific codebase, while comparing it against a baseline model that was tuned years ago with less computational effort.

The authors argue that hyperparameter dependence—the sensitivity of a model to settings like learning rate, dropout, and weight decay—is an uncontrolled source of variation. This creates a "replication failure" risk where a model’s perceived superiority is just a byproduct of a lucky or more exhaustive search for the right settings.

Methods

To fix this, the authors conducted a rigorous re-evaluation using a "fair play" methodology:

  1. Standardized Architectures: They compared three main types: the classic LSTM, the Recurrent Highway Network (RHN), and the NAS (Neural Architecture Search) cell.
  2. Parameter Budgeting: Instead of comparing models by the number of hidden units, they compared them by their total number of trainable parameters (e.g., 10 million vs. 24 million). This ensures that no model wins simply by being "bigger."
  3. Black-Box Optimization: They used Google Vizier, a tool that uses Gaussian Process bandits to automatically search for the best hyperparameters. They tuned learning rates, various types of dropout (input, state, output, and intra-layer), and weight decay across thousands of evaluations.
Parallel coordinates plot illustrating the hyperparameter search space.
  1. Consistent Regularization: They applied modern regularization techniques, like variational dropout, across all architectures to see which one truly has the best "innate" capability.

Datasets

The study evaluated models on three standard language modeling benchmarks:

  • Penn Treebank (PTB): A small, classic word-level dataset.
  • Wikitext-2: A larger word-level dataset with a bigger vocabulary and less restrictive preprocessing than PTB.
  • Enwik8 (Hutter Prize): A character-level dataset consisting of the first 100 million characters of Wikipedia, used to test how models handle long-term dependencies.

Key Insights and Ideas

  • The LSTM is Surprisingly Resilient: Despite being decades old, the LSTM remains incredibly hard to beat. When given the same tuning effort as newer models, it consistently came out on top.
  • Regularization > Architecture: The "secret sauce" of recent high-performing models often isn't the cell structure, but how they handle dropout and weight decay. The authors found that properly regularizing a shallow LSTM was more effective than moving to a deeper, more complex architecture.
  • The "Tuner Overfit" is Real: The authors warn that with enough trials, a hyperparameter tuner can "overfit" to the noise in the validation set. They suggest that researchers need to be more transparent about how much tuning was performed to achieve a result.
  • Down-projection is a "Hidden" Hero: Adding a linear projection layer after the recurrent states (to reduce the dimensionality before the output) was found to be highly beneficial, especially for larger vocabularies.

Key Results

The paper established new state-of-the-art results (at the time of publication) simply by tuning LSTMs better:

Language modeling results on the Penn Treebank dataset.
  • Penn Treebank: A 24M parameter LSTM achieved a test perplexity of 58.3, outperforming the then-current NAS (62.4) and RHN (65.4) models.
  • Wikitext-2: The tuned LSTM reached a test perplexity of 65.9, significantly lower than previous results for models without extra "bells and whistles" like dynamic evaluation.
  • Enwik8: On character-level modeling, the architectures were more closely matched, but the LSTM still held its own against the more complex RHN.

Limitations and Future Work

The primary limitation is computational cost. Performing thousands of evaluations to find the "perfect" hyperparameters is prohibitively expensive for very large datasets (like those used in Machine Translation).

The authors suggest that the research community needs to find a better balance between the cost of experimentation and the risk of reporting false claims. They propose that new models should be evaluated on their hyperparameter sensitivity—if a model only works in a tiny, specific range of settings, it might not be as "revolutionary" as it seems. Future work could involve creating "leagues" for models with predefined computational budgets to ensure truly fair comparisons.

Summary updated

BibTeX
@inproceedings{melis2018state,
  author = {Gábor Melis and Chris Dyer and Phil Blunsom},
  title = {{On the State of the Art of Evaluation in Neural Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=ByJHuTgA-},
}
Figure