Abstract
In this work, we extend the instruction-tuned Llama-2 model with end-to-end general-purpose speech processing and reasoning abilities while maintaining the wide range of original LLM capabilities, without using any carefully curated paired data. The resulting end-to-end model, named AudioChatLlama, can utilize audio prompts as a replacement for text and sustain a conversation. Such a model also has extended cross-modal capabilities such as being able to perform spoken question answering (QA), speech translation, and audio summarization amongst many other closed and open-domain tasks. This is unlike prior approaches in speech, in which LLMs are extended to handle audio for a limited number of pre-designated tasks. On both synthesized and recorded speech QA test sets, evaluations show that our end-to-end approach is on par with or outperforms cascaded systems (speech recognizer + LLM) in terms of modelling the response to a prompt. Furthermore, unlike cascades, our approach can interchange text and audio modalities and intrinsically utilize prior context in a conversation to provide better results.
Introduction
Large Language Models (LLMs) like Llama-2 have revolutionized text-based reasoning, yet they remain largely disconnected from the nuances of human speech. The standard solution is a cascaded system, where a dedicated Automatic Speech Recognition (ASR) model transcribes audio into text before feeding it to the LLM. However, these systems suffer from a "broken telephone" effect: ASR errors—particularly on rare words or in noisy environments—lead to garbled inputs that cause the LLM to hallucinate or fail.
AudioChatLlama addresses this by aligning a speech encoder directly to the LLM's existing text space. This end-to-end approach allows the model to map acoustic features into the semantic space the LLM already understands, inheriting capabilities like translation and summarization for speech without requiring explicit task-specific training.
Methods
AudioChatLlama is built by integrating a frozen Llama-2-chat (7B) model with a trainable audio encoder.
Architecture and "Sandwiching"
The system uses a Conformer-based audio encoder followed by a linear projection layer. This layer transforms variable-length audio signals into a sequence of embeddings that match the dimensionality of Llama-2’s text embeddings. To maintain the model's instruction-following behavior, these audio embeddings are "sandwiched" between text-based prefixes (instructions) and suffixes (formatting tokens), allowing the LLM to treat audio as a direct replacement for text.
Modal-Invariance Training
A core innovation of this work is the "modal-invariance" training strategy. Instead of requiring specialized datasets of audio-based questions, the researchers utilized standard ASR datasets (Audio + Transcript). By feeding the transcript into Llama-2 to generate a "gold standard" response and then training the audio encoder to elicit that same response, the model learns to treat audio and text as semantically equivalent.
Evaluation and Results
The model was trained on the English split of Multilingual LibriSpeech (MLS) and evaluated on benchmarks including TriviaQA-TTS and RealSQA, a new benchmark featuring human-recorded questions to test real-world robustness.
Robustness to Phonetic Ambiguity
AudioChatLlama demonstrates superior robustness to phonetic ambiguities compared to cascaded systems. Because the LLM sees encoded acoustic features directly, it can use linguistic context to resolve "noisy" audio that would trip up a standard ASR. For example, where a cascade might transcribe a technical query as "gi hub reble," AudioChatLlama correctly identifies the intent as "GitHub repo."
Key Performance Metrics
In high-error scenarios (37.5% Word Error Rate in the prompt), AudioChatLlama achieved a 52% success rate in its response, significantly higher than the 40% achieved by the cascaded system. The model also showed lower perplexity across benchmarks, indicating higher confidence in correct responses. Furthermore, the system supports multi-modal fluidity, allowing users to switch between text and audio prompts while maintaining conversational context.
Discussion and Future Work
While AudioChatLlama excels at processing speech for semantic content, it currently has limited "general" audio understanding, such as identifying background noises or complex emotional states. Future work may involve scaling the audio encoder with larger self-supervised models like Wav2Vec2 or HuBERT and improving data processing to better respect sentence boundaries. Despite these limitations, the model demonstrates that LLMs can be effectively granted "ears" through end-to-end alignment, bypassing the inherent weaknesses of cascaded speech-to-text systems.
Summary updated