Context-Aware ASR for Mandarin Technical Lectures

Ho-Lam Chung, Yiming Chen, Hung-yi LeearXiv 2026

TL;DR

Standard Automatic Speech Recognition (ASR) metrics like Character Error Rate (CER) often mask critical failures in recognizing rare, code-switched technical terms in lectures. To solve this, researchers developed a reference-free, two-pass decoding method that extracts a custom glossary from a model's own first-pass hypotheses to bias and significantly improve second-pass term recognition without degrading overall accuracy.

What Problem Does This Paper Address?

In bilingual technical lectures—such as an AI/ML class taught in Mandarin but peppered with English terms like RAG, embedding, or SWE-bench—technical terms carry the core meaning of the content. However, because these terms make up only a tiny fraction of the total characters spoken, standard evaluation metrics like Character Error Rate (CER) can remain deceptively low even if every single technical term is misrecognized.

Existing contextual biasing methods attempt to fix this by injecting external knowledge (like a pre-defined vocabulary catalog) during decoding. However, these approaches assume that an accurate, external context source is readily available, which is rarely the case for niche, rapidly evolving, or lecture-specific terminology.

Methods

The authors propose ASR-GLOSSARY, a two-pass, reference-free decoding algorithm that exploits the "bursty" nature of lecture vocabulary—the tendency of a speaker to repeatedly use a technical term once it is introduced.

Two-pass glossary-prompted decoding algorithm
  1. Pass 1 (Segment-Only ASR): The audio is transcribed segment by segment without any external context.
  2. Glossary Extraction & Ranking: A rule-based extractor pulls potential technical terms from these first-pass transcripts. These terms are canonicalized (lowercased, normalized, stemmed) and ranked by their frequency across the entire lecture. The top $k$ (experimentally optimized at $k=30$) terms form a lecture-specific glossary.
  3. Pass 2 (Contextual Decoding): The audio is decoded a second time, but this time the self-built glossary is fed to the model as a prompt or system message to bias the recognition toward those terms.

For models like Whisper/Breeze, the glossary is passed as an initial prompt token sequence. For LLM-based models like Qwen3-ASR, it is passed via a system message accompanied by a "guard sentence" instructing the model not to hallucinate unspoken text.

Datasets

The authors introduced a new, term-rich benchmark derived from a publicly available Mandarin-English AI/ML lecture series.

Table 1: Benchmark statistics. The term-rich test set isolates segments that contain at least one technical term.

The full dataset spans 16.92 hours across 29,043 segments. From this, they isolated a term-rich test set consisting of 7,443 segments (5.01 hours) containing 8,888 technical term occurrences across 1,030 unique canonical terms.

Key Insights and Ideas

  • The "Bursty" Signal: Technical terms in lectures are highly repetitive but heavy-tailed. As seen in Figure 1, a lecture-specific tool name like OpenClaw can appear over a hundred times in a single lecture despite being entirely absent from standard training data.
Figure 1: Technical-term frequency in the term-rich test set, top 12 terms. The distribution is heavy-tailed. The lecture-specific tool name OpenClaw (red) occurs 135 times, which shows that even a name the model has never seen repeats heavily within one lecture.
  • Noisy Data is Enough: Even though the first-pass transcript is full of errors, the correct technical terms repeat often enough that frequency ranking naturally filters out random, one-off ASR misrecognitions.
  • New Evaluation Paradigm: The paper argues for moving away from pure CER toward term-centric metrics: Term Recall, Term Precision, Term F1, and Term Error Rate (TermER) to properly evaluate code-switched ASR.

Key Results

The authors evaluated their method across five distinct ASR backbones. In every single case, the first-pass glossary improved term recall while holding or lowering the overall CER.

Table 3: Contextual decoding across five ASR backbones on the 5.01 h term-rich set. CER is rescored on this subset, so baselines match the contextual rows. ∆R is the term-recall gain over the baseline. ⋆marks the proposed reference-free prompt. Bold marks the best value per column within each model. Values are percentages; lower is better for CER and TermER.
  • Breeze-ASR-25: The first-pass glossary boosted term recall from 52.50% to 60.13% and reduced CER from 11.37% to 9.79%.
  • Hybrid Approach: By combining the self-built glossary with a tiny external list of just 15 course-level terms, a hybrid configuration achieved a peak term recall of 62.05% and a term precision of 82.73% on Breeze-ASR-25.
  • Category Gains: The gains spanned all types of technical terms, showing particularly strong improvements in acronyms and multi-word terms.

Limitations and Future Work

  • The Coverage Ceiling: The largest limitation is that 55% to 65% of the terms missed by the baseline never appear in the first pass in any form (often substituted with phonetically similar phrases like "open cloud" for OpenClaw). A first-pass glossary cannot rescue what isn't there.
  • Domain & Speaker Constraints: The benchmark currently features only one instructor and one domain (AI/ML). Testing on multi-speaker datasets and other technical fields (e.g., medical or legal lectures) is required to prove generalizability.
  • Rule-Based Extraction: The term extractor relies on rigid, rule-based patterns. Integrating a learned, flexible entity extractor could improve benchmark coverage and glossary quality.

Summary updated

BibTeX
@misc{chung2026context,
  author = {Ho-Lam Chung and Yiming Chen and Hung-yi Lee},
  title = {{Context-Aware ASR for Mandarin Technical Lectures}},
  year = {2026},
  eprint = {2607.05058},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.05058},
}
Figure