[Paper Review] Benchmarking of LSTM Networks
This paper benchmarks LSTM networks on MNIST and UW3 datasets, evaluating hyperparameters like learning rate, batch size, momentum, non-linearities, peephole connections, and training methods. It finds that standard LSTMs with softmax output and no peepholes perform best, bidirectional training with CTC yields the highest accuracy, and batch size/momentum have negligible impact—enabling efficient parallel training.
LSTM (Long Short-Term Memory) recurrent neural networks have been highly successful in a number of application areas. This technical report describes the use of the MNIST and UW3 databases for benchmarking LSTM networks and explores the effect of different architectural and hyperparameter choices on performance. Significant findings include: (1) LSTM performance depends smoothly on learning rates, (2) batching and momentum has no significant effect on performance, (3) softmax training outperforms least square training, (4) peephole units are not useful, (5) the standard non-linearities (tanh and sigmoid) perform best, (6) bidirectional training combined with CTC performs better than other methods.
Motivation & Objective
- To evaluate the impact of key hyperparameters and architectural choices on LSTM performance for sequence classification.
- To determine whether batch normalization, momentum, peephole connections, or alternative non-linearities improve LSTM accuracy.
- To compare unidirectional vs. bidirectional training and CTC vs. standard output layer training on OCR tasks.
- To investigate the reproducibility and stability of LSTM training across different configurations.
Proposed method
- Trained 660 LSTM variants on MNIST and UW3 using systematic hyperparameter sweeps across learning rates (10⁻⁶ to 10⁻¹), hidden unit counts (50–500), batch sizes (20–2000), and momentum (0–0.99).
- Transformed image inputs (MNIST 28×28, UW3 size-normalized) into sequential vertical slices for sequence modeling.
- Compared multiple LSTM variants: standard LSTM, LINLSTM, NPLSTM, RELU2LSTM, RELULSTM, RELUTANHLSTM with different non-linearities (tanh, sigmoid, ReLU).
- Evaluated both mean-squared error (MSE) and softmax output layers for training, and applied Connectionist Temporal Classification (CTC) for sequence-to-sequence learning.
- Used bidirectional LSTMs with CTC and non-CTC training to compare performance on sequence labeling tasks.
- Monitored training and test error over time to detect eventual divergence in performance.
Experimental results
Research questions
- RQ1How does learning rate affect LSTM performance across different network sizes and datasets?
- RQ2What is the impact of batch size and momentum on LSTM training stability and final error rates?
- RQ3Do peephole connections or alternative non-linearities (e.g., ReLU) improve LSTM performance compared to standard tanh/sigmoid units?
- RQ4How do softmax and MSE output training differ in performance for OCR tasks?
- RQ5Does bidirectional training with CTC outperform unidirectional or standard output training on sequence classification?
Key findings
- LSTM performance depends smoothly on learning rate, with optimal performance achieved at learning rates around 10⁻² to 10⁻¹, and the best test error rate on MNIST was 0.73%.
- Batch size and momentum had no significant effect on error rates, indicating that batching can be safely used for parallel training without performance loss.
- Peephole connections provided no performance benefit and were never superior to standard LSTMs in any configuration tested.
- Softmax output with cross-entropy loss outperformed mean-squared error training, especially on OCR tasks, with significantly lower error rates.
- Bidirectional LSTMs combined with CTC achieved the best performance on both MNIST and UW3, outperforming unidirectional and non-CTC methods.
- Eventually, all trained LSTM networks exhibited slow divergence in test error after ~1 million steps, suggesting competing structural and parameter learning processes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.