[Paper Review] Spirit LM: Interleaved Spoken and Written Language Model
SPIRIT LM is a 7B-parameter foundation model that jointly trains on interleaved text and speech tokens, enabling cross-modal generation of both speech and text. By extending LLaMA 2 with continuous pretraining on a mixed stream of text (BPE) and speech (HuBERT, pitch, and style units), it achieves strong performance in few-shot learning across ASR, TTS, and speech classification, while preserving sentiment across modalities—making it the first model to demonstrate cross-modal sentiment preservation in both text and speech generation.
We introduce Spirit LM, a foundation multimodal language model that freely mixes text and speech. Our model is based on a 7B pretrained text language model that we extend to the speech modality by continuously training it on text and speech units. Speech and text sequences are concatenated as a single stream of tokens, and trained with a word-level interleaving method using a small automatically-curated speech-text parallel corpus. Spirit LM comes in two versions: a Base version that uses speech phonetic units (HuBERT) and an Expressive version that models expressivity using pitch and style units in addition to the phonetic units. For both versions, the text is encoded with subword BPE tokens. The resulting model displays both the semantic abilities of text models and the expressive abilities of speech models. Additionally, we demonstrate that Spirit LM can learn new tasks in a few-shot fashion across modalities (i.e. ASR, TTS, Speech Classification). We make available model weights and inference code.
Motivation & Objective
- To develop a unified language model capable of generating both speech and text by interleaving modalities during training.
- To extend text-only LLMs with expressive speech capabilities, including pitch and style, to improve emotional and prosodic fidelity.
- To evaluate few-shot generalization across modalities, including ASR, TTS, and speech classification.
- To introduce a new benchmark, STSP, to measure sentiment preservation across speech and text modalities.
- To assess and quantify added toxicity in generated speech and text, especially in sensitive demographic axes.
Proposed method
- Train a 7B-parameter LLaMA 2 base model via continuous pretraining on a mixed stream of text and speech tokens.
- Encode speech using HuBERT for phonetic units, and add pitch (F0) and style tokens for expressive modeling in the EXPRESSIVE version.
- Interleave text (BPE-encoded) and speech tokens using special modality tokens [TEXT] and [SPEECH], with modality switches triggered at word boundaries in aligned speech-text data.
- Deduplicate consecutive speech tokens to reduce redundancy and improve training efficiency.
- Use next-token prediction loss on the full interleaved sequence to jointly optimize for both modalities.
- Evaluate few-shot capabilities using in-context learning prompts across text-to-speech, speech-to-text, and cross-modal classification tasks.
Experimental results
Research questions
- RQ1Can a single language model learn to generate both speech and text fluently through interleaved pretraining?
- RQ2To what extent can a text-based LLM preserve sentiment when generating across modalities (text to speech, speech to text)?
- RQ3How does the inclusion of pitch and style tokens affect expressive speech generation and sentiment preservation?
- RQ4What is the level of added toxicity in generated speech and text, and how does it vary across demographic axes?
- RQ5Can SPIRIT LM generalize to downstream tasks like ASR, TTS, and speech classification in a few-shot setting?
Key findings
- SPIRIT LM BASE achieves competitive performance in few-shot learning across ASR, TTS, and speech classification, demonstrating cross-modal generalization.
- The EXPRESSIVE version of SPIRIT LM preserves sentiment significantly better across modalities than baseline models, especially in speech-to-text and text-to-speech generation.
- On the STSP benchmark, SPIRIT LM shows the highest sentiment preservation scores across all directions, with S→T scoring lowest but still outperforming baselines.
- In toxicity evaluation, SPIRIT LM BASE shows comparable ETOX scores to a cascaded ASR+LLM+TTS pipeline, but higher MUTOX scores in S→S generation, indicating increased added toxicity in speech.
- Gender, sex, and sexual orientation axes show higher added toxicity in generated content, while ability and nationality show lower levels, with no significant difference across modalities.
- The model exhibits a performance gap in text generation compared to the original LLaMA 2, suggesting room for refinement in joint text-speech pretraining.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.