Introduction
In 2013, Recurrent Neural Networks (RNNs) were emerging as a powerful tool for language modeling, yet they remained notoriously difficult to train due to vanishing and exploding gradients. The prevailing wisdom attributed their success to complex nonlinear activation functions. This research from the Gatsby Computational Neuroscience Unit at UCL challenges that assumption, investigating whether the performance of RNNs stems from their high-capacity nonlinearities or from the implicit regularization provided by their recurrent structure.
The Impulse-Response Language Model (IRLM)
To isolate the effects of nonlinearity, the authors introduced the Impulse-Response Language Model (IRLM). The IRLM is essentially a "linear RNN" where the standard nonlinear activation (e.g., sigmoid or tanh) is replaced by an identity function. By further restricting the recurrent weight matrix to be diagonal, the hidden units function as independent "leaky integrators."
This architecture allows the model to track history over a wide range of timescales. As shown in the analysis of the IRLM trained on Project Gutenberg, the model naturally develops units that maintain memory of up to 50 words in the past, effectively mimicking the "caching" mechanisms used in traditional N-gram models but within a unified neural framework.
Optimization and Regularization
A significant hurdle for RNNs at the time was the computational cost of training, often requiring second-order methods like Hessian-Free optimization. The authors demonstrated that Stochastic Gradient Descent (SGD) with extremely high momentum—averaging gradients over approximately one million tokens—could achieve a 50x speedup while reaching the same performance levels.
To prevent the linear model from overfitting or experiencing gradient explosions, the authors employed several regularization techniques:
- Dropout: Applied to the decoding layer.
- Column Normalization: Fixing the L2 norm of weight columns to prevent weight explosion.
- High-Momentum SGD: Providing a stable training signal that acts as a form of temporal regularization.
Experimental Evaluation
The models were tested across various benchmarks, including the Penn Treebank (PTB), text8, and the Microsoft Research Sentence Completion (MRSC) task.
The Role of Capacity
On the small Penn Treebank dataset (930k tokens), the linear IRLM actually outperformed standard nonlinear RNNs, achieving a then-state-of-the-art perplexity of 102.5. This suggests that for smaller datasets, the primary bottleneck is regularization rather than model expressivity. However, as data scales (e.g., on the 100MB text8 dataset), nonlinearities become essential for "compressing" and storing the increased complexity of the text.
Character-Level Modeling and the Skipping RNN
The authors also explored character-level modeling, introducing the "Skipping RNN." This variant adds skip connections between the first characters of consecutive words, helping the model bridge the gap between character-level and word-level dependencies.
As seen in the results, the Skipping RNN significantly improved performance, reducing character-level cross-entropy to 1.48 bits per character (bpc), proving that architectural tweaks to handle word boundaries can significantly aid character-level models.
Conclusion
This work highlights that the "secret sauce" of neural language models is often found in smart optimization and robust regularization rather than architectural complexity alone. While nonlinearities are necessary for high-capacity learning on massive datasets, linear models like the IRLM provide a more transparent and efficient alternative for many tasks, offering valuable insights into the internal representations and memory timescales of recurrent networks.
Summary updated