Optimizing Neural Speech Codec for Low-Bitrate Compression via Multi-Scale Encoding

Peiji Yang, Fengping Wang, Yicheng Zhong, Huawei Wei, Zhisheng WangarXiv 2024

Abstract

Neural speech codecs have demonstrated their ability to compress high-quality speech and audio by converting them into discrete token representations. Most existing methods utilize Residual Vector Quantization (RVQ) to encode speech into multiple layers of discrete codes with uniform time scales. However, this strategy overlooks the differences in information density across various speech features, leading to redundant encoding of sparse information, which limits the performance of these methods at low bitrate. This paper proposes MsCodec, a novel multi-scale neural speech codec that encodes speech into multiple layers of discrete codes, each corresponding to a different time scale. This encourages the model to decouple speech features according to their diverse information densities, consequently enhancing the performance of speech compression. Furthermore, we incorporate mutual information loss to augment the diversity among speech codes across different layers. Experimental results indicate that our proposed method significantly improves codec performance at low bitrate.

Introduction

Traditional neural speech codecs typically convert audio into a sequence of discrete tokens using Residual Vector Quantization (RVQ). A major limitation of current RVQ-based methods is their application of a uniform time scale across all layers of quantization. However, speech information is not uniformly dense; rapid phonetic transitions change quickly, while speaker identity or prosody change much more slowly. Forcing "sparse" or slow-moving information into a high-frequency encoding grid creates significant redundancy, which becomes a bottleneck at low bitrates where every bit counts.

MsCodec addresses this by encoding speech into multiple layers of discrete codes at varying time scales. By matching the encoding resolution to the natural information density of different speech features, MsCodec achieves high-quality audio at extremely low bitrates, as low as 700 bps.

Proposed Architecture

The MsCodec architecture introduces several key innovations to the standard codec framework to facilitate multi-scale feature extraction and quantization.

Architecture of MsCodec, featuring the Hierarchical Multi-Scale Encoder and Multi-Scale RVQ modules.

Hierarchical Multi-Scale Encoder

Instead of a single flat representation, the encoder produces three distinct feature maps ($Z_1, Z_2, Z_3$) at progressively coarser time scales (e.g., $1/2, 1/4,$ and $1/8$ of the original frame rate). This structure forces the model to capture fine-grained acoustic details at the finest scale and long-term dependencies at the coarsest.

Multi-Scale Residual Vector Quantization (RVQ)

This module quantizes the multi-scale embeddings hierarchically. It quantizes the finest scale first, then passes the residual error to the next coarser scale. For reconstruction, coarser quantized tokens are upsampled via frame-wise duplication and summed back together. This acts as a natural low-pass filter for the quantization error.

Mutual Information (MI) Loss

To ensure that different layers learn distinct attributes rather than duplicating information, the authors employ a Variational Contrastive Log-Upper Bound (vCLUB) to minimize mutual information between hierarchical layers. This explicitly encourages the decoupling of speech features and prevents representation collapse.

Time-Invariant Representation Extraction (TIRE)

Following the TiCodec architecture, a global, time-invariant embedding is extracted to handle static features like background noise or consistent speaker characteristics, further reducing the burden on the time-varying encoders.

Experimental Results

The model was trained on a massive 1,113-hour corpus including LibriTTS, Hi-Fi TTS, VCTK, and AISHELL datasets. Evaluation focused on three bitrate tiers: 700 bps (Small), 1400 bps (Medium), and 2800 bps (Large).

Comparison of MsCodec against baseline models across various bitrates and metrics.

Performance at Low Bitrates

At 700 bps, MsCodec-S achieved a PESQ score of 1.485, significantly outperforming Encodec-1VQ (1.357) and TiCodec-1VQ (1.371) which operate at higher bitrates (750 bps). Across all tiers, MsCodec consistently surpassed baselines in intelligibility (STOI), Speaker Similarity (SPK), and overall quality (UTMOS).

Ablation Studies

Ablation experiments confirmed the necessity of the proposed components. Removing the Multi-Scale strategy resulted in a drop in PESQ from 1.814 to 1.642, while removing the MI loss also led to measurable performance degradation. These results validate that matching encoding scales to information density is critical for efficient compression.

Conclusion and Future Work

MsCodec demonstrates that decoupling speech features via multi-scale encoding significantly reduces redundancy in low-bitrate neural speech codecs. While the current implementation uses fixed time scales and increases computational complexity through hierarchical Conformer layers, it sets a new benchmark for high-quality speech compression at sub-1kbps bitrates. Future work may explore adaptive time scales that dynamically adjust to input complexity.

Summary updated

BibTeX
@misc{yang2024optimizing,
  author = {Peiji Yang and Fengping Wang and Yicheng Zhong and Huawei Wei and Zhisheng Wang},
  title = {{Optimizing Neural Speech Codec for Low-Bitrate Compression via Multi-Scale Encoding}},
  year = {2024},
  eprint = {2410.15749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.15749},
}
Figure