Skip to main content
QUICK REVIEW

[Paper Review] Exploring Transformers for Large-Scale Speech Recognition

Liang Lu, Changliang Liu|arXiv (Cornell University)|May 19, 2020
Speech Recognition and SynthesisComputer Science25 references14 citations
TL;DR

This paper investigates large-scale speech recognition using Transformers, demonstrating that with 65,000 hours of training data, a deep Transformer model achieves a 6% relative WER reduction over BLSTM in offline settings. In streaming scenarios, Transformer-XL matches LC-BLSTM performance under an 800ms latency constraint, overcoming limitations of standard attention-masked streaming Transformers.

ABSTRACT

While recurrent neural networks still largely define state-of-the-art speech recognition systems, the Transformer network has been proven to be a competitive alternative, especially in the offline condition. Most studies with Transformers have been constrained in a relatively small scale setting, and some forms of data argumentation approaches are usually applied to combat the data sparsity issue. In this paper, we aim at understanding the behaviors of Transformers in the large-scale speech recognition setting, where we have used around 65,000 hours of training data. We investigated various aspects on scaling up Transformers, including model initialization, warmup training as well as different Layer Normalization strategies. In the streaming condition, we compared the widely used attention mask based future context lookahead approach to the Transformer-XL network. From our experiments, we show that Transformers can achieve around 6% relative word error rate (WER) reduction compared to the BLSTM baseline in the offline fashion, while in the streaming fashion, Transformer-XL is comparable to LC-BLSTM with 800 millisecond latency constraint.

Motivation & Objective

  • To evaluate Transformer performance in large-scale speech recognition with 65,000 hours of training data.
  • To address challenges in scaling Transformers across 64 GPUs, including model initialization and warmup training.
  • To compare streaming Transformer variants—attention-masked and Transformer-XL—against LC-BLSTM under latency constraints.
  • To investigate the impact of model depth, width, and normalization strategies on recognition accuracy.
  • To understand why streaming Transformers underperform compared to offline counterparts and propose effective solutions.

Proposed method

  • Trained deep Transformers using data-parallelism across up to 64 GPUs with synchronized batch normalization and gradient clipping.
  • Employed depth-scale initialization and learning rate warmup to stabilize training of deep models.
  • Used multi-head self-attention with scaled dot-product attention: $\text{Attention}(Q,K,V) = \text{Softmax}(\frac{QK^T}{\sqrt{d_k}})V$.
  • Applied interleaved convolutional layers to preserve sequence monotonicity in streaming Transformers, mitigating self-attention reordering effects.
  • Implemented Transformer-XL with persistent memory of hidden states from previous chunks, enabling long-context modeling with $[-40,40]$ context.
  • Used context window constraints: $[-\infty,\infty]$ for offline, $[-40,40]$ for streaming, and $[-1,40]$ for LC-BLSTM as baseline.

Experimental results

Research questions

  • RQ1Can Transformers outperform BLSTM in large-scale speech recognition with 65k hours of data?
  • RQ2What training techniques are essential for scaling deep Transformers across multiple GPUs in large-scale settings?
  • RQ3Why do standard attention-masked streaming Transformers underperform compared to offline models, and how can this be mitigated?
  • RQ4How does Transformer-XL compare to LC-BLSTM in streaming speech recognition under strict latency constraints?
  • RQ5What is the impact of model depth and width on recognition accuracy in both offline and streaming scenarios?

Key findings

  • The offline Transformer achieved a 6% relative WER reduction compared to the BLSTM baseline with similar model size.
  • In the streaming setting, Transformer-XL achieved a WER of 12.2 on the eval set, matching LC-BLSTM under 800ms latency.
  • Attention-masked streaming Transformers without interleaved convolutions suffered 18%–25% WER degradation compared to offline models.
  • Interleaved convolution layers reduced WER loss in streaming Transformers by preserving input sequence monotonicity.
  • Deeper Transformers (up to 48 layers) showed marginal gains, suggesting overfitting or need for stronger regularization.
  • Transformer-XL with 48 layers achieved 18.5 WER on the dev set, indicating potential for further improvement with better regularization.

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.