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

arXiv: https://arxiv.org/abs/1706.05765 · HTML: https://mlsanity.com/paper/1706.05765/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 19 Jun 2017.

## Built on by (most cited first, 6 of 6)

- [SpeechBrain: A General-Purpose Speech Toolkit](https://mlsanity.com/paper/2106.04624/) (2021)
- [Data Augmentation by Concatenation for Low-Resource Translation: A Mystery and a Solution](https://mlsanity.com/paper/2105.01691/) (2021)
- [On Batching Variable Size Inputs for Training End-to-End Speech Enhancement Systems](https://mlsanity.com/paper/2301.10587/) (2023)
- [Enhancing Large Language Model-based Speech Recognition by Contextualization for Rare and Ambiguous Words](https://mlsanity.com/paper/2408.08027/) (2024)
- [Fast Training of NMT Model with Data Sorting](https://mlsanity.com/paper/2308.08153/) (2023)
- [DanLing NestedTensor: Composable Multi-Ragged Tensors for Deep Learning](https://mlsanity.com/paper/2609.30379/) (2026)

## Abstract (arXiv)

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.
