Skip to main content
QUICK REVIEW

[Paper Review] Regularizing RNNs by Stabilizing Activations

David Krueger, Roland Memisevic|arXiv (Cornell University)|Nov 26, 2015
Speech Recognition and SynthesisComputer Science12 references30 citations
TL;DR

This paper introduces the norm-stabilizer, a novel regularizer that penalizes the squared difference between consecutive hidden state norms in RNNs, improving training stability and generalization. It significantly enhances performance on character-level language modeling and phoneme recognition, achieving state-of-the-art results (18.6% PER) on TIMIT without beam search, and enables IRNNs to generalize to much longer sequences by preventing activation explosion.

ABSTRACT

We stabilize the activations of Recurrent Neural Networks (RNNs) by penalizing the squared distance between successive hidden states' norms. This penalty term is an effective regularizer for RNNs including LSTMs and IRNNs, improving performance on character-level language modeling and phoneme recognition, and outperforming weight noise and dropout. We achieve competitive performance (18.6\% PER) on the TIMIT phoneme recognition task for RNNs evaluated without beam search or an RNN transducer. With this penalty term, IRNN can achieve similar performance to LSTM on language modeling, although adding the penalty term to the LSTM results in superior performance. Our penalty term also prevents the exponential growth of IRNN's activations outside of their training horizon, allowing them to generalize to much longer sequences.

Motivation & Objective

  • To address the problem of exploding or vanishing activations in RNNs, especially when generalizing to longer sequences beyond the training horizon.
  • To improve the generalization and stability of RNNs, particularly IRNNs and LSTMs, by encouraging stable hidden state norms over time.
  • To develop a regularizer that explicitly targets activation norm stability rather than just the direction of gradients or element-wise clipping.
  • To investigate whether norm stability can serve as a strong inductive bias that improves performance across diverse sequence modeling tasks.

Proposed method

  • Proposes a new regularizer, the norm-stabilizer, defined as $\beta \frac{1}{T} \sum_{t=1}^{T} (\|h_t\|_2 - \|h_{t-1}\|_2)^2$, which penalizes changes in the L2 norm of hidden states across time steps.
  • Applies the norm-stabilizer to both IRNNs and LSTMs, with separate ablation studies on whether to regularize the memory cell or hidden state.
  • Uses stochastic gradient descent with learning rate scheduling and gradient clipping, and restarts training if NaNs occur.
  • Employs a grid search over hyperparameters including $\beta$, learning rate, and gradient clipping for optimal performance.
  • Analyzes the impact of regularization on activation distributions, forget gate behavior, and eigenvalue spectra of the hidden transition matrix.
  • Compares the norm-stabilizer to alternative regularizers such as weight noise, dropout, and norm-based penalties on initial/final norms or temporal coherence.

Experimental results

Research questions

  • RQ1Can regularizing the norm of hidden states improve generalization in RNNs, especially beyond the training sequence length?
  • RQ2Does norm stabilization outperform existing regularization techniques like dropout, weight noise, or gradient clipping in RNNs?
  • RQ3Why does the norm-stabilizer improve performance for IRNNs and LSTMs but not tanh-RNNs?
  • RQ4How does norm stabilization affect the distribution of forget gates and eigenvalues of the hidden transition matrix?
  • RQ5Can norm-stabilized IRNNs generalize to much longer sequences than unregularized IRNNs?

Key findings

  • The norm-stabilizer significantly reduces the mean and variance of hidden state norms in both LSTMs and IRNNs, with the most effective regularization at $\beta = 500$.
  • IRNNs with the norm-stabilizer maintain stable performance and activation norms up to 10,000 time-steps, while unregularized IRNNs suffer from exponential activation growth within the training horizon.
  • On the TIMIT phoneme recognition task, the norm-stabilized RNN achieves 18.6% word error rate, matching state-of-the-art performance without beam search or RNN transducer architecture.
  • The norm-stabilizer improves validation performance for IRNNs and LSTMs, but not for tanh-RNNs, suggesting it is most effective in models prone to activation instability.
  • Regularized IRNNs exhibit a shift in eigenvalue distribution toward larger absolute values, indicating a preference for stable, non-orthogonal dynamics over orthogonal transitions.
  • The norm-stabilizer leads to more concentrated activation distributions across hidden units and more peaked forget gate distributions in LSTMs, suggesting selective, stable information retention.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.