MELD: Mel-Spectrogram-Based Speech Language Modeling with Discrete Latent Variables

Sung-Lin Yeh, Wei Zhou, Gil Keren, Duc Le, Zhong Meng, Hao Tang, Jay Mahadeokar, Ozlem Kalinli, Alexandre MourachkoarXiv 2026

This paper introduces MELD (Mel-Spectrogram-Based Discrete Latent Language Model), a novel framework that bridges the gap between continuous acoustic features and discrete language modeling. By jointly optimizing a mel-spectrogram encoder with an autoregressive decoder through a discrete latent space, MELD achieves state-of-the-art performance in zero-shot Text-to-Speech (TTS) and Speech-to-Text (STT) while solving the "infinite silence" problem that plagues many mel-based generation models.

TL;DR

MELD is a speech language model that replaces fixed, two-stage neural codecs with a jointly optimized discrete latent variable model operating directly on mel spectrograms. This approach allows for robust categorical sampling during generation—effectively eliminating stretched silence—while preserving the high-fidelity information necessary for superior speech recognition performance.

What Problem Does This Paper Address?

Most modern speech language models (like VALL-E) follow a decoupled two-stage strategy: first, a neural codec (like EnCodec) is trained to compress audio into discrete codes; second, an autoregressive (AR) model is trained to predict these codes.

The authors identify three major drawbacks to this approach:

  1. Sub-optimal Representations: Because the encoder is trained separately, it is "unaware" of the downstream task (TTS or STT) and may discard task-relevant information.
  2. The Silence Loop: AR models that generate continuous mel spectrograms directly (like MELLE) often lack a well-defined sampling distribution, causing them to get stuck in loops of "infinite silence" or produce constant artifacts.
  3. Information Loss: Discretizing audio into low-bitrate codes for language modeling often degrades performance on transcription tasks (STT) where fine-grained acoustic detail is crucial.

Methods

MELD introduces a discrete latent variable $z_t$ that sits between the autoregressive hidden state and the continuous mel spectrogram frame $x_t$.

A graphical model of the generative process. The solid lines denote the generative model, while the dashed line represents the proposal distribution.

Key technical components include:

  • Variational Learning: The model is trained using a Variational Lower Bound (VLB) objective. A quantization network $q(z_t|x_t)$, initialized with k-means centroids, provides targets for the AR model $p(z_t|x_{<t}, y)$.
  • Joint Optimization: Unlike two-stage models, gradients flow from the reconstruction loss back through the encoder, allowing the system to learn representations optimized for the specific task.
  • Discrete Sampling for Continuous Output: During inference, MELD samples $z_t$ from a categorical distribution (using top-k or top-p sampling). This sampled code is then combined with the AR hidden state to reconstruct the final mel frame. This discrete "bottleneck" provides the model with a clear path to escape silence loops.
  • Unified Architecture: By extending the vocabulary to include both BPE text tokens and speech latents, a single Transformer can perform TTS, STT, or joint TTS-STT modeling using special control tokens like <TTS> and <STT>.
The variational autoregressive training process. The model minimizes KL divergence for latent prediction and MSE for mel reconstruction.

Datasets

  • Training: The 960-hour subset of LibriSpeech (LS960).
  • Evaluation: LibriSpeech test-clean and test-other sets.
  • Vocoding: A HiFi-GAN vocoder (pre-trained on LibriTTS) is used to convert the predicted mel spectrograms back into audible waveforms.

Key Insights and Ideas

  • Discrete Latents as a Sampling Bridge: The most significant "aha moment" is that you don't need to fully discretize your output to get the benefits of discrete sampling. By using a discrete latent space, MELD gains the robustness of categorical sampling (which prevents silence loops) without losing the fine-grained detail of continuous mel spectrograms.
  • Joint Training Beats Fixed Codecs: The paper demonstrates that "task-aware" encoders significantly outperform fixed codecs. For STT specifically, modeling mel spectrograms directly leads to much lower error rates than using pre-quantized speech codes.
  • Implicit Stop Prediction: Because the <EOS> (end-of-sequence) token is integrated into the discrete latent vocabulary, MELD naturally learns when to stop generating without requiring the specialized "stop predictor" heads used in models like Tacotron 2 or MELLE.

Key Results

MELD demonstrates strong performance across both synthesis and recognition tasks:

  • Zero-Shot TTS: MELD achieves a Word Error Rate (WER) of 2.4% / 1.9% (clean/other), outperforming both the codec-based VALL-E and the Gaussian-sampling MELLE. It also maintains high speaker similarity (SIM) scores.
  • Speech-to-Text (STT): A 260M parameter MELD model reaches 3.5% / 9.2% WER on LibriSpeech test-clean/other, significantly outperforming the dMel baseline (4.2% / 10.4%) which uses independently discretized mel features.
  • Joint Modeling: The joint TTS-STT model effectively bridges the gap between tasks, showing that a single model can handle both directions of the speech-text pipeline with minimal performance degradation compared to task-specific models.
Comparison of MELD against codec-based and mel-based baselines.

Limitations and Future Work

  • Vocoder Bottleneck: The final audio quality is still limited by the HiFi-GAN vocoder. Future work could explore integrating the vocoder into the joint optimization process.
  • Reproducibility Challenges: The authors noted difficulty in fully reproducing the results of MELLE, suggesting that mel-based AR models are highly sensitive to pre-processing steps like Voice Activity Detection (VAD).
  • Task Expansion: While MELD handles TTS and STT, the authors suggest extending the framework to more complex tasks like speech-to-speech translation or spoken question answering.

Summary updated

BibTeX
@misc{yeh2026meld,
  author = {Sung-Lin Yeh and Wei Zhou and Gil Keren and Duc Le and Zhong Meng and Hao Tang and Jay Mahadeokar and Ozlem Kalinli and Alexandre Mourachko},
  title = {{MELD: Mel-Spectrogram-Based Speech Language Modeling with Discrete Latent Variables}},
  year = {2026},
  eprint = {2605.29859},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.29859},
}
Figure