Attention-Based Models for Speech Recognition

Jan Chorowski, Dzmitry Bahdanau, Dmitriy Serdyuk, Kyunghyun Cho, Yoshua Bengio

TL;DR

This paper adapts attention-based recurrent neural networks (RNNs) for speech recognition by introducing a "location-aware" hybrid attention mechanism. By using convolutional features to track previous attention weights, the authors solve the "lost in translation" problem for long audio sequences, achieving a competitive 17.6% Phoneme Error Rate (PER) on the TIMIT dataset.

What Problem Does This Paper Address?

While attention mechanisms have revolutionized machine translation and image captioning, applying them to speech recognition presents unique hurdles. In translation, a model might process a sentence of 30 words. In speech, that same sentence translates to thousands of acoustic frames.

Standard "content-based" attention models select the next piece of information based solely on how well the input features match the current decoder state. This works for short sequences, but fails in speech for two main reasons:

  1. Ambiguity: Similar-sounding fragments (like the "k" in "cake" vs. "bake") appear frequently, confusing a model that doesn't know where it is in the timeline.
  2. Scalability: Models trained on short clips often "break" when faced with longer utterances because they lack a robust way to track progress across time.

Methods

The authors propose an Attention-Based Recurrent Sequence Generator (ARSG) consisting of a deep bidirectional RNN encoder and an attention-equipped decoder.

ARSG Architecture with Hybrid Attention

Their primary innovations include:

  • Location-Aware (Hybrid) Attention: Instead of just looking at the "content" of the audio frames, the model now looks at the "location" of its previous focus. They achieve this by convolving the previous step's attention weights with a set of trainable filters. These convolutional features are fed back into the scoring mechanism, essentially giving the model a "memory" of where it just looked.
  • Smoothing with Sigmoids: Standard attention uses a softmax function, which tends to force the model to pick a single "best" frame. The authors found that for speech, it’s better to aggregate information from multiple neighboring frames. They replaced the exponential in the softmax with a bounded logistic sigmoid to "smooth" the focus.
  • Sharpening and Windowing: To handle extremely long sequences during inference, they experimented with "windowing"—forcing the model to only look at a small subset of frames around its last known position—to reduce noise and computational cost.

Datasets

The models were evaluated on the TIMIT acoustic-phonetic continuous speech corpus.

  • Training: 462 speakers (standard train-dev-test split).
  • Features: 40 mel-scale filterbank features plus energy, including first and second temporal differences (123 features total).
  • Evaluation: Phoneme Error Rate (PER) on the 39-phoneme set.
  • Stress Test: To test robustness, the authors created artificial "long utterances" by concatenating up to 15 different TIMIT recordings.

Key Insights and Ideas

  • Content is not enough: In speech, the sequence is so long that the same "content" (sound) appears multiple times. Without a sense of linear progression (location), the model eventually gets confused and "jumps" to the wrong part of the audio.
  • Convolution as a Progress Tracker: Using a 1D convolution over previous attention weights is an elegant way to extract local movement patterns (e.g., "I am moving forward at a steady pace") without needing complex coordinate systems.
  • The Softmax Trap: While softmax is the industry standard for attention, its "winner-take-all" nature can be detrimental in noisy signals like speech. Smoothing the attention allows the model to be more robust to individual frame-level noise.

Key Results

  • State-of-the-Art Performance: The hybrid model (Location-Aware + Smoothing) achieved a 17.6% PER on the TIMIT test set, outperforming the baseline content-only model (18.7%) and rivaling other end-to-end methods like the RNN Transducer (17.7%).
  • Extreme Robustness: The baseline model's performance collapsed when utterances were 10x longer than the training data. In contrast, the location-aware model remained stable, keeping the PER below 20% even on these artificially long sequences.
Phoneme Error Rates on Long Utterances
  • Small Beam Search: Interestingly, the deterministic nature of this attention mechanism allowed the model to perform well even with a beam width of 1 (greedy decoding), which is significantly more efficient than traditional HMM-based systems.

Limitations and Future Work

The authors acknowledge that while TIMIT is a great testbed, it is a small, phoneme-level dataset. The next logical step—which has since become the standard in the industry—is scaling this architecture to large-vocabulary word-level recognition.

Additionally, while the "windowing" technique helped with long sequences, it was mostly used during evaluation. Integrating more sophisticated, trainable monotonic constraints (ensuring the model only ever moves forward in time) was noted as a promising direction for future research.

Summary updated

BibTeX
@inproceedings{chorowski2015attention,
  author = {Jan Chorowski and Dzmitry Bahdanau and Dmitriy Serdyuk and Kyunghyun Cho and Yoshua Bengio},
  title = {{Attention-Based Models for Speech Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=ry-g2IWOWS},
}
Figure