[Paper Review] Dynamic Sentence Sampling for Efficient Training of Neural Machine Translation
This paper proposes Dynamic Sentence Sampling (DSS), a method that accelerates neural machine translation (NMT) training by dynamically resampling sentences based on the relative change in their training cost between iterations. By prioritizing sentences with high improvement potential and using a review mechanism to retain knowledge, DSS reduces redundant training on well-learned sentences, achieving faster convergence and improved BLEU scores—up to 2.2 points higher than baseline models after 500K training batches.
Traditional Neural machine translation (NMT) involves a fixed training procedure where each sentence is sampled once during each epoch. In reality, some sentences are well-learned during the initial few epochs; however, using this approach, the well-learned sentences would continue to be trained along with those sentences that were not well learned for 10-30 epochs, which results in a wastage of time. Here, we propose an efficient method to dynamically sample the sentences in order to accelerate the NMT training. In this approach, a weight is assigned to each sentence based on the measured difference between the training costs of two iterations. Further, in each epoch, a certain percentage of sentences are dynamically sampled according to their weights. Empirical results based on the NIST Chinese-to-English and the WMT English-to-German tasks depict that the proposed method can significantly accelerate the NMT training and improve the NMT performance.
Motivation & Objective
- To address the inefficiency of fixed-epoch training in NMT, where well-learned sentences continue to be retrained unnecessarily.
- To reduce training time and computational waste by identifying and deprioritizing sentences that show minimal improvement over epochs.
- To improve NMT performance by focusing training on sentences that still have potential for improvement.
- To preserve knowledge from well-learned sentences through a review mechanism, preventing catastrophic forgetting.
- To evaluate the method’s effectiveness on large-scale and noisy datasets, including WMT and NIST benchmarks.
Proposed method
- The method computes a dynamic criterion based on the relative difference in sentence-level training cost between two consecutive iterations: $ dif_{\langle x,y\rangle}^{i} = \frac{cost_{\langle x,y\rangle}^{i-1} - cost_{\langle x,y\rangle}^{i}}{cost_{\langle x,y\rangle}^{i-1}} $.
- This difference is normalized into [0,1] to form the final criterion: $ criterion_{\langle x,y\rangle}^{i} = \frac{dif_{\langle x,y\rangle}^{i} - \min(dif^{i})}{\max(dif^{i}) - \min(dif^{i})} $, representing the likelihood of further improvement.
- In each epoch, sentences are sampled with probability proportional to their criterion value, enabling dynamic resampling of high-potential sentences.
- Two resampling strategies are introduced: weighted sampling (based on criterion scores) and a review mechanism that retains a subset of previously seen sentences to preserve knowledge.
- The approach avoids permanent removal of sentences, reducing the risk of forgetting learned knowledge.
- The method is evaluated on NIST Chinese-to-English and WMT English-to-German translation tasks using BLEU scores and training efficiency metrics.
Experimental results
Research questions
- RQ1Can dynamic sentence sampling based on training cost changes accelerate NMT training without degrading performance?
- RQ2How does dynamic resampling compare to static or fixed-sampling baselines in terms of convergence speed and final BLEU score?
- RQ3Does the proposed method prevent performance degradation caused by forgetting well-learned sentences?
- RQ4Can the method detect and reduce the influence of noisy or misaligned sentence pairs during training?
- RQ5How effective is the method on large-scale and long-training NMT setups?
Key findings
- The proposed DSS method achieved a BLEU score of 38 after approximately 260K training batches on the NIST ZH-EN task, outperforming the vanilla NMT model by 3 points.
- On the NIST ZH-EN task, DSS improved BLEU by 1.2–2.2 points compared to the vanilla NMT and by 0.9–1.7 points compared to the best baseline models.
- The review mechanism outperformed weighted sampling, indicating better retention of learned knowledge and more stable performance over time.
- On the WMT EN-FR task with 12M sentences, DSS improved BLEU by approximately 0.6 after 6 epochs, demonstrating effectiveness on large-scale data.
- After adding 20% noisy, misaligned data to the NIST ZH-EN corpus, the proportion of noisy sentences dropped to 13% after one DSS cycle and to 7% after two cycles, showing the method’s ability to detect and filter noisy examples.
- Unlike baseline methods that showed performance degradation after peak BLEU, DSS models maintained stable performance, indicating reduced risk of catastrophic forgetting.
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.