Repository navigation
Replies: 25 comments 24 replies
|
Great initiative @ryanheise Here is one to start - I have been looking at creating short synthetic audio clips that induce hallucination and have no private or copyrighted content. With |
|
I frequently get these repeats like this, requiring the need to re-do them. |
|
@ryanheise , do I understand right that we can use those audio segments that produce hallucination lines to re-train (finetune) Whisper model? Is that what you meant? [duplicate warning]: I had just posted a similar note in another thread before I saw this conversation. |
|
I like this one, it has given different hallucinations each run. And I had never heard of a Cyclophone before but apparently it's a real thing. :)
Run 1 Run 2 Run 3 large-v3 consistently seems to produce the same (less interesting) hallucination on this audio |
|
Why does the Whisper return random text (hallucinations) for an audio that does not contain any speech? I tested it with random traffic and one minute of silence. The output contains few words. But as per my thinking, it should not return anything in case there is no speech in the audio. How can I handle this ? Output: Output: |
|
So I guess no one here has heard about the --suppress_tokens "" trick? I've posted about it before, maybe it was simply lost in traffic. UPDATE: This method does NOT work with Turbo (and by extension, it probably won't work with large-v3 either). |
|
Hi @misutoneko , do the tokens need to be grouped/sequenced together when passed to --suppress_tokens? For example below is a hallucination. Should the command be --suppress_tokens "50364, 7, 6847, 96, 7016, 32045, 8, 50464" ? Does this suppress any occurences of these tokens in results, or only if they are sequenced as given? |
|
Hi, here is a 3min audio with a combination of music and kitchen noise. The hallucination liness by large-v2: And, here is the hallucination by large-v3: And, hallucination by large-v1: |
|
FWIW, my shop has processed thousands of hours of English files with a pretty wide range of speakers and lots of silence/music hallucinations. (we stick to large-v2). All our outputs are VTTs which we post-process by manipulating the output with webvtt CaptionLists. I do dozens of other corrections for casing, time, named entities, and line length that are all particular to my org's use cases (currently in a private repo, sorry I can't share the whole thing ATM), but here's a handful of the things that are most common in what we see, YMMV obviously: We also filter to a limited subset of unicode characters to drop obvious non-latin strings. Rationale: Why would Asiatic characters ever legitimately appear in an English text? Additionally:
None of these are prefect but they cut down a lot of the extra noise to a more reasonable looking output in many circumstances. |
|
First time I've seen this hallucination "KING OF THE R" during outro music of segment. Unless of course the outro music is called "KING OF THE R" and it is being "labelled" What do I mean by "labelled"? When a segment is announced, and then it repeats the name of the segment: "The Wooden Prince by Bela Bartók is played now by Christian Maciolaru." (source https://www.bbc.co.uk/programmes/m001whrr ) Note that after that it completely goes off the rails. Where are the hallucinations of form "StSq2 2.60" and "3F 5.83 x (-1.00), FCSp4 3.20" coming from?? |
|
Another fun hallucination is "counting" (source: https://www.bbc.co.uk/programmes/m001qklp ) Source: https://www.bbc.co.uk/programmes/m001rws1 also "En-za-mex" == "In the mix" ?? |
|
https://archive.org/details/movie-1992-musketeers.twenty.years.after Whisper surely loves you. Specially when playing |
|
Here's one i just got - searched "openai CastingWords" on google and found this thread. "Transcription by CastingWords" Wtf? |
|
Hi, I encounter a hallucination problem when using Whisper-large-v3. Please see here. |
|
Hello, I am working on Whisper-large-v3 to transcribe Chinese audio and I meet the same hallucination problem as #2071. |
|
So I finally figured out where this class of hallucination comes from -- figure skating: https://www.isuresults.com/results/season2425/jgpcze2024/FSKXPAIRS---JUNIOR----QUAL000100--_JudgesDetailsperSkater.pdf
(source https://www.bbc.co.uk/programmes/m0022ctz ) Suggestion: don't use train your language models on Ice Skating videos, or classical music will trigger transcription of figure skating notations. :-) |
|
I met the same issue of last post mentioned when transcripting Chineese audio file, it happened at the end of the sound file. Both the "好" and the "字幕志愿者 杨茜茜" are hallucinations. |
|
Is this a kind of hallucination? Whisper generated the wrong subtitle for the video: |
Background noise, |
|
Source: https://www.bbc.co.uk/programmes/m002q42l
|
|
Spurious repetitions are still too frequent. I would like to share a workflow in which I tackled them by creating an optional parameter named |
|
maybe this is useful for someone here still: |
|
Two things we learned running Whisper in production on formal French dictation (legal reports, where a wrong word is a liability), in case they help others here. Most of our phantom phrases were our own fault. Our pipeline cut the audio at every photo timestamp so that each photo could be anchored to a segment. Between two bursts of photos that produced 1–5 s slices with no context, and those are where "Merci d'avoir regardé cette vidéo", "Sous-titrage Société Radio-Canada" and "This is it." showed up: forced short segments hallucinated roughly nineteen times more often than the rest, and dictations without photos (hence without forced cuts) had about twenty times fewer phantom phrases per hour of audio. The engine's own options ( What fixed it: keep the cuts, but give the model ~10 s of audio on each side of any segment under 10 s, then keep only the words whose midpoint falls inside the original segment (word timestamps). Boundaries never move. Phantom phrases nearly vanished, quality went slightly up, coverage unchanged, about a sixth more compute. One trap: turn The phrases follow the decoded language, not the expected one. A French dictation that drifts returns English credits. We keep per-language lists (en/fr/de/es/it/pt) and check all of them. The detectors, the context-window logic and the write-ups (including the variants that looked better and were refused, e.g. "no cuts at all" silently dropped almost a tenth of the audio) are open source, MIT: https://github.com/Guillain-RDCDE/Trusted-Transcription — there is an in-browser demo where you can paste a transcript and see what gets flagged: https://guillain-rdcde.github.io/Trusted-Transcription/ Happy to add phantom phrases you have observed in other languages to the lists. |
|
This isn't necessary a hallucination, but when whisper have overlapping sound effects/voices, whisper have serious problems. I would expect something like "[multiple overlapping voices]", but instead got this (after "We're going to get married.") and the rest of lines are out of synch. A public source to the problematic location in movie |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Please share below any links to audio/video files that you have found to induce hallucinations in Whisper.
You may include:
The people working on various solutions to the hallucination problem can use these examples to help evaluate and improve those solutions.
All reactions