Codec-ASR: Training Performant Automatic Speech Recognition Systems with Discrete Speech Representations

Kunal Dhawan, Nithin Rao Koluguri, Ante Jukic, Ryan Langman, Jagadeesh Balam, Boris Ginsburg

Abstract

Researchers from NVIDIA have introduced Codec-ASR, a high-performance Automatic Speech Recognition (ASR) pipeline that utilizes discrete acoustic codes from neural audio codecs instead of traditional continuous mel-spectrograms. By optimizing codebook initialization and training strategies, Codec-ASR achieves state-of-the-art results on the 143-language ML-SUPERB benchmark, outperforming significantly larger self-supervised models with a fraction of the training data.

Introduction

Modern ASR systems typically rely on mel-spectrograms—continuous, high-dimensional features. However, the field is shifting toward discrete speech representations (tokens), mirroring the success of Large Language Models (LLMs) in text processing. Discrete tokens facilitate unified foundation models capable of speech recognition, translation, and synthesis. While "semantic" tokens are well-established, "acoustic" tokens—which preserve fine-grained details like pitch—have historically yielded lower ASR performance. Codec-ASR addresses this gap, demonstrating that acoustic codecs can serve as efficient, high-accuracy inputs for ASR.

System Architecture

The Codec-ASR pipeline integrates Neural Audio Codecs (NACs) with a FastConformer-RNNT architecture. The researchers evaluated two primary codec types: Time-Domain NAC (TD-NAC), which processes raw signals, and Mel-NAC, which operates on spectral representations.

The Codec-ASR pipeline, illustrating the flow from input audio to decoded text and the two code aggregation strategies.

A critical component of the architecture is the handling of multiple codes produced per timestep by Residual Vector Quantization (RVQ). The study compared two aggregation strategies: Averaging (fusing embeddings from different codebooks) and Stacking (increasing dimensionality by concatenating codes). Results indicated that averaging is superior for RVQ-based codecs, likely due to the shared residual nature of the codes.

Training and Optimization Strategies

The most significant performance gains were achieved through strategic initialization and robust training techniques.

Ablation study demonstrating the impact of codebook initialization and data augmentation on Word Error Rate (WER).

As shown in the ablation study, initializing the ASR embedding layer with pre-trained weights from the audio codec—rather than random weights—reduced the Word Error Rate (WER) on LibriSpeech dev-clean from 17.58% to 3.87%. Further improvements were realized by incorporating Spectrogram Augmentation (SpecAug) and Noisy Embedding Training, which adds scaled uniform noise to embeddings during training to improve model generalization.

Experimental Results

Codec-ASR demonstrated exceptional efficiency and performance across several benchmarks:

  • Efficiency: A TD-NAC system at 6.4 kbps matched or exceeded the performance of the 24 kbps Encodec standard.
  • Multilingual SOTA: On the ML-SUPERB 1h challenge (143 languages), Codec-ASR achieved a Character Error Rate (CER) of 21.0%, surpassing the XLSR-128 model (22.0%) despite being smaller and trained on less data.
  • Robustness: The combination of discrete tokens and noisy embedding training narrowed the performance gap between discrete systems and traditional mel-spectrogram models on difficult "other" (noisy) datasets.

Conclusion

Codec-ASR proves that discrete acoustic representations are a viable and performant alternative to continuous features for ASR. While Finite Scalar Quantization (FSQ) offers computational efficiency, RVQ remains more robust to noise. These findings provide a roadmap for developing efficient, multi-task foundational models that unify speech understanding and generation. The models and code are available via the NVIDIA NeMo toolkit.

Summary updated

BibTeX
@inproceedings{dhawan2024codec,
  author = {Kunal Dhawan and Nithin Rao Koluguri and Ante Jukic and Ryan Langman and Jagadeesh Balam and Boris Ginsburg},
  title = {{Codec-ASR: Training Performant Automatic Speech Recognition Systems with Discrete Speech Representations}},
  booktitle = {Interspeech},
  year = {2024},
  url = {https://openreview.net/forum?id=2ScrGdlzB5},
}
Figure