Bridging the Gap between Continuous and Informative Discrete Representations by Random Product Quantization

Xueqing Li, Zongyang Li, Boyu Zhu, Rui Jing, Jian Kang, Jie Li, Xiao-Lei Zhang, Xuelong Li, Zhang, Chi, Zhang, Xiao-Lei, Li, XuelongarXiv 2025 · DOI

Abstract

Self-supervised learning (SSL) has become a core technique in speech processing, but the high dimensionality of its representations makes discretization essential for improving efficiency. However, existing discretization methods still suffer from significant information loss, resulting in a notable performance gap compared to continuous representations. To overcome these limitations, we propose two quantization-based discretization methods: Product Quantization (PQ) and Random Product Quantization (RPQ). PQ partitions the original feature space into multiple subspaces and independently quantizes each sub-vector, producing a fused set of discrete units that retain diverse information from different subspaces, thereby mitigating the loss associated with single-cluster quantization. RPQ further enhances representation diversity by randomly sampling a fixed proportion of feature dimensions multiple times to construct sub-vectors, thereby better capturing the variability in the data distribution. Theoretical analysis shows that RPQ reduces the correlation coefficient rho (where 0 <= rho <= 1) between sub-quantizers. Its quantization error is lower-bounded by the product of rho and epsilon-kms, where epsilon-kms denotes the quantization error of a single K-means quantizer. Experimental results on a combined dataset built from LibriSpeech and ML-SUPERB show that PQ and RPQ outperform standard K-means discretization, achieving relative improvements of 21.8 percent and 20.0 percent in WER on LibriSpeech, and 24.1 percent and 19.6 percent in CER on ML-SUPERB, respectively. Moreover, their performance is competitive with, and in some cases even surpasses, that of continuous SSL representations.

Introduction

In modern speech processing, Self-Supervised Learning (SSL) models such as WavLM or Data2vec extract highly informative, continuous feature representations from raw audio. While powerful, these continuous features are high-dimensional, memory-intensive, and computationally expensive for downstream tasks like Automatic Speech Recognition (ASR).

To address these challenges, researchers often "discretize" these features—converting continuous vectors into a sequence of discrete tokens, typically using K-means clustering. This process saves compute and allows speech to be treated similarly to text, facilitating integration with Large Language Models (LLMs). However, standard K-means clustering often compresses data too aggressively, discarding vital semantic and acoustic details. This results in a significant performance gap where models trained on discrete tokens perform worse than those using original continuous features. This paper proposes Product Quantization (PQ) and Random Product Quantization (RPQ) to bridge this gap.

Proposed Methodology

Instead of relying on a single K-means clustering model to compress an entire feature vector, the authors propose multi-subspace quantization techniques. The overall pipeline, from representation extraction to downstream model training, is illustrated in Figure 1.

Overview of the speech discretization and downstream ASR training pipeline.

Product Quantization (PQ)

PQ splits the original high-dimensional continuous vector into $M$ equal, non-overlapping sub-vectors. Each sub-vector is assigned its own independent K-means quantizer. The final discrete representation is a fusion of tokens from all $M$ subspaces, preserving more information than a single global cluster.

Random Product Quantization (RPQ)

RPQ is a novel extension of PQ inspired by ensemble learning techniques like Bagging. Instead of a deterministic split, RPQ randomly samples a specific fraction (denoted as $\alpha$) of the feature dimensions $M$ times to create overlapping sub-vectors, as shown in Figure 4. This approach increases representation diversity by allowing sub-quantizers to capture a richer distribution of speech features.

Illustration of the Random Product Quantization (RPQ) process, where sub-vectors are formed by randomly sampling feature dimensions.

Theoretical analysis suggests that RPQ lowers the overall quantization error compared to a single K-means model. The error is bounded by the correlation between the randomly sampled subspaces; by reducing this correlation, RPQ captures more unique information from the SSL representations.

Experimental Evaluation

The methods were evaluated across diverse benchmarks, including LibriSpeech (English), ML-SUPERB (multilingual, ~140 languages), and WenetSpeech (Chinese).

Key Results

  • Performance Gains: On LibriSpeech, PQ and RPQ achieved relative Word Error Rate (WER) improvements of 21.8% and 20.0% over the K-means baseline. On ML-SUPERB, they achieved 24.1% and 19.6% relative improvements in Character Error Rate (CER).
  • Closing the Continuous Gap: RPQ's performance is highly competitive with continuous SSL representations. On ML-SUPERB, RPQ achieved a 19.1% CER, nearly matching the continuous feature's 18.9% and significantly outperforming the K-means baseline of 25.2%.
  • Efficiency: Training a downstream ASR model using RPQ tokens (with $M=32$ subspaces) requires only 38% of the time needed for continuous SSL representations, offering a substantial speedup with minimal performance loss.
  • Acoustic Fidelity: Audio reconstruction tests using a Diffusion Transformer showed that PQ and RPQ retain significantly more semantic and acoustic fidelity (measured via PESQ and STOI) than standard K-means.

Conclusion

PQ and RPQ effectively bridge the gap between continuous and discrete speech representations. While these methods result in a higher bitrate than single-codebook K-means, they offer a superior balance of information density and computational efficiency. Future work will focus on integrating these rich discrete tokens directly into Large Language Models to enhance performance in complex multimodal tasks like spoken dialogue understanding and speech-to-speech translation.

Summary updated

BibTeX
@misc{li2025bridging,
  author = {Xueqing Li and Zongyang Li and Boyu Zhu and Rui Jing and Jian Kang and Jie Li and Xiao-Lei Zhang and Xuelong Li and Zhang, Chi and Zhang, Xiao-Lei and Li, Xuelong},
  title = {{Bridging the Gap between Continuous and Informative Discrete Representations by Random Product Quantization}},
  year = {2025},
  eprint = {2504.04721},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.04721},
  howpublished = {arXiv},
}
Figure