whisper-zero-shot-eval
Robust Speech Recognition via Large-Scale Weak Supervision — Radford et al. (2022) (arXiv:2212.04356, 2022)
What this evaluates
Evaluates the zero-shot generalization capability of a speech recognition model across diverse English and multilingual domains. It measures robustness to out-of-distribution audio, varying noise levels, and translation tasks without any dataset-specific fine-tuning.
Datasets
- LibriSpeech — total ?; splits: test (-1)
- Common Voice — total ?; splits: test (-1)
- Fleurs — total ?; splits: test (-1)
- CoVoST2 — total ?; splits: test (-1)
- Multilingual LibriSpeech (MLS) — total ?; splits: test (-1)
- VoxPopuli — total ?; splits: test (-1)
Metrics
WER (primary) — range: percent
- Word Error Rate calculated as the minimum number of insertions, deletions, and substitutions of words required to transform the predicted transcript into the reference transcript, divided by the number of words in the reference. Applied after a custom text normalization step to ignore formatting/style differences.
BLEU — range: percent
- Standard n-gram based BLEU score measuring the precision of predicted translations against reference English transcripts.
Input / output format
Input: Raw audio recordings in various formats, languages, and acoustic conditions (e.g., clean speech, noisy environments, meetings, read speech).
Output: Raw text transcript corresponding to the spoken audio, without any special formatting or delimiters.
Scoring recipe
def compute_wer(predictions, references):
normalized_preds = [normalize_text(p) for p in predictions]
normalized_refs = [normalize_text(r) for r in references]
total_errors = 0
total_words = 0
for pred, ref in zip(normalized_preds, normalized_refs):
dist = edit_distance(pred.split(), ref.split())
total_errors += dist
total_words += len(ref.split())
return (total_errors / total_words) * 100
Common pitfalls
- Naive WER calculation heavily penalizes minor formatting or stylistic differences (e.g., contractions, punctuation), requiring the paper's custom text normalizer for fair comparison.
- Zero-shot evaluation explicitly forbids fine-tuning on the target dataset's training split, contrasting with standard supervised benchmarks that often report in-distribution performance.
- Human performance baselines are measured out-of-distribution, while many supervised models are evaluated in-distribution, making direct human-vs-machine comparisons misleading without this protocol.
Evidence (verbatim from paper)
Speech recognition research typically evaluates and compares systems based on the word error rate (WER) metric. However, WER, which is based on string edit distance, penalizes all differences between the model’s output and the reference transcript including innocuous differences in transcript style. As a result, systems that output transcripts that would be judged as correct by humans can still have a large WER due to minor formatting differences.
Citation
@misc{radford2022whisper,
title={Robust Speech Recognition via Large-Scale Weak Supervision},
author={Radford et al. (2022)},
year={2022},
note={arXiv:2212.04356}
}
1---2name: whisper-zero-shot-eval3description: Evaluates the zero-shot generalization capability of a speech recognition model across diverse English and multilingual domains. It measures robustness to out-of-distribution audio, varying noise levels, and translation tasks without any dataset-specific fine-tuning. Use when the user wants to benchmark on LibriSpeech, Common Voice, Fleurs, CoVoST2, Multilingual LibriSpeech (MLS), VoxPopuli, or asks about evaluating this task. Reports WER.4---56# whisper-zero-shot-eval78> Robust Speech Recognition via Large-Scale Weak Supervision — Radford et al. (2022) (arXiv:2212.04356, 2022)910## What this evaluates1112Evaluates the zero-shot generalization capability of a speech recognition model across diverse English and multilingual domains. It measures robustness to out-of-distribution audio, varying noise levels, and translation tasks without any dataset-specific fine-tuning.1314## Datasets1516- **LibriSpeech** — total ?; splits: test (-1)17- **Common Voice** — total ?; splits: test (-1)18- **Fleurs** — total ?; splits: test (-1)19- **CoVoST2** — total ?; splits: test (-1)20- **Multilingual LibriSpeech (MLS)** — total ?; splits: test (-1)21- **VoxPopuli** — total ?; splits: test (-1)2223## Metrics2425- `WER` **(primary)** — range: percent26 - Word Error Rate calculated as the minimum number of insertions, deletions, and substitutions of words required to transform the predicted transcript into the reference transcript, divided by the number of words in the reference. Applied after a custom text normalization step to ignore formatting/style differences.27- `BLEU` — range: percent28 - Standard n-gram based BLEU score measuring the precision of predicted translations against reference English transcripts.2930## Input / output format3132**Input**: Raw audio recordings in various formats, languages, and acoustic conditions (e.g., clean speech, noisy environments, meetings, read speech).3334**Output**: Raw text transcript corresponding to the spoken audio, without any special formatting or delimiters.3536## Scoring recipe3738```python39def compute_wer(predictions, references):40 normalized_preds = [normalize_text(p) for p in predictions]41 normalized_refs = [normalize_text(r) for r in references]42 total_errors = 043 total_words = 044 for pred, ref in zip(normalized_preds, normalized_refs):45 dist = edit_distance(pred.split(), ref.split())46 total_errors += dist47 total_words += len(ref.split())48 return (total_errors / total_words) * 10049```5051## Common pitfalls5253- Naive WER calculation heavily penalizes minor formatting or stylistic differences (e.g., contractions, punctuation), requiring the paper's custom text normalizer for fair comparison.54- Zero-shot evaluation explicitly forbids fine-tuning on the target dataset's training split, contrasting with standard supervised benchmarks that often report in-distribution performance.55- Human performance baselines are measured out-of-distribution, while many supervised models are evaluated in-distribution, making direct human-vs-machine comparisons misleading without this protocol.5657## Evidence (verbatim from paper)5859> Speech recognition research typically evaluates and compares systems based on the word error rate (WER) metric. However, WER, which is based on string edit distance, penalizes all differences between the model’s output and the reference transcript including innocuous differences in transcript style. As a result, systems that output transcripts that would be judged as correct by humans can still have a large WER due to minor formatting differences.6061## Citation6263```bibtex64@misc{radford2022whisper,65 title={Robust Speech Recognition via Large-Scale Weak Supervision},66 author={Radford et al. (2022)},67 year={2022},68 note={arXiv:2212.04356}69}70```7172- arXiv: 2212.04356