[Paper Review] Online Sequence Training of Recurrent Neural Networks with Connectionist Temporal Classification
This paper proposes an expectation-maximization (EM)-based online CTC training algorithm for unidirectional RNNs that enables efficient, memory-constrained training on long or continuous sequences without full unrolling. By combining truncated CTC (CTC-TR) with EM-based frame coverage (CTC-EM), the method achieves near-state-of-the-art performance with only 64x unrolling (640ms window), enabling 27k frames/sec training speed on GPU while incurring just 4.5% relative WER increase on WSJ.
Connectionist temporal classification (CTC) based supervised sequence training of recurrent neural networks (RNNs) has shown great success in many machine learning areas including end-to-end speech and handwritten character recognition. For the CTC training, however, it is required to unroll (or unfold) the RNN by the length of an input sequence. This unrolling requires a lot of memory and hinders a small footprint implementation of online learning or adaptation. Furthermore, the length of training sequences is usually not uniform, which makes parallel training with multiple sequences inefficient on shared memory models such as graphics processing units (GPUs). In this work, we introduce an expectation-maximization (EM) based online CTC algorithm that enables unidirectional RNNs to learn sequences that are longer than the amount of unrolling. The RNNs can also be trained to process an infinitely long input sequence without pre-segmentation or external reset. Moreover, the proposed approach allows efficient parallel training on GPUs. For evaluation, phoneme recognition and end-to-end speech recognition examples are presented on the TIMIT and Wall Street Journal (WSJ) corpora, respectively. Our online model achieves 20.7% phoneme error rate (PER) on the very long input sequence that is generated by concatenating all 192 utterances in the TIMIT core test set. On WSJ, a network can be trained with only 64 times of unrolling while sacrificing 4.5% relative word error rate (WER).
Motivation & Objective
- Address the high memory cost of full unrolling in CTC training for long sequences, especially on shared memory systems like GPUs.
- Enable online and continuous sequence training of unidirectional RNNs without pre-segmentation or external reset.
- Develop a method that maintains high model performance while reducing unroll length to allow more parallel sequences under memory constraints.
- Facilitate efficient, scalable training on GPUs by minimizing load imbalance due to variable sequence lengths.
- Support small-footprint online learning and adaptation systems with limited memory resources.
Proposed method
- Introduce an online CTC algorithm based on expectation-maximization (EM) that splits training into two phases: truncated CTC (CTC-TR) and EM-based frame coverage (CTC-EM).
- Use CTC-TR for standard backpropagation through truncated unroll windows, limiting memory usage to a fixed window size.
- Apply CTC-EM to cover frames missed by CTC-TR, especially at sequence boundaries and within long sequences, using EM-style iterative estimation.
- Integrate the EM-based frame coverage into the loss function to improve model learning on incomplete or truncated sequences.
- Enable continuous RNN inference by training on concatenated sequences with utterance-level transcriptions, allowing the network to process infinite streams without reset.
- Combine the method with GPU-parallel training by using fixed unroll windows, enabling high throughput with load-balanced data streams.
Experimental results
Research questions
- RQ1Can CTC-based sequence training be performed efficiently on long or continuous input sequences without full unrolling?
- RQ2How can memory usage be reduced in online CTC training of unidirectional RNNs while maintaining model performance?
- RQ3To what extent can EM-based frame coverage compensate for the performance loss from truncated backpropagation in CTC training?
- RQ4Can the proposed method enable high-throughput, parallel training on GPUs with variable-length sequences?
- RQ5What is the trade-off between unroll length, training speed, and model accuracy in online CTC training?
Key findings
- The proposed online CTC algorithm achieves 20.7% phoneme error rate (PER) on a concatenated TIMIT test set of 192 utterances, demonstrating effective continuous sequence processing.
- On the WSJ corpus, a model trained with only 64x unrolling (640ms window) incurs a 4.5% relative WER increase compared to full unrolling, while achieving 26.98k frames/sec training speed.
- With 256 parallel streams and 64x unrolling, the training speed reaches 26.98k frames/sec, showing significant acceleration under memory constraints.
- The convergence curves of CTC-TR + CTC-EM with 256 and 512 unroll steps closely match those of CTC-TR with 2,048 unrolls, indicating strong generalization despite reduced unrolling.
- The method enables training with 12.43% CTC-TR coverage (64x unroll) while maintaining WER within 1.5% of the full unrolling baseline, proving robustness to low coverage.
- The approach supports continuous RNN inference without external reset, as validated on the TIMIT dataset with a single, infinitely long input stream.
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.