QinCodec: Neural Audio Compression with Implicit Neural Codebooks

Zineb Lahrichi, Gaëtan Hadjeres, Gaël Richard, Geoffroy Peeters

Abstract

Traditional neural audio codecs rely on end-to-end training, necessitating complex online codebook updates and straight-through estimation to handle non-differentiable quantization layers. This paper introduces QINCODEC, a 44.1 kHz neural audio codec that challenges this paradigm by decoupling autoencoder training from the quantization process. By employing a three-stage offline quantization strategy and implicit neural codebooks (QINCO2), QINCODEC achieves state-of-the-art performance at 16 kbps, outperforming established models like DAC and EnCodec while offering a more flexible and modular training framework.

Introduction

In the rapidly evolving field of generative audio, neural codecs serve as the essential bridge between continuous waveforms and discrete tokens. For years, the industry has adhered to an "end-to-end dogma," where the encoder, quantizer, and decoder are trained simultaneously. This approach typically utilizes Residual Vector Quantization (RVQ), which requires specialized gradient estimation techniques and bespoke online codebook update formulas to function within a backpropagation framework.

However, this coupling creates a "walled garden" effect, restricting researchers to quantization methods that are mathematically compatible with online updates. QINCODEC, developed by researchers at Sony AI and Télécom Paris, demonstrates that this constraint is unnecessary. By treating quantization as a separate, offline step, the authors unlock the potential for more sophisticated, computationally intensive quantizers that were previously impractical for end-to-end systems.

Methodology

QINCODEC utilizes a modular three-stage pipeline designed to maximize reconstruction quality while maintaining architectural flexibility.

1. Autoencoder Pre-training

The process begins with training a continuous autoencoder without any quantization. The architecture is based on Vocos, a lightweight design that leverages ConvNeXt blocks and STFT (Short-Time Fourier Transform) coefficients. During this stage, the model learns to map audio into a high-dimensional continuous latent space using a combination of spectral and adversarial losses.

2. Offline Quantization with QINCO2

Once the autoencoder is optimized, the encoder is frozen. The latent representations of the training data are extracted and used to train a QINCO2 quantizer. Unlike standard RVQ, which relies on a static set of codebook vectors, QINCO2 employs a neural network to predict "implicit" codebooks. These codebooks adapt dynamically based on previous quantization steps, allowing for significantly higher precision and more efficient use of the available bit budget.

As a baseline for comparison, the authors also introduced iRVQ (improved RVQ), which enhances standard RVQ with residual conditioning and re-standardization, providing a robust modular alternative to traditional end-to-end RVQ.

3. Decoder Finetuning

The final stage involves freezing both the encoder and the quantizer while performing a targeted finetuning of the decoder. This step is critical for perceptual quality; it allows the decoder to adapt to the specific artifacts and noise patterns introduced by the offline quantization process, effectively "cleaning up" the output for the human ear.

Experimental Setup

The models were trained on WavCaps, a comprehensive dataset containing approximately 400,000 general audio clips from sources such as AudioSet, FreeSound, and BBC Sound Effects. Evaluation was conducted using the AudioCaps test set, focusing on 5-second segments to ensure rigorous testing across diverse acoustic environments.

Results and Discussion

QINCODEC demonstrates significant advantages over industry standards, particularly at mid-range bitrates:

  • Performance at 16 kbps: QINCODEC outperformed both Descript Audio Codec (DAC) and EnCodec across multiple objective metrics, including Multi-Scale Mel (MS-Mel) loss and FD-OL3 (Fréchet Distance). It also showed superior codebook perplexity, indicating a more uniform and efficient utilization of the discrete token space.
  • Low Bitrate Efficiency: At 8 kbps, QINCODEC remained highly competitive with DAC and significantly outperformed EnCodec, proving the scalability of the modular approach.
  • Subjective Quality: MUSHRA (MUltiple Stimuli with Hidden Reference and Anchor) listening tests confirmed that the objective gains translated to human perception, with listeners consistently rating QINCODEC samples as high-fidelity.

The Value of Decoupling

The primary insight of this research is that end-to-end training is not a prerequisite for high-quality audio compression. By decoupling the stages, researchers can swap in different quantizers or encoders without needing to retrain the entire system from scratch. This modularity is particularly beneficial for "frugal" AI development, where computational resources may be limited.

Limitations and Future Work

Despite its strengths, QINCODEC faces challenges in phase preservation. DAC currently maintains an edge in Si-SDR (Signal-to-Distortion Ratio), likely because its end-to-end training allows the model to optimize specifically for phase alignment across the quantization bottleneck. Additionally, at extremely low bitrates (below 8 kbps), the quality floor is still dictated by the inherent capacity of the quantizer.

Future research will focus on narrowing the gap in phase-sensitive metrics and exploring how offline quantizers can be further optimized to handle the unique nuances of complex audio signals, such as polyphonic music and dense environmental textures.

Conclusion

QINCODEC represents a significant shift in neural audio codec design. By proving that offline, implicit quantization can match or exceed the performance of end-to-end systems, it opens the door for a new generation of modular, flexible, and high-performance audio compression tools.

Summary updated

BibTeX
@inproceedings{lahrichi2025qincodec,
  author = {Zineb Lahrichi and Gaëtan Hadjeres and Gaël Richard and Geoffroy Peeters},
  title = {{QinCodec: Neural Audio Compression with Implicit Neural Codebooks}},
  booktitle = {EUSIPCO},
  year = {2025},
}
Figure