Introduction
While Large Language Models (LLMs) have revolutionized natural language processing, integrating them with other modalities like speech remains a significant challenge. Current LLM-based Automatic Speech Recognition (ASR) systems often suffer from inefficient fine-tuning, modality mismatches, and "hallucinations"—where the model generates text for non-speech segments or repeats phrases in unfamiliar acoustic environments. This paper provides a comprehensive blueprint for building robust speech recognition systems by connecting pretrained speech encoders to LLMs using parameter-efficient fine-tuning (LoRA), a novel cross-modal "matching loss," and specific training strategies to curb insertion errors.
Methodology
The proposed modular architecture consists of a speech encoder (Hubert-large), an adapter, and an LLM (Vicuna-7b). The solution addresses the integration challenges through three primary mechanisms:
Systematic Fine-tuning
The authors conducted an empirical study comparing frozen, fully fine-tuned, and LoRA-adapted (Low-Rank Adaptation) versions of both the encoder and the LLM. This systematic exploration aimed to find the optimal balance between computational efficiency and recognition performance.
Matching Loss
To bridge the gap between speech representations and text embeddings, the authors introduced an explicit "matching loss." Using a cross-attention mechanism to align acoustic and text sequence lengths, they applied Mean Square Error (MSE) and Cosine distance to minimize the latent space gap between modalities.
Hallucination Mitigation
To combat insertion errors, several strategies were employed:
- Inference Constraints: Application of n-gram non-repetition and length penalties during beam search decoding.
- NSET (Non-Speech Empty Transcript): Fine-tuning on a "non-speech" corpus (noise and music from the Musan dataset) paired with empty transcripts to teach the model to remain silent when no speech is present.
- Data Augmentation (DA): Standard speed and volume perturbations to increase acoustic robustness.
Key Results and Insights
The Efficacy of LoRA
The study found that applying LoRA to both the speech encoder and the LLM (Setting S4) provides the best performance-to-parameter ratio. As shown in the results table, S4 significantly outperforms frozen configurations (S1) while requiring only a fraction of the parameters needed for full fine-tuning.
Performance Gains
- Efficiency: Implementing LoRA on the LLM (S2) reduced the Word Error Rate (WER) by over 20% compared to a frozen LLM (S1) on challenging Librispeech subsets.
- Low-Resource Robustness: In the 10h training scenario, the combination of n-gram constraints and NSET training effectively reduced the Insertion Error Rate (IER) from 1.88% to 0.89%.
- Out-of-Domain Success: On the GigaSpeech dataset, applying inference constraints reduced the WER from 46.42% to 27.83%, primarily by eliminating hallucinated words.
Alignment and Negative Sampling
The results demonstrate that alignment between speech and text is not automatic; the explicit Matching Loss acts as a necessary "nudge," particularly in difficult acoustic conditions (e.g., the "dev-other" sets). Furthermore, teaching the model "silence" through NSET proved to be a powerful negative sampling technique for reducing hallucinations in noisy environments.
Conclusion
This research highlights that the integration of speech encoders and LLMs requires more than simple task-based training. By combining parameter-efficient adaptation with explicit modality matching and negative sampling for non-speech segments, the authors achieved significant gains in both accuracy and robustness. While the NSET approach can occasionally lead to over-correction (increased deletion errors) in low-resource settings, it remains a highly effective tool for stabilizing LLM-based ASR systems. Future work may extend these matching and mitigation strategies to other multimodal tasks like speech translation and general audio reasoning.
Summary updated