NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transformers with convolutional context for ASR

Abdelrahman Mohamed, Dmytro Okhonko, Luke ZettlemoyerarXiv 2019

Abstract

The recent success of transformer networks for neural machine translation and other NLP tasks has led to a surge in research work trying to apply it for speech recognition. Recent efforts studied key research questions around ways of combining positional embedding with speech features, and stability of optimization for large scale learning of transformer networks. In this paper, we propose replacing the sinusoidal positional embedding for transformers with convolutionally learned input representations. These contextual representations provide subsequent transformer blocks with relative positional information needed for discovering long-range relationships between local concepts. The proposed system has favorable optimization characteristics where our reported results are produced with fixed learning rate of 1.0 and no warmup steps. The proposed model achieves a competitive 4.7% and 12.9% WER on the Librispeech "test clean" and "test other" subsets when no extra LM text is provided.

Introduction

Transformers have revolutionized Natural Language Processing (NLP), but adapting them for Automatic Speech Recognition (ASR) has presented unique challenges. A core component of the Transformer is the self-attention mechanism, which is inherently position-agnostic. To process sequences, standard Transformers rely on sinusoidal positional embeddings—fixed mathematical functions added to the input to provide order.

However, speech signals are continuous and highly dependent on local context, unlike discrete text tokens. Previous research found that Transformer optimization for ASR was often "brittle," requiring complex learning rate warmup schedules and specific hyperparameter tuning to achieve convergence. This paper from Facebook AI Research (FAIR) proposes replacing these fixed embeddings with convolutional layers to capture local context and provide implicit positional information.

Architecture and Methodology

The proposed architecture employs a "division of labor" between convolutional and self-attention layers. Instead of adding a fixed mathematical signal to the input, the model uses 2D convolutional blocks in the encoder and 1D convolutional blocks in the decoder.

Overall architecture and Transformer block details

Convolutional Context

The convolutional layers learn to build "atomic concepts" by processing small, local windows of audio frames. Because a convolution only looks at neighboring frames, the network naturally learns the relative order of sounds through the hierarchy of the layers. This removes the need for explicit sinusoidal positional encodings.

Details of the 1-D (N) and 2-D (K) convolutional blocks

Transformer Blocks

Once the convolutional layers have extracted local features and implicit relative positional information, standard Transformer blocks take over to model long-range sequential relationships. The research found that a deep encoder (up to 16 blocks) is critical for performance, while the decoder can remain relatively shallow (6 blocks).

Stable Optimization

A significant advantage of this approach is optimization stability. By using convolutions to handle local dependencies, the "brittleness" often associated with Transformers in ASR is mitigated. The authors successfully trained the model using a fixed learning rate of 1.0 with the AdaDelta optimizer and zero warmup steps, greatly simplifying the training recipe compared to standard Transformer implementations.

Experimental Results

The model was evaluated on the Librispeech dataset, a standard 1,000-hour benchmark of English speech.

  • Accuracy: The best configuration achieved a Word Error Rate (WER) of 4.7% on "test clean" and 12.9% on "test other."
  • Relative Improvement: Compared to previous state-of-the-art systems without an external language model (LM), this approach provided a 12% to 16% relative reduction in WER on the more challenging "other" subsets.
  • Efficiency: The canonical model contains approximately 223M parameters and can be trained in roughly 24 hours using 16 GPUs.

Crucially, these results were achieved without an external LM, meaning the system relies entirely on the acoustic signal provided during training.

Conclusion and Future Work

This work demonstrates that the difficulties in applying Transformers to ASR may stem from how positional information is introduced. By leveraging convolutional layers for local context, the model achieves both better performance and more stable training.

While the results are impressive for an acoustic-only model, future work could involve integrating an external language model, which typically provides additive gains in ASR systems. Additionally, the current "offline" nature of the encoder—which looks at the entire utterance—presents an opportunity for future research into streaming-capable architectures for real-time applications.

Summary updated

BibTeX
@misc{mohamed2019transformers,
  author = {Abdelrahman Mohamed and Dmytro Okhonko and Luke Zettlemoyer},
  title = {{Transformers with convolutional context for ASR}},
  year = {2019},
  eprint = {1904.11660},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.11660},
}
Figure