Latent-Domain Predictive Neural Speech Coding

Xue Jiang, Xiulian Peng, Huaying Xue, Yuan Zhang, Yan Lu

TL;DR

This paper introduces TF-Codec, a novel neural speech codec that significantly reduces temporal redundancy in speech signals by applying predictive coding in the latent domain. This approach achieves state-of-the-art low-latency, high-quality speech compression, outperforming traditional codecs like Opus and EVS at drastically lower bitrates.

What Problem Does This Paper Address?

Traditional audio and speech codecs, while effective, often struggle to achieve both high quality and very low bitrates simultaneously, especially for real-time applications. Existing neural codecs, often based on VQ-VAE frameworks, have made strides but still leave temporal redundancies in their encoded features. These redundancies mean that information is being encoded repeatedly across consecutive frames, leading to inefficiency. The challenge is to remove this redundancy without sacrificing the quality of the reconstructed speech, particularly in low-latency scenarios.

Methods

The core innovation of TF-Codec lies in its latent-domain predictive coding. Instead of encoding each speech frame independently or relying on open-loop predictions, TF-Codec uses a closed-loop predictive mechanism within the VQ-VAE framework. Here's a breakdown of the key techniques:

  • Latent-Domain Prediction: The encoder extracts features, and a predictor module generates an estimate of the current frame's latent representation based on past quantized latent frames. This prediction is then used to extract a "residual-like" feature, representing only the novel information not captured by the prediction. This effectively removes temporal redundancy.
  • Learnable Input Compression: The input signal is transformed into the time-frequency domain (STFT). A learnable power-law compression is applied to the amplitude, allowing the model to adaptively focus on either main frequency components or finer details depending on the target bitrate. This is crucial for achieving good quality at very low bitrates.
  • Distance-Gumbel-Softmax Vector Quantization: To enable differentiable training and rate control, a novel VQ method is introduced. It combines the Gumbel-Softmax trick with a distance metric between latent features and codebook entries. This approach ensures that the quantization process is aware of the reconstruction error and facilitates better rate-distortion optimization.
  • End-to-End Training with Adversarial Loss: The entire codec (encoder, predictor, quantizer, decoder) is trained end-to-end. Adversarial training with a frequency-domain discriminator is employed to ensure high perceptual quality of the reconstructed audio.

Datasets

  • Training: The model was trained on 890 hours of 16kHz clean speech from the Deep Noise Suppression Challenge at ICASSP 2021.
  • Evaluation: For subjective evaluation, 1458 clips of 10 seconds each were used, covering multiple languages and speakers. For objective metrics and ablation studies, datasets like Librispeech and LJSpeech were utilized.

Key Insights and Ideas

  • Predictive Coding in Latent Space is Key: Applying predictive coding not on the raw audio or acoustic features, but on the quantized latent representations, is a crucial insight. This allows for efficient redundancy removal without the latency penalty of full waveform reconstruction for prediction.
  • Adaptive Input Compression for Bitrate Flexibility: The learnable compression on the time-frequency input is a clever way to dynamically adjust the codec's focus. At low bitrates, it prioritizes essential components, while at higher bitrates, it can afford to capture more subtle details, leading to better quality across a range of bitrates.
  • Quantization Matters for Rate Control: The proposed Distance-Gumbel-Softmax VQ is not just about making the process differentiable; it's about creating a more robust mechanism for rate control and better capturing the true distribution of latent features, leading to improved quality.
  • Speaker Information is Sacrificed for Content at Very Low Bitrates: The analysis shows that at extremely low bitrates (e.g., 0.256 kbps), the model prioritizes linguistic content over speaker identity. This is a sensible trade-off when bandwidth is severely limited, as preserving intelligibility is paramount.

Key Results

  • Exceptional Low-Bitrate Performance: At 1 kbps, TF-Codec significantly outperforms Opus at 9 kbps. At 3 kbps, it surpasses both EVS at 9.6 kbps and Opus at 12 kbps.
  • Competitive High-Bitrate Performance: At 6 kbps, TF-Codec performs comparably to Opus at 16 kbps and significantly better than Encodec at 6 kbps.
  • Low Latency: The codec achieves real-time processing with an RTF of 4.1x for encoding and 6.3x for decoding on a single CPU.
  • Reduced Temporal Correlation: Ablation studies show that predictive coding reduces the temporal correlation of learned representations from 0.37 to 0.09.
  • Improved Robustness: While not fully solved, initial experiments with error-resilient training show improved performance under simulated packet loss.

Limitations and Future Work

  • Sensitivity to Packet Loss: While improvements were made, the predictive nature of the codec still makes it somewhat sensitive to transmission errors. Further optimization for error resilience is suggested.
  • Extension to Other Audio: The authors believe the proposed techniques can be extended beyond speech to other audio signals like music.
  • More Detailed Representations: Future work could explore richer representations that capture not just speaker and content, but also prosody and emotions.
  • Adaptive Input Compression: Making the input compression factor even more adaptive to the specific content of the audio is another avenue for improvement.

Summary updated

Abstract

Neural audio/speech coding has recently demonstrated its capability to deliver high quality at much lower bitrates than traditional methods. However, existing neural audio/speech codecs employ either acoustic features or learned blind features with a convolutional neural network for encoding, by which there are still temporal redundancies within encoded features. This article introduces latent-domain predictive coding into the VQ-VAE framework to fully remove such redundancies and proposes the TF-Codec for low-latency neural speech coding in an end-to-end manner. Specifically, the extracted features are encoded conditioned on a prediction from past quantized latent frames so that temporal correlations are further removed. Moreover, we introduce a learnable compression on the time-frequency input to adaptively adjust the attention paid to main frequencies and details at different bitrates. A differentiable vector quantization scheme based on distance-to-soft mapping and Gumbel-Softmax is proposed to better model the latent distributions with rate constraint. Subjective results on multilingual speech datasets show that, with low latency, the proposed TF-Codec at 1 kbps achieves significantly better quality than Opus at 9 kbps, and TF-Codec at 3 kbps outperforms both EVS at 9.6 kbps and Opus at 12 kbps. Numerous studies are conducted to demonstrate the effectiveness of these techniques.
BibTeX
@article{jiang2023latent,
  author = {Xue Jiang and Xiulian Peng and Huaying Xue and Yuan Zhang and Yan Lu},
  title = {{Latent-Domain Predictive Neural Speech Coding}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2023},
  url = {https://openreview.net/forum?id=9_WeZAq-rZ},
}
Figure