Skip to main content
QUICK REVIEW

[Paper Review] Synchronous Transformers for End-to-End Speech Recognition

Zhengkun Tian, Jiangyan Yi|arXiv (Cornell University)|Dec 6, 2019
Speech Recognition and SynthesisComputer Science19 references5 citations
TL;DR

This paper proposes the Synchronous Transformer (Sync-Transformer), a novel end-to-end speech recognition model that enables online, streaming inference by processing input in fixed-length chunks and decoding synchronously. By forcing self-attention in the encoder to attend only to left contexts and using a forward-backward algorithm to optimize all alignment paths during training, the model achieves a character error rate (CER) of 8.91% on the AISHELL-1 Mandarin dataset, matching state-of-the-art transformer performance while enabling real-time deployment.

ABSTRACT

For most of the attention-based sequence-to-sequence models, the decoder predicts the output sequence conditioned on the entire input sequence processed by the encoder. The asynchronous problem between the encoding and decoding makes these models difficult to be applied for online speech recognition. In this paper, we propose a model named synchronous transformer to address this problem, which can predict the output sequence chunk by chunk. Once a fixed-length chunk of the input sequence is processed by the encoder, the decoder begins to predict symbols immediately. During training, a forward-backward algorithm is introduced to optimize all the possible alignment paths. Our model is evaluated on a Mandarin dataset AISHELL-1. The experiments show that the synchronous transformer is able to perform encoding and decoding synchronously, and achieves a character error rate of 8.91% on the test set.

Motivation & Objective

  • To address the asynchronous encoding-decoding problem in standard attention-based sequence-to-sequence models that hinders online speech recognition.
  • To enable real-time, streaming inference by allowing the decoder to generate output immediately after each fixed-length input chunk is processed.
  • To maintain high recognition accuracy comparable to non-streaming transformers while supporting online deployment.
  • To develop a training method that optimizes all possible alignment paths using a forward-backward algorithm, avoiding reliance on forced alignment or complex attention mechanisms.

Proposed method

  • The encoder uses causal self-attention, restricting each token to attend only to its left context, eliminating dependency on future tokens.
  • The input sequence is split into overlapping chunks of fixed length W, with overlap B between adjacent chunks to ensure smooth information flow.
  • The decoder generates output symbols chunk by chunk, starting immediately after each encoder chunk is processed.
  • During training, a forward-backward algorithm is applied to sum over all possible alignment paths, computing the negative log-likelihood loss similar to RNN-Transducer and SA-T.
  • A 2D convolutional front-end is used to downsample the input feature sequence and project it to a higher-dimensional space before encoder processing.
  • The model combines the strengths of the Transformer and self-attention transducer (SA-T) architectures, enabling end-to-end, streaming, and accurate speech recognition.

Experimental results

Research questions

  • RQ1Can a transformer-based model achieve synchronous encoding and decoding to support online speech recognition?
  • RQ2How does restricting self-attention to left contexts affect model performance and streaming capability?
  • RQ3Can a forward-backward algorithm effectively optimize alignment paths in a self-attention-based model without relying on RNNs or forced alignment?
  • RQ4What is the optimal balance between chunk length and overlap for maintaining recognition accuracy in a streaming setting?
  • RQ5How does the proposed model compare in accuracy and inference efficiency to existing end-to-end models like LAS, RNN-T, and standard transformers?

Key findings

  • The Sync-Transformer achieves a character error rate (CER) of 8.91% on the AISHELL-1 test set, demonstrating performance comparable to non-streaming transformer models.
  • The model with a chunk length of 10 and overlap length of 3 achieves the best performance, outperforming configurations with 0, 1, 2, or 4 overlap lengths.
  • The model outperforms previous RNN-free transducer models like Chunk-Flow SA-T, which had higher CER (9.80% vs. 8.91%) and required more decoding steps.
  • The Sync-Transformer enables online, streaming inference with only a minor degradation in accuracy compared to the full-attention transformer (8.64% CER on test set).
  • The model requires fewer decoding steps than RNN-T and SA-T, reducing memory and time costs during inference.
  • The model shows a slight increase in delete errors and confusion with phonetically similar words, indicating room for improvement in robustness.

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.