On using 2D sequence-to-sequence models for speech recognition

Parnia Bahar, Albert Zeyer, Ralf Schlüter, Hermann NeyarXiv 2019 · arXiv

TL;DR

This paper introduces a novel 2D Long Short-Term Memory (2DLSTM) architecture for automatic speech recognition (ASR) that completely replaces the traditional attention mechanism. By processing input audio and output text sequences jointly in a 2D grid, the model achieves word error rates competitive with standard attention-based sequence-to-sequence models while inherently capturing monotonic alignments.

What Problem Does This Paper Address?

Modern automatic speech recognition systems heavily rely on attention-based encoder-decoder models. While effective, the attention mechanism treats input (audio) and output (text) as separate 1D sequences and attempts to align them flexibly.

However, speech is inherently monotonic—the order of spoken words strictly follows the timeline of the audio. Standard attention mechanisms can struggle with this constraint and cannot re-interpret or update encoder states dynamically during decoding. The authors address this by exploring an alternative architecture that eliminates attention entirely, relying instead on a multi-dimensional structure to naturally capture the spatio-temporal alignment between audio features and text.

Methods

The authors propose a 2D sequence-to-sequence model inspired by architectures previously used in machine translation:

  1. Encoder: A deep 6-layer bidirectional LSTM network scans the audio feature sequence, using max-pooling to downsample the time dimension by a factor of 8.
  2. 2DLSTM Layer: Instead of an attention layer and a separate LSTM decoder, a single 2DLSTM layer is placed on top of the encoder. This layer operates on a 2D grid where the horizontal axis processes the encoder states (audio context) and the vertical axis predicts the output subwords (text context).
  3. Dynamic Re-encoding: Unlike standard attention models where encoder states are static once computed, the 2DLSTM repeatedly updates and re-interprets the source representations conditioned on previously generated words.
  4. Gating Mechanism: The 2DLSTM introduces an additional "lambda gate" ($\lambda_{t,n}$) to balance the vertical and horizontal cell state recurrences.
Fig. 1: The internal architecture of the standard and the 2DLSTM. The additional connections are marked in blue [13].
Fig. 2: The 2D seq2seq architecture using the 2DLSTM layer on top of L-layer of encoder. Neither attention components nor explicit LSTM decoders are used. Inspired by [13].

Datasets

The model was evaluated on the standard Switchboard 300h automatic speech recognition task:

  • Training/Dev: The full Hub5'00 dataset, which includes Switchboard (SWB) and Callhome (CH) subsets, was used for development and tuning.
  • Evaluation: The Hub5'01 dataset served as the independent test set.
  • Text Processing: Byte-pair-encoding (BPE) with 1k merge operations was used to handle open-vocabulary subwords.

Key Insights and Ideas

  • Attention-Free Alignment: The 2DLSTM's internal cell states can implicitly capture monotonic alignments and coverage concepts without needing an explicit, computationally separate attention component.
  • Dynamic Context: Because the horizontal dimension of the 2DLSTM re-evaluates the encoder states at each step, the model can "re-interpret" the audio context based on the text it has already generated.
  • Trade-off in Parallelism: During training, the entire target sequence is known, allowing the 2D grid to be computed efficiently in parallel. However, during inference, decoding must happen row-by-row, introducing a significant computational bottleneck.

Key Results

  • The 2DLSTM model achieved competitive Word Error Rates (WER) compared to a strong attention-based baseline.
  • On the Hub5'01 test set, the proposed model achieved a 19.0% WER, outperforming the attention baseline (19.4% WER) by 0.4% absolute.
  • Perplexity and Frame Error Rates (FER) were highly comparable to the baseline, despite adding only about 3M additional parameters (160M total vs 157M).
Table 2: WER[%] on Switchboard 300h. †average of 3 runs.

Limitations and Future Work

  • Decoding Speed: The primary drawback is computational efficiency during inference. The 2DLSTM model is roughly 6 times slower at decoding than the standard attention baseline (taking 26 minutes vs 4 minutes on the development set). This is due to the requirement of row-wise state computation during beam search.
  • Lack of Language Model: The current experiments did not integrate an external Language Model (LM) during the search phase; doing so is expected to further improve accuracy.
  • Future Directions: The authors aim to develop a fully bidirectional 2DLSTM that functions completely independently of standard standard LSTM layers, and scale testing to larger, more diverse speech tasks.

Summary updated

Abstract

Attention-based sequence-to-sequence models have shown promising results in automatic speech recognition. Using these architectures, one-dimensional input and output sequences are related by an attention approach, thereby replacing more explicit alignment processes, like in classical HMM-based modeling. In contrast, here we apply a novel two-dimensional long short-term memory (2DLSTM) architecture to directly model the input/output relation between audio/feature vector sequences and word sequences. The proposed model is an alternative model such that instead of using any type of attention components, we apply a 2DLSTM layer to assimilate the context from both input observations and output transcriptions. The experimental evaluation on the Switchboard 300h automatic speech recognition task shows word error rates for the 2DLSTM model that are competitive to end-to-end attention-based model.
BibTeX
@misc{bahar2019using,
  author = {Parnia Bahar and Albert Zeyer and Ralf Schlüter and Hermann Ney},
  title = {{On using 2D sequence-to-sequence models for speech recognition}},
  year = {2019},
  eprint = {1911.08888},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.08888},
}
Figure