A High-Quality and Low-Complexity Streamable Neural Speech Codec with Knowledge Distillation

Éric Zhang, Hui-Peng Du, Xiao-Hang Jiang, Yang Ai, Zhen-Hua Ling2025 · DOI

TL;DR

This paper introduces StreamCodec2, a neural speech codec that achieves high-quality audio reconstruction with significantly reduced latency and computational complexity. By employing a fully causal architecture and knowledge distillation from a more complex teacher model, StreamCodec2 offers a promising solution for real-time speech communication and efficient audio compression on resource-constrained devices.

What Problem Does This Paper Address?

Modern neural speech codecs have made impressive strides in reconstructing high-fidelity audio. However, many of these advanced models often come with a substantial trade-off: high latency and computational complexity. This makes them impractical for real-time applications like voice calls or efficient compression for storage and transmission, where low latency and minimal resource usage are paramount. The authors' previous work, StreamCodec, addressed streamability and latency but still had room for improvement in quality and complexity. This paper aims to bridge that gap by developing a codec that is both high-quality and lightweight, suitable for deployment on embedded systems and real-time communication scenarios.

Methods

StreamCodec2 builds upon the StreamCodec architecture by adopting a fully causal network for both the encoder and decoder. This causal design is crucial for enabling low-latency, streamable processing, as it ensures that each output frame depends only on past input frames. To further reduce complexity, the authors have also reduced the number of convolutional channels in the network.

The core challenge with these modifications (causalization and channel reduction) is the potential degradation of speech reconstruction quality. To counteract this, StreamCodec2 employs a knowledge distillation strategy. A powerful, non-causal, high-complexity "teacher" model is pre-trained. This teacher model then guides the training of the StreamCodec2 "student" model by transferring its learned intermediate representations. The paper explores different distillation schemes, including a direct approach where the teacher directly distills the student, and indirect approaches involving intermediate student models. The overall training loss combines standard audio codec losses (adversarial, feature matching, MDCT spectrum, mel spectrogram, codebook, and commitment losses) with the knowledge distillation loss.

Datasets

The experiments were conducted using the LibriTTS speech dataset. This dataset comprises 585 hours of speech recordings from 2,500 different speakers. A training set of 149,708 utterances and a test set of 4,936 utterances were used. All speech utterances were resampled to 16 kHz.

Key Insights and Ideas

  • Knowledge Distillation is Key for Lightweight Causal Models: The paper strongly demonstrates that while causalization and channel reduction are necessary for low-complexity and low-latency codecs, they inherently degrade quality. Knowledge distillation from a high-quality teacher model is an effective way to recover this lost quality without increasing the complexity of the final deployed model.
  • Direct Distillation Outperforms Indirect Schemes: For this specific task, the direct distillation scheme (where the non-causal teacher directly distills the causal student) yielded better results than more complex indirect, multi-step distillation approaches. This suggests that simpler transfer pathways can be more effective in preserving crucial information.
  • Careful Tuning of Distillation Weight is Crucial: The effectiveness of knowledge distillation is sensitive to the weight assigned to the distillation loss. Too small a weight renders it ineffective, while too large a weight can cause the student model to overfit to the teacher's outputs, potentially harming its primary reconstruction objective. A sweet spot (around 0.01 in this case) was found to be optimal.
  • Distilling Across All Modules is Beneficial: Ablation studies showed that applying knowledge distillation across all layers of the encoder and decoder, rather than selectively, leads to better overall speech quality. This implies that comprehensive guidance from the teacher model is more effective.

Key Results

StreamCodec2, trained with the direct knowledge distillation strategy, achieves a compelling balance of performance metrics:

  • Low Latency: 20 ms.
  • Low Computational Complexity: 910 MFLOPs.
  • Low Model Complexity: 5.4 M parameters.
  • High-Quality Reconstruction: The paper reports significant improvements in objective metrics like LSD, STOI, PESQ, and ViSQOL compared to the student model trained without distillation. For instance, the ViSQOL score improved from 2.650 to 2.744 (p < 0.01) for the direct distillation scheme (NH → CL) compared to the student model. The direct distillation scheme (NH → CL) also outperformed the indirect schemes in all speech quality metrics.

Limitations and Future Work

The authors acknowledge that while StreamCodec2 significantly improves upon their previous StreamCodec, there is still room for further enhancement in reconstructed speech quality. Future work will focus on:

  • Further improving speech quality: Exploring new architectural modifications or training techniques to push the quality boundaries even higher.
  • Evaluating on additional audio datasets: Testing the generalization capabilities of StreamCodec2 on diverse audio data beyond LibriTTS.

Summary updated

Abstract

While many current neural speech codecs achieve impressive reconstructed speech quality, they often neglect latency and complexity considerations, limiting their practical deployment in downstream tasks such as real-time speech communication and efficient speech compression. In our previous work, we proposed StreamCodec, which enables streamable speech coding by leveraging model causalization and a scalar-vectorcombined quantization strategy, but its reconstructed quality and complexity still have room for improvement. Therefore, this paper proposes an improved iteration of StreamCodec, named StreamCodec2. The StreamCodec2 supports streamable and lightweight speech coding by adopting a fully causal architecture and reducing the convolutional channels. To compensate for the speech quality degradation caused by model causalization and pruning, we introduce a non-causal, high-complexity teacher codec to guide the training of StreamCodec2 through knowledge distillation. Experimental results demonstrate that our proposed StreamCodec2, trained with the knowledge distillation strategy, can achieve high-quality speech reconstruction while maintaining low latency (only 20 ms), low computational complexity (only 910 MFLOPs), and low model complexity (only 5.4 M parameters).
BibTeX
@misc{zhang2025high,
  author = {Éric Zhang and Hui-Peng Du and Xiao-Hang Jiang and Yang Ai and Zhen-Hua Ling},
  title = {{A High-Quality and Low-Complexity Streamable Neural Speech Codec with Knowledge Distillation}},
  year = {2025},
  doi = {10.1109/apsipaasc65261.2025.11249345},
}
Figure