Source-linked AI summary
Joint CTC-Attention based End-to-End Speech Recognition using Multi-task Learning
Suyoun Kim, Takaaki Hori, Shinji Watanabe
TL;DR
Attention-based end-to-end speech recognition can produce corrupted alignments in noisy speech and is difficult to train on long inputs. The paper uses a shared-encoder joint CTC-attention model, which significantly outperformed CTC and attention baselines in CER on noisy CHiME-4 and clean WSJ, with 5.4 - 14.6% relative evaluation-set improvements.
Problem
Attention-based speech recognition can have noise-corrupted alignments and is difficult to train from scratch on longer input sequences.
Source: §1 · p. 1Method
The method trains an attention encoder with an auxiliary CTC objective in a multi-task learning framework using a shared encoder.
Source: §1 · p. 1, §2.3 · p. 2Results
5.4 - 14.6% relative improvements on evaluation sets accompanied significant CER outperformance over CTC and attention on noisy CHiME-4 and clean WSJ tasks.
Source: §3.3 · p. 4Takeaways & Limitations
The method learns desired alignments faster without manually restricting the input range, including for longer sequences.
Source: §4 · p. 4The authors state that the possible explanation for CTC’s generalization improvement needs verification with additional experiments.
Source: §3.3 · p. 4
Abstract
from arXiv · showhide
Recently, there has been an increasing interest in end-to-end speech recognition that directly transcribes speech to text without any predefined alignments. One approach is the attention-based encoder-decoder framework that learns a mapping between variable-length input and output sequences in one step using a purely data-driven method. The attention model has often been shown to improve the performance over another end-to-end approach, the Connectionist Temporal Classification (CTC), mainly because it explicitly uses the history of the target character without any conditional independence assumptions. However, we observed that the performance of the attention has shown poor results in noisy condition and is hard to learn in the initial training stage with long input sequences. This is because the attention model is too flexible to predict proper alignments in such cases due to the lack of left-to-right constraints as used in CTC. This paper presents a novel method for end-to-end speech recognition to improve robustness and achieve fast convergence by using a joint CTC-attention model within the multi-task learning framework, thereby mitigating the alignment issue. An experiment on the WSJ and CHiME-4 tasks demonstrates its advantages over both the CTC and attention-based encoder-decoder baselines, showing 5.4-14.6% relative improvements in Character Error Rate (CER).
1. INTRODUCTION
The paper proposes a shared-encoder joint CTC-attention model to address attention alignment problems and reports improved recognition performance and learning speed on WSJ and CHiME-4.
1. INTRODUCTION
- End-to-end recognition maps acoustic frames to characters in one step without predefined alignments, unlike separately trained DNN-HMM components and their conditional-independence assumptions [1, 2, 3, 4, 5, 6, 7, 8, 9].The traditional hybrid system comprises acoustic, context-dependent phone transducer, pronunciation, and language models.Source: §1 · p. 1
- CTC and attention-based encoder-decoder models are two main end-to-end approaches [2] [13] [4] [6]; CTC uses repeated and blank labels, but assumes framewise conditional independence.CTC loss is efficiently computed with the forward-backward algorithm, while attention has often achieved better CER than CTC without an external language model [7].Source: §1 · p. 1
- Attention conditions each output character on the input and previous target history, but noisy speech can corrupt its alignments and long sequences make training from scratch difficult.The paper notes that windowing is commonly used to constrain attention, but its parameters must be set manually for the training data.Source: §1 · p. 1
- The joint CTC-attention system outperforms CTC and attention models in CER and learning speed on WSJ and CHiME-4.The introduction reports these gains qualitatively without giving numerical results.Source: §1 · p. 1
- Jointly training a shared encoder with CTC and attention objectives uses CTC’s forward-backward loss to rectify alignment problems and accelerate learning.The paper attributes attention’s weakness to lacking the left-to-right constraints available in CTC, especially with noisy data or long input sequences.Source: §1 · p. 1
2. JOINT CTC-ATTENTION MECHANISM
The section introduces CTC and attention-based encoder-decoder recognition, then combines their objectives in a shared-encoder multi-task model to address alignment weaknesses and slow training.
2.1. Connectionist temporal classification (CTC)
- CTC computes the output distribution P(y|x) efficiently with the forward-backward algorithm; its conditional-independence assumption limits character-level language modeling, so lexicons or language models are commonly incorporated [2].Source: §2.1 · p. 2
2.2. Attention-based encoder-decoder
- Attention uses an RNN encoder-decoder that predicts each character from previous characters and attention-weighted encoder outputs, with content-based or location-based attention mechanisms.Location-based attention also uses convolutional features derived from the previous attention weights.Source: §2.2 · p. 2
- Attention models can misalign on noisy speech and are difficult to train from scratch on long inputs; restricting attention to a narrow input range can limit useful information from long character sequences.These issues arise because attention lacks a monotonic alignment constraint such as those in DNN-HMM and CTC.Source: §2.2 · p. 2
2.3. Proposed model: Joint CTC-attention (MTL)
- The proposed model trains a shared encoder with both CTC and attention objectives, using CTC’s monotonic alignment constraints to improve robustness and speed alignment learning without manual rough alignments.A tunable parameter λ, with 0 ≤ λ ≤ 1, combines the objectives.Source: §2.3 · pp. 2–3, Figure 1 · p. 3
3. EXPERIMENTS
The experiments found that joint CTC-attention MTL improved CER over CTC and attention baselines on clean WSJ and noisy CHiME-4 tasks. MTL also learned desired alignments earlier than attention alone.
3.1. Data
- Experiments covered clean WSJ1 and WSJ0 and noisy CHiME-4, using 120-dimensional filterbank features and no language model or lexicon.Evaluation used eval92 for WSJ and the et05 real isolated 1ch track for CHiME-4; development sets were dev93 and dt05 multi isolated 1ch track. Attention used 32 labels; CTC used a blank instead of sos/eos, while MTL used both.Source: §3.1 · p. 3
3.3. Results
- MTL (λ=0.2) significantly outperformed CTC and attention in CER on CHiME-4 and WSJ, with 5.4–14.6% relative evaluation-set and 6.0–8.4% validation-set gains.The authors report λ=0.2 as the best task weight across the noisy CHiME-4 and clean WSJ tasks.Source: Table 1 · p. 3, §3.3 · p. 4
3.2. Training and Decoding
- The encoder used a four-layer bidirectional LSTM with 320 cells per layer and direction, and the decoder used a one-layer LSTM with 320 cells.The encoder reduced utterance length by a factor of four; attention and MTL decoding used beam size 20, while CTC used the most likely output sequence. MTL tested λ values of 0.2, 0.5, and 0.8.Source: §3.2 · pp. 3–4
3.3. Results
- The authors suggest CTC may improve generalization because its training does not explicitly use character interdependencies, but say this needs further verification.They raise this possibility after observing that MTL also outperformed both baselines on clean WSJ1 and WSJ0.Source: §3.3 · p. 4
- MTL learned the desired alignment by epoch 5, while attention had not learned it by epoch 9; greater CTC-loss weight also led to quicker convergence.The authors interpret this as CTC loss guiding MTL alignments to be monotonic.Source: Figure 2 · p. 3, §3.3 · p. 4, Figure 3 · p. 4
4. CONCLUSIONS
The paper presents a multi-task CTC-attention method that improves speech recognition in noisy and clean conditions by using an auxiliary CTC objective to train a shared encoder and speed alignment learning.
- The method outperformed both CTC and attention models on speech recognition tasks in real-world noisy and clean conditions.Source: §4 · p. 4
- An auxiliary CTC objective trains a shared encoder as part of the multi-task method for end-to-end speech recognition.Source: §4 · p. 4
- The method significantly speeds alignment learning, even for longer sequences, without manually restricting the input range.Source: §4 · p. 4
- The approach may also apply to other sequence-to-sequence learning tasks.Source: §4 · p. 4