Skip to main content
QUICK REVIEW

[Paper Review] A comprehensive study of batch construction strategies for recurrent neural networks in MXNet

Patrick Doetsch, Pavel Golik|arXiv (Cornell University)|May 5, 2017
Speech Recognition and SynthesisComputer Science10 references5 citations
TL;DR

This paper proposes an alternated sorting strategy for batch construction in recurrent neural network training, where shuffled sequences are partitioned and sorted in alternating order to reduce zero-padding and improve training efficiency. Evaluated on the CHiME-4 ASR task, the method achieves recognition performance comparable to random shuffling (WER ~8.9%) while matching the speed of sorted batching, offering a simpler, more effective alternative to MXNet's bucketing approach.

ABSTRACT

In this work we compare different batch construction methods for mini-batch training of recurrent neural networks. While popular implementations like TensorFlow and MXNet suggest a bucketing approach to improve the parallelization capabilities of the recurrent training process, we propose a simple ordering strategy that arranges the training sequences in a stochastic alternatingly sorted way. We compare our method to sequence bucketing as well as various other batch construction strategies on the CHiME-4 noisy speech recognition corpus. The experiments show that our alternated sorting approach is able to compete both in training time and recognition performance while being conceptually simpler to implement.

Motivation & Objective

  • To address the inefficiency of zero-padding in RNN mini-batch training due to variable-length sequences.
  • To improve training speed and recognition performance by reducing computational waste from padding frames.
  • To propose a simpler, more intuitive batch construction strategy than existing bucketing methods in MXNet.
  • To evaluate the impact of batch construction strategies on training time and ASR system performance.
  • To demonstrate that a stochastic alternating sorting approach can outperform standard bucketing in both speed and accuracy.

Proposed method

  • Sequences are first shuffled randomly to break length-ordering bias.
  • The shuffled sequences are partitioned into fixed-size segments.
  • Each segment is sorted in alternating order—increasing for odd segments, decreasing for even segments—across the entire training set.
  • This method reduces intra-batch length variance while maintaining inter-batch diversity.
  • The approach minimizes zero-padding by grouping sequences of similar lengths within each segment.
  • The method is implemented in MXNet and compared to random shuffling, sorted batching, and MXNet’s native bucketing strategy.

Experimental results

Research questions

  • RQ1How does batch construction strategy affect training time and recognition performance in RNN-based ASR?
  • RQ2Can a simpler batch construction method outperform the standard bucketing approach in MXNet?
  • RQ3Does alternating sorting of shuffled sequence segments reduce zero-padding and improve training efficiency?
  • RQ4What is the trade-off between training speed and ASR accuracy across different batch construction strategies?
  • RQ5How does intra-batch length variability impact model convergence and performance?

Key findings

  • The proposed alternated sorting method achieved a word error rate (WER) of 9.5% with 10.0 utterances per second, closely matching the performance of random shuffling (WER ~8.9%, ~7.0 utt/sec).
  • Sorted batching achieved the fastest training speed (10.2 utt/sec) but had the worst recognition performance (WER 10.2%), indicating a strong negative impact of fixed-length ordering.
  • MXNet’s bucketing approach had higher memory consumption (6.3 GB) and slower training (9.5 utt/sec) than the proposed method, which used 4.8–6.0 GB and 8.8–10.1 utt/sec depending on bin count.
  • The proposed method with 256 bins achieved a WER of 9.1%, outperforming MXNet’s bucketing (9.6%) and approaching random shuffling performance.
  • The alternated sorting strategy achieved a better balance between training speed and recognition accuracy than both bucketing and sorted batching.
  • The method is simpler to implement and parametrize than bucketing, as it avoids the need to tune bin sizes and distributions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.