Improving Transformer-based Speech Recognition Using Unsupervised Pre-training

Dongwei Jiang, Xiaoning Lei, Wubo Li, Ne Luo, Yuxuan Hu, Wei Zou, Xiangang LiarXiv 2019

Introduction

Building high-quality Automatic Speech Recognition (ASR) systems typically requires thousands of hours of transcribed audio, a resource that is both expensive and time-consuming to produce. In contrast, vast amounts of unlabeled audio data are readily available. While unsupervised pre-training has revolutionized Natural Language Processing (NLP) through models like BERT, adapting these techniques to the continuous and locally smooth nature of speech signals remains challenging. Previous methods, such as Contrastive Predictive Coding (CPC) and Autoregressive Predictive Coding (APC), are primarily uni-directional. This paper introduces Masked Predictive Coding (MPC), a bi-directional pre-training strategy specifically designed for the Transformer architecture, currently the state-of-the-art backbone for ASR.

Methodology

The core of the proposed approach is Masked Predictive Coding (MPC), which treats audio frames—specifically Filter Bank (FBANK) features—as discrete tokens similar to words in a sentence.

Masking and Reconstruction

Following the BERT paradigm, the model masks 15% of the input frames. Within this subset, 80% are replaced with zero vectors, 10% with frames from random positions, and 10% remain unchanged. The Transformer encoder processes this corrupted input, and the model is trained to minimize the L1 loss between its predictions and the original, unmasked FBANK features.

The Downsampling Trick

A critical technical contribution is the implementation of 8-fold downsampling during pre-training. Because speech signals are locally smooth, a standard Transformer could easily "cheat" the reconstruction task by interpolating between adjacent frames. Downsampling forces the model to learn higher-level, more robust representations rather than relying on local patterns.

Fine-Tuning Workflow

After the pre-training phase, the specialized MPC layer is removed. A standard Transformer decoder is then integrated, and the entire system is fine-tuned using labeled data for the specific ASR task.

Overview of the MPC pre-training (a) and fine-tuning (b) stages.

Experimental Setup

The researchers evaluated MPC using several Mandarin datasets to test the impact of data scale and speaking style:

  • Open Mandarin (~1500 hours): A compilation of public datasets including HKUST, AISHELL-1, and others.
  • Didi Internal Datasets (~20,000 hours): Large-scale datasets categorized by style—"Didi Dictation" (reading) and "Didi Callcenter" (spontaneous).
  • Benchmarks: The models were tested on HKUST (spontaneous telephone speech) and AISHELL-1 (reading speech).

Results and Discussion

The MPC method demonstrated consistent performance improvements across all benchmarks. As shown in the results table below, increasing the volume and relevance of pre-training data leads to significant reductions in Character Error Rate (CER).

Performance comparison of MPC pre-training across various datasets and configurations.

Key Insights

  • Bi-directionality: Unlike uni-directional models like APC, MPC leverages both past and future context, which aligns perfectly with the bi-directional attention mechanism of Transformers.
  • Style Matching: The study found that the style of the pre-training data is often more important than the sheer volume. For the spontaneous HKUST task, pre-training on 5,000 hours of spontaneous "Callcenter" data was more effective than using 10,000 hours of "Reading" data.
  • Quantitative Gains: On the HKUST benchmark, the best MPC-pre-trained model achieved a CER of 21.0%, representing an 11.8% relative reduction over the baseline. On AISHELL-1, the model reached a CER of 7.4%, a 22.1% relative reduction.
  • Faster Convergence: Beyond final accuracy, MPC serves as a superior initialization, allowing the model to converge significantly faster during the supervised fine-tuning stage.

Conclusion

Masked Predictive Coding effectively bridges the gap between unsupervised pre-training and Transformer-based speech recognition. While supervised adaptation still holds a slight edge, MPC significantly narrows this gap and scales effectively with more data. Future research will explore even larger datasets and alternative training objectives to further capture the deep linguistic structures inherent in raw audio.

Summary updated

BibTeX
@misc{jiang2019improving,
  author = {Dongwei Jiang and Xiaoning Lei and Wubo Li and Ne Luo and Yuxuan Hu and Wei Zou and Xiangang Li},
  title = {{Improving Transformer-based Speech Recognition Using Unsupervised Pre-training}},
  year = {2019},
  eprint = {1910.09932},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.09932},
}
Figure