Do Neural Codecs Generalize? A Controlled Study Across Unseen Languages and Non-Speech Tasks

Shih-Heng Wang, Jiatong Shi, Jinchuan Tian, Haibin Wu, Shinji WatanabearXiv 2026

TL;DR

This paper presents the first strictly controlled study investigating how Neural Audio Codecs (NACs) generalize across unseen languages and non-speech audio tasks. By training codecs from scratch with identical architectures but varying data compositions, the authors reveal that while NACs are surprisingly robust to unseen languages, speech-only models fail on non-speech tasks—a limitation that can be fixed by mixing in general audio data without harming speech performance.

What Problem Does This Paper Address?

Neural Audio Codecs (NACs) have become a cornerstone of modern audio processing. By compressing raw waveforms into discrete tokens via an encoder-quantizer-decoder pipeline, they serve as the foundational "vocabulary" for state-of-the-art speech and audio language models (like VALL-E).

Despite their popularity, we don't fully understand their generalization boundaries. Can a codec trained only on English accurately reconstruct text-to-speech in German? Can a speech-trained codec handle music or environmental sounds?

Previous evaluations relied on off-the-shelf models, which suffer from confounding variables like different architectures, codebook sizes, and loss functions. This paper eliminates those variables by training NACs from scratch under strictly controlled data configurations to answer three core questions:

  1. Do NACs suffer from language-dependency issues?
  2. Can speech-only NACs generalize to non-speech tasks?
  3. Does adding non-speech data during pre-training create a performance trade-off?
Figure 1: Overview of our three key research questions.

Methods

The authors standardized their experiments using the open-source ESPnet-Codec toolkit, adopting the popular SoundStream architecture. The core model consists of a SEANet-based encoder/decoder and a Residual Vector Quantizer (RVQ) utilizing 8 codebook modules. The models were trained using a Generative Adversarial Network (GAN) framework combining multi-scale mel-spectrogram reconstruction losses, adversarial losses, and quantization commitment losses.

To isolate the impact of data, they trained three distinct model variants:

  • English-Only: Trained exclusively on English speech.
  • Multilingual: Trained on speech across 8 different languages.
  • Multilingual + Audio: Trained on the 8 languages plus general non-speech audio.

For downstream evaluation, they modified FastSpeech2, a non-autoregressive text-to-speech (TTS) framework, to predict discrete codec tokens instead of traditional mel-spectrograms.

Datasets

  • Pre-training: The Multilingual LibriSpeech (MLS) dataset was used for speech data, and AudioSet was used for the non-speech audio data.
  • Speech Evaluation: LJSpeech (English single-speaker) and the German and Spanish subsets of CSS10 (to test generalization to completely unseen languages).
  • Non-Speech Evaluation: The AudioSet test set, which features 17,142 audio clips spanning environmental noises, animal vocalizations, and music.

Key Insights and Ideas

  • Acoustic Robustness > Linguistic Bias: Unlike speech Self-Supervised Learning (SSL) models (like wav2vec 2.0), which heavily degrade on unseen languages because they capture high-level semantic/phonetic features, NACs operate primarily at the acoustic/signal level.
  • The English-Only Surprise: In speech reconstruction, the English-only pre-trained model frequently outperformed the multilingual model when tested on Spanish and German. This suggests that expanding language diversity in pre-training data without increasing model capacity might actually dilute a codec's reconstruction fidelity.
  • Speech and Non-Speech Don't Mix Naturally: Speech-only models perform poorly on non-speech audio. The acoustic characteristics of a guitar or a dog barking are too far outside the distribution of human speech for a speech-only quantizer to map accurately.
  • A "Free Lunch" for Pre-training: Incorporating non-speech data dramatically improves performance on non-speech tasks while maintaining entirely comparable performance on speech tasks. There is no harsh trade-off.

Key Results

The authors evaluated the models across 11 distinct metrics spanning intrusive (e.g., Mel Cepstral Distortion - MCD, PESQ), non-intrusive (DNSMOS, UTMOS), and perceptual (Word Error Rate - WER via Whisper) categories.

  • Language Generalization: On Spanish speech reconstruction, the English-only model achieved the best scores in 8 out of 9 metrics (including an MCD of 4.83 vs. the Multilingual model's 5.31).
  • Non-Speech Reconstruction: The Multilingual + Audio model drastically outperformed the speech-only variants on AudioSet, dropping the MCD from ~7.32 down to 5.53 and significantly improving the CI-SDR (Signal-to-Distortion Ratio) from -10.25 dB to -7.31 dB.
Speech reconstruction results across different data coverages.

Limitations and Future Work

While comprehensive, the authors note a few constraints in their current setup:

  1. Architecture Scope: The study was limited to the SoundStream architecture. Future work will need to validate if these data generalization trends hold true for other architectures like EnCodec, DAC, or HiFi-Codec.
  2. Downstream Tasks: Downstream evaluation was restricted to Text-to-Speech (TTS). The authors plan to test these codecs on non-speech downstream tasks like music generation or environmental sound classification.
  3. TTS Modeling: The evaluation relied on a non-autoregressive TTS model (FastSpeech2). Testing with more powerful autoregressive language models (like VALL-E) could provide deeper insights into token quality.

Summary updated

BibTeX
@misc{wang2026do,
  author = {Shih-Heng Wang and Jiatong Shi and Jinchuan Tian and Haibin Wu and Shinji Watanabe},
  title = {{Do Neural Codecs Generalize? A Controlled Study Across Unseen Languages and Non-Speech Tasks}},
  year = {2026},
  eprint = {2601.12205},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.12205},
}
Figure