Leveraging Large Language Models for Exploiting ASR Uncertainty

Pranay Dighe, Yi Su, Shangshang Zheng, Yunshu Liu, Vineet Garg, Xiaochuan Niu, Ahmed TewfikarXiv 2023

TL;DR

When using Large Language Models (LLMs) for spoken language tasks, relying on a single top transcription from an Automatic Speech Recognition (ASR) system creates an information bottleneck prone to upstream errors. By instead prompting the LLM with an n-best list of alternative transcriptions and their associated ASR costs, the LLM can successfully exploit ASR uncertainty to correct errors. Combined with parameter-efficient fine-tuning (LoRA), this approach significantly boosts accuracy on downstream tasks like intent classification and keyword spotting without modifying the underlying ASR or LLM architectures.

What Problem Does This Paper Address?

Modern Spoken Language Understanding (SLU) systems typically follow a modular pipeline: an Automatic Speech Recognition (ASR) model converts audio to text, and a text-based model (increasingly an LLM) determines the user's intent.

However, real-world audio is full of noise, accents, and overlapping speech, meaning the ASR model's top choice (the "1-best" hypothesis) is frequently incorrect. This creates a severe information bottleneck. If the ASR model outputs a flawed transcription, the downstream LLM is set up to fail. While end-to-end multi-modal LLMs that ingest raw audio embeddings are an active area of research, they are expensive to train, deploy, and share across multiple distinct tasks.

The authors ask a practical engineering question: How far can we go by keeping the ASR and LLM components completely frozen and modular, but widening the communication channel between them?

Fig. 1: A toy NLP task which demonstrates that prompting the LLM with n-best ASR hypotheses allows it to exploit ASR uncertainty to better solve the downstream NLP task.

Methods

Instead of feeding the LLM just the single 1-best ASR transcription, the authors propose feeding it an n-best list of competing hypotheses generated from the ASR decoder's lattice graph.

Key details of their approach include:

  • Prompt Formatting: The alternative transcriptions are separated by newlines, and each is appended with its acoustic and language model acoustic-log-likelihood cost (e.g., text [-47.8]). A lower cost indicates higher ASR confidence.
  • Prompt Engineering vs. Fine-tuning: They first test zero-shot prompting by explicitly explaining the concept of an n-best list and confidence costs to a base LLM (Vicuna-7B-v1.3).
  • LoRA Fine-tuning: Because base LLMs struggle to natively parse ASR uncertainty formats out-of-the-box, they apply Low-Rank Adaptation (LoRA) fine-tuning. This allows the LLM to learn the common acoustic mistakes made by the ASR system and map them to the correct intent.

Datasets

The approach was evaluated on two distinct SLU tasks:

  1. Device-Directed Speech Detection (DDSD): An internal Apple dataset consisting of utterances that are either directed at a voice assistant (label 1) or spoken to another human (label 0). The evaluation set contains 12,771 device-directed and 2,274 human-directed human-graded utterances.
  2. Keyword Spotting (KS): The public Google Speech Commands (GSC) dataset, consisting of 35 spoken keywords. The authors treat this as a multi-class intent classification problem using ~85k utterances for training/fine-tuning and ~11k for testing.

Key Insights and Ideas

  • The "Aha" Moment in Error Correction: The LLM acts as an intelligent error-corrector by looking further down the n-best list. For example, if a user says "up", the ASR 1-best might mistakenly transcribe it as "out". However, if "up" appears as the 7th option in the n-best list, a fine-tuned LLM can successfully extract it based on context.
  • Base LLMs Need Training for Uncertainty: Without fine-tuning, base LLMs actually perform worse as the n-best list grows. They get confused by the formatting and costs, often defaulting to natural language explanations rather than strict classification labels.
  • LoRA Bypasses Prompt Engineering: Surprisingly, ablation studies showed that once the LLM is fine-tuned with LoRA, the explicit task instructions and even the exact ASR cost values become largely redundant. The fine-tuned LLM primarily needs the alternative text hypotheses to perform its corrections effectively.

Key Results

The quantitative improvements from using n-best lists over 1-best transcriptions are substantial:

Device-Directed Speech Detection (DDSD)

  • Binary Classification: Fine-tuning with an 8-best list dropped the False Positive Rate (FPR) to 4.7% (at a 91.8% True Positive Rate), compared to an 8.3% FPR when using only the 1-best transcription.
  • Continuous 100-Scale Scoring: When training the LLM to output a score from 0 to 100 (allowing for tunable operating thresholds), increasing $n$ from 1 to 16 reduced the Equal Error Rate (EER) from 10.7% to 7.4%. At a fixed 95% True Positive Rate, the False Positive Rate dropped by a massive 80% relative margin (from 55.8% down to 10.1%).
Fig. 2: ROC curves for LLMs finetuned to output score on a scale of 0-100.

Keyword Spotting (GSC)

  • The baseline ASR system achieved 94.5% accuracy.
  • Interfacing the LLM with the 1-best transcription raised accuracy to 97.0% (due to text-based cleanup).
  • Expanding to an 8-best list pushed the final accuracy to 97.5%, successfully recovering words that the ASR completely misidentified in its top choice.

Limitations and Future Work

While n-best lists significantly widen the information bottleneck, they still represent a compressed version of the full ASR decoding lattice. The authors noted that a specialized baseline model called LatticeRNN—which processes the entire complex lattice graph—still slightly outperformed the LLM approach on the DDSD task (achieving a 6.4% EER vs the LLM's 7.4%). Lattices are currently too long and structurally complex to fit cleanly into standard LLM token context windows.

For future work, the authors aim to scale this methodology to more complex, multi-turn dialogue systems and broader domain prediction tasks.

Summary updated

BibTeX
@misc{dighe2023leveraging,
  author = {Pranay Dighe and Yi Su and Shangshang Zheng and Yunshu Liu and Vineet Garg and Xiaochuan Niu and Ahmed Tewfik},
  title = {{Leveraging Large Language Models for Exploiting ASR Uncertainty}},
  year = {2023},
  eprint = {2309.04842},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.04842},
}
Figure