Source-linked AI summary

End-to-end Speech Recognition with Word-based RNN Language Models

Takaaki Hori, Jaejin Cho, Shinji Watanabe

arXiv:1808.02608v1cs.CLcs.AI

TL;DR

Multi-level character-and-word RNN-LMs improve end-to-end ASR but require extra training and decoding resources. This paper proposes a word-based RNN-LM that uses look-ahead word probabilities to predict characters, and reports competitive accuracy with less decoding computation, including 5.1% WER on WSJ Eval'92 with a larger vocabulary.

  • Problem

    Multi-level character-and-word RNN-LMs improve end-to-end ASR but require training and decoding with two LMs, increasing time, computation, and memory use.

    Source: §1 · p. 2
  • Method

    A word-based RNN-LM uses look-ahead word probabilities to predict next characters, replacing the character-based LM during decoding.

    Source: §3.3 · p. 4
  • Results

    5.1% WER on WSJ Eval'92 was achieved by the look-ahead LM with an increased vocabulary, and it provided competitive accuracy with less decoding time than multi-level LMs.

    Source: §5.1 · pp. 5–6, §6 · p. 6
  • Takeaways & Limitations

    The approach can exclude character-LM training and use only the word-based LM while retaining competitive accuracy with less beam-search computation than the multi-level approach.

    Source: §6 · p. 6, §5.2 · p. 6

    Beam-search decoding was implemented in Python, so its speed had not been sufficiently optimized.

    Source: §5.1 · p. 5

Abstract

from arXiv · show

This paper investigates the impact of word-based RNN language models (RNN-LMs) on the performance of end-to-end automatic speech recognition (ASR). In our prior work, we have proposed a multi-level LM, in which character-based and word-based RNN-LMs are combined in hybrid CTC/attention-based ASR. Although this multi-level approach achieves significant error reduction in the Wall Street Journal (WSJ) task, two different LMs need to be trained and used for decoding, which increase the computational cost and memory usage. In this paper, we further propose a novel word-based RNN-LM, which allows us to decode with only the word-based LM, where it provides look-ahead word probabilities to predict next characters instead of the character-based LM, leading competitive accuracy with less computation compared to the multi-level LM. We demonstrate the efficacy of the word-based RNN-LMs using a larger corpus, LibriSpeech, in addition to WSJ we used in the prior work. Furthermore, we show that the proposed model achieves 5.1 %WER for WSJ Eval'92 test set when the vocabulary size is increased, which is the best WER reported for end-to-end ASR systems on this benchmark.

1. INTRODUCTION

End-to-end ASR can simplify systems that rely on legacy modules and linguistic resources, but English character-based language models (LMs) can underperform word LMs. The proposed look-ahead word-based RNN-LM replaces the character LM in decoding, aiming to retain competitive accuracy with less computation than the multi-level approach.

1. INTRODUCTION

  • End-to-end ASR seeks to simplify module-based systems by training a single network from paired acoustic and language data without linguistic knowledge.The paper describes this as making it feasible to build ASR systems without expert knowledge.Source: §1 · p. 1
  • External LMs can be combined with an end-to-end decoder through shallow fusion, adding LM log probabilities during decoding.Earlier character-based LMs were used to predict the next character in Japanese and Mandarin systems.Source: §1 · p. 1
  • English character-based LMs can underperform word LMs because they must model linguistic constraints across long character sequences.Character-based models allow open-vocabulary recognition, whereas word-based models face an out-of-vocabulary problem.Source: §1 · p. 1
  • Multi-level decoding combines character-based scoring within words with word-based rescoring at word boundaries, while retaining character-level scores for out-of-vocabulary words.Character scores can help hypotheses survive until a word boundary, when word probabilities become available.Source: §1 · p. 1
  • Two-level character-and-word RNN-LMs increase training time, decoding computation, and memory use, motivating a simpler language-modeling strategy.The paper notes that building both LMs takes almost twice the training time.Source: §1 · pp. 1–2
  • The proposed look-ahead word-based RNN-LM uses word probabilities to predict next characters, replacing the character LM while targeting competitive accuracy with less decoding computation.The paper evaluates the approach on WSJ and LibriSpeech.Source: §1 · p. 2

2. END-TO-END ASR ARCHITECTURE

The paper evaluates its language-modeling approach in a hybrid CTC/attention encoder-decoder architecture. A shared encoder supports CTC and attention, while beam-search decoding combines their scores with an external LM.

2. END-TO-END ASR ARCHITECTURE

  • The hybrid ASR architecture combines an encoder-decoder with external language-model scoring, and the proposed LMs can also be applied to standard attention-based encoder-decoders.The evaluation uses a hybrid CTC/attention network.Source: §2 · p. 2

2.1. Network architecture

  • A VGG-style CNN and stacked BLSTM layers encode speech, while the decoder jointly uses CTC, attention, and an RNN-LM to predict labels.Two CNN max-pooling steps reduce the hidden sequence length to T/4; labels are distinct characters or alphabet symbols.Source: §2.1 · p. 2
  • Joint CTC/attention training maximizes a log-linear combination of their posterior probabilities, with CTC's forward-backward algorithm helping estimate monotonic alignments.The shared CNN/BLSTM encoder serves both the CTC and attention decoder networks.Source: §2.1 · p. 2

2.2. Decoding with external language models

  • Output-label-synchronous beam search scores partial hypotheses using CTC, attention, and LM probabilities, adding the LM probability with scaling factor γ in the log-probability domain.The search limits partial hypotheses at each length to a predefined beam width to improve efficiency.Source: §2.2 · pp. 2–3
  • Attention and LM scores are accumulated recursively as each character extends a partial hypothesis, whereas CTC uses the cumulative probability of label sequences sharing that prefix.The CTC prefix probability is defined as the cumulative probability of all label sequences having the hypothesis as their prefix.Source: §2.2 · pp. 2–3

3. INCORPORATING WORD-BASED RNN-LMS

This section explains how word-level RNN-LMs can be integrated into character-based end-to-end ASR, contrasting boundary-based multi-level scoring with a look-ahead model that needs only a word LM.

3.1. Basic approach

  • Character sequences map deterministically to word sequences using spaces, and the word-level RNN-LM scores the last word when a space or end-of-sentence label is hypothesized.Homonyms, alternative spellings, and ambiguous segmentations are handled as distinct context-dependent or beam-search hypotheses.Source: §3.1 · p. 3

3.2. Multi-level RNN-LM

  • The multi-level LM combines character- and word-level RNN-LMs, applying word probabilities at boundaries while retaining character predictions for within-word beam survival and OOV words.Character probabilities for known words are canceled at word ends; character predictions help keep hypotheses alive until then.Source: §3.2 · p. 3

3.3. Look-ahead word-based RNN-LM

  • The look-ahead LM replaces the character LM with next-character probabilities derived from anticipated-word masses on a prefix tree, with cumulative sums enabling efficient computation.The model uses alphabetically ordered vocabulary IDs for the cumulative sums.Source: §3.3 · p. 4

4. RELATED WORK

Related work incorporates word units into end-to-end ASR through acoustic-to-word CTC and subword representations. The paper positions its character- or subword-based encoder-decoder with an external word LM as an alternative for settings with limited paired data.

  • Acoustic-to-word CTC maps acoustic features directly to words but requires substantial paired acoustic and text data; one cited model used 125,000 hours of transcribed audio.Source: §4 · p. 4
  • The proposed architecture pairs a character- or subword-based encoder-decoder with an external RNN-LM trained on large text, making it more suitable for low-resource languages with limited parallel data.Source: §4 · p. 4
  • Subword methods require selecting a unit inventory: more units can improve acoustic expressiveness but make training harder with limited data, and encoder-decoder and LM units need not match.Source: §4 · pp. 4–5

5. EXPERIMENTS

Across WSJ and LibriSpeech, the look-ahead word LM achieved competitive accuracy with reduced decoding time. On WSJ Eval'92, increasing its vocabulary yielded 5.1% WER, the best reported for end-to-end systems on that benchmark.

5. EXPERIMENTS

  • WSJ evaluation used si284 for training, dev93 for validation, and eval92 for evaluation; the study also tested on LibriSpeech, a 1,000-hour audiobook corpus.WSJ contains approximately 80 hours of data.Source: §5.1 · p. 5, §5 · p. 5, Table 1 · p. 5

5.1. Evaluation with WSJ

  • The WSJ RNN-LMs were trained on 37M words from 1.6M sentences, with word-LM vocabularies of 20K, 40K, and 65K.Source: §5.1 · p. 5
  • 5.1% WER on WSJ Eval'92 was the best reported among end-to-end ASR systems on the WSJ benchmark.The paper cautions that differing network architectures make direct comparison difficult.Source: §5.1 · pp. 5–6, Table 3 · p. 6
  • The 20K look-ahead LM raised WSJ Eval'92 WER from 5.6% to 6.1%, with errors mainly from OOV words; increasing vocabulary size to 40K and 65K yielded a large improvement.The authors suggest that look-ahead scores consistent with word-LM probabilities helped the 65K model in beam search.Source: §5.1 · p. 5, Table 2 · p. 5
  • The 20K-word look-ahead LM increased decoding time by 38%; with 65K-word look-ahead LMs, decoding time was 55% of the No LM baseline and remained below the 20K multi-level LM.Source: §5.1 · pp. 5–6, Figure 3 · p. 5

5.2. Evaluation with LibriSpeech

  • On LibriSpeech, the 65K look-ahead LM had competitive WER to the multi-level LM while retaining a speed benefit and eliminating character-LM training.The experiments used 9.4M words of audio transcriptions for language-model training.Source: §5.2 · p. 6, Table 5 · p. 6

6. CONCLUSION

The proposed word-based RNN-LM uses a look-ahead mechanism for end-to-end ASR, enabling decoding with one LM instead of the prior multi-level approach. It achieves competitive accuracy with less beam-search computation and reaches 5.1 %WER on WSJ Eval’92 with increased vocabulary size.

6. CONCLUSION

  • 5.1 %WER on WSJ Eval’92 was achieved with increased vocabulary size, the best WER reported for end-to-end ASR on this benchmark.Source: §6 · p. 6
  • The look-ahead word-based RNN-LM supports decoding with only one LM, with competitive accuracy and less beam-search computation than the multi-level LM.It also eliminates the need to train a character-level LM.Source: §6 · p. 6
  • The proposed method was evaluated on WSJ and LibriSpeech for computational cost and recognition accuracy.Source: §6 · p. 6
Loading 1808.02608v1…