Non-Autoregressive ASR Modeling Using Pre-Trained Language Models for Chinese Speech Recognition

Fu-Hao Yu, Kuan-Yu Chen, Ke-Han LuIEEE/ACM Trans. ASLP 2022 · DOI

TL;DR

This paper introduces NAR-BERT-ASR, a novel non-autoregressive end-to-end Automatic Speech Recognition (ASR) system that leverages the power of BERT for improved performance and faster inference. By treating speech recognition as a downstream task of BERT and fine-tuning it, the model achieves state-of-the-art results while maintaining the speed advantages of non-autoregressive approaches.

What Problem Does This Paper Address?

Traditional Automatic Speech Recognition (ASR) systems often involve complex pipelines with multiple components (acoustic model, language model, lexicon). While end-to-end deep learning models have simplified this, autoregressive (AR) models, which predict tokens sequentially, suffer from a decoding bottleneck, limiting inference speed. Non-autoregressive (NAR) models address this by predicting tokens in parallel, offering faster inference but sometimes sacrificing accuracy. Simultaneously, pre-trained language models like BERT have revolutionized Natural Language Processing (NLP) by providing powerful contextualized word representations. This paper aims to bridge the gap by integrating the strengths of both NAR ASR and pre-trained language models (specifically BERT) to create a faster and more accurate ASR system.

Methods

The proposed NAR-BERT-ASR system consists of two main components: an acoustic encoder and a text generation decoder.

  • Acoustic Encoder: This component is inspired by existing speech Transformer architectures. It uses convolutional neural networks (CNNs) for initial feature extraction, followed by positional embeddings and a stack of six Transformers to model long-term dependencies. Key modifications include using Gated Linear Units (GLUs) as activation functions and a pre-norm structure for stabilization. The encoder outputs a set of high-level acoustic features.
  • Text Generation Decoder (BERT-based): The core innovation here is using a pre-trained BERT model as the decoder. The acoustic embeddings from the encoder are treated as token embeddings for BERT. This allows the ASR system to directly benefit from BERT's rich language understanding capabilities. The model is trained to perform position-wise classification, predicting each token independently given the acoustic features.

The training process involves two stages: first, pre-training the acoustic encoder from scratch, and then fine-tuning the entire NAR-BERT-ASR model end-to-end.

Datasets

The primary dataset used for training and evaluation is the AISHELL-1 dataset, which contains 178 hours of Mandarin speech.

Key Insights and Ideas

  • BERT as a powerful ASR decoder: The paper demonstrates that BERT, a model primarily designed for NLP tasks, can be effectively repurposed as a decoder for ASR, significantly boosting performance.
  • Bridging NAR speed and AR accuracy: By combining a non-autoregressive architecture with BERT's language modeling capabilities, the system achieves both fast inference and competitive accuracy, overcoming a key trade-off in ASR.
  • Speech recognition as a downstream task: Framing ASR as a downstream task of BERT allows for a systematic and theoretically sound way to inject pre-trained language model knowledge into the ASR pipeline.
  • Importance of acoustic encoder pre-training: Ablation studies highlight that pre-training the acoustic encoder is crucial for achieving good performance, suggesting that the acoustic encoder is more challenging to train than the BERT-based decoder.

Key Results

  • State-of-the-art performance: NAR-BERT-ASR achieved a Character Error Rate (CER) of 5.1% on the test set of the AISHELL-1 dataset, outperforming most other non-autoregressive and even some autoregressive models.
  • Fast inference: The model achieved a Real-Time Factor (RTF) of 0.0057, indicating it is significantly faster than traditional autoregressive models (e.g., ESPnet Transformer at 0.4200). It is noted to be at least 70 times faster than classical AR models.
  • BERT's contribution: The pre-trained BERT model provided a substantial improvement (around 21% relative improvement) compared to a similar model without BERT pre-training.

Limitations and Future Work

  • Inference Speed: While significantly faster than AR models, the computational burden of the self-attention mechanism in the Transformer encoder still presents a challenge for further speeding up inference.
  • Future Directions: The authors plan to explore improvements to the architecture, investigate different training objectives, and experiment with other pre-trained language models (e.g., RoBERTa, XLNet, Albert). They also aim to evaluate the model on other benchmark corpora.

Summary updated

BibTeX
@article{yu2022non,
  author = {Fu-Hao Yu and Kuan-Yu Chen and Ke-Han Lu},
  title = {{Non-Autoregressive ASR Modeling Using Pre-Trained Language Models for Chinese Speech Recognition}},
  journal = {IEEE/ACM Trans. ASLP},
  year = {2022},
  doi = {10.1109/taslp.2022.3166400},
}
Figure