[Paper Review] Attentional Speech Recognition Models Misbehave on Out-of-domain Utterances
This paper identifies that autoregressive sequence-to-sequence (AR-S2S) speech recognition models, including Transformers and self-attention CTC models, produce excessively long, repetitive ('echographic') transcriptions when decoding out-of-domain audio, despite strong performance on in-domain data. The authors propose a separate length prediction model using a bidirectional LSTM to estimate the expected number of wordpieces, which enables truncation of degenerate outputs without increasing WER on LibriSpeech, effectively mitigating the issue without altering the main ASR model.
We discuss the problem of echographic transcription in autoregressive sequence-to-sequence attentional architectures for automatic speech recognition, where a model produces very long sequences of repetitive outputs when presented with out-of-domain utterances. We decode audio from the British National Corpus with an attentional encoder-decoder model trained solely on the LibriSpeech corpus. We observe that there are many 5-second recordings that produce more than 500 characters of decoding output (i.e. more than 100 characters per second). A frame-synchronous hybrid (DNN-HMM) model trained on the same data does not produce these unusually long transcripts. These decoding issues are reproducible in a speech transformer model from ESPnet, and to a lesser extent in a self-attention CTC model, suggesting that these issues are intrinsic to the use of the attention mechanism. We create a separate length prediction model to predict the correct number of wordpieces in the output, which allows us to identify and truncate problematic decoding results without increasing word error rates on the LibriSpeech task.
Motivation & Objective
- To investigate why AR-S2S end-to-end ASR models produce abnormally long, repetitive transcriptions on out-of-domain audio despite strong in-domain performance.
- To determine whether this behavior is inherent to attention mechanisms in sequence-to-sequence models or influenced by decoding hyperparameters.
- To develop a method that detects and mitigates these degenerate outputs without degrading performance on in-domain benchmarks.
- To compare the behavior of AR-S2S models with frame-synchronous DNN-HMM models, which do not exhibit this issue.
Proposed method
- A bidirectional LSTM model is trained to predict the number of wordpieces in the reference transcript for a given audio input, using the encoder features from the AR-S2S model.
- The length prediction model uses a Poisson regression head with ReLU-activated affine transformation on encoded audio frames to estimate expected output length.
- Decoding outputs are truncated at a multiple of the predicted length (e.g., 1.3× predicted length), with the multiple tuned to minimize out-of-domain errors while preserving in-domain WER.
- The model is finetuned on LibriSpeech dev-clean data, and the predicted length is used as a dynamic truncation threshold during inference.
- The method is evaluated on a clean subset of 1,607 BNC utterances with low WER on AR-S2S decoding, ensuring reliable evaluation of out-of-domain behavior.
- The approach is validated across multiple models, including an ESPnet Transformer and a self-attention CTC model, confirming the issue is intrinsic to attention-based decoding.
Experimental results
Research questions
- RQ1Why do AR-S2S ASR models generate excessively long, repetitive transcriptions on out-of-domain audio despite strong in-domain performance?
- RQ2Is the echographic behavior caused by the attention mechanism or by decoding hyperparameters such as beam width or length normalization?
- RQ3Can a separate length prediction model detect and truncate degenerate outputs without degrading performance on in-domain benchmarks?
- RQ4Why do frame-synchronous DNN-HMM models not exhibit this behavior, suggesting a fundamental difference in architecture robustness?
- RQ5To what extent can a learned length predictor mitigate this issue across different attention-based ASR architectures?
Key findings
- The AR-S2S model produced transcripts exceeding 700 characters on 170 out of 39,323 BNC utterances, with some outputs repeating the same phrase over 100 times, while the DNN-HMM model produced no such degenerate outputs.
- The issue is reproducible in a pretrained ESPnet Transformer model and to a lesser extent in a self-attention CTC model, indicating it is intrinsic to attention mechanisms.
- Truncating decoding outputs at 1.3× the predicted length removed 160 out of 170 echographic examples with no increase in LibriSpeech test-clean WER.
- The length prediction model achieved a mean absolute error of 2.7 wordpieces on LibriSpeech test-clean, enabling accurate dynamic truncation.
- The attention mechanism in AR-S2S models was observed to repeatedly attend to the same audio segment without progressing forward in time, explaining the repetitive output.
- Length normalization adjustments reduced echographic behavior but significantly increased WER, making it an ineffective trade-off for robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.