Hessian-free Optimization for Learning Deep Multidimensional Recurrent Neural Networks

Minhyung Cho, Chandra Shekhar Dhir, Jaehyung LeeNeurIPS 2015

TL;DR

This paper demonstrates that Multidimensional Recurrent Neural Networks (MDRNNs) can be scaled to much greater depths (up to 15 layers) by using Hessian-free (HF) optimization. To make this possible, the authors derive a novel convex approximation for the Connectionist Temporal Classification (CTC) loss function, overcoming the "pathological curvature" that typically thwarts first-order training methods like Stochastic Gradient Descent (SGD) in deep architectures.

The Challenge of Deep MDRNNs

While standard Recurrent Neural Networks (RNNs) process data in one dimension (time), MDRNNs excel at tasks like handwriting and speech recognition by capturing context from multiple directions simultaneously. However, training them is notoriously difficult. Before this paper, MDRNNs were generally limited to about five layers; beyond that, the "vanishing gradient" problem and the complex, "pitted" landscape of the loss function made optimization nearly impossible for standard SGD.

Furthermore, sequence labeling tasks usually rely on Connectionist Temporal Classification (CTC) as a loss function. CTC is non-convex, which poses a major hurdle for second-order optimization methods like Hessian-free (HF) that require a positive semi-definite (PSD) matrix to guarantee a stable descent direction.

Methods

The authors bridge the gap between deep MDRNNs and second-order optimization through three key technical contributions:

  1. Hessian-free (HF) Optimization for MDRNNs: HF optimization uses the Conjugate Gradient (CG) method to approximately solve for the search direction using second-order information (the Hessian) without ever explicitly calculating the massive Hessian matrix itself.
  2. Convex Approximation of CTC: The core innovation is a reformulation of the CTC objective. The authors separate the non-convex parts of the CTC loss and derive a convex approximation. They show that by using a block-diagonal Hessian based on the softmax output layer, they can create a computationally tractable and positive semi-definite approximation of the curvature.
  3. Theoretical Grounding: They prove that this approximation is identical to the Fisher Information Matrix under certain conditions and provide an Expectation-Maximization (EM) interpretation, showing that their "approximation" is deeply rooted in established statistical learning theory.

Datasets

The researchers evaluated their approach on two classic sequence labeling benchmarks:

  • IFN/ENIT Database: A collection of over 32,000 images of handwritten Arabic words.
  • TIMIT Corpus: A benchmark speech database used here for phoneme recognition.

Key Insights and Ideas

  • The "Curvature" Solution: Deep networks often suffer from "pathological curvature"—regions where the gradient is very small but the optimal direction is narrow and steep. HF optimization is specifically designed to "see" this curvature and navigate it more effectively than SGD.
  • Simplifying CTC: The authors realized that if one path through the CTC alignment is dominant, the complex Hessian of the CTC loss simplifies into a form equivalent to standard cross-entropy. This allows them to use a block-diagonal approximation that is much faster to compute.
  • Gate Bias Initialization: A practical "pro-tip" included in the paper: setting high initial bias values (e.g., 2.0) for input and output gates in LSTM cells helps signal flow through many layers at the start of training, preventing the network from "dying" before it learns.

Key Results

Comparison of HF and SGD optimization on the IFN/ENIT handwriting dataset across varying network depths.
  • Depth Matters: On the IFN/ENIT handwriting task, increasing the depth from 3 to 13 layers using HF optimization dropped the label error rate from 6.10% to 4.50%.
  • HF vs. SGD: In almost every test case, HF optimization significantly outperformed SGD. For a 13-layer handwriting network, HF achieved a 4.50% error rate, while SGD struggled at 10.63%.
  • Scaling to 15 Layers: The authors successfully trained a 15-layer MDRNN, a significant jump from the previous 5-layer state-of-the-art.
Performance comparison of HF and SGD on the TIMIT speech recognition dataset.
  • Speech Recognition: On the TIMIT dataset, the results were more modest. While HF performed well, the gap between HF and SGD was smaller, likely because the TIMIT dataset is small enough that both methods eventually overfit.

Limitations and Future Work

  • Overfitting: The authors noted that on smaller datasets like TIMIT, the power of HF optimization is somewhat neutralized by the network's tendency to overfit the training data.
  • Computational Cost: While HF is more "sample efficient" (it needs fewer iterations to converge), each iteration is significantly more expensive than an SGD step because of the inner Conjugate Gradient loop.
  • Pre-training: The paper notes that there is still no established "layer-wise pre-training" or bootstrapping method for MDRNNs, which remains an open area for research to further improve deep multidimensional models.

Summary updated

BibTeX
@inproceedings{cho2015hessian,
  author = {Minhyung Cho and Chandra Shekhar Dhir and Jaehyung Lee},
  title = {{Hessian-free Optimization for Learning Deep Multidimensional Recurrent Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
}
Figure