Training for Speech Recognition on Coprocessors

Sebastian Baunsgaard, Sebastian Benjamin Wrede, Pinar Tözün

Introduction

Training modern Automatic Speech Recognition (ASR) systems is notoriously resource-intensive, often requiring weeks of computation on expensive clusters. This creates a significant barrier for researchers and developers. Furthermore, the field lacks standardized benchmarks for training efficiency, with most existing metrics focusing on inference speed rather than the full Time-to-Accuracy (TTA)—the actual wall-clock time required to reach a specific performance goal.

This paper investigates whether expensive, high-end enterprise GPUs are strictly necessary for ASR research or if repurposed consumer-grade hardware, such as "crypto-mining" rigs, can suffice. We evaluate end-to-end ASR training across three hardware tiers, ranging from a $2,600 DIY setup to a $26,000 enterprise server.

Methodology

The study utilizes an acoustic model inspired by Baidu’s Deep Speech 2. The architecture is designed to map audio sequences directly to text using a hybrid neural network stack.

The hybrid acoustic model architecture based on Deep Speech 2.

The pipeline consists of:

  • Feature Extraction: Raw audio is converted into Log Mel spectrograms and Mel-frequency cepstral coefficients (MFCCs).
  • Model Architecture: A stack featuring one Convolutional Neural Network (CNN) layer for spatial feature extraction, five Long Short-Term Memory (LSTM) layers for temporal modeling, and a final Feed-Forward Neural Network (FFNN).
  • Loss Function: Connectionist Temporal Classification (CTC) is employed to handle unaligned audio-text sequences.
  • Optimization: The AdaDelta optimizer was used to manage learning rates automatically, minimizing the need for manual hyperparameter tuning.

Training was conducted on the LibriSpeech corpus (1,000 hours), using a mix of "clean" and "noisy" subsets. To maintain manageable training cycles for comparison, audio files exceeding 16.7 seconds were excluded.

Hardware Benchmarking

The researchers compared three distinct systems to evaluate the relationship between cost and performance:

Comparison of the three hardware systems: Sys1$ (budget), Sys2$ (mid-range), and Sys10$ (enterprise).
  1. Sys1$ (Budget): A $2,600 rig using a mining motherboard and four RTX 2070 GPUs. This system faced bottlenecks due to asymmetric data transfer over slow PCIe 2.0 x1 lanes.
  2. Sys2$ (Mid-range): A $5,000 setup featuring four GTX 1080 Ti GPUs.
  3. Sys10$ (Enterprise): A $26,000 server equipped with two Tesla V100 GPUs (32GB).

Results and Discussion

The primary finding of this study is the distinction between hardware efficiency and statistical efficiency. While high-end systems like Sys10$ offer superior hardware throughput (processing ~60 elements per second vs. ~20 on Sys1$), they require larger batch sizes to utilize their memory effectively.

Time-to-Accuracy (TTA)

Sys10$ reached the initial 10% Character Error Rate (CER) target in 511 minutes, approximately 60% faster than the budget Sys1$ (820 minutes). However, this advantage diminished as training progressed.

Final Accuracy and Regularization

Surprisingly, the budget Sys1$ achieved the best final Word Error Rate (17.32%) on the clean test set, outperforming the enterprise Sys10$ (19.45%). This is attributed to the smaller batch sizes necessitated by the lower memory of the RTX 2070s. Smaller batches often act as a form of regularization, leading to better generalization and higher peak accuracy, even if the initial convergence is slower.

Conclusion

The results demonstrate that a 10x increase in hardware investment does not yield a 10x improvement in ASR performance. While expensive hardware provides a "head start" in speed, budget-friendly setups remain highly viable for research. Future improvements, such as mixed-precision training and asynchronous SGD, could further narrow the gap by mitigating the PCIe bottlenecks found in consumer-grade multi-GPU rigs.

Summary updated

BibTeX
@inproceedings{baunsgaard2020training,
  author = {Sebastian Baunsgaard and Sebastian Benjamin Wrede and Pinar Tözün},
  title = {{Training for Speech Recognition on Coprocessors}},
  booktitle = {ADMS@VLDB},
  year = {2020},
}
Figure