Technology

Hallucination (speech recognition)

Karsten B. Kreh Karsten B. Kreh Updated on

Also known as: ASR hallucination, confabulation

Hallucination in speech recognition is text that a model outputs although the recording gives no evidence for it. Koenecke et al. (2024) define it as text that is nonsensical or unrelated to the underlying audio. Other names are ASR hallucination and confabulation. Unlike a recognition error, a hallucination rests on no spoken word, because the text is invented.

How it arises

A model such as Whisper works as an audio-conditioned language model. At each step it predicts the most probable next word, based on the audio signal and on the text it has already generated. Radford et al. (2022) name the complete hallucination as a separate class of error, in which the model outputs a transcript that has nothing to do with the actual recording, alongside getting stuck in repetition loops. Where a strong audio signal is missing, for example in silence or background noise, the model relies more heavily on its learned language patterns and fills the gap with plausible-sounding but invented text. Koenecke et al. (2024) confirm this link by measurement: recordings that led to a hallucination had a higher share of non-vocal time than recordings without one, 29% against 26% of the total duration. A measurement from Speech recognition in 2026 (Kreh, 2026) shows a repetition loop in practice. An English recording of 60 seconds with about 130 spoken words returned 321 words on one test device, because a sentence fragment kept pushing into the text, and only 74 words on another device. Both transcripts were wrong although the text sounded fluent. In their own pipeline, Radford et al. (2022) counter this with beam search over 5 candidates and a rising temperature as soon as the mean log probability of the generated words falls below minus 1 or the repetition rate of the text exceeds a fixed threshold.

Why it matters

Anyone who reuses an automatically generated transcript must know that a fluent sentence is no evidence of its correctness. In 13,140 checked audio segments, Koenecke et al. (2024) found a hallucination in 1.4%, with conspicuously long and self-consistent additional sentences. This rate looks small, but for material that runs for several hours it is enough for several invented sentences per recording. The editor therefore needs a fixed rule for which irregularities trigger a check against the audio, instead of relying on how smoothly the transcript reads.

Difference from recognition errors and word error rate

A recognition error in the narrower sense is a substitution: the model puts a wrong word in the place of a real one, for example because two words sound similar. The error stays tied to the word that was actually spoken. A hallucination has no such tie. It inserts words or whole sentences for which no counterpart exists in the audio.

The word error rate counts both cases with the same formula, WER=S+D+IN\text{WER} = \frac{S + D + I}{N}, where SS is the number of substitutions, DD the number of deletions, II the number of insertions and NN the number of words in the reference text. A hallucination enters the count as an insertion, exactly like a harmless extra word. In the measurement above, with 321 instead of 130 words, the insertions alone would give WER=0+0+191130≈1.47\text{WER} = \frac{0 + 0 + 191}{130} \approx 1{.}47. This figure shows that the word error rate captures the extent of the error but cannot tell its kind.

Relevance in a forensic context

In an interview, an expert examination or a telephone call from a surveillance measure, a hallucination can produce a sentence that none of the people involved said. As an example of the stakes, Koenecke et al. (2024) name a court case or a prison phone call, where such an invented sentence in a transcription could contribute to a distorted decision. In the authors’ own categorisation, 38% of the hallucinations found contain one of three types of harm, among them depictions of violence that do not occur in the original audio, in 19% of all cases. For a forensic transcript this leads to a fixed working rule: every conspicuously long or off-topic paragraph is checked against the original audio before it is taken into a record. Marking uncertain words in the editor does not replace this check. It shows only where the model itself had little confidence in its output, and a hallucination can still be output with high confidence.

Frequently asked questions

Does speech recognition detect its own hallucinations?

Not reliably. A model such as Whisper often outputs hallucinated text with the same apparent certainty as a correctly recognised sentence, because both are generated from the same language patterns. Koenecke et al. (2024) therefore had to find hallucinations by comparing two independent runs of the same recording, instead of using a figure from a single run.

Do hallucinations occur more often with silence or background noise?

Yes. Koenecke et al. (2024) measured a higher share of non-vocal time for recordings with a hallucination, 29% against 26% for recordings without one. Radford et al. (2022) additionally name repetition loops as a separate error pattern that occurs mainly in longer recordings.

Does better recording quality help against hallucinations?

It lowers the risk but does not rule it out. Our own measurement from Speech recognition in 2026 (Kreh, 2026) used a short, clearly intelligible English recording and still returned 321 words on one device instead of the roughly 130 words actually spoken. The editor therefore checks every unusually long section against the audio, even when the recording quality is good.

Sources

  1. Koenecke, A., Choi, A. S. G., Mei, K. X., Schellmann, H., Sloane, M. (2024): Careless Whisper: Speech-to-Text Hallucination Harms. Proceedings of the 2024 ACM Conference on Fairness, Accountability, and Transparency (FAccT ‘24), 10 pages, doi:10.1145/3630106.3658996. https://dl.acm.org/doi/10.1145/3630106.3658996
  2. Radford, A., Kim, J. W., Xu, T., Brockman, G., McLeavey, C., Sutskever, I. (2022): Robust Speech Recognition via Large-Scale Weak Supervision. arXiv:2212.04356. https://arxiv.org/abs/2212.04356
  3. Kreh, K. B. (2026): Speech recognition in 2026: what actually works on your own computer. memozero blog, 10 August 2026. https://memozero.io/en/blog/speech-recognition-2026-on-device/