Abstract
Training recurrent neural networks (RNNs) on complex sequential data is notoriously slow and prone to poor local optima. This paper introduces a pre-training strategy inspired by curriculum learning: first, a simple Hidden Markov Model (HMM) is trained on the data to generate a "smoothed" synthetic dataset. The RNN is then pre-trained on this simplified version before fine-tuning on the original data. This approach results in drastic reductions in training time—saving over 8 hours in some cases—while maintaining or improving accuracy.
Introduction
Sequential data processing remains a significant challenge in deep learning. While RNNs are the standard tool for such tasks, they suffer from high computational complexity due to limited parallelization and difficult optimization landscapes. Without a robust initialization, these models often settle for mediocre solutions. This research addresses these hurdles by leveraging HMMs to provide a structured "head start" for complex neural architectures, effectively learning global data structures through a faster, simpler lens.
Methodology
The proposed approach follows a three-stage pipeline based on the principles of curriculum learning—starting with simpler concepts before moving to full complexity.
- HMM Training: A linear Hidden Markov Model is trained on the target dataset. HMMs are mathematically shallower and faster to train than RNNs, making them ideal for capturing basic statistical regularities.
- Synthetic Data Generation: The trained HMM acts as a "teacher," generating a synthetic dataset. This data is a "smoothed" version of the real sequences, capturing the essential gist without overwhelming complexity.
- RNN Pre-training & Fine-tuning: The target RNN (or RNN-RBM) is first trained on this synthetic data to push weights into a better region of the parameter space. Finally, the model is fine-tuned on the original dataset.
Experimental Setup and Datasets
The method was evaluated on two challenging polyphonic music datasets in piano-roll MIDI format:
- Nottingham: A collection of folk songs with redundant structures and limited chord variety.
- Piano-midi.de: A complex archive of classical piano music with high chord diversity and intricate patterns.
Key Results and Insights
The HMM-based pre-training approach demonstrated significant advantages over standard optimization methods like Stochastic Gradient Descent (SGD) and Hessian-Free (HF) optimization.
- Massive Speedups: On the Nottingham dataset, the HMM pre-training approach saved more than 8 hours of computing time.
- Faster Convergence: Pre-trained networks reached peak accuracy in roughly 110-120 epochs, compared to the 200 epochs required by standard methods.
- Accuracy Boost: While accuracies were generally comparable, the HMM approach yielded slightly better results on the complex Piano-midi dataset. For a basic RNN, accuracy improved from a baseline of 10.1% to 69.5%.
The "Smoothness" Advantage
A core insight of this work is that a linear model’s approximation acts as a natural regularizer. By learning the "global picture" from the HMM first, the RNN avoids being distracted by high-frequency noise or hyper-specific details early in training. This suggests that the starting point in the parameter space (initialization) is often more critical than the specific optimization algorithm used.
Limitations and Future Work
The performance of this method is sensitive to the number of hidden states in the HMM. While a small number of states (≤ 25) is efficient, increasing to 50 states can slow the process as the HMM itself becomes harder to train. Future research will explore optimal hyperparameter selection for synthetic data generation and evaluate the method on qualitative sequence generation tasks.
Summary updated