Generative Spoken Language Model based on continuous word-sized audio tokens

Robin Jonathan Algayres, Yossi Adi, Tu Anh Nguyen, Jade Copet, Gabriel Synnaeve, Benoît Sagot, Emmanuel Dupoux

TL;DR

This paper introduces tGSLM, the first generative spoken language model that operates on continuous, word-sized audio tokens rather than short discrete units. By using 200ms continuous embeddings, the model achieves a 5x memory reduction during training while matching the generation quality of state-of-the-art discrete models.

What Problem Does This Paper Address?

In Natural Language Processing (NLP), word-based models consistently outperform character-based ones because they capture long-range semantic and syntactic relationships more effectively. However, the speech community has traditionally relied on very short (20-40ms) discrete units—fragments even smaller than a phoneme.

Moving to larger, word-sized units in speech is difficult due to two main hurdles:

  1. The Boundary Problem: Unlike text, speech has no spaces or punctuation to clearly mark where one word ends and another begins.
  2. The Clustering Problem: Even with boundaries, the same word sounds different depending on the speaker, accent, and speed. Clustering these varied acoustic signals into a single "discrete" token often loses vital information.

The authors propose bypassing the clustering problem entirely by using continuous representations for word-sized segments.

Methods

The authors developed tGSLM (token-based Generative Spoken Language Model), which replaces the standard components of a text-based LM with versions suited for continuous audio:

  • Segmentation & Acoustic Tokens: The model naively segments raw audio into 200ms chunks. These are converted into "acoustic tokens" using a self-supervised Speech Sequence Embedding (SSE) model.
  • Lexical Embedder (LexEmb): This is a semi-learnable function that maps acoustic tokens (phonetic space) to lexical tokens (semantic/syntactic space). It includes an information bottleneck ($q$) using PCA and a per-dimension k-means approach to strip away non-linguistic noise like speaker identity.
  • Causal Transformer LM: Instead of predicting a discrete ID from a fixed vocabulary, the model uses a causal transformer trained with Noise Contrastive Estimation (NCE) loss. It maximizes the similarity between the predicted embedding and the true next token while minimizing similarity to "negative" samples from the same speaker.
  • Multi-head Prediction: To handle coarticulation (where sounds bleed into each other), the model uses three parallel heads to predict the next three tokens simultaneously.
  • k-NN Sampling: During generation, since there is no finite vocabulary to sample from, the model searches a database of previously seen lexical tokens using a k-nearest neighbors (k-NN) approach.
The tGSLM architecture: from raw audio to lexical tokens and NCE loss.

Datasets

The models were trained and evaluated using three major English speech corpora:

  • LJ Speech (LJ): 24 hours of a single speaker reading professional audio.
  • LibriSpeech (LS): 1,000 hours of multi-speaker read audio.
  • Libri-light 6k clean (LL6k-clean): 6,000 hours of multi-speaker audio, used for large-scale training.

Key Insights and Ideas

  • Continuous is Viable: You don't need a discrete "vocabulary" of types to perform high-quality language modeling on speech. Continuous tokens can represent the "infinite" variety of spoken language.
  • The Bottleneck is Key: The information bottleneck ($q$) is essential. Without it, the LM tends to overfit on local acoustic patterns (like speaker identity) rather than learning the underlying language structure.
  • Naive Segmentation Works: Surprisingly, simple 200ms fixed-length segments outperformed more complex unsupervised word discovery systems. This suggests that current unsupervised segmentation is a major bottleneck for the field.
  • Interpretability: The Lexical Embedder successfully separates phonetic information from semantic information. In the lexical space, words like "London" are close to other cities, and "blue" is close to other colors, even if they sound nothing alike.
t-SNE visualization showing how lexical tokens (right) cluster by meaning, unlike acoustic tokens (left).

Key Results

  • Generation Quality: As shown in the results table below, tGSLM achieves Mean Opinion Scores (MMOS) comparable to or slightly better than the discrete GSLM baseline (e.g., 4.09 vs 3.76 on LibriSpeech).
  • Efficiency: Because the units are 5x longer than standard 40ms units, the model is significantly more memory-efficient. On a 32GB V100 GPU, the authors could fit 162 sentences per batch compared to only 34 for the discrete model.
  • Zero-Shot Performance: tGSLM performs competitively on linguistic benchmarks like sWUGGY (word/non-word discrimination) and sBLIMP (syntactic correctness).
Main results comparing tGSLM to the discrete GSLM baseline across various metrics.

Limitations and Future Work

  • Decoding Bottleneck: The current method for turning tokens back into audio (decoding to HuBERT units first) is sub-optimal and leads to errors, especially with variable-length segments.
  • Language & Voice: The model was only tested on English and currently generates speech in a single voice (the LJ dataset speaker), losing the original prompt's accent or identity.
  • Low-Temperature Failure: Unlike discrete models, tGSLM struggles at very low sampling temperatures, sometimes producing "gibberish" instead of simple, intelligible sentences.
  • Future Directions: The authors suggest moving toward direct SSE-to-speech decoding using diffusion models or Hi-Fi GANs to improve intelligibility.

Summary updated

BibTeX
@inproceedings{algayres2023generative,
  author = {Robin Jonathan Algayres and Yossi Adi and Tu Anh Nguyen and Jade Copet and Gabriel Synnaeve and Benoît Sagot and Emmanuel Dupoux},
  title = {{Generative Spoken Language Model based on continuous word-sized audio tokens}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.182},
}
Figure