Introduction
Large Language Models (LLMs) have demonstrated exceptional capabilities in text processing, yet integrating speech remains a significant challenge. Traditional "cascaded" systems—which transcribe audio via an Automatic Speech Recognition (ASR) model before feeding text to an LLM—suffer from error propagation and the loss of critical paralinguistic information such as tone and emotion. While recent "SpeechLLMs" attempt to bridge this gap using trainable projectors, they often struggle with data scarcity for complex tasks and a tendency to overfit to simple transcription during pretraining.
Methodology: A Two-Stage Approach
To address these limitations, this research introduces a scalable, two-stage training pipeline designed to align speech and text representations in a task-agnostic manner.
1. Task-Agnostic Pretraining
Instead of traditional ASR-based pretraining, the authors employ contrastive learning (InfoNCE loss) on speech-text pairs. This method forces the model to align the internal representations of speech snippets with their corresponding text embeddings while distancing unrelated pairs.
A key innovation is the "All Layers" alignment: rather than only aligning initial embeddings, the contrastive loss is applied across multiple hidden layers of the LLM. The study explored both Cosine Similarity and Wasserstein Distance as similarity measures, finding the latter particularly effective for aligning sequences of varying lengths.
2. Task-Specific Fine-tuning
Following pretraining, the model undergoes fine-tuning on specific downstream tasks, including ASR, Speech Translation (ST), and Speech Question Answering (SQA). To maintain parameter efficiency, the Speech Encoder (HuBERT) and the LLM (Llama-3.1-8B) remain frozen, with only the Projector (Q-Former) being trained.
Key Results and Insights
The contrastive pretraining approach yields several significant advantages over traditional methods:
- Superior Foundation: Contrastive alignment provides a more robust foundation for LLMs than ASR pretraining, as it teaches the model the semantic context of speech within the LLM's existing knowledge base.
- Extreme Data Efficiency: Models using this contrastive method and fine-tuned on just 10% of available data outperformed models with no pretraining that utilized 100% of the data.
- Retention of Paralinguistic Features: By avoiding a text-only bottleneck, the model preserves non-verbal cues. This resulted in significantly better performance in gender-accurate translation and speaker trait recognition.
The best-performing model, contr-wasser-all + giga, achieved a normalized average score of 114.18, surpassing specialized state-of-the-art (SOTA) models like Whisper and Seamless. In low-resource SQA settings, the contrastive approach achieved an F1 score of 77.22, a dramatic improvement over the 46.07 score of the baseline model.
Conclusion and Future Work
This work demonstrates that deep contrastive alignment is a powerful tool for building versatile SpeechLLMs. While the current study kept the LLM and encoder frozen to optimize compute, future research could explore unfreezing these components or utilizing adapters like LoRA to further enhance performance. Additionally, scaling pretraining beyond 1,400 hours and implementing "hard negative" selection in the contrastive loss are promising avenues for future exploration.
Summary updated