Introduction
Traditional Large Language Models (LLMs) are masters of text but remain "deaf" to the nuances of human speech. Conversely, Speech Language Models (SpeechLMs) often lack the broad semantic reasoning of their text-based counterparts or are confined to specific tasks like transcription. The common workaround is a "cascade" pipeline: transcribe speech to text (ASR), process it with an LLM, and then synthesize it back to audio (TTS). However, these pipelines are "expressively lossy." When speech is converted to plain text, the prosody, pitch, and style—the "how" that gives meaning to the "what"—are stripped away.
SpiRit-LM aims to bridge this gap by creating a unified model that retains both the semantic power of text and the expressive richness of speech. By treating text and speech as a single, interleaved stream of tokens, SpiRit-LM achieves seamless cross-modal capabilities, enabling tasks like ASR, TTS, and sentiment preservation through simple few-shot prompting without task-specific fine-tuning.
Methods: Architecture and Interleaving
The researchers built SpiRit-LM on top of a pre-trained LLaMA 2 (7B) model. The core innovation lies in the representation and mixing of modalities:
- Tokenization: Text is handled via standard BPE tokens. Speech is converted into discrete units using HuBERT for phonetic content.
- Word-Level Interleaving: Instead of training on separate blocks of text and speech, the authors used a small parallel corpus to "interleave" them at word boundaries. This forces the model to learn a shared latent representation where a speech token for a word is semantically mapped to its corresponding text token.
Expressive Speech Modeling
SpiRit-LM is developed in two flavors: BASE and EXPRESSIVE. While the BASE version uses only phonetic speech units, the EXPRESSIVE version adds specialized tokens to capture emotion and tone:
- Pitch: Captured via VQ-VAE tokens.
- Style: Represented through k-means clustering of speech features.
This multi-layered approach allows the model to preserve expressive nuances. However, adding pitch and style tokens increases sequence length, creating an "expressivity tax" where the model may slightly underperform on pure semantic benchmarks due to the increased overhead of processing prosodic information.
Datasets and Training
The model was trained on a diverse collection of data totaling roughly 100B tokens:
- Text: 300B tokens from the LLaMA 2 subset.
- Speech: 460K hours of speech-only data (30B tokens).
- Interleaved: 110K hours of curated speech-text pairs (7B speech tokens).
The authors utilized standard benchmarks like WUGGY (linguistic), BLIMP (grammatical), and StoryCloze (semantic). They also introduced a new benchmark, STSP (Speech-Text Sentiment Preservation), which tests if a model can maintain a "happy" or "sad" tone when moving between text and speech.
Key Results and Insights
- Interleaving is Critical: Ablation studies revealed that word-level interleaving is the "secret sauce." Without it, the model fails to align the two modalities, treating them as unrelated languages.
- Sentiment Preservation: In the STSP benchmark, SpiRit-LM EXPRESSIVE significantly outperformed both the BASE version and traditional cascade baselines, successfully preserving emotional sentiment across modality shifts.
- Emergent Cross-Modality: Because the model views speech and text as a single stream, it can perform tasks like ASR (Speech → Text) or TTS (Text → Speech) simply by being shown a few examples in its prompt.
- Zero-Shot Comprehension: SpiRit-LM BASE competes with state-of-the-art speech-only models (like AudioLM and TWIST) on speech benchmarks while maintaining the high-level reasoning capabilities of a 7B LLM.
Limitations and Future Work
The current iteration of SpiRit-LM is English-centric; expanding to a multilingual setup is a primary goal. While the 7B parameter size is effective, scaling to 13B or 70B is expected to yield even stronger performance. The authors also emphasize the need for robust safety tuning, as speech-to-speech generation currently shows higher "added toxicity" than text-to-text. Finally, finding more efficient ways to compress expressive information remains an open research question to mitigate the sequence length constraints of the EXPRESSIVE model.
Summary updated