[Paper Review] Parallel training of DNNs with Natural Gradient and Parameter Averaging
This paper proposes a scalable, hardware-agnostic framework for parallel training of deep neural networks (DNNs) using periodic parameter averaging across multiple machines and an efficient approximate natural gradient method (NG-SGD). By averaging parameters every 1–2 minutes and combining it with NG-SGD, the method achieves near-linear speedup on up to 8 GPUs without excessive communication, significantly improving convergence and stability in large-scale speech recognition training.
We describe the neural-network training framework used in the Kaldi speech recognition toolkit, which is geared towards training DNNs with large amounts of training data using multiple GPU-equipped or multi-core machines. In order to be as hardware-agnostic as possible, we needed a way to use multiple machines without generating excessive network traffic. Our method is to average the neural network parameters periodically (typically every minute or two), and redistribute the averaged parameters to the machines for further training. Each machine sees different data. By itself, this method does not work very well. However, we have another method, an approximate and efficient implementation of Natural Gradient for Stochastic Gradient Descent (NG-SGD), which seems to allow our periodic-averaging method to work well, as well as substantially improving the convergence of SGD on a single machine.
Motivation & Objective
- To develop a scalable, communication-efficient method for training DNNs on large-scale speech recognition datasets using multiple GPU-equipped machines.
- To address the instability and poor convergence of standard SGD when combined with infrequent parameter averaging in distributed training.
- To enable hardware-agnostic parallel training by minimizing network traffic while maintaining model quality.
- To empirically validate that combining periodic parameter averaging with NG-SGD yields stable, fast convergence and linear speedup.
- To provide a practical, production-ready training framework for large-scale DNNs in the Kaldi toolkit.
Proposed method
- Use multiple independent SGD processes on separate machines, each training on different randomized data subsets.
- Periodically average the model parameters (every 1–2 minutes or 400k examples) and redistribute them to all machines to synchronize updates.
- Apply an efficient, approximate implementation of Natural Gradient Stochastic Gradient Descent (NG-SGD) to stabilize training and accelerate convergence.
- Use a modified learning rate schedule where the effective learning rate is the individual learning rate divided by the number of machines to maintain consistent update magnitude.
- Implement a 'simple' and an 'online' variant of NG-SGD, with the latter used for sequence training due to temporal dependencies.
- Integrate i-vectors as input features to support online inference and improve speaker adaptation in streaming applications.
Experimental results
Research questions
- RQ1Can periodic parameter averaging across multiple machines achieve linear speedup in DNN training without frequent communication?
- RQ2Does the combination of parameter averaging and approximate NG-SGD lead to stable and fast convergence in non-convex DNN optimization?
- RQ3How does NG-SGD improve convergence compared to standard SGD in both single-machine and multi-machine settings?
- RQ4Can the proposed method be made hardware-agnostic and scalable across diverse multi-GPU or multi-core environments?
- RQ5What is the impact of i-vector integration on online inference and model performance in streaming speech recognition?
Key findings
- The method achieves near-linear speedup when increasing the number of GPUs from 1 to 8, with minimal communication overhead.
- Parameter averaging alone leads to poor convergence, but when combined with NG-SGD, it results in stable and fast training.
- NG-SGD significantly improves convergence speed on a single machine, reducing training time for large-scale DNNs.
- The framework supports both offline and online inference, with i-vectors enabling real-time adaptation and reduced latency.
- The approach matches or exceeds the performance of traditional systems using LDA, MLLT, and fMLLR adaptation, while being simpler for transfer learning.
- The effective learning rate scaling (dividing individual learning rate by number of machines) is critical for stability and convergence.
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.