Skip to main content
QUICK REVIEW

[Paper Review] Towards Online End-to-end Transformer Automatic Speech Recognition

Emiru Tsunoo, Yosuke Kashiwagi|arXiv (Cornell University)|Oct 25, 2019
Speech Recognition and SynthesisComputer Science32 references31 citations
TL;DR

This paper proposes an online end-to-end Transformer ASR system by integrating a novel monotonic chunkwise attention (MoChA)-inspired decoding mechanism into the Transformer decoder, leveraging multi-head attention and residual connections to enable real-time inference. The method outperforms conventional chunkwise approaches on WSJ and AISHELL-1, achieving 6.6% WER and 9.7% CER respectively with full context utilization.

ABSTRACT

The Transformer self-attention network has recently shown promising performance as an alternative to recurrent neural networks in end-to-end (E2E) automatic speech recognition (ASR) systems. However, Transformer has a drawback in that the entire input sequence is required to compute self-attention. We have proposed a block processing method for the Transformer encoder by introducing a context-aware inheritance mechanism. An additional context embedding vector handed over from the previously processed block helps to encode not only local acoustic information but also global linguistic, channel, and speaker attributes. In this paper, we extend it towards an entire online E2E ASR system by introducing an online decoding process inspired by monotonic chunkwise attention (MoChA) into the Transformer decoder. Our novel MoChA training and inference algorithms exploit the unique properties of Transformer, whose attentions are not always monotonic or peaky, and have multiple heads and residual connections of the decoder layers. Evaluations of the Wall Street Journal (WSJ) and AISHELL-1 show that our proposed online Transformer decoder outperforms conventional chunkwise approaches.

Motivation & Objective

  • To enable end-to-end online automatic speech recognition using the Transformer architecture, which traditionally requires full input for self-attention.
  • To overcome the limitation of standard block processing in decoders by introducing a trainable, context-aware chunk-shifting mechanism.
  • To adapt monotonic chunkwise attention (MoChA) to the Transformer decoder, which has non-monotonic attention patterns and multiple residual connections.
  • To maintain high ASR accuracy in online settings by utilizing past encoded features across chunks while ensuring real-time inference.
  • To develop a novel training algorithm for MoChA that handles multiple attention heads and residual connections in the decoder layers.

Proposed method

  • Introduces a trigger-based chunk-shifting mechanism in the Transformer decoder using source-target attention (STA) to determine optimal chunk boundaries.
  • Employs a context-aware inheritance mechanism in the encoder, where a context embedding vector from the previous block preserves global linguistic, channel, and speaker attributes.
  • Adapts MoChA to the Transformer decoder by formulating a trainable monotonic energy function that operates across multiple attention heads and residual connections.
  • Uses source-target attention (STA) computed within each chunk or using all past encoded frames to guide attention and improve alignment.
  • Applies a hybrid training objective combining standard cross-entropy loss with a differentiable approximation of the MoChA chunking process to stabilize training.
  • Utilizes beam search decoding with shallow fusion using external language models, and combines CTC and Transformer outputs with learned weights for rescoring.

Experimental results

Research questions

  • RQ1Can a monotonic chunkwise attention mechanism be effectively adapted to the Transformer decoder, which has non-monotonic attention patterns?
  • RQ2How can the unique properties of multi-head attention and residual connections in the Transformer decoder be leveraged to improve online ASR performance?
  • RQ3Can context-aware block processing in the encoder be combined with an online decoding strategy to achieve full online end-to-end ASR with minimal accuracy degradation?
  • RQ4Does using all past encoded features in the attention mechanism improve performance in online settings, especially for low-resource or morphologically complex languages like Mandarin?
  • RQ5How does the proposed MoChA training algorithm handle the non-monotonic nature of Transformer attention while maintaining training stability?

Key findings

  • The proposed online Transformer decoder achieved 6.6% WER on the WSJ test set, outperforming the baseline batch-decoding model (6.0%) and all other online methods.
  • On the AISHELL-1 Mandarin dataset, the proposed method achieved 9.7% CER, significantly outperforming the next best online method (18.7% CER) and approaching the performance of offline models.
  • Using all past encoded features in the attention computation led to a 15.3% relative WER reduction on WSJ and a 49.2% relative CER reduction on AISHELL-1 compared to the median-based chunking baseline.
  • The model with full context utilization achieved the highest accuracy among all online methods, demonstrating that the proposed MoChA mechanism effectively captures long-range dependencies.
  • The novel MoChA training algorithm successfully stabilized training in the presence of multiple attention heads and residual connections, enabling reliable online inference.
  • The integration of CTC and Transformer outputs with optimal fusion weights (0.3 for WSJ, 0.7 for AISHELL-1) further improved recognition accuracy, confirming the effectiveness of hybrid decoding.

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.