Predictive Neural Speech Coding

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

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 paper 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.

Introduction

Traditional speech codecs, such as Opus and EVS, are highly optimized but experience significant quality degradation at bitrates below 6 kbps. Recent advancements in neural codecs using Vector Quantized Variational Autoencoders (VQ-VAEs) have shown promise in maintaining quality at lower bitrates. However, these models often treat latent feature frames as independent or rely solely on standard convolutions, leaving substantial temporal redundancy unaddressed. This paper introduces TF-Codec, a novel neural codec that incorporates latent-domain predictive coding to eliminate these redundancies, enabling state-of-the-art speech quality at ultra-low bitrates.

Methodology

Latent-Domain Predictive Coding

The core innovation of TF-Codec is the introduction of a "closed-loop" predictor within the VQ-VAE framework. Unlike standard models that quantize raw encoder outputs, TF-Codec predicts the current latent frame based on past reconstructed latents. The encoder then transmits only the "residual"—the difference between the actual feature and the prediction. This process, illustrated in Figure 2, significantly reduces temporal correlation (from 0.37 to 0.09), making the transmitted data sparser and more compressible.

Comparison of the proposed TF-Codec architecture (bottom) with previous VQ-VAE based neural codecs (top).

Architecture and Feature Extraction

TF-Codec operates on time-frequency (TF) representations. Before processing, the STFT magnitude is compressed using a learnable power-law ($|X|^p$). The model adaptively learns $p$ based on the bitrate: higher values focus on high-energy components (vowels/pitch) at low bitrates, while lower values capture finer harmonics at higher bitrates.

As shown in Figure 4, the architecture utilizes 2D-Convolutional blocks to capture frequency-time correlations, followed by Temporal Convolutional Modules (TCM) and Gated Recurrent Units (GRU) to model long-range dependencies.

Detailed block diagrams of the 2D-Encoder, TCM Block, and 2D-Decoder components.

Differentiable Quantization

To facilitate end-to-end training with rate constraints, the authors proposed a Distance-Gumbel-Softmax VQ scheme. This method maps the distance between a feature and a codeword into a probability distribution, allowing for differentiable entropy estimation and explicit bitrate control during training.

Key Results and Insights

Subjective Quality

In MUSHRA listening tests, TF-Codec at 1 kbps achieved significantly higher scores than Opus at 9 kbps. At 3 kbps, the model outperformed both EVS at 9.6 kbps and Opus at 12 kbps, demonstrating superior efficiency over industry standards.

Bitrate-Driven Feature Selection

Analysis of the learned latents revealed an adaptive behavior at ultra-low bitrates (e.g., 0.256 kbps). The model automatically prioritizes linguistic information (phonemes) over speaker-specific identity (timbre) to preserve intelligibility when the bit budget is extremely tight.

Efficiency and Robustness

The codec is fully causal and computationally efficient, achieving a Real-Time Factor (RTF) of 4.1x for encoding on a single CPU. Additionally, "loss-aware training" allows the codec to remain intelligible even under a 50% packet loss rate, making it robust for real-world VoIP applications.

Conclusion

TF-Codec demonstrates that latent-domain predictive coding can effectively remove temporal redundancies in neural speech coding. By combining this with learnable input compression and advanced quantization, the model achieves high-fidelity speech at bitrates previously considered insufficient for clear communication. Future research will focus on extending these techniques to general audio and further improving error resilience in lossy network environments.

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 paper 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{jiang2023predictive,
  author = {Xue Jiang and Xiulian Peng and Huaying Xue and Yuan Zhang and Yan Lu},
  title = {{Predictive Neural Speech Coding}},
  journal = {IEEE ACM Trans. Audio Speech Lang. Process.},
  year = {2023},
  url = {https://openreview.net/forum?id=9_WeZAq-rZ},
}
Figure