Addressing Index Collapse of Large-Codebook Speech Tokenizer With Dual-Decoding Product-Quantized Variational Auto-Encoder

Haohan Guo, Fenglong Xie, Dongchao Yang, Hui Lu, Xixin Wu, Helen Meng

Abstract

This paper introduces PQ-VAE, a novel speech tokenizer designed to overcome the "index collapse" issue in large-codebook Vector-Quantized Variational Auto-Encoders (VQ-VAEs). By employing Product Quantization (PQ) and a dual-decoding training strategy, the proposed model enables the use of massive codebooks (up to 65,536 entries) while maintaining high codeword utilization. Experimental results on the WenetSpeech dataset demonstrate that PQ-VAE significantly improves speech reconstruction quality and downstream Text-to-Speech (TTS) performance compared to standard VQ-VAE and other quantization methods.

Introduction

To bridge the gap between text-based Large Language Models (LLMs) and speech, researchers utilize speech tokenizers to convert continuous audio into discrete tokens. For these tokens to capture the full nuance of human speech, the codebook (dictionary) must be large—often comparable to a text vocabulary. However, standard VQ-VAEs suffer from index collapse: as the codebook grows, the model activates only a tiny fraction of available codewords while the rest remain "dead." This is caused by sparse gradients; if a codeword is rarely selected during training, it receives fewer updates, creating a cycle of underutilization.

While multi-sequence approaches like Residual Vector Quantization (RVQ) exist, they produce multiple token streams, which are more complex for standard LLMs to process than a single, high-quality discrete sequence. PQ-VAE addresses this by enabling a single-sequence, large-codebook representation.

Methodology

The authors propose two primary innovations to build a robust, single-sequence large-codebook tokenizer:

  1. Product-Quantized VAE (PQ-VAE): Instead of learning one massive codebook directly, PQ-VAE splits the encoded speech vector into $M$ smaller subspaces. Each subspace has its own manageable codebook. The final large codeword is a concatenation of these sub-indices. For example, four small codebooks of 16 entries each can represent $16^4 = 65,536$ unique combinations. This ensures every "part" of a codeword receives frequent gradient updates.
  2. Dual-Decoding Training Strategy: To ensure every subspace carries meaningful information, the decoder is trained to reconstruct speech from two sources: the quantized discrete sequence ($Z$) and the continuous encoding sequence ($E$) before quantization. By adding a reconstruction loss for the continuous encoding, the model is forced to produce high-quality features in every subspace.

Experimental Setup

The models were trained and evaluated on WenetSpeech, a massive Mandarin speech dataset containing 10,000 hours of audio. A processed subset of approximately 7,000 hours was used for training to ensure diversity in content, speakers, and recording environments. Evaluation was performed on the "Test-Net" portion of the dataset.

Key Results

Eliminating Index Collapse

PQ-VAE effectively solves the collapse problem. In a codebook of 8,192 entries, a standard VQ-VAE activated only 699 codewords, whereas PQ-VAE activated 8,171 (over 99% usage). As shown in the figure below, PQ-VAE maintains near-perfect codebook usage even as the total capacity increases, while standard VQ-VAE plateaus.

Reconstruction and TTS Performance

PQ-VAE achieved a lower Root Mean Square Error (RMSE) than both RVQ and Finite Scalar Quantization (FSQ) when using 65,536 codewords. When integrated into a Text-to-Speech (TTS) system, the large-codebook PQ-VAE (PQ-32768) significantly outperformed the standard VQ-8192, improving the NISQA score (naturalness) from 3.99 to 4.20 and reducing the Character Error Rate (CER) from 11.34% to 7.05%.

Conclusion

PQ-VAE provides a scalable solution for creating high-fidelity, single-sequence speech tokens compatible with standard LLM architectures. While the dual-decoding strategy is highly effective, future work could explore the impact of subspace dimensionality and the sensitivity of the decay schedule for the continuous reconstruction loss across different audio domains, such as music.

Summary updated

BibTeX
@inproceedings{guo2024addressing,
  author = {Haohan Guo and Fenglong Xie and Dongchao Yang and Hui Lu and Xixin Wu and Helen Meng},
  title = {{Addressing Index Collapse of Large-Codebook Speech Tokenizer With Dual-Decoding Product-Quantized Variational Auto-Encoder}},
  booktitle = {SLT},
  year = {2024},
  url = {https://openreview.net/forum?id=fGz6C0bcxs},
}
Figure