wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations

Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli

2020 · NeurIPS

wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations

Problem

Framing

End-to-end ASR still depends on large transcribed corpora, while unlabeled speech is abundant. The paper closes this gap by masking latent audio frames and predicting quantized targets with a contrastive objective, reaching 1.8/3.3 WER on LibriSpeech test-clean/other and 4.8/8.2 WER with only 10 minutes of labels.

Currently Used Methods

Foundational

Proposed Method

Architecture

The model maps raw waveform x\mathbf{x} through a 7-layer temporal CNN to latent frames z1:T\mathbf{z}_{1:T}, masks sampled spans, then applies a Transformer to produce contextual states c1:T\mathbf{c}_{1:T}. A product quantizer converts unmasked latent frames into discrete targets qt\mathbf{q}_t for contrastive prediction. BASE uses 12 Transformer blocks with model size 768 and 8 heads; LARGE uses 24 blocks, 1024, and 16 heads.

Architecture diagram: raw waveform enters a CNN feature encoder, masked latent frames go through a Transformer, and quantized targets supervise a contrastive loss.

Loss / Objective

Pretraining combines masked contrastive prediction with a codebook-usage penalty.

L=Lm+αLdL = L_m + \alpha L_d Lm=logexp(sim(ct,qt)/κ)q~Qtexp(sim(ct,q~)/κ)L_m = - \log \frac{\exp\left(\operatorname{sim}(\mathbf{c}_t, \mathbf{q}_t)/\kappa\right)}{\sum_{\tilde{\mathbf{q}} \in Q_t} \exp\left(\operatorname{sim}(\mathbf{c}_t, \tilde{\mathbf{q}})/\kappa\right)} Ld=1GVg=1Gv=1Vpˉg,vlogpˉg,vL_d = \frac{1}{GV} \sum_{g=1}^{G} \sum_{v=1}^{V} \bar{p}_{g,v} \log \bar{p}_{g,v}

Algorithm

Fine-tuning adds a linear projection over contextual states and optimizes CTC on labeled speech.

LASR=LCTC(y,Wc1:T)L_{\mathrm{ASR}} = L_{\mathrm{CTC}}\left(y, W\mathbf{c}_{1:T}\right)

Training Procedure

Evaluation

Datasets

Metrics

Headline results

Table 10: WER on LibriSpeech with all 960 hours labeled

ModelUnlabeled dataLMdev cleandev othertest cleantest other
LARGE - from scratch-None2.87.63.07.7
LARGE - from scratch-4-gram1.85.42.65.8
LARGE - from scratch-Transf.1.74.32.14.6
BASELS-960None3.28.93.48.5
BASELS-9604-gram2.05.92.66.1
BASELS-960Transf.1.84.72.14.8
LARGELS-960None2.66.52.86.3
LARGELS-9604-gram1.74.62.35.0
LARGELS-960Transf.1.73.92.04.1
LARGELV-60kNone2.14.52.24.5
LARGELV-60k4-gram1.43.52.03.6
LARGELV-60kTransf.1.63.01.83.3

Ablations

Method Strengths and Weaknesses

Strengths

Weaknesses

Suggestions from the authors

Links

Prior Papers

Further Papers