Point, Don't Rewrite: Span-Prompted Correction for Domain-Shifted Speech

Speech recognizers now turn talk into text quickly, but people still do not dictate important documents. The reason is old and well measured. Finding and fixing the few words the recognizer got wrong costs more time than speaking saved. Correction runs at roughly ten words per minute against more than a hundred for speaking (Choosing useful word alternates for automatic speech recognition correction interfaces). The words that break are precisely the ones that matter in specialized settings: drug names, diagnoses, part codes. The current answer is to hand the transcript to a large language model (LLM) and let it rewrite everything. In medical and other out-of-domain speech this is risky, because the rewriter also "fixes" correct rare terms into common words and adds or deletes phrases. The user must then check edits they never asked for.

We propose splitting the job the way promptable segmentation models split it for images. In MedSAM, a clinician draws a rough box and the adapted model draws the exact boundary, which cut expert segmentation time by over 82% (Segment anything in medical images). Here the user taps a wrong word, and a domain-adapted corrector proposes a short ranked list of replacements for that span only. The corrector reads both the surrounding text and the audio under the span. The human supplies where, the model supplies what. We will measure success in human correction effort on domain-shifted speech, not only in automatic word error rate.

Core Claim

We make two claims. The first is practical. For domain-shifted speech, a span-prompted corrector, adapted to the domain with lightweight fine-tuning and grounded in audio without a forced aligner, will need fewer user actions per correct final transcript than either of the existing approaches:

The second claim is analytic, and we think it is the more interesting one. The "ASR domain discrepancy" is the finding that a corrector trained on one recognizer's errors transfers poorly to another recognizer (Crossmodal ASR Error Correction with Discrete Speech Units). We hypothesize that this failure lives mostly in detection, meaning learning where a particular recognizer tends to fail. We expect it to affect correction much less, meaning inferring what was actually said from audio and domain knowledge. If so, making the user or a separate detector responsible for localization should make the corrector largely indifferent to which recognizer sits upstream.

This hypothesis borrows from an observation in written clinical text. On MEDEC, the models best at detecting errors are not the models best at correcting them (MEDEC: A Benchmark for Medical Error Detection and Correction in Clinical Notes). MEDEC studies written notes and never touches speech. We test whether the same split exists for speech recognition errors and whether it explains cross-recognizer transfer.

How This Differs From What Exists

Four lines of work are close, and each does something we do not.

Mani et al. treat medical transcript repair as translation. They train small recurrent models from scratch on 3,807 doctor–patient conversations. Google ASR word error rate fell from 41.0% to 34.1% (ASR Error Correction and Domain Adaptation Using Machine Translation). Their models were text-only and replaced rare medications with frequent tokens (Towards Understanding ASR Error Correction for Medical Conversations). These papers motivate us: they show the long-tail entity problem. They also constrain us: a Transformer trained from scratch reached 92.2% word error rate, so any design must start from pretrained weights.

The LLM correctors supply our method's ingredients but not its interaction model. ASR Error Correction Using Large Language Models constrains generation to N-best lists or lattices. Investigating ASR Error Correction with Large Language Model and Multilingual 1-best Hypotheses applies low-rank adaptation (LoRA, a method that trains small added weight matrices while freezing the base model) to Qwen1.5-7B, with phonetic transcriptions as extra input. Both rewrite whole utterances automatically, and neither uses audio.

Crossmodal ASR Error Correction with Discrete Speech Units does use audio. It pools HuBERT features, a self-supervised speech representation, within word boundaries produced by the Montreal Forced Aligner. That aligner needs a pronunciation dictionary, which is exactly what out-of-vocabulary jargon lacks. We replace it with soft attention over the audio frames near the flagged span.

Classic interactive correction (Recognition and correction of voice web search queries; Choosing useful word alternates for automatic speech recognition correction interfaces) already uses tap-to-select. It can only offer words the recognizer hypothesized, so a drug name the recognizer never considered cannot be recovered without retyping (Manipulating Word Lattices to Incorporate Human Corrections). Our proposal keeps the tap and changes what fills the menu.

The domain-gap literature in vision supplies the adaptation stance. Frozen natural-image features probed linearly transfer badly to medical tasks (Are Natural Domain Foundation Models Useful for Medical Image Classification?). Lightweight adapters close most of that gap cheaply (Surgical-DINO: Adapter Learning of Foundation Models for Depth Estimation in Endoscopic Surgery). We test whether the same holds for the speech encoder inside a corrector, rather than assuming it.

Research Program

The corrector. A pretrained text LLM receives three inputs:

  • the recognizer's 1-best transcript;
  • markers around the user-flagged span;
  • a sequence of audio vectors.

The audio vectors come from a speech encoder, either Whisper's encoder or HuBERT, run over a time window around the span. The window is set from the word timestamps that black-box recognition services usually return, widened by a fixed margin. A small cross-attention layer lets span tokens attend to those frames, so no word-level alignment is ever computed.

The model outputs a ranked list of $k$ replacements for the span. Text outside the span is copied unchanged by construction, which removes over-correction outside the span.

Adaptation. We adapt the LLM with LoRA in every condition. We compare three settings for the speech encoder: frozen, LoRA-adapted, and adapted with the cross-block adapter design of Parameter Efficient Fine-Tuning via Cross Block Orchestration for Segment Anything Model. This asks directly whether the frozen-feature penalty seen in vision recurs for acoustic features on clinical speech.

Training data. Training pairs come from real recognizer errors on in-domain audio. Spans are the aligned regions where hypothesis and reference differ. We train on the errors of one recognizer only (Whisper) so that transfer to others can be tested.

The detector. A separate lightweight detector, an LLM classifier over tokens that also uses recognizer confidence when available, proposes spans automatically for eyes-busy use. Keeping it separate lets us attribute cross-recognizer degradation to detection or to correction.

The effort model. We score every system with a simulated user, following the tradition of keystroke-level evaluation in text-entry work. For a transcript whose remaining errors are indexed by $e$, correction cost is

$$ C = \sum_{e} \Big( c_{\text{flag}} + \mathbb{1}[r_e \le k]\, c_{\text{sel}}\, r_e + \mathbb{1}[r_e > k]\, c_{\text{type}}\, \ell_e \Big) + c_{\text{verify}}\, m, $$

where the terms are:

Symbol Meaning
$r_e$ Rank of the correct replacement in the offered list
$\ell_e$ Character length of the reference span, typed when the list fails
$m$ Number of words the system changed without being asked, each of which the user must check
$c_{\text{flag}}, c_{\text{sel}}, c_{\text{type}}, c_{\text{verify}}$ Unit action costs, taken from a small timing study

The $m$ term is what makes automatic rewriting pay for its over-corrections. The simulated effort model is then checked against a small real user study.

Datasets

We use three evaluation settings, each chosen for a different failure mode.

Clinical conversations. The doctor–patient corpus of Mani et al. is proprietary; we will seek access through the authors. Independently, we will record a new read-dictation set of clinical sentences dense in pharmacological and diagnostic terms, drawn from the UMLS semantic types that paper used. This covers long-tail vocabulary.

SNuC (SNuC: The Sheffield Numbers Spoken Language Corpus). This covers structured sequences with no language context. One wrong character invalidates the whole entry, and 68.2% of human reading errors went unnoticed by the speaker.

TED-LIUM3. This gives an out-of-domain comparison point that matches prior LLM-correction work.

Baselines

Do nothing. The first reference point is the raw recognizer output, corrected by the simulated user by retyping every erroneous span. This fixes the effort ceiling. The published anchors are Google ASR at 41.0% word error rate on the clinical corpus (ASR Error Correction and Domain Adaptation Using Machine Translation) and 77.0% sentence-level accuracy for a LibriSpeech-trained Kaldi system on SNuC (SNuC: The Sheffield Numbers Spoken Language Corpus).

Classic interactive correction. The second baseline is a confusion-network menu built from each recognizer's lattice or N-best list, as in Recognition and correction of voice web search queries, with alternates chosen as in Choosing useful word alternates for automatic speech recognition correction interfaces.

  • Why it is strong: it is the direct interactive competitor, and it is fast.
  • How it is run: with the same $k$ and the same simulated user.
  • What beats it: lower cost $C$ on the clinical and SNuC sets, driven specifically by errors whose correct form was absent from the recognizer's hypotheses.
  • Reported numbers: no reported result found on Lacuna for the correction effort of confusion-network menus on these benchmarks.

Strongest automatic method. The third baseline is constrained LLM rewriting from ASR Error Correction Using Large Language Models, in its N-best-closest and lattice-constrained variants, followed by simulated manual cleanup.

  • Reported numbers: that paper reports up to a 6.1% word error rate reduction when a Whisper-trained corrector is applied to Transducer outputs, and 4.72% word error rate on LibriSpeech with multi-recognizer N-best lists.
  • How it is run: we re-implement it on our backbone, with the same LoRA budget, the same training pairs, and the same tuning trials as our method.
  • What beats it: lower total cost $C$ at matched or better final accuracy. For fairness we report the rewriting system's cost both with and without the $m$ verification term, so the result does not hinge on how we price verification.

Text-only rewriting with phonetics. We also include Qwen1.5-7B with LoRA and phonetic input, as in Investigating ASR Error Correction with Large Language Model and Multilingual 1-best Hypotheses. That paper reports English character error rate falling from 2.58% to 1.44% on Whisper v3 outputs.

Ablations. Four ablations isolate the key ingredients:

  1. Remove audio, leaving a span-prompted text-only corrector.
  2. Freeze the speech encoder.
  3. Replace soft windowed attention with aligner-based word pooling, as in Crossmodal ASR Error Correction with Discrete Speech Units.
  4. Remove domain adaptation entirely by prompting a frontier LLM zero-shot with the flagged span and context.

Why not just…?

Why not just let a constrained LLM rewrite the whole transcript automatically? This is the real threat. If constrained rewriting on clinical speech drives remaining errors low enough, taps become rare and the interaction design barely matters. Current evidence cuts both ways. Constrained decoding curbs hallucination, but it has only been tested on general speech (ASR Error Correction Using Large Language Models). Medical correctors are known to normalize rare terms (Towards Understanding ASR Error Correction for Medical Conversations), which turns correct words into errors the user must hunt for. The cost comparison settles it. Unprompted changes are counted, and we report the hybrid "rewrite, then span-correct the rest" as well. If the hybrid wins, that is the result we will report.

Why not just fine-tune the recognizer on in-domain audio? Commercial clinical recognition is often reachable only through an API, and paired clinical audio is scarce and restricted (Towards Understanding ASR Error Correction for Medical Conversations). Even strong recognizers leave errors that post-correction removes (Investigating ASR Error Correction with Large Language Model and Multilingual 1-best Hypotheses). Fine-tuning also leaves the correction step itself untouched. Where an open recognizer is available, we will fine-tune Whisper with LoRA on the same audio budget and apply our corrector on top. The question is whether effort gains survive a better recognizer, not whether one replaces the other.

Why not just prompt a frontier LLM with the flagged span? This is ablation 4, and it directly tests whether the domain gap matters for correction. On MEDEC, frontier models still trail physicians on clinical text (MEDEC: A Benchmark for Medical Error Detection and Correction in Clinical Notes). Text-only models cannot hear the difference between acoustically confusable drug names. If zero-shot span prompting matches the adapted, audio-grounded corrector on the clinical set, we would drop adaptation and audio from the recommendation.

Why not just use the recognizer's own alternates? Confusion networks can only offer what the recognizer considered, so terms outside its vocabulary need typing (Manipulating Word Lattices to Incorporate Human Corrections). We will stratify cost by whether the reference span appears in the N-best list. The prediction is that our advantage is concentrated in the absent stratum and near zero in the present one. If the advantage is large in the present stratum instead, our explanation is wrong.

Decisive Checks

Check 1: detection versus correction. We train on Whisper errors and test on Kaldi and Transducer outputs. We measure the cross-recognizer drop twice: once with oracle spans, which isolates correction, and once with the learned detector, which adds detection.

  • The second claim predicts a small drop with oracle spans and most of the degradation in detection.
  • A large drop with oracle spans falsifies it.

Check 2: the frozen-feature penalty. We plot recall of the correct term in the top $k$ against speech-encoder adaptation (frozen, LoRA, cross-block) on the clinical set. If frozen and adapted encoders tie, the vision domain-gap lesson does not carry over to speech in this setting, and we will say so.

Check 3: aligner-free grounding. We compare soft windowed attention against forced-aligner pooling, split by whether the aligner succeeded on that utterance. Soft attention should win where the aligner fails and roughly tie where it succeeds.

Check 4: real users. About a dozen participants correct dictated clinical sentences and SNuC codes under three conditions: confusion-network menus, constrained rewriting plus cleanup, and span-prompted correction. We measure time to a correct transcript and count the residual errors they accept. This validates the simulated cost $C$ and tests whether span prompting reduces unnoticed errors, the failure SNuC documents.