surmenage · · budding · ml · speech · asr · evaluation

whisper-small with lora on non-native dutch: five variants, signal features, and a p-value bug

This is the lab project for DSAIT4095 Inclusive Speech Technology, a TU Delft course. I did the experiments and the write-up myself; the paper’s acknowledgements say I could not attend the lab sessions and did not take part in the group report, so none of this is a group result. The question was: what is the relationship between acoustic signal properties and ASR error for non-native Dutch, and do different adaptation strategies change it?

Setup

All models are Whisper-small (about 248M parameters) with LoRA rank 16 in the attention projections, which leaves about 6.5M trainable parameters. Training and evaluation run in SpeechBrain on DelftBlue. The data:

  • CGN (typical Dutch): 43,083 training utterances, 44.5 h, 292 speakers. Two test sets: broadcast news (409 utterances) and conversational telephone speech (3,884).
  • JASMIN-CGN non-native subset: 23,449 training utterances (11.7 h, 69 speakers), 2,986 validation, and a test set of 6,315 utterances (3.1 h) from 21 speakers. Splits are speaker-disjoint.

Five variants:

ModelWhat it is
Baselinepretrained Whisper-small, no adaptation
CGN_FTLoRA on CGN
Atyp_FTLoRA on the non-native training set
DALoRA on non-native data plus speed perturbation (0.9-1.1x), frequency dropout and chunk dropout
VCLoRA on non-native data plus 5,000 CGN utterances (5.1 h) that I pitch-shifted by 1-3 semitones

“VC” is a generous name. It is not voice conversion; it is librosa pitch shifting, which changes F0 and leaves the spectral envelope and rhythm alone. A predicted MOS over those utterances came out at a mean of 1.68 out of 5, so they sound bad.

WER

ModelCGN bnCGN ctsnon-native
Baseline35.5869.4470.95
CGN_FT17.1941.5941.81
Atyp_FT21.7947.5336.30
VC20.7144.8637.53
DA22.2344.5932.62

These were checked against the cluster output files. VC is no longer “pending” in my notes; the early notes table still says so, but the evaluation finished and the numbers above are from it.

The pattern is a trade-off. Training on typical Dutch gives the best native WER and only a modest non-native one. Training on non-native data does the reverse. DA gives the best non-native WER, 54% lower than the baseline in relative terms, at the cost of about 5 points on broadcast news relative to CGN_FT. Paired bootstrap with 10,000 resamples: every model beats the baseline at p < 0.001, and DA beats Atyp_FT on non-native by 3.68 points at p < 0.001. VC is not distinguishable from Atyp_FT on non-native speech (p = 0.68). I did not isolate the three augmentations inside DA, so I cannot say which one does the work.

One confound matters for the baseline. Pretrained Whisper outputs cased, punctuated text, and the JASMIN references are lowercase without punctuation. Re-scoring after normalising case and punctuation takes the baseline’s non-native WER from 70.95 to 51.67; 27.2% of its errors are formatting. The fine-tuned models are under 0.2% because LoRA training on the references teaches them the format. So of the 38.3-point drop from baseline to DA, roughly half is a formatting fix. Comparisons among the fine-tuned models are unaffected, and those are the ones I trust.

Signal features against WER

I extracted 11 Praat features per utterance with Parselmouth (F0 mean/std/range, jitter, shimmer, HNR, speaking rate, intensity, F1, F2, duration) for 10,608 utterances, and compared native (CGN, N = 4,293) with non-native (N = 6,315). The largest group differences, as Cohen’s d, are F2 (-1.85, 1588 Hz vs 1916 Hz), intensity (-1.54, 61.2 dB vs 70.3 dB) and HNR (-0.62).

Group differences in acoustic features, next to the same features' correlation with baseline WER on non-native speech.

Left: Cohen’s d between native and non-native speech. Right: Spearman correlation with baseline per-utterance WER on the non-native test set.

The intensity difference is partly a recording artefact. The native pool includes telephone speech, and comparing broadcast news alone against non-native gives d = +0.68, the opposite sign. I would not read the -1.54 as a property of non-native speakers.

Within the non-native test set, duration is by far the strongest predictor of baseline WER: short utterances fail more, partly because WER is inflated when there are few reference words. Fine-tuning removes most of that dependence. Intensity, jitter and HNR correlations stay about the same size or grow slightly.

Absolute Spearman correlation between four features and WER, per model.

Duration sensitivity collapses after fine-tuning; intensity stays near 0.1 for every model.

Binning by feature tells the same story: DA lowers WER in every bin, with the biggest absolute gains for short utterances and slow speech, but the shape across bins stays.

Mean WER by duration, speaking-rate and F0-variability bins, baseline versus DA.

DA roughly halves WER in each bin without flattening the differences between bins.

Three further checks:

  • Test-time normalisation. I fed the DA checkpoint audio with peak or RMS-matched amplitude. If intensity were a causal factor, this should help. Non-native WER moved by +0.04 (peak) and +0.08 (RMS). Peak normalisation hurt conversational speech by 7.2 points, almost entirely from insertions rising from 2,213 to 3,955, which looks like amplified noise turning into hallucinated words.
  • Speaker level. The 6,315 utterances come from only 21 speakers, so utterance-level p-values overstate independence. Aggregated per speaker (N = 21), 33 of 66 feature-model correlations change sign. Intensity goes from -0.127 to +0.019. Only F2 is strong at both levels (utterance r = +0.14, speaker r = +0.61), and it is not reduced by fine-tuning.
  • Errors. Diphthong and vowel-length confusions correlate most with speaker F2 (counts, r about +0.56 to +0.62), and the link is unchanged by DA. That fits F2 being a proxy for how far a speaker’s vowel space is from the training distribution, but it is a correlation over 21 speakers, not a demonstration.

Per-speaker WER under DA still ranges from 24.7% to 56.8%. Fine-tuning improved everyone by about 40 points and left the spread nearly where it was.

What I got wrong

I wrote my own Pearson correlation function in deep_analysis.py, including the p-value. The first version computed the t statistic correctly and then used 2 * exp(-0.5 * t**2) / sqrt(2*pi) as the p-value. That is twice the normal density at t, not a tail probability. Near the 0.05 boundary it overstates p by about 2x (for r = 0.1, n = 409: reported 0.102, correct 0.043).

The bug was found before the deadline, and the repository holds a verification script, a drop-in fix, a diagnostic plot and four report files about it. Those reports list the cases where it changed a conclusion:

  • A claim that DA “eliminates” the F0-range correlation on conversational speech (r = 0.034, n = 3,884) was wrong: the reported p was 0.084, the correct one 0.034, so it is weak but still significant.
  • A speaking-rate correlation I called marginal (reported p = 0.026) was actually p = 0.009.
  • Another baseline correlation (r = -0.095, n = 409) went from p = 0.125 to 0.055, which is still not significant at 0.05.

The reports say strong correlations (|r| above 0.15 with large N) are unaffected, and that is correct arithmetically. There are also three things that I should not hide about the audit itself:

  1. The sentences those reports quote, by line number, are not in the current FINDINGS.md. The findings file I have now already describes a t-distribution p-value implemented with a regularised incomplete beta function, and the current deep_analysis.py does contain that. So the audit was written against an earlier draft, and I cannot tell from the files whether the regenerated correlations.csv was ever re-checked against scipy beyond what the verification script shows.
  2. The reports’ explanation of the bug via Mill’s ratio is loose, and their summary claims Atyp_FT “eliminates nearly all signal biases”. The current findings contradict that: the correlations are mostly unchanged after fine-tuning.
  3. The bigger inconsistency was not the p-value. The same duration-vs-WER correlation for the baseline appears as -0.343 (Pearson, WER capped at 200%, in FINDINGS.md), -0.42 (Spearman, in the paper), and -0.59 (in an earlier notes file). The paper’s numbers are the ones I verified on the cluster against the result files, and FINDINGS.md is a different statistic. Capping WER at 200% was needed because Atyp_FT produced utterances with WER up to 44,300% from hallucinating on very short clips, but it is a choice that changes the answer, and the between-speaker variance figure moves with it (0.3-3.9% in the verified numbers, 3.5-4.4% in the paper’s discussion, 1.6-3.9% in the notes).

The lesson is plain. The reports’ own recommendation was to call scipy.stats.pearsonr instead of reimplementing it, and the current deep_analysis.py still carries my hand-written version (now a correct one). I also used different correlation statistics in different documents, and I still report utterance-level and speaker-level tables side by side without a model that accounts for speaker clustering.

What is still open

DA’s gain may come from any of its three components, and the pitch-shift “VC” arm says very little about real voice conversion. Whisper-small only, one language, and JASMIN’s non-native speech is mostly read speech with limited L1 variety. The gender-gap tables went through two versions: an F0-threshold proxy gave a -16.9 point gap for Atyp_FT in the notes, while the corpus-metadata labels used in the paper give -0.9.