Abstract
Training state-of-the-art Neural Machine Translation (NMT) models is computationally intensive, often requiring days or weeks of GPU time. While asynchronous stochastic gradient descent (ASGD) offers higher throughput than synchronous methods, it frequently suffers from "stale gradients" that impede convergence. This paper presents a suite of optimizations—including delayed gradient updates, local per-worker optimizers, and specialized momentum tuning—that mitigate these issues. Our approach achieves a 27% speedup over optimized baselines and nearly a 4x speedup over standard synchronous systems, all while maintaining translation quality (BLEU scores).
Introduction
The efficiency of multi-GPU training for NMT is often limited by the synchronization strategy. Synchronous SGD, while stable, suffers from idle time due to variable sentence lengths in text batches. Asynchronous SGD (ASGD) eliminates this idle time but introduces stale gradients: updates calculated on outdated model parameters. This noise often leads to poor convergence, requiring more epochs to reach target accuracy and negating raw throughput gains. This research aims to bridge the gap between the speed of ASGD and the stability of synchronous training.
Proposed Methodology
To address the limitations of ASGD, we introduce three key techniques:
1. Delayed Gradient Updates ($\tau$)
NMT models are often constrained by VRAM due to large embedding layers, preventing the use of massive mini-batches. By introducing a delay factor $\tau$, workers accumulate gradients over $\tau$ small batches locally before performing a single global update. This effectively increases the mini-batch size and reduces communication overhead between GPUs and the parameter server.
2. Local Optimizers
Instead of sending raw gradients to a central server, each worker runs its own "local optimizer" (such as a mini-Adam). This acts as a filter, ensuring that the updates sent to the global model are more meaningful and helping to mitigate the noise caused by staleness, particularly during the critical early stages of training.
3. Momentum Tuning and Cooldown
Asynchrony inherently adds "implicit momentum" to training. We argue that standard momentum settings are too high for ASGD. By lowering the explicit momentum in the optimizer and implementing a "cooldown" strategy where momentum is reduced further after the initial training phase, we prevent the model from overstepping and ensure stable convergence.
Key Results
The proposed methods were evaluated on the WMT 2016 Romanian→English and WMT 2017 English→German benchmarks.
As shown in Table 1, our final optimized system (System 4) reduces training time for Romanian-English from 14.3 hours (synchronous) to just 3.66 hours. This represents a significant improvement in throughput, reaching 44.2k words per second (WPS) while maintaining a BLEU score of 35.48, comparable to the synchronous baseline.
Figure 1 illustrates the convergence speed advantage. The optimized asynchronous methods reach peak BLEU scores significantly faster than the standard asynchronous baseline. For the more complex English-German task, the system reduced training time from 51.3 hours to 39.7 hours while achieving a competitive BLEU of 25.07.
Conclusion
By treating stale gradients as a manageable source of noise and optimizing for communication efficiency, we have shown that ASGD can be made both fast and stable for NMT. The combination of delayed updates, local optimizers, and momentum tuning provides a robust framework for accelerating deep learning training on multi-GPU systems. Future work will explore the scalability of these methods in high-latency distributed environments where network overhead is even more pronounced.
Summary updated