DM-Codec: Distilling Multimodal Representations for Speech Tokenization

Md Mubtasim Ahasan, Md Fahim, Tasnim Mohiuddin, A. K. M. Mahbubur Rahman, Aman Chadha, Tariq Iqbal, M. Ashraful Amin, Md Mofijul Islam, Amin Ahsan Ali · OpenReview

Abstract

Recent advancements in speech-language models have yielded significant improvements in speech tokenization and synthesis. However, effectively mapping the complex, multidimensional attributes of speech into discrete tokens remains challenging. This process demands acoustic, semantic, and contextual information for precise speech representations. Existing speech representations generally fall into two categories: acoustic tokens from audio codecs and semantic tokens from speech self-supervised learning models. Although recent efforts have unified acoustic and semantic tokens for improved performance, they overlook the crucial role of contextual representation in comprehensive speech modeling. Our empirical investigations reveal that the absence of contextual representations results in elevated Word Error Rate (WER) and Word Information Lost (WIL) scores in speech transcriptions. To address these limitations, we propose two novel distillation approaches: (1) a language model (LM)-guided distillation method that incorporates contextual information, and (2) a combined LM and self-supervised speech model (SM)-guided distillation technique that effectively distills multimodal representations (acoustic, semantic, and contextual) into a comprehensive speech tokenizer, termed DM-Codec. The DM-Codec architecture adopts a streamlined encoder-decoder framework with a Residual Vector Quantizer (RVQ) and incorporates the LM and SM during the training process. Experiments show DM-Codec significantly outperforms state-of-the-art speech tokenization models, reducing WER by up to 13.46%, WIL by 9.82%, and improving speech quality by 5.84% and intelligibility by 1.85% on the LibriSpeech benchmark dataset.

Introduction

The application of Large Language Models (LLMs) to the audio domain necessitates the conversion of continuous sound waves into discrete tokens. Unlike text, speech is a high-dimensional signal containing acoustic details (pitch, timbre), semantic content (linguistic meaning), and contextual nuances (prosody and relational meaning). Current tokenization methods typically prioritize either acoustic fidelity or semantic clarity. Acoustic codecs, such as EnCodec, excel at reconstruction but often lack semantic awareness, leading to high transcription errors. Conversely, semantic models based on self-supervised learning (SSL), like HuBERT, capture meaning but fail to reconstruct high-quality audio.

This research identifies a critical gap in existing literature: the lack of contextual representation. Without understanding the broader linguistic context, tokenizers struggle to align reconstructed speech with accurate textual forms. To bridge this gap, we introduce DM-Codec, a tokenizer designed to unify acoustic, semantic, and contextual information through a novel multimodal distillation process.

Methodology

DM-Codec utilizes a neural encoder-decoder architecture centered around a Residual Vector Quantizer (RVQ). The core innovation lies in the distillation of knowledge from pre-trained "teacher" models into the discrete token space during the training phase. Importantly, these heavy teacher models are only required during training; the final DM-Codec remains a lightweight encoder-decoder for inference.

Multimodal Distillation Strategies

The training process incorporates two primary distillation pathways:

  1. LM-Guided Distillation: To capture contextual information, an Automatic Speech Recognition (ASR) model transcribes the input audio. This text is then processed by a pre-trained Language Model (BERT), and the resulting contextual representations are distilled into the codec's quantized features.
  2. SM-Guided Distillation: Semantic features are simultaneously distilled from a self-supervised speech model (SM), such as HuBERT, ensuring the tokens retain linguistic meaning.
The DM-Codec framework utilizes an encoder-decoder structure with a Residual Vector Quantizer (RVQ), distilling knowledge from frozen Language Models (LM) and Speech Models (SM) during training.

Architectural Innovations

To optimize the transfer of knowledge, the framework employs several specific strategies:

  • [CLS] Token Strategy: The representation of the BERT [CLS] token is distilled to capture global, sentence-level context. This allows the model to grasp the holistic meaning of an utterance without requiring strict frame-by-frame temporal alignment.
  • Dimension-Level Distillation: Instead of forcing temporal synchronization between audio and text—which can be noisy—the model uses a loss function that maximizes cosine similarity across feature dimensions.
  • Hierarchical RVQ: By distilling different information types into different layers of the RVQ, the model learns a hierarchical organization of speech attributes, where global context is prioritized in the initial layers.

Experimental Results

The performance of DM-Codec was evaluated on the LibriSpeech benchmark (100h clean) and compared against leading baselines, including EnCodec, SpeechTokenizer, and DAC.

Speech Reconstruction and Intelligibility

DM-Codec (LM+SM) demonstrated superior performance across all key metrics. It achieved a Word Error Rate (WER) of 4.05%, a significant improvement over EnCodec (4.53%) and SpeechTokenizer (4.49%). In terms of objective speech quality, it reached a ViSQOL score of 3.26, outperforming all tested baselines.

Quantitative comparison of DM-Codec against state-of-the-art speech tokenization models on the LibriSpeech benchmark.

Zero-Shot Text-to-Speech (TTS)

When integrated into a downstream TTS system (DM-Codec-TTS) and trained on the 50k-hour LibriHeavy dataset, the model outperformed established systems like VALL-E and USLM. It showed particular strength in maintaining speaker similarity (SMOS) and intelligibility in zero-shot scenarios, proving that the distilled contextual tokens provide a more robust foundation for generative tasks.

Conclusion

DM-Codec represents a significant step forward in speech tokenization by explicitly incorporating contextual information alongside acoustic and semantic features. By leveraging heavy teacher models only during training, the final codec remains a lightweight and efficient tool for high-fidelity speech reconstruction and synthesis. Future work will explore the use of decoder-based LLMs for even richer context and evaluate the model's robustness in more diverse, noisy, and multilingual environments.

Code, samples, and model checkpoints are available at: https://github.com/mubtasimahasan/DM-Codec

Summary updated

BibTeX
@misc{ahasan2024dm,
  author = {Md Mubtasim Ahasan and Md Fahim and Tasnim Mohiuddin and A. K. M. Mahbubur Rahman and Aman Chadha and Tariq Iqbal and M. Ashraful Amin and Md Mofijul Islam and Amin Ahsan Ali},
  title = {{DM-Codec: Distilling Multimodal Representations for Speech Tokenization}},
  year = {2024},
  eprint = {2410.15017},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15017},
}
Figure