---
title: 'Speech LLaMA: Audio-Text Integration'
url: https://www.emergentmind.com/topics/speech-llama-3da8154c-ff81-4a96-9fb3-7ece0d56ca8b
type: topic
---

# Speech LLaMA: Audio-Text Integration

Searching arXiv for recent and foundational papers on Speech LLaMA.
Speech LLaMA denotes a line of architectures that attach speech representations to a LLaMA or LLaMA-derived decoder-only language model so that the model can condition on audio, generate text, and, in some variants, generate speech tokens or waveforms. In the literature, the term does not identify a single canonical model. Instead, it covers a family of systems that differ in how speech is compressed, projected, fused, or tokenized before reaching the language model, and in which downstream tasks are targeted: multilingual ASR, speech translation, spoken language understanding, audio reasoning, error correction, dialogue, emotion captioning, and text-to-speech [2307.11795, 2307.03917, 2408.16423, 2502.04128].

## 1. Origins and scope of the term

Two 2023 papers established the core pattern now commonly associated with Speech-LLaMA. "On decoder-only architecture for speech-to-text and large language model integration" used a frozen LLaMA-7B with a CTC compressor and a small audio encoder for multilingual speech translation [2307.03917]. "Prompting Large Language Models with Speech Recognition Abilities" attached a conformer audio encoder to LLaMA-7B for multilingual ASR by prepending projected audio embeddings to text token embeddings [2307.11795]. These works framed speech not as a separate encoder-decoder problem, but as a prefix-conditioning problem for a decoder-only LLM.

Subsequent work broadened the label well beyond ASR. WHISMA targeted zero-shot spoken language understanding by combining Whisper-large-v2 with Llama-3-8B-Instruct [2408.16423]. LTU-AS coupled Whisper and LLaMA for joint audio and speech understanding [2309.14405]. AudioChatLlama extended Llama-2-chat-7B to accept audio prompts in open-domain conversation [2311.06753]. Whispering LLaMA used cross-modal fusion for generative ASR error correction [2310.06434]. On the generation side, TTS-LLaMA, MoLE-LLaMA, Llasa, Llasa+, and Llama-VITS used LLaMA backbones or LLaMA embeddings for speech synthesis and multimodal speech-output systems [2410.20336, 2502.04128, 2508.06262, 2404.06714].

| System | Bridge to LLaMA | Primary use |
|---|---|---|
| Speech LLaMA | Conformer audio encoder + projection | Multilingual ASR |
| Speech-LLaMA | CTC compressor + audio encoder | Multilingual speech translation |
| WHISMA | Whisper encoder + modality aligner + LoRA | Zero-shot SLU |
| LTU-AS | Whisper + TLTR + LoRA | Joint audio and speech understanding |
| AudioChatLlama | Conformer-CTC frontend + projection | General-purpose speech interaction |
| Whispering LLaMA | Layerwise cross-modal adapters | Generative ASR error correction |
| Llasa | Codec tokens in a LLaMA Transformer | Speech synthesis |

This distribution of systems suggests that "Speech LLaMA" is best understood as an architectural paradigm rather than a benchmark-specific model family.

## 2. Architectural patterns

The simplest Speech-LLaMA design projects speech features into the same embedding space as text tokens and then concatenates them before decoding. In Speech LLaMA for ASR, raw waveforms are converted to 80-dimensional log-Mel filterbank features, processed by a conformer encoder, stacked to reduce sequence length, and projected into LLaMA’s 4096-dimensional token space. The resulting joint input is

$$
X = [\,s'_1+p_1,\dots,s'_{T'_a}+p_{T'_a};\; t_1+p_{T'_a+1},\dots,t_{T_t}+p_{T'_a+T_t}\,],
$$

which is then passed through the standard decoder layers without modifying the core LLaMA architecture [2307.11795].

A second recurring pattern is explicit speech compression before projection. The multilingual speech-translation Speech-LLaMA used a frozen CTC compressor with blank-removal or frame-averaging, followed by a 4-layer audio encoder that maps compressed 512-dimensional features into LLaMA’s 4096-dimensional space [2307.03917]. WHISMA used Whisper-large-v2 as speech encoder and a modality aligner composed of two 1-D CNN layers, a bottleneck adaptor with hidden dimension 320, and a linear projection to Llama-3’s embedding dimension; after Whisper’s \(8\times\) down-sampling and the aligner’s additional \(2\times\) reduction, the system produces 375 vectors per utterance [2408.16423]. These designs address the principal systems problem of Speech-LLaMA: raw audio sequences are too long to feed directly into a large decoder.

Other systems replace simple prefixing with more structured fusion. LTU-AS formed continuous audio tokens \(A\) from Whisper encoder states via a Time-and-Layer-Wise Transformer, discrete speech tokens \(S\) from the Whisper decoder, and question tokens \(Q\), then concatenated \([A,S,Q]\) before a frozen LLaMA with LoRA on self-attention key and query projections [2309.14405]. Whispering LLaMA injected Whisper acoustic features into LLaMA layer by layer through two adapters per layer and a gated fusion term, reusing LLaMA’s self-attention machinery for cross-modal error correction [2310.06434]. SECap adopted an encoder-bridge-decoder design in which HuBERT supplies frame-level speech features, a Q-Former Bridge-Net compresses them into emotion-related embeddings, and a frozen LLaMA decoder generates captions [2312.10381].

On the synthesis side, the architectural direction is inverted. TTS-LLaMA extends the Llama 3-8B-Instruct vocabulary with 4,096 discrete audio-semantic tokens and couples it to a small acoustic transformer and an RVQ vocoder [2410.20336]. Llasa replaces text-only output with X-codec2 speech tokens under a single Transformer aligned to LLaMA [2502.04128]. Llama-VITS does not use LLaMA as the decoder, but instead injects frozen Llama 2 semantic embeddings into VITS through linear projection and either addition or attention, showing a parallel line in which LLaMA serves as a semantic conditioner for TTS [2404.06714].

## 3. Training objectives and adaptation strategies

Most Speech-LLaMA systems retain standard autoregressive next-token prediction as the final optimization target. Speech LLaMA for ASR pretrains the audio encoder with the CTC loss and then jointly fine-tunes the audio encoder and LLaMA interface with cross-entropy, while optionally keeping the LLM frozen or updating only LoRA adapters [2307.11795]. The multilingual speech-translation variant similarly pretrains the CTC compressor, trains the audio encoder alone, and then adds LoRA adapters of rank \(r=2\) to the four attention matrices per LLaMA layer for a second stage of fine-tuning [2307.03917].

Parameter-efficient adaptation is a defining motif. WHISMA inserted LoRA into every self-attention weight matrix \(W\in\mathbb{R}^{d\times d}\) in all 32 Llama-3 layers, using

$$
W' = W + \frac{\alpha}{r}BA,\quad B\in\mathbb{R}^{d\times r},\;A\in\mathbb{R}^{r\times d},
$$

with rank \(r=8\) and scaling \(\alpha=16\) [2408.16423]. This combination of frozen backbone and lightweight adaptation recurs across the literature because it reduces trainable parameters, mitigates catastrophic forgetting, and preserves the base LLM’s text behavior. A plausible implication is that Speech-LLaMA is less a matter of retraining an LLM from scratch than of learning a narrow alignment interface between pretrained speech and text modules.

The literature also introduced task-specific training schemes that go beyond plain speech-to-text supervision. AudioChatLlama used a modality-invariant objective: for each transcript, the frozen Llama-2-chat model first generates a text response, and the speech frontend is then trained so that the same response is produced from the spoken version of that prompt, without curated task-specific paired speech-text-response data [2311.06753]. WHISMA used multi-task fine-tuning on approximately 2000 hours spanning ASR, intent classification, slot filling, spoken QA, spoken query instruction tuning, and spoken instruction tuning, together with prompt diversity and three SLU-chain modes: SLU-alone, speech chain-of-thought, and multi-round prompting [2408.16423]. SECap trained its Q-Former Bridge-Net with mutual-information minimization between transcript and acoustic embeddings and contrastive learning against caption embeddings so that LLaMA receives emotion-related rather than content-leaking features [2312.10381].

Sequence-level optimization and inference-aware training also appear. Faster Speech-LLaMA extends the decoder to predict \(K\) tokens in parallel under the approximation
$$
P(y_{u+1:u+K}|y_{\le u},X) \approx \prod_{k=1}^K P_k(y_{u+k} \mid y_{\le u}, X),
$$
and supplements cross-entropy with minimum word error rate fine-tuning using prefix-based beam search [2409.08148]. On the synthesis side, Llasa scales inference-time compute through verifier-guided search, while Llasa+ adds plug-and-play multi-token prediction modules with a verification algorithm that uses the frozen backbone as an oracle [2502.04128, 2508.06262].

## 4. Recognition, translation, and spoken language understanding

The first clear empirical success of Speech-LLaMA was multilingual ASR. On Multilingual LibriSpeech dev-test, Speech LLaMA with stride \(80\) ms and LoRA rank \(R=8\) achieved an average WER of \(9.7\%\), compared with \(11.8\%\) for the best monolingual no-LM baseline, corresponding to an approximately \(18\%\) relative reduction [2307.11795]. The same study showed that multilingual ASR remained possible even with LLaMA completely frozen, where \(R=0\) yielded \(10.9\%\) average WER, and that increasing the LoRA rank to \(32\) reduced average WER to \(9.5\%\) [2307.11795]. The multilingual speech-translation Speech-LLaMA reached \(26.3\) average BLEU on CoVoST-2 13\(\rightarrow\)EN, a \(+4.6\) absolute improvement over the strong seq2seq baseline, while using only \(16.1\) million learned parameters [2307.03917].

WHISMA moved Speech-LLaMA into zero-shot SLU. On the SLURP zero-shot split, WHISMA with multi-round prompting achieved SLU-F1 \(=63.3\%\), compared with \(50.0\%\) for ZS-Whisper-SLU, giving the reported \(26.6\%\) relative gain [2408.16423]. On FSC, WHISMA with speech chain-of-thought or multi-round prompting reached \(97.3\%\) intent accuracy, above the \(95.0\%\) of ZS-Whisper-SLU [2408.16423]. On the task-agnostic SLU-GLUE benchmark, WHISMA with multi-round prompting achieved \(79.0\%\) average binary accuracy, versus \(59.4\%\) for Qwen-Audio + MR, a \(33.0\%\) relative gain [2408.16423]. Its ablation on Spoken-Alpaca is particularly notable: removing 44k Spoken-Alpaca examples, only \(2.2\%\) of training data, dropped UTUC average from \(79.0\%\) to \(68.0\%\) under MR, indicating that diverse instruction tuning materially affects zero-shot generalization [2408.16423].

Whispering LLaMA shows that the Speech-LLaMA pattern is not limited to direct transcription. In generative ASR error correction over n-best hypotheses, the best medium-sized model \(\mathcal{WL}_M\) used only \(7.97\) million trainable parameters yet reduced average WER from \(21.64\%\) for the oracle n-best baseline to \(13.48\%\), corresponding to \(37.66\%\) WERR [2310.06434]. The same paper reported that removing masking dropped WERR to \(22.25\%\), removing the audio pathway caused collapse, and removing the initialization caused failure to converge [2310.06434]. This indicates that in Speech-LLaMA-style correction systems, alignment and initialization are not peripheral implementation details but central determinants of stability.

## 5. General audio reasoning, dialogue, and speech generation

Speech LLaMA has also been used for audio reasoning beyond ASR. LTU-AS integrated Whisper as a perception module and LLaMA as a reasoning module, allowing simultaneous treatment of spoken text, speech paralinguistics, and non-speech audio events [2309.14405]. On closed-ended benchmarks it reported \(80.8\%\) accuracy on ESC-50, \(15.0\) SPICE on AudioCaps, \(4.9\%\) WER on LibriSpeech test-clean, \(65.2\%\) accuracy on IEMOCAP, \(90.8\%\) macro-F1 on VoxCeleb2 gender, \(7.3\) MAE on speaker age, and \(50.3\%\) accuracy on GTZAN [2309.14405]. The model’s design, which jointly feeds continuous audio tokens and discrete speech tokens into LLaMA, directly contradicts the misconception that speech-capable LLMs are merely ASR front ends attached to text-only reasoning modules.

AudioChatLlama pursued general-purpose speech interaction with a completely frozen Llama-2-chat-7B and a trainable Conformer-CTC frontend [2311.06753]. On response perplexity under the oracle text-prompted answer, AudioChatLlama with a 36-layer Conformer achieved \(1.544\) PPL on MLS and \(1.422\) on TriviaQA-TTS, compared with \(1.575\) and \(1.709\) for a cascaded ASR \(+\) LLM system using a \(7.5\%\) WER ASR checkpoint [2311.06753]. The same work emphasized modal interchange: audio and text prompts can be mixed across turns while preserving dialogue context [2311.06753].

SECap extended the pattern to emotion captioning. Using HuBERT, Q-Former, and a frozen Chinese-finetuned LLaMA, SECap improved over HTSAT-BART on all objective evaluations; for example, SIM\(_1\) increased from \(59.62\) to \(71.95\), BLEU\(_4\) from \(3.05\) to \(8.12\), METEOR from \(14.61\) to \(19.30\), and CIDEr from \(2.21\) to \(34.81\) [2312.10381]. In subjective evaluation, Human Caption achieved MOS \(\approx 3.85\), SECap (Q-Emb+T-Emb) MOS \(\approx 3.77\), SECap (Q-Emb only) MOS \(\approx 3.48\), and HTSAT-BART MOS \(\approx 2.9\) [2312.10381]. Here LLaMA contributes primarily as a fluent caption generator once emotion-salient features have been disentangled upstream.

On speech generation, several strands emerged. TTS-LLaMA fine-tuned Llama 3-8B-Instruct to emit semantic speech tokens and reported zero-shot MOS scores of \(3.07 \pm 0.10\) for likeness and \(3.47 \pm 0.15\) for quality, while MoLE-LLaMA used a mixture-of-LoRA-experts with late fusion to mitigate catastrophic forgetting and recovered text QA performance to \(54.8\%\) on 5-shot MMLU, \(26.1\%\) on zero-shot GPQA, and \(70.3\%\) on ARC Challenge after TTS adaptation [2410.20336]. Llasa unified text and speech tokens under a single LLaMA-aligned Transformer and showed that scaling from \(1\)B at \(80\)k hours to \(8\)B at \(250\)k hours reduced LibriSpeech-clean WER from \(2.57\) to \(2.29\), while hybrid verifier-guided search at \(8\)B reached WER \(=1.49\%\), SIM-o \(=0.714\), and SIM-r \(=0.740\) on LibriSpeech [2502.04128]. Llasa+ then added multi-token prediction and verification to obtain a \(1.48\times\) speedup without sacrificing generation quality, whereas removing verification raised WER to \(14.372\) [2508.06262]. Llama-VITS, finally, showed that even frozen Llama 2 embeddings can enhance VITS-style TTS: on EmoV_DB_bea_sem, Llama-VITS with attention over text-sequence embeddings reached ESMOS \(3.22 \pm 0.07\), above ORI-VITS at \(3.06 \pm 0.08\) [2404.06714].

## 6. Efficiency, misconceptions, and open directions

Efficiency is a first-order concern because a Speech-LLaMA decoder must process long multimodal prefixes. Several papers attack this bottleneck directly. Speech LLaMA for ASR showed that stacking up to 12 frames, corresponding to 960 ms stride, reduces the audio-embedding sequence length by a factor of 96 with only modest WER degradation from \(11.1\%\) to \(11.9\%\) [2307.11795]. Faster Speech-LLaMA used four latent multi-token heads and threshold-based decoding to reduce decoder calls by approximately \(3.2\times\), with decoder RTF on LibriSpeech test-other dropping from \(0.79\) to \(0.45\) while improving WER from \(6.9\) to \(6.2\) [2409.08148]. In AVSR, Llama-SMoP replaced a single projector with a Sparse Mixture of Projectors; on LRS3, SMoP-3 DEDR improved WER from approximately \(3.81\) to \(3.31\) for \(1\)B, \(2.80\) to \(2.29\) for \(3\)B, and \(1.09\) to \(0.96\) for \(8\)B, while also improving noise robustness at SNR \(=0\) dB from \(11.3\%\) to \(9.5\%\) in AVSR [2505.14336].

A common misconception is that Speech LLaMA is synonymous with Whisper plus LLaMA. The literature is broader: conformers, HuBERT, WavLM, AV-HuBERT, Q-Former, TLTR, CTC compressors, codec tokenizers, and mixture-of-projector modules all appear as speech interfaces [2307.11795, 2312.10381, 2505.14336, 2502.04128]. Another misconception is that freezing the LLM is always sufficient. Some papers show strong results with frozen backbones, but others identify residual failure modes: AudioChatLlama reports hallucinations on acoustically similar rare words; LTU-AS notes that its \(4.9\%\) ASR WER is still above Whisper’s \(3.5\%\); SECap reports that freezing Q-Former in stage 2 drops SIM\(_1\) to \(57.92\); and monolithic TTS fine-tuning in TTS-LLaMA severely degrades text QA, motivating MoLE-LLaMA’s late-fusion routing [2311.06753, 2309.14405, 2312.10381, 2410.20336].

The open directions stated across the literature are consistent. They include direct alignment objectives between audio and text, semi- or self-supervised pretraining for audio encoders, longer-context and streaming variants, multimodal extensions with video, and lighter adaptation mechanisms for latency-constrained settings [2307.11795, 2307.03917, 2309.14405]. On the synthesis side, direct end-to-end speech QA remains open in MoLE-LLaMA, and broader accent, style, and multilingual adaptation remain active problems for LLaMA-based TTS systems [2410.20336, 2404.06714]. This suggests that Speech LLaMA has evolved from a narrow method for turning LLaMA into an ASR decoder into a general recipe for aligning pretrained speech and language modules, but that compression, grounding, and generation control remain the principal unresolved technical challenges.

Source: https://www.emergentmind.com/topics/speech-llama-3da8154c-ff81-4a96-9fb3-7ece0d56ca8b