Evaluate normalized recognition errors and the complete timed interaction
Compute word error with a fixed scoring protocol, distinguish corpus weighting from cohort averages, and measure audible latency, revision, failure, and quality together.
On this page
The question for today
What you’ll understand
- Calculate WER with explicit normalization and reference-word denominators.
- Distinguish corpus WER from an average of cohort rates and handle empty references explicitly.
- Define capture-to-result and end-of-turn-to-audible latency metrics with failures and cohort coverage.
A speech system is not characterized by one word-error percentage or one real-time factor. Recognition quality depends on transcription conventions and the population being measured; interaction latency depends on endpointing, context, compute, transport, synthesis, and playback. A dashboard can improve by changing normalization or excluding difficult failed sessions without making the product better. Fix the scoring and timing contracts, preserve the test population, and report enough complementary measurements to reveal those tradeoffs rather than letting one average hide them.
The reference text and normalization define the word-error task
Align a hypothesis with a reference using a declared tokenization, normalization, and edit-scoring protocol, then count substitutions, deletions, and insertions. Case, punctuation, filled pauses, compounds, numerals, and language-specific segmentation can change both alignment and denominator. Apply the intended rules consistently to reference and hypothesis, with documented exceptions. NIST's SCTK documentation provides concrete alignment and word-scoring conventions and configurable alternatives; an experiment should record its tool version and options rather than using the name WER as if every scoring setup were identical.
Reference transcripts can contain annotation disagreement or ambiguity, so curate them under a stable policy and retain adjudication records where needed. Do not tune normalization on the final test set merely to erase a particular model's errors. WER can exceed one hundred percent when insertions are numerous. A reference with zero words has no ordinary per-utterance WER denominator; report its insertions and the dataset's aggregation policy explicitly. A high-quality final transcript also does not reveal how often provisional text changed before finalization or how long the user waited.
Corpus weighting and cohort reporting answer different questions
A corpus WER pools error counts and reference words. An unweighted average of utterance or cohort WERs gives equal weight to those units instead, which can produce a different answer. Report the choice and inspect language, accent, microphone, noise, speaking rate, utterance length, and interaction style where the data supports those analyses. Small cohorts have uncertainty and may need additional collection rather than a confident ranking. Keep the original test scope visible when an overlap exclusion, failed recording, or unsupported format changes which cases contribute to a score.
Quality beyond word accuracy can include critical entity correctness, task success, clipped speech, synthesis intelligibility, prosody, and interruption success. Automatic proxies should be labeled as proxies and compared against appropriate human judgments or task outcomes. Measure false starts and repeated or missing audio as well as transcript edits. A system can achieve similar pooled WER while systematically losing quiet final words or failing a smaller user cohort. Those effects matter to the intended interaction even if the largest clean-audio subset dominates the aggregate denominator.
Define a clock boundary for every latency number
Separate audio capture to partial recognition, capture to stable committed text, actual speech end to endpoint decision, and actual speech end to first audible system response. Report first synthesized bytes separately from sound leaving the output device. Use compatible monotonic timing within a clock domain or a justified cross-clock mapping; subtracting unsynchronized host timestamps can create meaningless latency. Decompose one critical path carefully so overlapped work is not counted twice. A real-time factor measures processing duration relative to audio duration and does not bound a particular live response's delay.
Include failures, timeouts, cancellations, underruns, and heavy tails in the evaluation rather than computing percentiles only over easy completed sessions. Report the population and treatment of censored outcomes. The sampling lab isolates an iid binary audit: Reset, explicitly set BOTH p=0.1 and n=20, predict mean-error variance 0.0045, then Play or Step; Reset and re-set BOTH p=0.1 and n=100, predicting 0.0009. Edits retain t; playback highlights exact outcomes. Its CDF approximation bound is not a WER or latency guarantee, and it cannot represent insertion counts, aligned transcripts, correlated speakers, or interaction timing.
Work it through
Pool errors correctly and keep response latency separate
Group A has 100 reference words with eight substitutions, four deletions, and three insertions. Group B has 20 reference words and ten total errors. For one different illustrative serial interaction, delays are 20 ms framing,300 endpoint waiting,60 recognition completion,80 response generation,50 synthesis, and 40 playout; assume no overlap or omitted stages.
A has 8+4+3=15 errors and WER 15/100=0.15. B has 10/20=0.5. The equal-group macro average is (0.15+0.5)/2=0.325, or 32.5 percent.
Corpus WER is (15+10)/(100+20)=25/120≈0.2083, or 20.83 percent. The different group weights explain why it differs from the macro average.
The stated serial interaction delay is 20+300+60+80+50+40=550 milliseconds. It is a timing result for that path, not a consequence of either WER, and a real trace must account for overlap, failures, and its chosen speech-end reference.
Recognition accuracy, group weighting, and audible interaction latency remain separate measurements with explicit populations and clock boundaries.
The living notebook
Explore the model
Interactive lab · sampling
A larger simple audit reduces one modeled uncertainty
For EACH run Reset, set BOTH p and n, predict, then Play or Step. At toy binary-error p=0.1, n=20 gives mean variance 0.0045 and n=100 gives 0.0009. Edits retain t; playback highlights exact iid outcomes. The standardized-CDF bound is not a bar-error, WER, subgroup, or latency guarantee. No transcript alignment or timing is implemented.
- Mean sample proportion
- 0.5
- Sample-mean variance
- 0.0125
- Uniform CDF error bound
- ≤ 0.1062
Exact binomial masses for the mean of n independent Bernoulli trials, compared with normal mass between adjacent half-count boundaries; normal tails outside the finite support remain outside the bars. Playback highlights outcomes, not random samples. The Berry–Esseen bound applies to standardized CDFs, not individual bars or continuity-corrected errors. At p = 0 or 1, normal comparison and that bound are disabled. Normal-CDF evaluation uses a numerical approximation with absolute error below 7.5×10⁻⁸ (at most 1.5×10⁻⁷ per interval, before rounding). Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forSampling uncertainty, scoring conventions, cohort coverage, and interaction latency need their own evidence.
Pause & reason
Check your understanding
Your turn
Try it yourself
An utterance has fifty normalized reference words, three substitutions, two deletions, and five insertions. Its ten seconds of audio take 2.5 seconds of compute. Calculate WER and compute RTF. Do these establish first-audible response latency?
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Use reference words for WER and audio duration for RTF; neither denominator is a clock boundary for the live response.
Compare with the solution
WER is (3+2+5)/50=0.2, or twenty percent. Compute RTF is 2.5/10=0.25. These do not establish first-audible response latency, which additionally depends on text and audio availability, endpointing, queueing, generation, transport, synthesis, and device playout under a defined timing protocol.
Keep the idea
Take it with you
- WER requires a fixed normalization, alignment, and reference-word denominator.
- Pooled and macro summaries weight the evaluation population differently.
- Recognition quality, uncertainty, stable partials, failures, and audible latency need complementary measurements.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.