Abstract
Historically, speech foundation models have been bifurcated into two distinct categories: discriminative models optimized for understanding (e.g., ASR) and generative models optimized for synthesis (e.g., TTS). This paper introduces UniWav, the first unified pre-training framework designed to bridge this gap. By combining a self-distillation-based encoder with a Conditional Flow Matching (CFM) decoder, UniWav demonstrates that a single model can achieve state-of-the-art performance in speech tokenization while remaining highly competitive in both speech recognition and high-fidelity synthesis.
1. Introduction
In the current landscape of speech AI, the requirements for representation learning are often seen as contradictory. Discriminative tasks like Automatic Speech Recognition (ASR) require representations that are invariant to acoustic noise and speaker identity, focusing strictly on semantic content. In contrast, generative tasks like Text-to-Speech (TTS) require the preservation of rich acoustic details, including prosody, emotion, and unique vocal characteristics.
Because of these opposing needs, the field has relied on separate architectures: models like HuBERT or wav2vec 2.0 for understanding, and models like Voicebox or VALL-E for generation. UniWav challenges this dichotomy by proposing a unified pre-training objective that forces a single encoder-decoder architecture to master both domains simultaneously.
2. Methodology
UniWav utilizes an end-to-end Transformer-based architecture. The model is trained on surface features—such as EnCodec latents or mel spectrograms—using a masked audio modeling approach.
2.1 The Representation Encoder
The encoder is trained via self-distillation and online clustering, a method inspired by DinoSR. During training, the encoder (the "student") processes a masked version of the input audio. It is tasked with predicting pseudo-labels generated by a "teacher" model, which is an exponential moving average (EMA) of the encoder itself. This setup allows the encoder to learn robust, high-level features without requiring manual transcriptions.
2.2 The Generative Decoder
The decoder employs Conditional Flow Matching (CFM), a modern generative framework known for its efficiency and high-quality output. The decoder is conditioned on a learnable, weighted sum of representations extracted from all layers of the encoder. This ensures that the decoder can leverage both the low-level acoustic details found in early layers and the high-level semantic information found in deeper layers.
2.3 Unified Pre-training
Unlike modular systems, UniWav is trained jointly. The encoder receives gradient updates from two sources: the self-distillation loss and the decoder’s flow matching loss. This joint optimization forces the encoder to produce representations that are not only discriminative enough for ASR but also detailed enough to reconstruct high-fidelity audio.
3. Experimental Results
UniWav was pre-trained on the LibriLight dataset (60,000 hours of English speech) and evaluated across several benchmarks.
3.1 Speech Recognition (ASR)
When fine-tuned on the 960-hour LibriSpeech set, UniWav achieved a Word Error Rate (WER) of 4.0% on the test-other split. While specialized models like data2vec 2.0 maintain a slight edge (approximately 0.5% lower WER), UniWav’s performance confirms that a unified model can remain highly competitive in discriminative tasks.
3.2 Speech Synthesis (TTS)
In zero-shot TTS evaluations on LibriSpeech test-clean, UniWav matched or exceeded the performance of specialized generative models. It achieved an ASR-WER of 2.5 (a measure of intelligibility) and a Speaker Similarity score of 0.635. These results outperform VALL-E and are on par with Voicebox, despite UniWav using significantly less transcribed data during its training process.
3.3 Speech Tokenization
One of UniWav's most significant contributions is in the realm of neural audio codecs. By introducing a discrete bottleneck, UniWav functions as a low-bitrate tokenizer. At just 500 bps, it achieved a 3.64 UTMOS (audio quality score) and a 7.2% ASR-WER, significantly outperforming the previous state-of-the-art, SpeechTokenizer, which recorded 1.25 UTMOS and 10.5% WER at the same bitrate.
4. Discussion: Scaling and Entanglement
The authors identified a critical "scaling dynamic": unified training only becomes beneficial once the model reaches a certain size. In smaller models, the generative objective can actually degrade ASR performance. However, at a scale of 24 layers, the encoder begins to benefit from the generative task, suggesting that higher capacity allows the model to better manage the diverse information required for both tasks.
Furthermore, layer-wise analysis showed that UniWav retains high mutual information regarding speaker identity across its depth. While traditional models like HuBERT strip this information away to aid ASR, UniWav's "entangled" representations prove to be a feature rather than a bug, enabling superior performance in generation and low-bitrate tokenization.
5. Conclusion
UniWav demonstrates that the divide between speech understanding and generation is not insurmountable. By scaling the architecture and employing joint pre-training, UniWav provides a blueprint for a single foundation model capable of handling the full spectrum of speech AI tasks. Future work will focus on expanding this framework to multi-lingual data and broader audio domains, such as music and environmental sounds.
Summary updated