Lesson 21 / Unit 6: Model Improvements
Vocabulary Biasing
Explore domain priors without pretending that a preferred identifier is acoustic evidence.
Suppose only a small set of part identifiers is valid today. That knowledge can influence decoding, but it can also push the recognizer toward a valid identifier the caller never said. A prior changes the decision; it does not verify the audio.
Separate Scores
An illustrative candidate score combines acoustic log probability with a weighted domain prior. Keep both terms visible so the reason for a changed output can be inspected.
combined_score = acoustic_log_probability + weight * domain_log_priorThis is an experiment design, not an implemented contextual-biasing feature in our baseline. The current lab decoder uses acoustic scores only. Do not present this formula as a drop-in equivalent to a vendor’s phrase-hint API.
Negative Examples
Build a validation slice containing both valid identifiers and similar-sounding alternatives. Include out-of-list speech. If every reference is on the preferred list, the evaluation cannot expose the cost of forcing unrelated audio onto that list.
| Condition | Inspect |
|---|---|
| Correct identifier in list | Recovery of the full string |
| Similar identifier absent | False replacement with a listed value |
| No matching identifier | Rejection or clarification policy |
| List changes | Configuration and model-version traceability |
Google’s adaptation documentation describes recognition biasing and its false-positive tradeoff. The exact controls depend on the deployed recognizer.
Keep Evidence
Store the raw hypothesis, biased candidate and list revision. A business lookup should not quietly rewrite the transcript and erase the uncertainty. Review Entity Accuracy for the distinction between valid form and correct identity.
The next lesson, Pretrained Encoders, changes the acoustic starting point. Keep that experiment separate from decoder priors so improvements remain attributable.
We do this work for teams shipping voice agents: Self-Hosted Voice Agent .
Edit this lesson on GitHub ↗Discussion
Questions, corrections and war stories welcome. Sign in with GitHub to comment.