Whispering LLaMA: A Cross-Modal Generative Error Correction Framework for Speech Recognition

Srijith Radhakrishnan, Chao-Han Huck Yang, Sumeer Ahmad Khan, Rohit Kumar, Narsis A. Kiani, David Gomez-Cabrero, Jesper Tegnér

Abstract

Whispering LLaMA (WL) is a novel cross-modal framework designed to enhance Automatic Speech Recognition (ASR) through Generative Error Correction (GEC). By integrating acoustic features from the Whisper speech model directly into the LLaMA Large Language Model (LLM) using parameter-efficient adapters, the system moves beyond traditional n-best re-ranking. Experimental results demonstrate that Whispering LLaMA achieves a 37.66% relative improvement in Word Error Rate Reduction (WERR), effectively allowing a small ASR model to match the performance of models many times its size.

Introduction

Traditional ASR systems often utilize a "two-pass" approach where an acoustic model generates an n-best list of hypotheses, and a language model re-ranks them. This method is fundamentally limited: if the correct transcription is not present in the initial list, the system cannot recover it. Whispering LLaMA addresses this by treating error correction as a generative task. Instead of merely selecting from a list, the model synthesizes a corrected transcript by attending to both the noisy text hypotheses and the original high-dimensional acoustic features.

Methodology

The Whispering LLaMA framework integrates two frozen foundation models—Whisper for speech and LLaMA for text—connected via trainable adapters.

The Whispering LLaMA architecture, illustrating the fusion of language embeddings and audio features through specialized adapters ($A_L$ and $A_W$) within the transformer layers.

Cross-Modal Fusion

The core innovation lies in the insertion of two types of adapters into each LLaMA layer:

  • $A_L$ (LLaMA Adapter): Refines the LLM’s internal linguistic representations.
  • $A_W$ (Whisper Adapter): Fuses acoustic features from the Whisper encoder into LLaMA’s self-attention blocks.

Smart Initialization and Efficiency

To prevent training failure during the alignment of disparate latent spaces, the authors developed a weight initialization strategy using identity matrices and diagonal padding. This preserves the structure of Whisper’s embeddings as they are mapped into LLaMA. The approach is highly parameter-efficient; the medium variant ($WL_M$) utilizes only 7.97M trainable parameters while keeping the massive foundation models frozen.

Experimental Results

The framework was evaluated on the ATIS and GigaSpeech datasets. To simulate a realistic correction scenario, Whisper-Tiny was used to generate initial noisy hypotheses.

Performance metrics across various datasets, showing that the $WL_M$ configuration achieves the highest Word Error Rate Reduction (WERR) and outperforms larger adapter variants.

Key Findings

  • Superior Correction: The $WL_M$ model achieved a 37.66% relative improvement in WERR compared to the "Oracle" baseline (the best possible result from simple re-ranking). On the ATIS dataset, WER dropped from 13.76% to 1.77%.
  • Acoustic Dependency: Ablation studies (Rows 6 and 8 in the results table) show that removing audio features ($H_A$) or the Whisper adapter ($SA_W$) causes performance to plummet. This confirms the model is actively using audio to resolve textual ambiguities rather than just "guessing" based on language patterns.
  • Scaling Efficiency: Interestingly, the medium-sized adapter ($WL_M$) outperformed the larger $WL_L$ variant, suggesting an optimal capacity for cross-modal mapping.

Discussion and Future Work

While Whispering LLaMA significantly boosts accuracy—enabling a 70M parameter Whisper-Tiny model to match a 1.5B parameter Whisper-Large model—it introduces computational overhead. Integrating audio features increased training duration by approximately 395%. Additionally, as a second-pass generative model, it faces higher latency than single-pass systems. Future research will focus on optimizing this pipeline for real-time applications and expanding its multi-lingual capabilities.

Summary updated

BibTeX
@inproceedings{radhakrishnan2023whispering,
  author = {Srijith Radhakrishnan and Chao-Han Huck Yang and Sumeer Ahmad Khan and Rohit Kumar and Narsis A. Kiani and David Gomez-Cabrero and Jesper Tegnér},
  title = {{Whispering LLaMA: A Cross-Modal Generative Error Correction Framework for Speech Recognition}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.618},
}
Figure