Abstract
This paper investigates the optimal configuration for speech tokenization in Speech Language Models (SLMs) by analyzing the interplay between segmentation width ($N$) and vocabulary size ($K$). Standard SLMs often rely on fine-grained 20ms segments, which are computationally expensive and redundant. Our findings reveal a "sweet spot" at moderately coarse segments (80ms) paired with a large vocabulary ($2^{14}$ clusters). This configuration significantly improves efficiency—reducing training runtime by 70% and data size by 50%—while maintaining or improving performance on zero-shot spoken language understanding benchmarks.
Introduction
Speech Language Models (SLMs) process audio by converting raw signals into discrete units or tokens, typically derived from self-supervised learning (SSL) models like HuBERT. A common practice is to extract representations every 20ms. However, this high frequency creates two primary challenges: high computational costs due to quadratic sequence length scaling in Transformers, and low information density, as 20ms segments capture phonetic details rather than higher-level semantic structures.
While previous research has explored linguistic units like syllables or words, there is no consensus on the optimal segment length or how the vocabulary size (the number of K-means clusters) should scale with that length. This study systematically explores these variables to find a more efficient and effective tokenization strategy.
Methodology
The researchers implemented a three-step tokenization pipeline to evaluate the impact of different parameters:
- Segmentation & Pooling: Continuous representations from the 9th layer of a HuBERT model are divided into fixed-width segments ($N$ ms, ranging from 20ms to 280ms) and mean-pooled.
- Quantization: K-means clustering is applied to these pooled representations with varying vocabulary sizes ($K$, from $2^7$ to $2^{14}$).
- Deduplication: Consecutive identical units are collapsed into a single token to further reduce sequence length.
In addition to fixed-width segmentation, the authors compared their approach against variable-width segmentation based on unsupervised linguistic units (phonemes, syllables, and words). A decoder-only Transformer was then trained on these tokens for next-unit prediction tasks.
Experimental Results
The N and K Synergy
A critical insight from the study is the synergy between segment width and vocabulary size. As the segmentation width ($N$) increases, the vocabulary size ($K$) must also increase. Coarser segments contain more complex acoustic information; a small vocabulary (low $K$) lacks the resolution to distinguish between these complex sounds, leading to performance degradation. Conversely, a large vocabulary allows the model to maintain semantic distinctions even with longer segments.
The 80ms "Sweet Spot"
The best-performing configurations across various tasks were centered around $N=80$ms. This suggests that 20ms is overly fine-grained and redundant, while 280ms is too coarse, losing critical sequential information. The $N=80$ms, $K=2^{14}$ configuration achieved the highest average accuracy (0.67) across five zero-shot tasks, including grammatical knowledge (sBLIMP), lexical knowledge (sWUGGY), and commonsense reasoning (tStoryCloze).
Efficiency and Performance
The optimized tokenization strategy yielded massive efficiency gains:
- Runtime: Training runtime was reduced by 70% (8.3 hours vs. 12.4 hours for the baseline).
- Data Size: Token counts were reduced by 50% compared to the standard $N=20$ms, $K=2^7$ baseline.
- Prosody: The models remained highly capable of handling prosodic features, likely because benchmark pauses (400ms) remained significantly longer than the tested segment widths.
Discussion and Conclusion
Surprisingly, variable-width segmentation based on linguistic units did not consistently outperform simple fixed-width segmentation. Given the extra computational overhead required for unsupervised linguistic segmentation, fixed-width methods appear more practical for scaling SLMs.
While this study focused on zero-shot spoken language understanding, future work is needed to determine if these findings translate to generative tasks like speech synthesis. Additionally, the authors suggest that investigating continuous representations might be the logical next step, effectively treating the model as having an infinite vocabulary size. In conclusion, by moving away from fine-grained 20ms tokenization toward moderately coarse segments with larger vocabularies, researchers can build SLMs that are both more efficient and more capable of capturing high-level linguistic information.
Summary updated