Advancing Connectionist Temporal Classification With Attention Modeling

Amit Das, Jinyu Li, Rui Zhao, Yifan Gong

Introduction

Researchers at Microsoft AI and Research have introduced a significant architectural upgrade to Connectionist Temporal Classification (CTC), a standard framework for end-to-end Automatic Speech Recognition (ASR). While CTC is favored for its computational efficiency and support for "greedy decoding," it suffers from inherent limitations in modeling context and linguistic dependencies. The proposed "CTC with Attention" architecture bridges the gap between the simplicity of CTC and the modeling power of Attention-based Encoder-Decoder systems, achieving a ~20% relative reduction in Word Error Rate (WER) on large-scale tasks.

The CTC Bottleneck

In the landscape of end-to-end speech recognition, CTC models are popular because they generate text without requiring complex external language models or decoders. However, CTC faces two primary challenges:

  1. Hard Alignment: Standard CTC relies solely on the hidden feature vector at the current time step to make a prediction, effectively ignoring context from surrounding audio frames.
  2. Conditional Independence: It assumes that each output character is independent of others, failing to capture the natural sequences of human language (e.g., the high probability of 'u' following 'q').

These flaws often lead to "ill-formed" words in character-based models. While word-based CTC can mitigate this, it struggles with Out-of-Vocabulary (OOV) words. This research aims to enhance character-based CTC by making it context-aware and linguistically informed.

Proposed CTC Attention Architecture

The researchers introduced four key enhancements to the standard CTC framework to address these limitations.

The proposed CTC Attention architecture integrating time convolution, content/hybrid attention, and an implicit language model.
  • Time Convolution (TC) Features: Instead of a single-frame view, the model employs convolution over a small "attention window" of frames. This creates a "context vector" that provides a richer representation of the audio at any given moment, effectively "softening" the alignment.
  • Content and Hybrid Attention: Moving beyond uniform windows, an "Attend" block dynamically weights frames based on their importance (Content Attention) and their relative location (Hybrid Attention).
  • Implicit Language Model (LM): To tackle the independence constraint, a small recurrent LSTM network tracks previous outputs. This acts as an "implicit" LM, allowing the model to leverage historical context for subsequent character predictions.
  • Component Attention (COMA): In a departure from standard scalar attention, COMA calculates a separate weight for every single dimension of the feature vector across time. This fine-grained control allows the model to prioritize specific acoustic features more effectively.

Experimental Evaluation

The models were evaluated using the Microsoft Cortana Voice Assistant dataset, comprising approximately 3,300 hours of US-English audio (3.3 million short utterances). The test set included ~5,600 utterances. The authors benchmarked both a standard 28-character set and an expanded 83-character set (including capitals and common double-letter units) across unidirectional and bidirectional LSTM configurations.

Results and Discussion

The proposed CTC Attention model consistently outperformed the vanilla CTC baseline. The transition from scalar attention to Component Attention (COMA) provided a consistent performance boost, suggesting that weighting individual dimensions of hidden states captures acoustic properties more effectively than treating the vector as a single unit.

Word Error Rate (WER) improvements on the 83-character bidirectional model configuration.

As shown in the table above for the 83-character bidirectional configuration, each component (TC, CA, HA, LM, COMA) contributes to a steady decrease in WER, culminating in a final WER of 18.49%—a 20.61% relative improvement over the vanilla baseline. Similar trends were observed across other configurations:

Model Configuration Vanilla CTC WER Proposed Model (COMA) WER Relative Improvement
Unidirectional (28-char) 29.60% 24.05% 18.75%
Bidirectional (28-char) 26.36% 20.81% 21.06%
Bidirectional (83-char) 23.29% 18.49% 20.61%

Conclusion

By internalizing a pseudo-language model and employing fine-grained attention mechanisms, the researchers have significantly enhanced the performance of CTC-based ASR. While the implicit LM is not a "true" language model due to CTC's blank symbols, it effectively captures linguistic patterns during decoding. Future work may extend these techniques to acoustic-to-word CTC models, potentially challenging traditional phoneme-based systems that rely on massive external language models.

Summary updated

BibTeX
@inproceedings{das2018advancing,
  author = {Amit Das and Jinyu Li and Rui Zhao and Yifan Gong},
  title = {{Advancing Connectionist Temporal Classification With Attention Modeling}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2018},
  doi = {10.1109/icassp.2018.8461558},
}
Figure