Hallucination of Speech Recognition Errors With Sequence to Sequence Learning

Prashant Serai, Vishal Sunder, Eric Fosler-Lussier · DOI

Abstract

Automatic Speech Recognition (ASR) systems frequently introduce errors that degrade the performance of downstream Natural Language Understanding (NLU) components. This paper proposes a sequence-to-sequence (Seq2Seq) framework to "hallucinate" or simulate these errors, providing a powerful mechanism for data augmentation. We introduce a Dual-Encoder Seq2Seq model that leverages both orthographic (word) and phonetic information to predict likely ASR misrecognitions. Our results demonstrate that this approach significantly outperforms traditional phonetic confusion matrix methods, nearly doubling error chunk recall and enhancing the robustness of NLU systems in data-scarce scenarios.

Introduction

Modern NLU systems are typically trained on clean, human-transcribed text. However, in real-world applications, these systems must process noisy output from ASR engines. This mismatch often leads to a significant drop in accuracy. Traditional methods for simulating ASR noise, such as phonetic confusion matrices or Weighted Finite State Transducers (WFSTs), often fail to capture the complex, context-dependent errors produced by modern neural ASR systems. This paper addresses the challenge by treating ASR error simulation as a translation task: converting "clean" text into "noisy" ASR-like text.

Methodology: The Dual-Encoder Approach

The core contribution of this work is a transition from rigid, rule-based error injection to a flexible, end-to-end Convolutional Seq2Seq architecture. While a basic word-level model can predict errors based on text alone, it struggles with rare or out-of-vocabulary words.

To overcome this, we propose the Dual-Encoder Seq2Seq model. This architecture utilizes two separate encoders: one for the word sequence and another for the corresponding phoneme sequence. A dual-attention mechanism allows the decoder to synthesize information from both what a word is and how it sounds.

The Dual-Encoder Seq2Seq architecture uses both word and phoneme sequences to predict ASR errors.

To prevent the model from over-relying on the word encoder, we employ Encoder Dropout during training. By occasionally masking one of the encoders, the model is forced to learn the complementary relationship between text and phonetics, improving its ability to generalize to unseen vocabulary.

Experimental Setup

The models were trained on the Fisher Corpus, a large-scale dataset of English telephone speech. Evaluation was conducted using both intrinsic metrics (how well the model predicts ASR errors) and extrinsic metrics (how much the simulated errors improve a downstream NLU task).

For out-of-domain testing, we utilized Virtual Patient (VP) data, which includes clean text, read speech, and realistic conversational turns. The hallucination models were tested against multiple ASR systems, ranging from Kaldi-based recognizers to modern commercial cloud services.

Results and Discussion

The Dual-Encoder model showed substantial improvements in intrinsic performance. On the Fisher dataset, it achieved an Error Chunk Recall of 48.8%, a significant leap from the 25.6% achieved by previous state-of-the-art confusion matrix methods.

Comparison of model performance on error chunk prediction and complete utterance prediction across different test sets.

Key findings include:

  • Contextual Awareness: Unlike matrix-based methods, the Seq2Seq approach captures how surrounding words influence the likelihood of a specific error.
  • Decoding Strategies: For NLU training, Sampled Decoding (generating diverse errors) proved more effective than Beam Search (generating the most likely error). This diversity acts as a robust form of data augmentation.
  • Data Efficiency: Hallucinated errors can be more effective for NLU training than a limited amount of real ASR data, as the model can generate a wider variety of plausible failures.

Conclusion

This research demonstrates that Seq2Seq models, particularly those incorporating phonetic information via dual encoders, are highly effective at simulating ASR errors. By "speechifying" training data, we can build NLU systems that are inherently more resilient to the noise of real-world speech interfaces, even when task-specific audio data is unavailable. Future work will explore variational approaches to better model the distribution of ASR errors and move toward fully character-based end-to-end models.

Summary updated

BibTeX
@article{serai2021hallucination,
  author = {Prashant Serai and Vishal Sunder and Eric Fosler-Lussier},
  title = {{Hallucination of Speech Recognition Errors With Sequence to Sequence Learning}},
  journal = {IEEE/ACM Trans. ASLP},
  year = {2021},
  doi = {10.1109/taslp.2022.3145313},
}
Figure