pretty_name: WhisperKit ASR Evaluation Results
viewer: false
library_name: whisperkit
tags:
- whisper
- whisperkit
- coreml
- asr
- quantized
- automatic-speech-recognition
inference: false
WhisperKit Evaluation Results
Dataset: librispeech
WER | QoI (%) | File Size (MB) | |
---|---|---|---|
WhisperOpenAIAPI/openai_whisper-large-v2 | 2.85 | 100 | 3100 |
WhisperKit/openai_whisper-large-v3 | 2.48 | 95.2 | 3100 |
WhisperKit/openai_whisper-large-v3_turbo | 2.44 | 95.4 | 3100 |
WhisperKit/openai_whisper-large-v3_turbo_1018MB | 2.49 | 94.8 | 1018 |
WhisperKit/openai_whisper-large-v2 | 3.28 | 96.6 | 3100 |
WhisperKit/openai_whisper-large-v2_1050MB | 3.32 | 95 | 1050 |
WhisperKit/openai_whisper-large-v2_turbo | 3.24 | 96.6 | 3100 |
WhisperKit/openai_whisper-large-v2_turbo_1022MB | 3.33 | 94.9 | 1022 |
WhisperKit/openai_whisper-small.en | 4.14 | 85.8 | 483 |
WhisperKit/openai_whisper-small | 4.03 | 83 | 483 |
WhisperKit/openai_whisper-base.en | 4.79 | 75.3 | 145 |
WhisperKit/openai_whisper-base | 6.14 | 67.2 | 145 |
WhisperKit/openai_whisper-tiny.en | 6.76 | 63.9 | 66 |
WhisperKit/openai_whisper-tiny | 8.91 | 52.5 | 66 |
whisper.cpp/openai_whisper-large-v3 | 2.35 | 95.4 | 3100 |
Dataset: earnings22
WER | QoI (%) | File Size (MB) | |
---|---|---|---|
WhisperOpenAIAPI/openai_whisper-large-v2 | 17.08 | 100 | 3100 |
WhisperKit/openai_whisper-large-v3 | 15.91 | 58.5 | 3100 |
WhisperKit/openai_whisper-base.en | 24.16 | 6.5 | 145 |
WhisperKit/openai_whisper-tiny.en | 29.36 | 5.7 | 66 |
whisper.cpp/openai_whisper-large-v3 | 34.15 | 6.5 | 3100 |
We believe that rigorously measuring the quality of inference is necessary for developers and
enterprises to make informed decisions when opting to use optimized or compressed variants of
any machine learning model in production. To contextualize WhisperKit
, we take the following Whisper
implementations and benchmark them using a consistent evaluation harness:
Server-side:
WhisperOpenAIAPI
: OpenAI's Whisper API ($0.36 per hour of audio as of 02/29/24, 25MB file size limit per request)
On-device:
WhisperKit
: Argmax's implementation [Eval Harness] [Repo]whisper.cpp
: A C++ implementation form ggerganov [Eval Harness] [Repo]WhisperMLX
: A Python implementation from Apple MLX [Eval Harness] [Repo]
WhisperOpenAIAPI
sets the reference and we assume that it is using the equivalent of openai/whisper-large-v2
in float16 precision along with additional undisclosed optimizations from OpenAI. In all measurements, we care primarily about per-example no-regressions (quantified as qoi
below)
which is a stricter metric compared to dataset average Word Error RATE (WER). A 100% qoi
preserves perfect backwards-compatibility on the test distribution and avoids "perceived regressions", the phenomenon
where per-example known behavior changes after a code/model update and causes divergence in downstream code or breaks the user experience itself (even if dataset averages might stay flat
across updates). Pseudocode for qoi
:
qoi = []
for example in dataset:
no_regression = wer(optimized_model(example)) <= wer(reference_model(example))
qoi.append(no_regression)
qoi = (sum(qoi) / len(qoi)) * 100.
Note that the ordering of models with respect to WER
does not necessarily match the ordering with respect to QoI
. This is because the reference model gets assigned
a QoI of 100% by definition. Any per-example regression by other implementations get penalized while per-example improvements are not rewarded. QoI
(higher is better) matters
where the production behavior is established by the reference results and the goal is to not regress when switching to an optimized or compressed model. On the other hand,
WER
(lower is better) matters when there is no established production behavior and one is picking the best quality versus model size trade off point.
We anticipate developers that use Whisper (or similar models) in production to have their own Quality Assurance test sets and whisperkittools offers the tooling necessary to run the same measurements on such custom test sets, please see the Model Evaluation on Custom Dataset for details.
Datasets
- librispeech: ~5 hours of short English audio clips, tests short-form transcription quality
- earnings22: ~120 hours of English audio clips from earnings calls with various accents, tests long-form transcription quality
Reproducing Results
Results in this page are generated by our cluster of Apple Silicon Macs. We use them as self-hosted runners on
Github Actions as our CI infrastructure. Due to security concerns,
we are unable to open up the cluster to the public. However, any Apple Silicon Mac (even with 8GB RAM) can be used to
run identical evaluation jobs locally. For reference, our M2 Ultra devices complete a librispeech
+ openai/whisper-large-v3
evaluation in under 1 hour regardless of the Whisper implementation. Older Apple Silicon Macs should take less than 1 day to complete the same evaluation.
Glossary
_turbo
: Indicates the presence of additional optimizations (not compression) to unlock streaming transcription as described in our Blog Post._*MB
: Indicates the presence of model compression. Instead of cluttering the filename with details like_AudioEncoder-5.8bits_TextDecoder-6.1bits_QLoRA-rank=16
, we choose to summarize the compression spec as the resulting total file size since this is what matters to developers in production.