Speaker diarization collapses on tiny waveform changes (e.g. +0.7 dB linear gain)
Summary
VibeVoice-ASR speaker diarization is extremely sensitive to any modification of the input waveform, even when the modification is perceptually identical to human ears. The same 22.85s vocal-only clip processed in 5 different ways — all sounding identical — produces wildly different speaker counts, often collapsing 3 speakers into 1.
This makes the model very hard to deploy reliably in any pipeline that performs even minor preprocessing.
Reproduction
A 22.85s vocal-only clip (mono, 44.1 kHz PCM, after vocal separation) is sent to the same VibeVoice-ASR endpoint with identical parameters (do_sample=False, num_beams=1, temperature=0). The only thing varied is how the audio is preprocessed before being sent. All variants are perceptually indistinguishable.
| Variant | RMS (dBFS) | Crest factor | Speakers detected |
|---|---|---|---|
| Original (no preprocessing) | −25.72 | 17.51 dB | 3 ✅ (correct ground truth) |
| +0.72 dB linear gain only | −25.00 | 17.51 dB | 2 ❌ |
| Linear gain to −18 LUFS | −22.20 | 17.51 dB | 1 ❌❌ |
ffmpeg loudnorm to −18 LUFS |
−22.25 | 18.51 dB | 2 ❌ |
ffmpeg loudnorm to −23 LUFS |
−27.25 | 18.51 dB | 1 ❌❌ |
A 0.72 dB pure linear gain (well below the threshold of human audibility) is enough to make the model lose 1 of 3 speakers.
I confirmed the model server is fully deterministic by calling the same file 5 times in a row — produces byte-identical results. So the variance above is not model randomness; it is genuinely caused by the waveform modifications.
Root Cause Analysis
I traced this through vibevoice/processor/audio_utils.py::AudioNormalizer:
def tailor_dB_FS(self, audio):
rms = np.sqrt(np.mean(audio ** 2))
scalar = 10 ** (self.target_dB_FS / 20) / (rms + self.eps)
return audio * scalar, rms, scalar
def avoid_clipping(self, audio, scalar=None):
if scalar is None:
max_val = np.max(np.abs(audio))
if max_val > 1.0: # <-- step discontinuity
scalar = max_val + self.eps
else:
scalar = 1.0
return audio / scalar, scalar
Two issues amplify input sensitivity:
-
Step discontinuity in
avoid_clipping: theif max_val > 1.0branch creates a non-continuous transformation. Inputs whose post-tailor_dB_FSpeaks straddle 1.0 get scaled differently. Different external preprocessing changes whether the threshold is hit, leading to different effective input levels reaching the LLM. -
Full-segment RMS includes silence: integrating silence frames into the RMS estimate makes the normalization sensitive to how much non-speech is at the boundaries of the clip.
But these only amplify the problem. The deeper issue appears to be that the LLM-based generation produces speaker IDs as autoregressive tokens — when the logits for <speaker_0> vs <speaker_1> are close, even tiny floating-point input perturbations flip the decision. Once flipped, autoregressive generation propagates the error to all subsequent sentences (which is why we see the "collapse to 1 speaker" failure mode).
Why This Matters
Routine preprocessing operations that any production pipeline does, will break diarization:
- Audio loudness normalization (very common in podcast / video pipelines)
- Vocal separation (output sample rate / format may vary by tool)
- MP3 / Opus / AAC re-encoding at any bitrate
- Sample rate conversion (44.1k ↔ 48k ↔ 24k)
- Even just a +1 dB gain to help upstream VAD detect quieter speech
Users will see non-deterministic diarization quality and have no way to debug it because all the audio sounds identical to them.
Suggestions
-
Document the problem: add a section to
docs/vibevoice-asr.mdwarning users that any preprocessing of the input can degrade speaker diarization. Recommend feeding raw audio with no normalization or re-encoding. -
Make
AudioNormalizermore stable:- Replace the hard
if max_val > 1.0step with a soft limiter (e.g.tanh-based or a small linear ramp at 0.95–1.0) to remove the discontinuity. - Use VAD-gated RMS (only accumulate frames above a noise floor) to make the level estimate robust to silence padding.
- Replace the hard
-
Add training-time augmentation: random gain (±6 dB), MP3 / Opus compression at multiple bitrates, and resampling are all standard for ASR / SV training (e.g. Whisper, ECAPA-TDNN). VibeVoice's behavior strongly suggests it was trained without such augmentation.
-
Offer a "speaker-stable" inference mode: optionally process the input through a deterministic canonical pipeline (e.g. always resample to 24 kHz mono, full-segment RMS to a fixed dBFS, no clip avoidance) so users can rely on consistent results regardless of upstream preprocessing.
Environment
- Model:
microsoft/VibeVoice-ASR(HF endpoint, gradio API) - Inference flags:
do_sample=False, num_beams=1, temperature=0, repetition_penalty=1.0 - Audio: 22.85s, mono, vocal-separated, originally 44.1 kHz / 16-bit PCM
- Test conducted on 2026-06-14
I have all 5 variant audio files + per-variant JSON outputs available; happy to attach them as a comment if useful.
Related Issues
- #257 (inconsistent prompt tokens / failed transcripts — may share root cause)
- #256 (
VIBEVOICE_USE_MEANfor determinism in vLLM but not HF — suggests team is already aware of input sensitivity) - #373 ("Yes. Yes." infinite loop — another fragility symptom)
Thanks for the great work. Looking forward to feedback on whether this brittleness is being addressed.
Update: I have found a real-world reproduction with even more clear-cut evidence than the +0.7 dB gain example above.
Real-world failure case: vocal denoising before ASR
My upstream pipeline runs vocal source separation (e.g. MSST) followed by an additional denoising pass on the separated vocals before sending to VibeVoice-ASR. This pattern is very common in production audio pipelines (e.g. for podcast / video translation workflows).
The denoising step changes the waveform by only 0.58–0.70% RMS, with zero time offset, but causes catastrophic speaker collapse:
| Variant | RMS residual vs. raw vocals | Segments | Speakers detected |
|---|---|---|---|
| Raw vocals (no denoising) — baseline | — | 5 | 3 ✅ (correct ground truth) |
| Vocals + denoise (normal) | 0.58% | 2 | 1 ❌❌ (collapsed) |
| Vocals + denoise (aggressive) | 0.70% | 4 | 2 ❌ |
Key observations:
- The waveforms are extremely close — sub-1% RMS residual, perceptually identical, zero time offset.
- "Normal" denoising produces worse ASR results than "aggressive" denoising. This is counterintuitive and rules out simple "more processing = more error" explanations. It suggests the model is sensitive to specific kinds of fine-grained waveform perturbations (which a careful denoiser introduces but an aggressive one washes out).
- Same pre-vocal pipeline (mp4 → mp3 → vocal separation) for all three variants. The only difference is the final denoising pass.
- The 22.85s test clip has 3 speakers in ground truth. Without denoising the model gets all 3 correctly. After a 0.58% residual denoising, all dialog collapses into a single speaker.
Why this matters more than the gain example
The original report used a synthetic +0.7 dB gain to show fragility. This denoising case is a realistic, common production pipeline pattern that practitioners would not even think to suspect. Many real-world deployments will silently degrade in this way.
Confirmed determinism
I ran the same input file 5 times against the model server and got byte-identical results. So the variance across these three variants is purely caused by the waveform difference, not model randomness.
Happy to share the 3 variant audio files (~7.5 MB each) and the per-variant ASR JSON outputs if useful for the team's investigation.
We also ran some follow-up experiments on this issue and wanted to share what we found.
We did observe sensitivity to very small input differences. We could not reproduce the reported 3→2 change with the public MP3. However, on a short AISHELL-4 clip containing six speakers, the original audio produced two speaker labels, while adding 0.72 dB and saving as PCM16 produced six. After the model’s normalization, the relative waveform difference was only about 0.05% RMS, with no clipping.
We tried increasing precision in parts of the computation, widening search, and adding boundary constraints, but found no consistently effective fix. In controlled experiments, changing a single timestamp digit could change subsequent speaker assignments. Under a custom VAD-derived timestamp schedule with a fixed segment count, writing the final End as 13.1 versus 13.10 assigned the same text to an existing speaker versus a new speaker. Errors also remained when reference timestamps and text were fixed and only labels were generated.
These observations suggest considerable sensitivity to small differences, which made us wonder whether short crops, brief utterances and dense turn-taking are input conditions the model handles less well.
We then returned to unconstrained decoding and tested the official Chat demo, existing synthetic examples and annotated AMI meetings. For the problematic AISHELL clip, instead of supplying only the isolated 22.85 seconds, we supplied the first two minutes and then the full 37-minute meeting containing it, and inspected the output for that same passage. All audio retained its original order; nothing was stitched together.
The large speaker-count change was reduced. With the isolated 22.85-second clip, the original produced two labels and the gain version six. With either the first two minutes or the full meeting as input, that same passage received seven labels in both versions.
However, the passage contains six speakers in the order A→B→C→D→E→F→A. The model produced 1→2→3→4→5→6→7, treating the returning speaker as someone new. So longer input reduced this instability, but did not fix identity consistency.
We would like to continue with a larger evaluation of how input conditions affect sensitivity. Training-distribution mismatch is one hypothesis that needs more data. The detailed experiments and examples are in the expandable report below.
@gpww Could you share the original PCM variants and corresponding outputs? Could the maintainers also share the official AISHELL-4/AMI evaluation configuration to help us align the next round of testing?
Detailed experimental report (Markdown)
VibeVoice-ASR: input sensitivity and speaker identity
Detailed experimental report for issue #407 | 29 October 2026
This attachment expands the accompanying issue comment. It combines two phases: controlled diagnosis on short clips, followed by unconstrained decoding on additional sources and longer meeting inputs.
Main finding. Small waveform differences remaining after normalization, and changes to generated timestamp context, could substantially change speaker assignments on selected short clips. With official examples and longer inputs, the prominent speaker-count changes were less evident. However, stable counts still concealed incorrect speaker attribution and splitting of returning speakers.
Phase 1 — Reproduction and controlled diagnosis
1. What was reproduced
The issue author reported three speakers in the original audio and two after a +0.72 dB gain. With the publicly attached MP3, our original and gain versions both produced two labels. We therefore investigated the same type of sensitivity using separately annotated audio.
On a 22.85-second, six-speaker AISHELL-4 excerpt from meeting L_R003S02C02, source time 6.0–28.85 seconds:
| Fixed seed | Original audio | +0.72 dB, saved as PCM16 |
|---|---|---|
| 0 | 2 speaker labels | 6 speaker labels |
| 1 | 5 speaker labels | 6 speaker labels |
Identical-input repeats matched. The sensitivity here concerns changing the input or generation context, rather than different outputs on every identical run.
The initial diagnostic excerpt used channel 0 and a 44.1 kHz PCM16 representation. Phase 2 subsequently checked the same content at its native 16 kHz rate.
2. What remained after normalization
The model's input pipeline already applies RMS normalization. We compared two gain-processing paths with the seed fixed at 0:
| Gain-processing path | Relative RMS difference after normalization | Labels: original → gain |
|---|---|---|
| Gain applied directly to the float waveform | 0.000673% | 2 → 2 |
| Gain followed by PCM16 storage and reload | 0.04896% | 2 → 6 |
The percentages measure waveform differences, not recognition error rates. Normalization substantially removed the gain difference but did not produce identical inputs. The PCM16 path included additional rounding, leaving a small residual associated with a much larger change in speaker output.
Neither member of this pair triggered clipping. Increasing encoder computation precision, or the final output-projection precision, left the PCM16 comparison at two versus six labels. These interventions did not provide a fix for this example.
3. A timestamp decision could change the subsequent speaker path
Two different speakers each briefly identified themselves. The original output placed both utterances in one object spanning 1.72–5.58 seconds with Speaker 1. The gain version separated them into 1.71–3.93 seconds with Speaker 1 and 3.93–5.62 seconds with Speaker 2. These times are relative to the cropped audio.
We then held the audio, cached acoustic features, seed and preceding generation fixed within each intervention. Only the first digit of the second segment's End was forced; subsequent generation remained free.
| Input and intervention | Final number of labels |
|---|---|
| Original audio, unmodified decoding | 2 |
| Original audio, force that End digit to 3 | 6 |
| Gain audio, unmodified decoding | 6 |
| Gain audio, force that End digit to 5 | 2 |
No speaker count or identity label was forced. Reference-time speaker matching also changed, so the result was more than printing additional IDs. This directly demonstrated that an early timestamp decision could change the later diarization path in these trajectories.
4. Numerically equal timestamps could also affect labels
A separate five-speaker excerpt was tested with a custom VAD-derived timestamp schedule and a fixed segment count. The complete audio was still supplied in one call; it was not cut into separate recognition calls. Timestamps and output structure were constrained, while speaker labels and text were generated.
Changing only the final End representation produced:
| Final End string | Final speaker label | Generated text |
|---|---|---|
| 13.1 | 0 — an existing identity | Unchanged between the pair |
| 13.10 | 5 — a new identity | Unchanged between the pair |
This difference occurred in all six paired seed/gain conditions for that VAD schedule. The reference-timestamp schedule for the same excerpt did not show the same label change.
This is evidence of sensitivity to textual context under a custom constraint, separate from the waveform-sensitivity result. It was not an observation from default unconstrained decoding.
5. Search, boundary constraints and label-only diagnosis
We explored several ways to improve the outputs:
| Method | Main observation |
|---|---|
| Wider search | Beam 2 found a better six-speaker path on the initial example. Beam 4 selected a higher-scoring one-speaker path with worse diarization. |
| Timestamp legality constraints | All 24 tested paths remained unchanged. |
| External VAD End limits | Time matching improved in 11/24 conditions and worsened in 13/24; interval coverage decreased in all 24. |
| Reference speaker-change End limits | Time matching improved in 21/24 conditions, but interval coverage still decreased in all 24. |
| Reference timestamps and text fixed; only labels generated | A three-speaker sequence A→B→C became A→B→A. A five-speaker sequence A→B→C→D→E→A became A→B→A→B→A→B. |
The 24-condition boundary matrices used four recordings, three seeds and two gain conditions. These are paired measurements, not 24 independent recordings. Search comparisons controlled cached features and included matching computation-shape controls.
The label-only result matters because, in the three-speaker example, the first two labels were already correct when the third was incorrectly assigned to the first speaker. There were both local identity errors and amplification from incorrect history.
Fixed-candidate scoring also showed that preference depended on context: replacing generated text with reference text could reverse the conditional-suffix ranking of correct and merged structures. Changing Start from 0.0 to 0.00 could change the full-sequence mean ranking without reversing the suffix ranking. We therefore tracked both scores instead of treating a higher overall model score as a direct measure of diarization quality.
6. A local stopping fix for the custom constraint
Fixing Start/End pairs and the number of output objects introduced a separate problem: 44 of 48 main conditions repeated the final text until the output limit. The model preferred to open another object, while the constraint prohibited it.
Changing only the final End to the audio duration increased normal completion from 4/48 to 48/48. Another 18 timestamp-format controls also completed normally. Preserving the original decimal width left all 48 paired identity groupings unchanged; omitted short replies and wrong labels still remained.
This repaired a stopping conflict in the added constraint scheme. It did not establish a general fix for the original unconstrained diarization issue.
Phase 1 interpretation
Small input differences and generated context could both change speaker output. Search or boundary interventions sometimes helped, but did not yield a consistently effective correction. Fixed reference boundaries and text also left some identity mistakes.
These findings motivated a hypothesis: brief meeting crops with short utterances and dense turn-taking may differ from the conditions the model handles best. Phase 2 examined additional sources and longer versions of the same content.
Phase 2 — Additional sources and longer inputs
1. Audio provenance and experiment scope
All comparisons returned to unconstrained greedy decoding, without custom segment, speaker-count, label or ending constraints. Each original/gain pair used matching inference settings and a reset seed.
| Source | Audio supplied | Completed generations |
|---|---|---|
| Official Microsoft Chat demo | Complete 68.99-second interview | 4 |
| Official repository toy0 | Complete 351.73-second synthetic fine-tuning example | 4 |
| Community example referenced by Transformers | Complete 40.93-second synthetic podcast | 5 |
| AMI annotated meetings | Two continuous 90-second excerpts from different participant groups | 8 |
| AISHELL-4 L_R003S02C02 | Legacy-rate crop, native-rate crop, first two minutes and complete 2246.708-second meeting; each paired | 8 |
Total: six sources, 29 completed generations and approximately 48 minutes 8 seconds of unique content. AISHELL crops and prefixes are contained within the full meeting and are not counted again as additional unique audio.
We did not concatenate separate recordings or discontinuous passages. The official demos and synthetic examples were used intact. AMI excerpts were selected before inference using reference annotations, including low overlap, sufficient participation by at least two speakers, turn changes and no word cuts at window edges. Each selected excerpt also contained a third speaker with brief replies.
2. Stable examples and errors hidden by stable counts
Chat retained two labels and the same label sequence after gain. Two text objects and three timestamp objects changed, with a maximum endpoint difference of 0.09 seconds. The synthetic toy0 dialogue retained three labels and its label sequence, with some text changes.
The 40.93-second synthetic example produced token-identical original/gain outputs for each of seeds 0 and 1. Its seed-0 baseline repeat also matched.
The AMI examples showed why stable counts alone are insufficient:
- IS1009a: speaker FIO084's industrial-designer introduction was labeled Speaker 1. Another speaker, FIO089, said “Okay.” at 28.76–29.05 seconds and “No.” at 55.55–55.79 seconds. These replies were transcribed but also assigned Speaker 1. Both seeds and gain conditions produced two labels despite three annotated active speakers.
- TS3003a: a third speaker said “A sheep.” at 67.04–67.47 seconds. At seed 1, the original output included it at 66.24–67.96 seconds, with an incorrect shared identity. The gain output instead used a speakerless [Speech] object from 51.69 to 90 seconds, omitting the explicit reply. The label count remained two. At seed 0, both versions already covered the tail with a broad event object.
Thus, the added sources did not uniformly repeat the initial large count jump. They included unchanged outputs, limited text/timing changes and consistently incorrect identity assignments.
3. Native-rate input did not remove the short-clip effect
The initial AISHELL processing included a 16→44.1→24 kHz path. We extracted the same channel and 6.0–28.85-second content directly at its native 16 kHz rate, leaving conversion to 24 kHz to the official processor.
At seed 0, the native-rate crop still produced two labels for the original and six for the gain version. The additional 44.1 kHz intermediate representation was therefore not necessary for this example's count sensitivity.
4. The same passage in two minutes and in the complete meeting
The key comparison changed how much of the original meeting the model heard:
- Only source time 6.0–28.85 seconds: a 22.85-second crop.
- Source time 0–120 seconds: the meeting's first two minutes.
- The complete original meeting: 2246.708 seconds, or 37 minutes 26.7 seconds.
Evaluation always returned to the same 6.0–28.85-second passage, containing six reference speakers. The native PCM samples in that passage were identical across the three input ranges.
| Input supplied | Labels: original / gain | Target-window DER: original | Target-window DER: gain |
|---|---|---|---|
| Native-rate 22.85-second crop | 2 / 6 | 49.15% | 13.49% |
| First two minutes | 7 / 7 | 16.38% | 16.79% |
| Complete 37-minute meeting | 7 / 7 | 17.20% | 18.17% |
The original short crop's severe merging was reduced, and the original/gain count difference disappeared. However, the longer inputs retained a specific identity mistake:
Reference: A → B → C → D → E → F → A
Generated: 1 → 2 → 3 → 4 → 5 → 6 → 7
The first speaker briefly identified themselves, five others spoke, and the first speaker returned to chair the meeting. Both longer input lengths treated that return as a new identity.
In the full original output, the opening identification at 6.11–7.45 seconds used Speaker 1, while the returning chair at 20.65–31.15 seconds used Speaker 7. The reference assigns both to 007-M. The gain version made the same split. Speaker 1 was used only for the opening identification; later chairing speech, including the final meeting-closing remark, used Speaker 7.
5. Full-meeting completion and remaining local changes
Both full-meeting generations ended normally, producing 13,147 and 13,125 tokens. The final End was 2246.71 seconds, matching the rounded audio duration. Total runtime was approximately 3 hours 26 minutes; neither run reached the 32,768-token limit.
Both outputs used eight labels across the complete meeting, but local assignments still changed. Near 31 minutes 52 seconds, reference speaker 005-M corresponds primarily to generated label 5. The original used label 5 at 1911.81–1912.61 seconds; the gain version used label 0 at 1911.94–1913.00 seconds, with different text. Thus, matching total label counts did not mean identical attribution.
The original scoring script counted every nonempty object carrying a Speaker field as predicted speech. Both outputs had an initial [Silence] object carrying label 0. We retained those scores and added an explicit calculation excluding pure bracketed event objects:
| Full-meeting local DER | Original | +0.72 dB |
|---|---|---|
| Original scoring rule | 16.53% | 17.08% |
| Excluding pure event objects | 16.42% | 16.98% |
The direction remained the same. Most of the increase came from missed-speech time. The target window starts at six seconds and is unaffected by the initial silence-object correction.
Phase 2 interpretation and next steps
Input conditions changed how the sensitivity manifested. Large speaker-count changes were absent from the added example pairs, and extending the same AISHELL content removed the initial count jump. The remaining failures involved short-utterance attribution and returning-speaker consistency.
We propose evaluating a fixed, annotated set of independent meetings, grouped by input duration, short-utterance prevalence and turn density. Measurements should separately track gain sensitivity, different-speaker merging, same-speaker splitting and omitted or misattributed short utterances.
An official AISHELL-4/AMI evaluation recipe and the training conventions for segmentation, timestamp representation and speaker numbering would help align that evaluation. Training-distribution mismatch remains a hypothesis to test, not a conclusion established by these examples.
Scope and reproducibility
These are selected-case diagnostics rather than population failure-rate estimates. Longer input did not improve every accuracy score: the original AISHELL target-window DER improved while the gain version's DER worsened. Longer input also changes normalization, absolute position and encoding/sampling shapes, not only semantic context.
AISHELL-4 and AMI are official evaluation sources, but our channel/mix choices and scoring were not verified as an exact replication of the published benchmark recipe. Our local DER uses zero collar, includes overlap and allows optimal one-to-one speaker mapping; target-window and whole-input mappings are calculated separately. Early time-matching/coverage metrics are different from DER. Official demos do not supply independent manual gold for every claim, and the complete meeting has not been manually checked word by word.
The MLC-SLM evaluation protocol was prepared but not executed because access to the audio was unavailable. The earlier interrupted full-meeting attempt was excluded; the two completed reruns are included in the 29-generation Phase 2 count.
Configuration and retained evidence
- Upstream commit:
16fb2cb1217c9934a886e1948ffb06120caa2df5. - Model revision:
d0c9efdb8d614685062c04425d91e01b6f37d944. - Main inference: BF16, SDPA, language-model layers 0–15 on GPU and 16–27 on CPU. Acoustic posterior sampling retained; seeds reset before generation.
- Phase 2: batch 1, greedy decoding, one beam, repetition penalty 1.0. Chat used seed 0 and a 4,096-token limit; the four-source extension used seeds 0/1 and an 8,192-token limit; AISHELL used seed 0 and a 32,768-token limit.
- Phase 1 intervention/scoring runs used matched settings within each experiment, including cached-feature and computation-shape checks where needed. Local precision changes were diagnostic interventions, not a full-FP32 model evaluation.
- Audio hashes, generation token IDs, raw text, reference annotations, candidate scores and verification files remain in the corresponding experiment directories. This attachment summarizes them; it does not bundle the audio or constitute a standalone executable reproduction package.