Hallucinations in Neural Automatic Speech Recognition: Identifying Errors and Hallucinatory Models

Rita Frieske, Bertram E. ShiarXiv 2024

TL;DR

This paper introduces the concept of "hallucinations" in Neural Automatic Speech Recognition (ASR)—transcriptions that are fluent and coherent but completely semantically unrelated to the source audio. The authors demonstrate that standard metrics like Word Error Rate (WER) fail to detect these deceptive errors and propose a novel perturbation-based framework to identify models susceptible to hallucinating at test time.

What Problem Does This Paper Address?

While hallucinations are a hot topic in Large Language Models (LLMs) and Machine Translation, they have been largely ignored in ASR research. Traditionally, ASR errors are viewed as "phonetic"—mishearing a word for a similar-sounding one (e.g., "millimeter" vs. "miller").

However, neural ASR models can produce hallucinations: outputs that sound like perfectly natural English but have zero connection to the actual audio. These are dangerous because they are deceptive; a user might trust a fluent-sounding transcription even if it is entirely fabricated. Crucially, the authors find that Word Error Rate (WER) is blind to this distinction. Two models might have the same WER, but one might be making minor phonetic slips while the other is prone to total fabrications.

Methods

The researchers took a two-pronged approach: inducing hallucinations during training and detecting them during testing.

1. Inducing Hallucinations

To study the phenomenon, they intentionally corrupted training data with four types of "label mismatch" noise:

  • Unique-Unique (UU): Random unique audio paired with random unique text.
  • Repeat-Repeat (RR): Specific audio-text pairs repeated multiple times.
  • Repeat-Unique (RU): The same audio clip paired with different random text strings.
  • Unique-Repeat (UR): Different audio clips all paired with the same repeating text string.

2. The Detection Framework

They developed a test-time algorithm that doesn't require access to training data. It works by:

  • Perturbation: Injecting a short burst of random noise (e.g., 1 second) at the beginning of an utterance.
  • Semantic Filtering: Using Cosine Similarity to check if the output is semantically related to the ground truth. Hallucinations typically have a similarity score below 0.2.
  • Fluency Check: Using Perplexity (via the FLAN T5 Small model) to ensure the output is fluent. A hallucination must be a "probable" sentence, not just a "word salad."

Datasets

  • LibriSpeech 360: The primary dataset, consisting of clean, professionally read audiobooks.
  • CommonVoice: A noisier, crowdsourced dataset used to test the generalizability of their findings.
  • Noisy Subsets: The authors created specific subsets with 8% and 16% label noise to train their experimental models.

Key Insights and Ideas

  • The "Start" is Sensitive: Just like in text-based translation, injecting noise at the very beginning of a sequence is far more likely to trigger a hallucination than noise spread throughout the entire clip.
  • Memorization vs. Generation: In the "Unique-Repeat" (UR) models, hallucinations were often just the model regurgitating memorized labels from the training set. However, in "Unique-Unique" (UU) models, the system generated new fluent text that wasn't in the training data, indicating a more complex failure mode.
  • WER is Insufficient: The researchers proved that WER cannot differentiate between a model that is slightly inaccurate and one that is fundamentally untrustworthy.
Figure 1: Word Error Rate (WER) distribution across evaluation dataset of assessed models. We exclude 0 WER scores since they are not considered error and for histogram clarity. Although the WER scores alone are not informative with regard to the types of errors produced by the models, the WER distribution in UR and RR model shows increase of highly erroneous outputs.

Key Results

  • Clear Separation: The proposed framework successfully separated phonetic errors from hallucinations. As seen in the kernel distribution plots, phonetic errors cluster at high semantic similarity, while hallucinations occupy a distinct space of low similarity but high fluency.
  • Susceptibility Detection: The perturbation method successfully identified that the UU model was significantly more prone to hallucinations than the baseline, even though their standard performance metrics were nearly identical.
  • Noise Thresholds: They found that 1 second of noise at 0.5 amplitude was the "sweet spot" for inducing hallucinations in LibriSpeech-trained models.
Figure 2: Kernel distribution showing the clear distinction between phonetic errors (high similarity) and hallucinations (low similarity, high fluency).

Limitations and Future Work

  • Language Scope: The study was limited to English; future work is needed to see if these patterns hold across different languages and tasks like Spoken Language Understanding (SLU).
  • Heuristic Thresholds: The thresholds for "hallucination" (e.g., cosine similarity < 0.2) were determined heuristically. The authors suggest that automating these thresholds would improve the method's robustness.
  • Mitigation: This paper focuses on identifying hallucinations. The next logical step—and a critical one for the industry—is developing training techniques to prevent them from occurring in the first place.

Summary updated

BibTeX
@misc{frieske2024hallucinations,
  author = {Rita Frieske and Bertram E. Shi},
  title = {{Hallucinations in Neural Automatic Speech Recognition: Identifying Errors and Hallucinatory Models}},
  year = {2024},
  eprint = {2401.01572},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.01572},
}
Figure