A Single-Step Non-Autoregressive Automatic Speech Recognition Architecture with High Accuracy and Inference Speed

Ziyang Zhuang, Chenfeng Miao, Kun Zou, Shuai Gong, Ming Fang, Tao Wei, Zijian Li, Wei Hu, Shaojun Wang, Jing XiaoarXiv 2024

TL;DR

EffectiveASR is a novel single-step non-autoregressive (NAR) speech recognition model that finally bridges the accuracy gap with traditional autoregressive models while delivering a massive 30x inference speedup. By utilizing a compact architecture centered on a novel Index Mapping Vector (IMV) alignment mechanism, it achieves state-of-the-art performance on major Mandarin benchmarks.

What Problem Does This Paper Address?

Most high-performance Automatic Speech Recognition (ASR) systems are autoregressive (AR), meaning they predict text one character at a time, where each prediction depends on the previous ones. While accurate, this is computationally slow because it cannot be parallelized.

Non-autoregressive (NAR) models aim to predict all tokens simultaneously, offering much higher speeds. However, they historically suffer from two major issues:

  1. Alignment: It is difficult for the model to know which part of the audio signal corresponds to which text token without sequential processing.
  2. Accuracy: Because they assume tokens are independent, they often lag behind AR models in recognition quality.

Existing solutions like Paraformer have tried to fix this with complex two-pass training or iterative refinement, but these additions make the models less efficient and harder to train.

Methods

The authors introduce EffectiveASR, a single-step NAR architecture that focuses on learning a "Hard Monotonic Alignment" (HMA). The system consists of six modules, but the "secret sauce" lies in how it handles alignment during training versus inference.

Fig. 1. The model architecture of the proposed EffectiveASR. (N represents the matrix multiplication operation)
  • Alignment Generator (Training Only): During training, the model has access to the ground-truth text. It uses an Index Mapping Vector (IMV) to calculate exactly where each audio frame should align in the text sequence. Crucially, it enforces a monotonicity constraint using a ReLU activation, ensuring the model learns that speech always moves forward in time.
  • Attention Reconstruction: This module takes the generated alignment and builds a distance-aware attention matrix. This matrix "shrinks" the long sequence of audio features into a shorter sequence of semantic encodings that match the length of the target text.
  • Alignment Predictor (Inference): Since we don't have the text during real-world use, a 1D-Convolutional predictor learns to estimate these alignments directly from the audio features.
  • Single-Step Decoding: Unlike iterative models that refine their guesses over multiple passes, EffectiveASR generates the final text in one single parallel step.

Datasets

The model was evaluated on two widely recognized Mandarin Chinese benchmarks:

  • AISHELL-1: A 178-hour corpus used for standard benchmarking.
  • AISHELL-2: A much larger 1000-hour corpus representing industrial-scale data.

The researchers used standard data augmentation techniques like SpecAugment and speed perturbation to ensure the model's robustness.

Key Insights and Ideas

  • Refined Alignments: By comparing alignment plots, the authors show that EffectiveASR produces much cleaner, more consistent alignments than the standard cross-attention used in AR models. This "refined" alignment is a primary driver of its high accuracy.
Fig. 3. Alignment plots of both the baseline and proposed model. The first plot is the alignment plot of the Conformer, while the second plot is the alignment constructed by the proposed EffectiveASR. The horizontal axis represents the input frame step, and the vertical axis represents the output step.
  • Efficiency through Compactness: Unlike other high-performing NAR models (like E-Paraformer) that require complex two-pass training, EffectiveASR uses a simpler, more compact structure that is easier to train end-to-end.
  • Breaking the Independence Assumption: While NAR models often struggle with token interdependency, the distance-aware attention reconstruction effectively captures enough context to rival AR models without needing sequential decoding.

Key Results

EffectiveASR sets a new bar for NAR models, even outperforming the leading AR Conformer in some metrics.

Table showing CER and RTF results across different models and datasets.
  • Accuracy: On the AISHELL-1 test set, the Large model achieved a Character Error Rate (CER) of 4.62%, outperforming the AR Conformer (5.21%) and the previous NAR leader, E-Paraformer (4.79%).
  • Speed: The model achieved a 30x inference speedup compared to the AR Conformer. It is also twice as fast as the original Paraformer.
  • Scalability: On the massive AISHELL-2 dataset, it maintained its lead with a CER of 5.76%, proving it can handle large-scale industrial data.

Limitations and Future Work

  • Language Specificity: The current study focuses exclusively on Mandarin Chinese. Mandarin is a character-based language; the authors note that future work will need to explore how this architecture handles word-based languages like English.
  • Language Modeling: The results were achieved without an external language model (LM). While this keeps the system fast, integrating a shallow-fusion LM could potentially lower the error rates even further at the cost of some inference speed.

Summary updated

BibTeX
@misc{zhuang2024single,
  author = {Ziyang Zhuang and Chenfeng Miao and Kun Zou and Shuai Gong and Ming Fang and Tao Wei and Zijian Li and Wei Hu and Shaojun Wang and Jing Xiao},
  title = {{A Single-Step Non-Autoregressive Automatic Speech Recognition Architecture with High Accuracy and Inference Speed}},
  year = {2024},
  eprint = {2406.08835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.08835},
}
Figure