Batch Normalized Recurrent Neural Networks

César Laurent, Gabriel Pereyra, Philemon Brakel, Ying Zhang, Yoshua Bengio · DOI

Authors: Philémon Brakel, Ying Zhang, Yoshua Bengio
Affiliation: Université de Montréal

Introduction

Recurrent Neural Networks (RNNs), particularly Long Short-Term Memory (LSTM) architectures, are the state-of-the-art for sequential data modeling in domains such as speech recognition and natural language processing. However, these models are notoriously slow to train. While Batch Normalization (BN) has successfully accelerated training in feedforward and convolutional networks by reducing internal covariate shift, its application to recurrent structures is complex due to weight sharing across time steps and the potential disruption of temporal dynamics.

Methodology

This research investigates the optimal placement of the Batch Normalization operator within the RNN architecture. The authors propose a "vertical" application of BN, where normalization is applied exclusively to the input-to-hidden transitions rather than the recurrent (hidden-to-hidden) connections.

Mathematically, the hidden state update is defined as: $h_t = \phi(W_h h_{t-1} + BN(W_x x_t))$

This approach avoids the instability observed when repeatedly applying BN parameters within the recurrent loop. The study also evaluates two normalization strategies:

  • Frame-wise Normalization: Statistics are computed independently for each time step, which is essential for real-time applications like language modeling.
  • Sequence-wise Normalization: Statistics are aggregated across both the batch and time dimensions, providing more stable estimates for variable-length sequences, such as those found in speech datasets.

Experimental Results

Speech Recognition (WSJ Corpus)

Experiments on the Wall Street Journal (WSJ) corpus for speech alignment prediction demonstrated that BN significantly accelerates convergence.

Training and development cross-entropy on the WSJ corpus.

As illustrated in Figure 1, the BN-equipped model (red) achieves a lower training cross-entropy much faster than the baseline (blue). While the training Frame Error Rate (FER) improved from 0.28 to 0.22, the validation FER was slightly higher (0.34 vs. 0.33), suggesting that BN may reduce the inherent regularization of the network in this context.

Language Modeling (PTB Corpus)

In character-level language modeling using the Penn Treebank (PTB) corpus, the benefits of BN for training speed were even more pronounced, but so were the challenges regarding generalization.

Figure 3 shows that the Large BN model reached a superior training perplexity of 35.0 compared to the baseline's 49.3. However, the validation perplexity diverged significantly, reaching 97.4 against the baseline's 81.8. This indicates that while BN improves the optimization landscape, it necessitates additional regularization to maintain generalization performance in RNNs.

Discussion and Conclusion

The findings suggest that applying Batch Normalization to the input-to-hidden weights of an RNN provides a clear path to faster training convergence. However, unlike in convolutional networks, BN in RNNs does not appear to provide a regularizing effect and can lead to severe overfitting. Furthermore, because the recurrent connections remain un-normalized, the architecture cannot yet support the extremely high learning rates typical of BN-enabled feedforward networks. Future work will explore methods to safely normalize recurrent transitions to further unlock the speed benefits of Batch Normalization for sequential tasks.

Summary updated

BibTeX
@inproceedings{laurent2015batch,
  author = {César Laurent and Gabriel Pereyra and Philemon Brakel and Ying Zhang and Yoshua Bengio},
  title = {{Batch Normalized Recurrent Neural Networks}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2015},
  doi = {10.1109/icassp.2016.7472159},
}
Figure