An Empirical Study of Mini-Batch Creation Strategies for Neural Machine Translation

By Makoto Morishita, Yusuke Oda, Graham Neubig, Koichiro Yoshino, Katsuhito Sudoh, Satoshi Nakamura. 2017

26 citations recorded by the source corpus.

Training of neural machine translation (NMT) models usually uses mini-batches for efficiency purposes. During the mini-batched training process, it is necessary to pad shorter sentences in a mini-batch to be equal in length to the longest sentence therein for efficient computation. Previous work has noted that sorting the corpus based on the sentence length before making mini-batches reduces the amount of padding and increases the processing speed. However, despite the fact that mini-batch creation is an essential step in NMT training, widely used NMT toolkits implement disparate strategies for doing so, which have not been empirically validated or compared. This work investigates mini-batch creation strategies with experiments over two different datasets. Our results suggest that the choice of a mini-batch creation strategy has a large effect on NMT training and some length-based sorting strategies do not always work well compared with simple shuffling.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Michael Auli
  2. Alexei Baevski
  3. Luke S. Zettlemoyer
  4. Myle Ott
  5. Graham Neubig
  6. Angela Fan
  7. Noah A. Smith
  8. Kyunghyun Cho

In Computer Vision and Pattern Recognition

  1. Michael Auli
  2. Alexei Baevski
  3. Myle Ott
  4. Luke S. Zettlemoyer
  5. Luc Van Gool
  6. Angela Fan
  7. Kyunghyun Cho
  8. Dacheng Tao

In Natural Language Processing

  1. Michael Auli
  2. Alexei Baevski
  3. Myle Ott
  4. Luke S. Zettlemoyer
  5. Graham Neubig
  6. Angela Fan
  7. Noah A. Smith
  8. Kyunghyun Cho

Citations in the corpus