Abstract
This study investigates the capacity of Attention-based Encoder-Decoder (AED) and Connectionist Temporal Classification (CTC) models to capture long-range audio context in end-to-end speech recognition. While AED models are traditionally viewed as superior in context modeling due to their implicit language modeling capabilities, our analysis reveals that this advantage stems primarily from the attention mechanism. By integrating self-attention into a CTC framework, the "context gap" is eliminated, allowing both architectures to achieve state-of-the-art performance on benchmarks like Wall Street Journal and LibriSpeech without external language models.
Introduction
In the field of End-to-End (E2E) Automatic Speech Recognition (ASR), two paradigms dominate: CTC and AED. Historically, researchers believed these models processed speech differently; AED models were thought to be superior because they could learn an "implicit language model," while CTC models were often dismissed as "context-poor," usually requiring an external language model to be competitive. This paper moves beyond intuition to quantify exactly how much context these models use and whether CTC's perceived weakness is a fundamental flaw or an architectural choice.
Methodology
The researchers employed two primary analytical techniques to interrogate the models:
- Derivative-based Sensitivity Analysis: By calculating the partial derivative of a specific character prediction with respect to every frame of input audio, they created "sensitivity maps" (Figure 1). These maps visualize which parts of the audio the model prioritizes when outputting a specific character.
- Occlusion-based Analysis: Using the TIMIT dataset, which features precise hand-annotated timestamps, they systematically "muted" audio surrounding target words to measure performance degradation as a function of available context.
Architecturally, both models utilized a deep encoder consisting of 10 bidirectional LSTM layers. To test the impact of attention, the researchers also experimented with adding a self-attention layer to the CTC model.
Key Insights and Ideas
- The "Three-Word Rule": Both CTC and AED models suffer significantly when context is removed. Interestingly, both reach near-optimal performance when they have access to roughly three words of context on either side of the target word, mirroring the n-gram sizes common in traditional decoders.
- Attention as the Differentiator: Sensitivity analysis confirmed that standard AED models look at a much wider span of audio than standard CTC models. However, once self-attention was added to the CTC model, its sensitivity profile became nearly identical to the AED model.
- Resolution Independence: Surprisingly, temporal resolution (how much the audio is downsampled) did not affect context sensitivity. Whether the model examined every frame or every fourth frame, its effective "context window" remained consistent.
Key Results
- State-of-the-Art Benchmarks: Both CTC and AED models achieved a Word Error Rate (WER) of 9.25% on the WSJ
eval92set, setting a new benchmark for E2E models that do not use an external language model. - LibriSpeech Performance: On the LibriSpeech "clean" test set, the CTC model outperformed the AED model (5.13% vs 5.45% WER). This is attributed to the AED model's relative instability when training on the very long sentences found in LibriSpeech.
- Closing the Context Gap: As shown in Figure 6, the addition of self-attention to the CTC model allows it to match the mean temporal span of the AED model, proving that CTC can be just as context-aware as AED given the right architecture.
Conclusion
The paper concludes that CTC is a highly competitive and often preferable framework due to its simplicity and stable training. The findings demonstrate that with the inclusion of self-attention, CTC models "care" about context just as much as their more complex AED counterparts. Future work may explore non-linear sensitivity measures and the impact of subword units on context utilization.
Summary updated