The ASR improvement loop, packaged as a skill
Every ASR improvement attempt I ran followed the same loop: measure the baseline as a distribution, find where the errors actually live, try one lever, verify, classify. One day I got tired of re-explaining the loop to an agent, so I packaged it.
2026-07-28
The loop I kept repeating
Seven steps, and the order is the whole point. First, define the north-star evaluation before anything else: a gatekeeper test set the model never trains on, and a decision up front whether raw or normalized WER is the metric. Second, measure the baseline as a distribution, not one number: how many clips come out perfect, how many are near misses, how many are catastrophic. Third, analyze where the error mass lives before allowing any hypothesis. Fourth, state one lever in a fixed template: adding or changing X will move metric Y from baseline to target, because Z. Fifth, run it reproducibly: fixed checkpoint, dataset version, commit hash, bounded training. Sixth, verify with a checklist: the gatekeeper re-run, the targeted error mass re-measured, the mass actually shrank by roughly the claimed amount, fifty to twenty-two, not fifty to forty-six, and no regression anywhere else. Seventh, classify: WIN keeps the lever, LOSS retires it. When three or more levers, spanning both data and algorithm, all land within noise, that is a plateau, and the honest output is to say the on-hand levers are exhausted.
The gotchas in my playbook are scar tissue. My favorite: restore a checkpoint whose metadata declares the original loss class, and your custom loss silently never runs. Training proceeds as a dead re-run, indistinguishable in the logs, and it will burn GPU hours on nothing.
What the skill makes the agent do
The skill opens with three refusals: never optimize a number you have not defined, never trust a result you have not re-checked, never grind a lever you have already proven null. The session then cannot skip steps. It fills the hypothesis template or does not start. It records a fixed experiment block per run. It passes the verification checklist before any win is claimed, and every result gets classified. It also carries a ranked lever list, and the ranking is the lesson: fixing the ruler comes first, the evaluation itself being wrong once moved my number from 0.30 to 0.18 without touching the model, hyperparameters come last.
The tools
Three scripts, standard library only. One turns the baseline into a per-clip distribution, because corpus WER hides the failures that actually block production: the clips where the model outputs nothing at all. One buckets moderate errors by what a downstream LLM would recover. One checks filler preservation. They are language-agnostic in structure and every language needs its own adapters: the number-error detector in my copy literally contains kosong, satu, dua, tiga, the fingerprints of the Malay project that built it.
What it is not
It is not a magic button, and its own README says so: the biggest real lever is almost always real data matching your error distribution, and the skill exists to find that fast instead of churning levers that cannot work. The numbers inside are teaching examples, not case studies. It now lives in a bucket of researcher skills beside a TTS sibling, installed with a file copy. The loop is the asset. The skill just stops me, or an agent, from skipping it.