CTC-Assisted LLM-Based Contextual ASR

Guanrou Yang, Ziyang Ma, Zhifu Gao, Shiliang Zhang, Xie Chen

TL;DR

This paper introduces a CTC-Assisted LLM-Based Contextual ASR system that significantly improves the recognition of "hotwords" (rare names, technical terms, etc.). By using a lightweight CTC module to pre-filter a massive list of potential words and injecting the relevant ones into a Large Language Model's (LLM) prompt, the authors achieve state-of-the-art performance on rare word recognition with minimal computational overhead.

What Problem Does This Paper Address?

Standard end-to-end Automatic Speech Recognition (ASR) systems are remarkably good at general conversation but often stumble on "long-tail" words—specific entities like "Ravelston," "itineraries," or technical jargon that rarely appear in training data.

To fix this, researchers use Contextual ASR (or hotword customization), where the model is provided with a "biasing list" of words likely to appear in the audio. However, existing methods face two major hurdles:

  1. Complexity: Traditional methods involve intricate decoding structures (like WFSTs) or complex neural attention modules that are hard to tune.
  2. The "Needle in a Haystack" Problem: In real-world apps, a biasing list might contain thousands of words. If you feed all of them into a model, the "distractor" words often cause the model to hallucinate or misidentify common words as rare ones.

Methods

The authors propose a two-stage architecture that combines the speed of traditional signal processing with the reasoning power of LLMs.

  1. The Architecture: They use a WavLM Large encoder to process audio and a Vicuna-7B LLM as the decoder. A lightweight "projector" bridges the two, turning audio features into tokens the LLM can understand.
  2. The CTC Assistant: They attach a Connectionist Temporal Classification (CTC) head to the audio encoder. This allows the model to generate a "coarse" transcript (an "inference sentence") very quickly and cheaply.
  3. The Filtering Algorithm: Instead of giving the LLM a list of 2,000 words, they use the coarse CTC transcript to find the most likely candidates:
  4. Index Building: They create a 2-gram index of the entire biasing list.
  5. Candidate Retrieval: They take the coarse transcript, strip out common words (like "the," "and"), and use the remaining fragments to pull similar-sounding candidates from the index using edit distance.
  6. Prompt Injection: The top-matching hotwords are inserted directly into the LLM's text prompt: "Transcribe speech to text. Some hotwords might help. The hotwords are {filtered_list}."

Datasets

The model was trained and evaluated on the standard LibriSpeech corpus (960 hours of training data). To test contextual performance, they used artificial biasing lists (benchmarks from prior work) containing between 100 and 2,000 "distractor" words alongside the actual ground-truth hotwords.

Key Insights and Ideas

  • LLMs as Contextual Decoders: The "aha moment" here is treating an LLM not just as a transcriber, but as a context-aware assistant. By putting hotwords in the prompt, the LLM uses its internal linguistic knowledge to decide if a "hinted" word actually makes sense in the current sentence.
  • Coarse-to-Fine Filtering: You don't need a perfect transcript to find the right hotwords. Even a messy, error-prone CTC output is enough to narrow down a list of 2,000 words to a handful of relevant candidates.
  • Encoder Pre-tuning: The authors found that fine-tuning the audio encoder with CTC loss before training the whole system significantly improved performance compared to using a "frozen" pre-trained encoder.

Key Results

The proposed method sets a new bar for contextual ASR on LibriSpeech:

  • Accuracy: On the test-clean set with 100 biasing words, it achieved a Word Error Rate (WER) of 1.27% and a Biased Word Error Rate (B-WER) of 3.67%.
  • Massive Reductions: Compared to a baseline LLM-based ASR without the filtering/prompting logic, this represents a ~40% relative reduction in WER and a ~63% reduction in B-WER.
  • Scalability: Even when the biasing list grew to 2,000 words, the model remained robust, significantly outperforming previous specialized models like DB-NNLM and GA-CTC.

Limitations and Future Work

  • Computational Cost: While the filtering is efficient, the backbone is still a 7-billion parameter LLM (Vicuna). This makes it computationally expensive for real-time, on-device applications compared to smaller, dedicated ASR models.
  • Language Scope: The study focused exclusively on English. The authors noted that future work will involve expanding the method to other languages and more diverse datasets.
  • Hallucination Risk: While the filtering helps, LLMs can still occasionally "hallucinate" a hotword from the prompt if the audio is extremely noisy, a common challenge in LLM-based speech systems.

Summary updated

BibTeX
@inproceedings{yang2024ctc,
  author = {Guanrou Yang and Ziyang Ma and Zhifu Gao and Shiliang Zhang and Xie Chen},
  title = {{CTC-Assisted LLM-Based Contextual ASR}},
  booktitle = {SLT},
  year = {2024},
  url = {https://openreview.net/forum?id=A6ZGd32q6u},
}

Loading related content...

Figure