Abstract
Self-supervised learning (SSL) has become the standard for developing speech foundation models, yet traditional approaches rely on raw waveforms, incurring high computational and storage costs. We present Codec2Vec, a framework that operates exclusively on discrete units derived from neural audio codecs. By shifting acoustic feature extraction to a one-time offline process, Codec2Vec achieves a 16.5x reduction in storage and a 2.3x speedup in training. Despite the lossy nature of quantization, Codec2Vec maintains competitive performance on the SUPERB benchmark, demonstrating that discrete units are a viable and efficient alternative for large-scale speech representation learning.
Introduction
Modern speech AI models, such as HuBERT and wav2vec 2.0, are typically trained on massive unlabeled audio corpora. While successful, these models process raw waveforms or high-dimensional spectrograms, leading to three primary challenges: significant computational overhead for feature extraction, storage bottlenecks due to uncompressed audio data, and privacy risks associated with biometric information in raw signals.
Codec2Vec addresses these limitations by training a general-purpose speech model directly on the compressed, discrete "units" produced by neural audio codecs. This approach decouples acoustic extraction from contextual modeling, allowing for more efficient iteration and reduced resource consumption.
Methodology
The Codec2Vec pipeline moves the heavy lifting of acoustic feature extraction to a pre-processing step.
- Discretization: Raw audio is converted into sequences of discrete codebook indices using a pre-trained neural codec. The authors specifically utilize the Descript Audio Codec (DAC) for its high-fidelity representation.
- Architecture: The core model is a standard 12-layer Transformer (BASE-sized). It replaces the traditional CNN front-end with a simple embedding layer that maps discrete codec units into a continuous latent space.
- Masked Prediction: Following the BERT paradigm, the model masks portions of the input sequence and predicts the missing units. The framework explores three prediction strategies: reconstruction-based, iterative clustering (similar to HuBERT), and online clustering (similar to DinoSR).
Experimental Setup
The model was pre-trained on the LibriSpeech 960-hour corpus. Performance was evaluated using the SUPERB benchmark, which encompasses a variety of tasks including Phoneme Recognition (PR), Automatic Speech Recognition (ASR), Keyword Spotting (KS), Speaker Verification (SV), and Emotion Recognition (ER).
Results and Discussion
Codec2Vec demonstrates that extreme efficiency does not require sacrificing high performance. By utilizing discrete units, the dataset size was reduced from 60.4 GB to 3.6 GB—a 16.5x reduction. This allowed the entire dataset to be loaded into RAM, eliminating disk I/O bottlenecks and contributing to a 2.3x training speedup (from 830 to 356 GPU hours).
As shown in the results, Codec2Vec (using online clustering) achieved a Phoneme Error Rate (PR) of 4.2 and an ASR Word Error Rate of 6.2. While there is a slight performance gap compared to continuous-input models like DinoSR (3.2 PR / 4.7 ASR), Codec2Vec remains highly competitive and even outperforms traditional models like HuBERT on several semantic and speaker-related tasks.
Key Insights
- Viability of Discrete Units: High-quality codec quantization preserves enough acoustic and linguistic nuance to support effective representation learning.
- Codec Impact: The choice of codec is paramount. Units from DAC significantly outperformed those from EnCodec, suggesting that the model's potential is capped by the underlying codec's information-preserving capabilities.
- Efficiency Gains: The reduction in data footprint and training time makes large-scale SSL more accessible and environmentally sustainable.
Conclusion
Codec2Vec establishes a new paradigm for efficient speech representation learning. While a small "information bottleneck" persists in transcription tasks, the framework's massive storage and computational savings make it a compelling choice for future foundation models. Future work will explore SSL objectives specifically tailored for discrete sequences and investigate the model's robustness in diverse acoustic environments.
Summary updated