Abstract
CoBERT (Code BERT) is a novel self-supervised speech representation learning framework designed to bridge the gap between continuous audio signals and discrete semantic units. By training a speech encoder to predict high-level representations derived from discrete "codes" (pseudo-text), CoBERT achieves state-of-the-art performance on speech recognition and translation tasks, outperforming previous leaders like data2vec and HuBERT.
Introduction
Self-supervised learning (SSL) has significantly advanced speech processing by enabling models to learn from vast quantities of unlabeled audio. Current methodologies typically diverge into two paradigms: treating speech as a continuous signal (e.g., data2vec) or as a sequence of discrete units or "codes" (e.g., HuBERT).
Speech is inherently noisier and more continuous than text, complicating the extraction of high-level semantic meaning without transcripts. While joint speech-text pre-training offers a solution, it necessitates paired data, which is costly to obtain. CoBERT addresses this by leveraging "self-organized codes" to facilitate discrete, text-like representation learning using only unlabeled audio.
Methodology
The CoBERT training pipeline is structured into three primary stages:
- Code Generation: Utilizing a pre-trained HuBERT model and k-means clustering, raw audio waveforms are converted into a sequence of discrete tokens (codes). These codes serve as "pseudo-transcripts" capturing phonetic and structural information.
- Code Representation Learning: A "Code Teacher" model is trained. Two variants were explored: a BERT-style model using Masked Language Modeling (MLM) and a data2vec-style model using self-distillation to predict contextualized latent representations of the codes.
- Knowledge Distillation: This core stage involves training the "Target Speech Model" (the student). Unlike standard self-distillation where teacher and student share the same modality, the CoBERT student processes masked raw audio to predict high-level features generated by the Code Teacher.
To further enhance performance, a multi-target approach was implemented, where the model simultaneously predicts both code-based representations and standard speech-based representations via self-distillation.
Experimental Setup
The model was pre-trained on the full 960-hour LibriSpeech corpus. Evaluation was conducted across several benchmarks:
- Automatic Speech Recognition (ASR): LibriSpeech 10-hour and 100-hour subsets.
- Speech Translation (ST): The CoVoST2 English-to-German (En $\rightarrow$ De) dataset.
- General Downstream Tasks: The SUPERB benchmark.
Key Insights
- Cross-Modal Teaching: A critical finding is that speech models learn more effectively when the target is a different modality (discrete codes) rather than a masked version of the input signal. This encourages the learning of abstract, semantic features.
- Discrete vs. Continuous Spaces: BERT-style representation learning appears more effective in discrete spaces. Converting audio to codes "primes" the teacher to provide a higher-quality signal to the student.
- Modality Synergy: Predicting representations from both code and speech domains yields superior results, suggesting that the two modalities provide complementary phonetic and acoustic information.
Results
CoBERT demonstrates superior performance over previous state-of-the-art (SOTA) models:
- ASR: On the LibriSpeech 100h subset (without a language model), CoBERT achieved a Word Error Rate (WER) of 8.9 on the "test-other" set, compared to 9.7 for data2vec and 12.7 for HuBERT.
- Speech Translation: On the CoVoST2 En $\rightarrow$ De task, CoBERT reached 19.10 BLEU, significantly surpassing data2vec's 17.56 BLEU.
- Efficiency: CoBERT achieved an average relative WER reduction of 6.7% across LibriSpeech subsets compared to previous best-performing base models.
Conclusion and Future Work
While CoBERT sets a new benchmark, it currently relies on an offline k-means clustering step for code generation, adding complexity to the pipeline. Future research will explore end-to-end systems, incorporating actual unpaired text data to mitigate "code scarcity," and extending the framework to multilingual settings for broader speech translation capabilities.
Summary updated