Skip to main content
QUICK REVIEW

[Paper Review] Recurrent Batch Normalization

Tim Cooijmans, Nicolas Ballas|arXiv (Cornell University)|Mar 30, 2016
Topic ModelingComputer Science26 references58 citations
TL;DR

This paper proposes Recurrent Batch Normalization (RBN), a reparameterization of LSTM that applies batch normalization to the hidden-to-hidden transition, reducing internal covariate shift across time steps. Empirical results show faster convergence and improved generalization across sequence modeling tasks, including language modeling and question answering, outperforming standard LSTMs and prior batch normalization approaches in RNNs.

ABSTRACT

We propose a reparameterization of LSTM that brings the benefits of batch normalization to recurrent neural networks. Whereas previous works only apply batch normalization to the input-to-hidden transformation of RNNs, we demonstrate that it is both possible and beneficial to batch-normalize the hidden-to-hidden transition, thereby reducing internal covariate shift between time steps. We evaluate our proposal on various sequential problems such as sequence classification, language modeling and question answering. Our empirical results show that our batch-normalized LSTM consistently leads to faster convergence and improved generalization.

Motivation & Objective

  • To address internal covariate shift in recurrent neural networks by extending batch normalization beyond input-to-hidden layers to hidden-to-hidden transitions.
  • To overcome previous failures in applying batch normalization to RNNs, which were attributed to exploding gradients and improper initialization.
  • To demonstrate that batch normalization in the hidden state transition improves optimization and generalization in sequential learning tasks.
  • To validate the method on diverse tasks, including sequence classification, language modeling, and question answering, with variable-length sequences and attention mechanisms.
  • To provide a robust framework for applying batch normalization in bidirectional and attention-augmented RNNs.

Proposed method

  • Reparameterizes the LSTM by introducing batch normalization layers on the hidden-to-hidden transition, standardizing the hidden states across the batch at each time step.
  • Applies batch normalization to the combined hidden and input transformations, normalizing the output of the linear transformation before activation.
  • Uses learnable affine parameters (scale and shift) in the batch normalization layer to maintain representational capacity after normalization.
  • Employs sequence-wise normalization for inputs to avoid bias from zero-padding in variable-length sequences, sharing statistics across time for input terms only.
  • Applies batch normalization to attention mechanisms in the attentive reader model, normalizing terms before the tanh nonlinearity.
  • Uses careful initialization of batch normalization parameters to prevent vanishing gradients and ensure stable training.

Experimental results

Research questions

  • RQ1Can batch normalization be effectively applied to the hidden-to-hidden transition in LSTMs to reduce internal covariate shift?
  • RQ2Why did prior attempts to apply batch normalization in RNNs fail, and can proper initialization resolve these issues?
  • RQ3Does recurrent batch normalization improve training speed and generalization in sequence modeling tasks?
  • RQ4Can batch normalization be successfully extended to complex architectures involving attention mechanisms and bidirectional RNNs?
  • RQ5How does batch normalization affect optimization in the presence of variable-length sequences and zero-padding?

Key findings

  • Recurrent Batch Normalization (BN-LSTM) significantly accelerates training convergence compared to standard LSTMs on sequence classification and language modeling tasks.
  • On the CNN question-answering task, BN-e** (bidirectional BN-e*) achieved a test error rate of 36.3%, outperforming the baseline LSTM (45.0%) and the original attentive reader (37.0%).
  • The BN-everywhere variant, which normalizes attention terms, achieved a validation error of 49.5%, showing a generalization benefit over the baseline LSTM.
  • The BN-e* and BN-e** variants achieved the lowest minima at 47.1% and 43.9% respectively, demonstrating improved generalization through enhanced optimization.
  • Proper initialization of batch normalization parameters was found to be crucial, as improper initialization led to vanishing gradients and training failure, contrary to earlier assumptions.
  • The method successfully handles variable-length sequences and bidirectional RNNs by applying sequence-wise normalization and preserving padding structure during reverse pass.

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.