[Paper Review] Mixed-Precision Training for NLP and Speech Recognition with OpenSeq2Seq
OpenSeq2Seq is a TensorFlow-based toolkit enabling mixed-precision and distributed training for seq2seq models, achieving 1.5-3x faster training without accuracy loss across NMT, ASR, and speech synthesis tasks.
We present OpenSeq2Seq - a TensorFlow-based toolkit for training sequence-to-sequence models that features distributed and mixed-precision training. Benchmarks on machine translation and speech recognition tasks show that models built using OpenSeq2Seq give state-of-the-art performance at 1.5-3x less training time. OpenSeq2Seq currently provides building blocks for models that solve a wide range of tasks including neural machine translation, automatic speech recognition, and speech synthesis.
Motivation & Objective
- Provide a modular, extensible TensorFlow-based toolkit for seq2seq models.
- Enable mixed-precision training to leverage Tensor Cores on Volta/Turing GPUs.
- Support fast distributed training via Horovod for multi-GPU/multi-node setups.
- Showcase state-of-the-art performance with reduced training time on MT and ASR tasks.
Proposed method
- Introduce modular core classes: DataLayer, Model, Encoder, Decoder, Loss.
- Implement mixed-precision training with FP16 math and FP32 master weights, plus loss scaling.
- Provide a MixedPrecisionOptimizerWrapper to handle FP16 gradients and FP32 updates.
- Enable Horovod-based distributed training for scalable multi-GPU/multi-node execution.
- Offer configurable model blocks for GNMT, ConvS2S, Transformer, Deep Speech 2, Wave2Letter+, Tacotron 2, among others.
- Present performance benchmarks across MT, ASR, and TTS tasks.
Experimental results
Research questions
- RQ1Can mixed-precision training speed up seq2seq model training without sacrificing accuracy?
- RQ2How does OpenSeq2Seq's performance and memory footprint compare across MT, ASR, and TTS tasks?
- RQ3What is the impact of distributed training (Horovod) on scaling across GPUs and nodes?
- RQ4How flexible is the modular architecture for composing new seq2seq models?
- RQ5What are the practical considerations for maintaining FP32 accuracy for critical components during mixed-precision training?
Key findings
- Mixed-precision training reduces memory usage and speeds up training by 1.5–3x across MT, ASR, and TTS tasks.
- Loss scaling and FP32 master weights preserve accuracy during FP16 forward/backward passes.
- Horovod-based distributed training scales significantly better than TensorFlow native towers, particularly at larger GPU counts.
- GNMT, ConvS2S, and Transformer blocks can be mixed and matched to form various NMT models with competitive BLEU scores.
- ASR results show reduced memory usage (approx. 57%) and substantial speedups in mixed-precision settings.
- Tacotron 2 training with mixed precision yields about 1.6x faster training compared to FP32.
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.