Recurrent Neural Networks (RNNs) are fundamental to sequential data processing, powering applications from machine translation to speech recognition. However, their high capacity and recursive nature make them notoriously susceptible to overfitting—the tendency to memorize training data rather than generalize to underlying patterns. While regularization techniques like dropout are common, they often introduce bias by altering the model's expected behavior during training.
In their ICML 2018 paper, Dieng et al. introduce Noisin, a mathematically elegant regularization method that injects noise into RNNs without biasing the model's transition function.
The Challenge: Overfitting and Biased Regularization
The central hurdle in training robust RNNs is managing their immense flexibility. Standard regularization tools often come with significant trade-offs:
- Weight Decay ($L_1/L_2$): Can inadvertently suppress the network's ability to learn essential long-range dependencies.
- Dropout: While widely used, dropout is inherently "biased" in the context of RNNs. Applying dropout changes the expected value of hidden states, meaning the stochastic model trained is fundamentally different from the deterministic model used at test time.
The authors sought a method to smooth the loss landscape and improve generalization without fundamentally altering the model's underlying transition function.
Methodology: The Unbiased Constraint
The core innovation of Noisin is the injection of noise into the transition function in an unbiased manner. During training, instead of calculating a deterministic hidden state $h_t$, the model computes a noisy state $z_t$. This can be achieved through additive noise ($z_t = f(h_{t-1}) + \epsilon$) or multiplicative noise ($z_t = f(h_{t-1}) \odot \epsilon$).
The "secret sauce" is the unbiased constraint: the expectation of the noisy state must equal the deterministic state of the original RNN ($E[z_t] = h_t$). By training the model to maximize the marginal likelihood across these noisy paths, Noisin forces the parameters to work well across a distribution of states, effectively training an infinite ensemble of RNNs simultaneously.
Key Insights
- Regularization as Smoothing: The authors demonstrate that Noisin is equivalent to the original RNN loss plus a penalty term proportional to the Fisher Information Matrix. This penalizes hidden units that are overly sensitive to small perturbations, enforcing robustness.
- Distribution Invariance: A surprising finding was that the specific distribution of noise (e.g., Gaussian, Beta, Bernoulli) is less critical than the variance of that noise. As long as the noise is scaled to remain unbiased, the model remains robust.
- Multiplicative Superiority: Empirically, multiplicative noise—where noise scales with the signal magnitude—performed significantly better for LSTMs than additive noise.
Empirical Performance
Noisin was evaluated on gold-standard language modeling benchmarks: the Penn Treebank (PTB) and Wikitext-2. The results demonstrated clear superiority over standard dropout and vanilla LSTM architectures.
Key Results:
- Generalization: On the Penn Treebank, Noisin improved perplexity by 12.2% over dropout. On Wikitext-2, it achieved a 9.4% improvement.
- Efficiency: When integrated with the state-of-the-art AWD-LSTM-MoS model, Noisin reached top-tier performance in just 400 epochs, compared to the 1,000 epochs required by the original model.
- State-of-the-Art Benchmarking: As shown in the table below, Noisin-enhanced models compete with and often exceed the performance of complex contemporary architectures.
Conclusion
Noisin provides a simple yet powerful framework for regularizing RNNs. By maintaining an unbiased transition function, it allows models to benefit from the smoothing effects of noise injection without the distortion introduced by traditional dropout. While it requires tuning the noise spread ($\gamma$), its ability to accelerate convergence and prevent overfitting makes it a potent tool for sequential modeling tasks.
Summary updated