Abstract
Recent efforts target spoken language models (SLMs) that not only listen but also speak for more natural human-LLM interaction. Joint speech-text modeling is a promising direction to achieve this. However, the effectiveness of recent speech tokens for joint modeling remains underexplored. To address this, we introduce Text-Aligned Speech Tokenization and Embedding (TASTE), a method that directly addresses the modality gap by aligning speech token with the corresponding text transcription during the tokenization stage. We propose a method that can achieve this through a attention-based aggregation mechanism and with speech reconstruction as the training objective. We conduct extensive experiments and show that TASTE can preserve essential paralinguistic information while dramatically reducing the token sequence length. With TASTE, we perform straightforward joint spoken language modeling by using Low-Rank Adaptation on the pre-trained text LLM. Experimental results show that TASTE-based SLMs perform comparable to previous work on SALMON and StoryCloze; while significantly outperform other pre-trained SLMs on speech continuation across subjective and objective evaluations. To our knowledge, TASTE is the first end-to-end approach that utilizes a reconstruction objective to automatically learn a text-aligned speech tokenization and embedding suitable for spoken language modeling.
Introduction
Spoken Language Models (SLMs) represent the next frontier in human-AI interaction, aiming to create models that don't just process text but can "listen" and "speak" with natural prosody. However, a persistent challenge in this field is the modality gap: speech signals are dense and lengthy, while text is sparse and compact. Traditional joint text-speech modeling suffers from a massive length mismatch, where a single word of text might correspond to dozens of speech tokens from neural codecs like EnCodec or self-supervised models like HuBERT.
Addressing the Modality Gap
To train a model on both modalities, researchers typically interleave them or use complex alignment heuristics. This often dilutes the semantic coherence of the model, as the underlying Large Language Model (LLM) can become "distracted" by the high volume of speech tokens relative to text, losing the logical thread of the conversation.
TASTE (Text-Aligned Speech Tokenization and Embedding) addresses this by enforcing a 1-to-1 alignment between speech tokens and text tokens. This alignment simplifies the architecture and ensures that the model maintains semantic power while capturing acoustic nuances.
The TASTE Framework
The core of TASTE is a specialized Speech Tokenizer and Decoder pipeline designed to aggregate speech features into text-sized slots.
Speech Tokenizer
The tokenizer utilizes a pre-trained, frozen Whisper ASR encoder to extract high-level speech representations. The primary innovation is the Attention-Based Aggregator. Instead of fixed-stride downsampling, it uses a cross-attention mechanism where text transcription tokens serve as the Query and Whisper hidden states serve as the Keys and Values. This forces the model to aggregate all acoustic information for a specific word into a single embedding vector. These embeddings are then discretized using Residual Vector Quantization (RVQ).
Speech Decoder
The decoder is trained with a speech reconstruction objective, ensuring that the discretized tokens preserve essential paralinguistic information such as tone, emotion, and duration. Because the text tokens already handle semantic content, TASTE tokens can focus exclusively on these prosodic details.
Joint Spoken Language Modeling (TASLM)
Because TASTE tokens are perfectly aligned with text, joint modeling becomes straightforward. The researchers developed the Text-Aligned Spoken Language Model (TASLM) by taking a standard text LLM (e.g., Llama-3) and adding a small "speech head" using Low-Rank Adaptation (LoRA). The model is trained to predict the next text token and its corresponding TASTE speech token simultaneously. This approach preserves the LLM's original reasoning and instruction-following capabilities while enabling speech output.
Experimental Results
The model was trained on the Emilia dataset (~40,000 hours of in-the-wild speech) and LibriTTS. Evaluation on benchmarks like SALMON and StoryCloze revealed several key insights:
- Extreme Compression: TASTE achieves high-quality speech reconstruction at an extremely low bitrate of approximately 150 bps, significantly lower than standard neural codecs (1,000–6,000 bps). In comparative evaluations, TASTE (at 150 bps) achieved a Word Error Rate (WER) of 4.4%, outperforming the Encodec baseline at 1500 bps (5.1% WER).
- Superior Continuation: In speech continuation tasks, a 1.3B parameter TASLM outperformed larger 7B parameter models (like Spirit LM and TWIST) in both semantic coherence (judged by GPT-4o) and acoustic naturalness.
- Zero-Shot Prosody Editing: The word-aligned nature of the tokens allows for "speech surgery," such as transferring the speaking rate from one recording to another by swapping TASTE tokens word-by-word.
- Robustness: The tokenizer remains stable under heavy noise (5dB SNR), demonstrating superior robustness compared to standard codecs.
Conclusion
TASTE represents a significant step toward efficient and coherent spoken language models. By aligning speech tokens directly with text, it bridges the modality gap without sacrificing the semantic power of modern LLMs. Future work will focus on multi-speaker handling, non-lexical sounds (e.g., laughter), and extending the framework to tonal and low-resource languages.
Demo, code, and models are available at https://mtkresearch.github.io/TASTE-SpokenLM.github.io.
Summary updated