Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

  • Problem Speech recognizers trained only on labeled audio need thousands of transcribed hours, and most languages lack that much transcription. Earlier pre-training methods also learned speech units in a separate first step.
  • Method A convolutional encoder maps raw audio to latent vectors, spans of those vectors are masked, and a Transformer context network learns to pick each masked step's quantized latent from distractors, with the quantized targets learned jointly. The model is then fine-tuned with CTC.
  • Results Reached 4.8/8.2 word error rate on Librispeech test-clean/test-other with 10 minutes of labeled data (LARGE, pre-trained on LV-60k, Transformer LM).

Why speech recognition needs a way around labels

Speech recognizers built only from labeled audio need thousands of transcribed hours before they reach acceptable accuracy, and most of the world's languages have no resource of that size. Unlabeled speech is far easier to collect, so the question becomes whether a model can learn useful speech structure from audio before any transcripts are used.

The study pursues this for raw waveforms and reports how little transcription the resulting system needs for recognition.

Self-supervised learning already follows this pattern in natural language processing and computer vision: general representations come from unlabeled data, and the model is then adapted with labels. Here a convolutional encoder turns raw audio into latent speech vectors, spans of those vectors are masked, and the network must select the correct quantized version of each masked vector from a set of distractors.

Earlier speech work either learned a quantization in one stage and built contextual representations afterwards, or masked the input while reconstructing filter bank features. The authors argue that solving both problems end to end is simpler, and they report substantially better results than fixed units learned in a prior step.

From waveform to latent speech and context

Figure 1 shows the framework in which contextualized speech representations and a set of discretized speech units are learned together. The model has three parts: a feature encoder f mapping raw audio X to latent vectors Z, a context network g mapping Z to contextualized vectors C, and a quantization module that produces the self-supervised targets.

The feature encoder is a multi-layer convolutional network. It reads the raw audio X and outputs latent speech representations z1 to zT for T time steps. The total stride of the encoder determines T, the number of time steps the Transformer receives.

The context network follows the Transformer architecture and maps the latent sequence to contextualized vectors c1 to cT that draw on the whole utterance. Instead of fixed positional embeddings, it uses a convolution as relative positional embedding: the convolution output passes through a GELU, is added to the inputs, and is then layer-normalized.

Relative to vq-wav2vec, the context network here reads continuous latents, and self-attention covers the full latent sequence.

The quantization module discretizes each encoder output z into a target q drawn from a finite set. It uses product quantization: G codebooks with V entries each, one entry chosen per codebook, the G chosen entries concatenated, and a linear map applied to give q in R^f. Each codebook entry has dimension d over G, so the concatenated selection has dimension d before the linear map to f.

The authors chose this quantizer because it gave good results in prior work that learned discrete units in a first step.

Choosing codebook entries with the Gumbel softmax

Picking a codebook entry is a discrete operation without a usable gradient, so the model uses the Gumbel softmax, which makes the choice differentiable. The paper applies G hard Gumbel softmax operations, one per group, and names the straight-through estimator for passing gradients through the hard choice.

For group g, the encoder output is mapped to logits l in R^(G x V), and the probability of choosing entry v in group g is given by the following expression. \[ p_{g,v} = \frac{\exp\left((l_{g,v} + n_v)/\tau\right)}{\sum_{k=1}^{V} \exp\left((l_{g,k} + n_k)/\tau\right)} \] Here \( \tau \) is a non-negative temperature and \( n = -\log(-\log u) \), where u is sampled uniformly from U(0, 1).

In the forward pass the codeword i is the argmax over j of p_{g,j}, while the backward pass uses the true gradient of the Gumbel softmax outputs.

The quantizer uses G = 2 and V = 320 in both models, which gives a theoretical maximum of 102.4k codewords. The temperature starts at 2 and is multiplied by 0.999995 at every update until it reaches 0.5 for BASE or 0.1 for LARGE. Entries are 128-dimensional for BASE and 384-dimensional for LARGE.

Masking latent time steps before the context network

Before the context network, a proportion of the encoder outputs is replaced by one trained feature vector shared by all masked time steps. The quantization module always receives unmasked features, so the targets are still computed from the real latents.

Mask spans are placed by drawing starting positions without replacement, at a proportion p of all time steps, and masking the M consecutive steps after each start. Spans may overlap. Pre-training uses p = 0.065 and M = 10, which masks about 49% of time steps with a mean span of 14.7 steps, or 299ms.

Contrastive and diversity objectives

Pre-training minimizes a total loss that adds a contrastive term to a diversity term: \( L = L_m + \alpha L_d \), where \( L_m \) is the contrastive loss and \( L_d \) is the diversity loss. The weight α is a tuned hyperparameter, and the setting used is α = 0.1.

For a masked step t, the context vector c_t must identify the true quantized latent q_t among K + 1 candidates, which are q_t and K distractors. \[ L_m = -\log \frac{\exp(\mathrm{sim}(c_t, q_t)/\kappa)}{\sum_{\tilde{q} \sim Q_t} \exp(\mathrm{sim}(c_t, \tilde{q})/\kappa)} \] The similarity is cosine, \( \mathrm{sim}(a,b) = a^{T}b/(\|a\|\|b\|) \), and the temperature κ is set to 0.1.

Since Lm is the negative log of the softmax probability given to the true candidate, minimizing it raises that probability. The smaller Librispeech setting uses K = 100 distractors.

The diversity loss pushes codebook entries to be used about equally. For each group, the softmax over entries is averaged across a batch of utterances, and Ld is the negative entropy of that average, normalized by GV. \[ L_d = \frac{1}{GV} \sum_{g=1}^{G} -H(\bar{p}_g) = \frac{1}{GV} \sum_{g=1}^{G} \sum_{v=1}^{V} \bar{p}_{g,v} \log \bar{p}_{g,v} \] This softmax contains neither Gumbel noise nor a temperature.

The implementation maximizes a perplexity expression that the authors state is equivalent.

For the smaller Librispeech set, the encoder gradients are scaled down by a factor of 10 and an L2 penalty is applied to the activations of the final encoder layer. The checkpoint kept is the one with the lowest Lm on the validation set.

Fine-tuning with CTC on transcribed speech

The model is trained with a CTC loss, and SpecAugment-style masking is applied to time steps and channels, which the authors credit with delaying overfitting. The feature encoder is not trained during fine-tuning, and its representations are masked with a strategy similar to SpecAugment.

Optimization uses Adam with a tri-state schedule: 10% of updates for warm-up, 40% at a constant rate, then linear decay. For Libri-light, three seeds are run at learning rates 2e-5 and 3e-5 on all subsets, and the configuration with the lowest dev-other WER is kept, decoded with the official 4-gram language model at beam 50. For BASE on the labeled 960 hour subset the learning rate is 1e-4.

Decoding uses either a 4-gram language model or a Transformer language model with 20 blocks, model dimension 1,280 and 16 attention heads, trained on the Librispeech LM corpus. The language model weight and word insertion penalty are tuned by Bayesian optimization, with 128 trials at beam 500 for the 4-gram model and beam 50 for the Transformer LM, selected on dev-other.

Test decoding uses beam 1,500 for the n-gram model and beam 500 for the Transformer LM.

Data, model sizes and pre-training budget

Pre-training uses the Librispeech audio without transcriptions (LS-960, 960 hours) or LV-60k, which has 53.2k hours after the pre-processing of [27]. Fine-tuning uses five labeled settings: the full 960 hours, the 100 hour clean subset, and the Libri-light subsets of 10 hours, 1 hour and 10 minutes. TIMIT contains five hours of phoneme-labeled audio and is collapsed to 39 classes.

The feature encoder has seven blocks with 512 channels, strides (5,2,2,2,2,2,2) and kernel widths (10,3,3,3,3,2,2), giving 49 Hz output and a receptive field of 400 input samples or 25ms. The relative positional convolution has kernel size 128 and 16 groups.

BASE has 12 Transformer blocks, model dimension 768, FFN dimension 3,072 and 8 attention heads, while LARGE has 24 blocks, model dimension 1,024, FFN dimension 4,096 and 16 heads. The two configurations have 95m and 317m parameters. BASE was trained on 64 V100 GPUs for 1.6 days, and LARGE on 128 V100 GPUs for 2.3 days on LS-960 and 5.2 days on LV-60k.

LARGE trains for 250k updates on LS-960, BASE for 400k updates, and LARGE on LV-60k for 600k updates. Dropout is 0.1, and layer drop is 0.05 for BASE and 0.2 for LARGE, with no layer drop for LV-60k.

Recognition with 10 minutes to 100 hours of labels

With LARGE pre-trained on LV-60k and fine-tuned on 10 minutes of labeled data, Table 1 gives 4.6/7.9 on dev-clean/dev-other and 4.8/8.2 on test-clean/test-other with the Transformer LM. The text gives 5.2/8.6 for the test sets in the same configuration, so the text and Table 1 disagree; both values are reported here. Ten minutes of labeled data corresponds to 48 recordings with an average length of 12.5 seconds.

Table 1 covers the 10 minute, 1 hour, 10 hour and 100 hour labeled settings for BASE and LARGE pre-trained on LS-960 or LV-60k.

Noisy student reaches 4.2/8.6 on the same test sets, and the text gives a relative reduction of 45%/42% for the LARGE LS-960 model in a like for like setup.

At 10 minutes with the 4-gram language model, Discrete BERT reaches 16.3/25.2 on test-clean/test-other, while BASE pre-trained on LS-960 reaches 9.1/15.6. The authors describe the reduction in WER over the separate-step approach as about a third.

Full 960 hour labeled Librispeech

With all 960 hours labeled, LARGE pre-trained on LV-60k reaches 1.6/3.0 on dev-clean/dev-other and 1.8/3.3 on test-clean/test-other with the Transformer LM. BASE pre-trained on LS-960 reaches 2.1/4.8 on test, and LARGE on LS-960 reaches 2.0/4.1.

A LARGE model trained from scratch on the 960 hours reaches 2.1/4.6 on test-clean/test-other, compared with 1.9/4.1 for ContextNet.

Within this table, a larger model lowers WER in every setup, with the largest gains on test-other between BASE and LARGE on LS-960. More unlabeled audio also helps, as LARGE on LV-60k improves on LARGE on LS-960.

TIMIT phoneme recognition

Phoneme recognition uses the fine-tuning recipe of the 10 hour Libri-light subset, without a language model. LARGE pre-trained on LS-960 reaches 7.4 PER on dev and 8.3 PER on test. Table 3 lists vq-wav2vec at 9.6/11.6 and wav2vec at 12.9/14.7 on the same dev and test sets, so vq-wav2vec is the lowest prior entry.

The text states a relative PER reduction of 23%/29% over the next best result on dev and test. This is a single model line on one dataset, and no language model is used in these numbers.

Quantizing inputs versus targets

The ablation uses a reduced setup: BASE is pre-trained on LS-960 for 250k updates with masking probability 0.075.

With continuous inputs and quantized targets, the baseline reaches 7.97 average WER with standard deviation 0.02. Quantizing the inputs as well gives 12.18 with standard deviation 0.41 when targets are quantized, and 11.18 with standard deviation 0.16 when targets are continuous. Continuous inputs with continuous targets gives 8.58 with standard deviation 0.08, the second-best of the four variants.

The authors attribute the advantage of continuous inputs to their retention of more information for building contexts. They argue that quantized targets make training more robust. In their reading, continuous targets can carry speaker and background details that make the contrastive task easier without helping recognition. Training accuracy at identifying the correct latent representation rises from 62% with quantized targets to 78.0% with continuous targets.

The authors say quantizing both inputs and targets performs least well, and they consider this a possible reason for the lower results of prior work.

Limitations

The acoustic model predicts characters while the language model works on words, and the authors say this mismatch delays feedback from the language model and is likely detrimental.

Noisy student's row uses an LSTM language model and LS-860 unlabeled data, so it differs from the wav2vec 2.0 rows in both respects. The authors describe the 100 hour comparison as like for like, but the Table 1 caption notes that prior work used 860 unlabeled hours.

The ablation uses a reduced pre-training and fine-tuning budget compared with the main runs. The authors expect self-training to be complementary to pre-training and to possibly yield better results, but no such combination appears in the reported tables. The Libri-light selection of learning rate and seed is made on dev-other with the 4-gram language model.

Paper info

Authors
Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli
Venue
arXiv · Preprint
First published
2020-6-20
Added
2026-10-20
Updated
2020-10-22
Version
v3
arXiv
2006.11477
Category
cs.CL · cs.LG · cs.SD · eess.AS
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli (2020). wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations. arXiv:2006.11477v3. https://arxiv.org/abs/2006.11477v3

BibTeX
@misc{baevski2020wav2vec,
  title = {{wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations}},
  author = {Alexei Baevski and Henry Zhou and Abdelrahman Mohamed and Michael Auli},
  year = {2020},
  eprint = {2006.11477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.11477v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up