Skip to main content
QUICK REVIEW

[Paper Review] Streaming Chunk-Aware Multihead Attention for Online End-to-End Speech Recognition

Shiliang Zhang, Zhifu Gao|arXiv (Cornell University)|May 21, 2020
Speech Recognition and SynthesisComputer Science31 references13 citations
TL;DR

This paper proposes Streaming Chunk-Aware Multihead Attention (SCAMA) and a latency-controlled memory-equipped self-attention network (LC-SAN-M) for online end-to-end speech recognition. By using a jointly trained predictor to control decoder output based on chunk-level encoder states, SCAMA enables low-latency, streaming inference with minimal performance degradation, achieving a state-of-the-art 7.39% CER on AISHELL-1 without external language models.

ABSTRACT

Recently, streaming end-to-end automatic speech recognition (E2E-ASR) has gained more and more attention. Many efforts have been paid to turn the non-streaming attention-based E2E-ASR system into streaming architecture. In this work, we propose a novel online E2E-ASR system by using Streaming Chunk-Aware Multihead Attention(SCAMA) and a latency control memory equipped self-attention network (LC-SAN-M). LC-SAN-M uses chunk-level input to control the latency of encoder. As to SCAMA, a jointly trained predictor is used to control the output of encoder when feeding to decoder, which enables decoder to generate output in streaming manner. Experimental results on the open 170-hour AISHELL-1 and an industrial-level 20000-hour Mandarin speech recognition tasks show that our approach can significantly outperform the MoChA-based baseline system under comparable setup. On the AISHELL-1 task, our proposed method achieves a character error rate (CER) of 7.39%, to the best of our knowledge, which is the best published performance for online ASR.

Motivation & Objective

  • To address the challenge of applying full-attention mechanisms in streaming end-to-end ASR, where full sequence attention is non-streaming and impractical.
  • To reduce performance degradation in online attention mechanisms caused by fixed hyperparameters like window size or thresholding, which lack robustness in real-world scenarios.
  • To develop a streaming attention mechanism that maintains strong context modeling while enabling low-latency inference through dynamic, learnable chunk-based control.
  • To achieve state-of-the-art performance in online ASR without relying on external language models, particularly on large-scale industrial datasets.

Proposed method

  • Proposes LC-SAN-M, a latency-controlled variant of memory-equipped self-attention (SAN-M), where encoder output is constrained by chunk-level input to control latency.
  • Introduces SCAMA, a streaming multihead attention mechanism that uses a jointly trained predictor to estimate the number of tokens per input chunk, enabling dynamic decoder activation.
  • The predictor is trained with cross-entropy loss instead of CTC loss, reducing the mismatch between training and inference compared to CTC-based triggering methods.
  • SCAMA limits future context by attending only to relevant encoder chunks, preserving long-range dependencies while maintaining streaming capability.
  • The model uses a standard Transformer-based encoder-decoder architecture with multihead attention, but applies chunk-aware masking and dynamic attention control during decoding.
  • The system is trained end-to-end with joint optimization of encoder, decoder, and token-prediction head, enabling alignment and context modeling without external supervision.

Experimental results

Research questions

  • RQ1Can a learnable, chunk-aware attention mechanism reduce performance degradation in online ASR compared to fixed-threshold or window-based attention?
  • RQ2Does replacing CTC-based triggering with a cross-entropy trained predictor improve inference robustness and performance in streaming ASR?
  • RQ3Can SCAMA achieve near-non-streaming performance in online settings while maintaining low latency?
  • RQ4How does SCAMA compare to MoChA and other online attention mechanisms on large-scale industrial ASR tasks?

Key findings

  • On the 170-hour AISHELL-1 dataset, the proposed SCAMA-based system achieves a character error rate (CER) of 7.39%, which is, to the best of the authors' knowledge, the state-of-the-art result for online end-to-end ASR without external language models.
  • The LC-SAN-M encoder with chunk size 10 causes a 7% relative performance degradation compared to the full-sequence attention baseline, indicating that latency control introduces a small but measurable cost.
  • Replacing full-sequence attention with SCAMA results in a 6.8% relative performance degradation, which is significantly lower than the degradation seen with MoChA-based systems.
  • On the 20,000-hour industrial Mandarin ASR task, the SCAMA-based system outperforms both CTC and MoChA-based systems under comparable latency constraints.
  • The SCAMA model trains 3× faster than MoChA when using 32 V100 GPUs, indicating improved training efficiency.
  • Visualization shows that full-attention mechanisms perform context modeling beyond simple alignment, justifying the need for mechanisms like SCAMA that preserve long-range context while enabling streaming.

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.