Search

Search papers and lessons

Robust Speech Recognition via Large-Scale Weak Supervision

Alec Radford, Jong Wook Kim, Tao Xu et al. · 2022

Radford et al. (2022) train one encoder-decoder Transformer on 680,000 hours of weakly labelled multilingual audio; it transcribes unseen datasets with no fine-tuning, with far fewer errors.

On this page

  • Colour = topic mix
  • Discrete math
  • Calculus
  • Linear algebra
  • Probability
  • Neural network basics
  • Algorithms
  • ReadReady to readNot yet

TL;DR

Speech recognition systems have usually been trained on a few thousand hours of carefully checked transcripts, and they often break when the audio changes. Radford and colleagues train one sequence-to-sequence Transformer on 680,000 hours of audio paired with transcripts found on the internet. The same model does speech recognition, translation, language identification and voice activity detection, selected by special tokens, and it works on new datasets with no fine-tuning. On several English test sets it makes far fewer errors than models trained on LibriSpeech alone.

Builds on: Transformer, Encoder-Decoder Architecture · Leads to: Automatic Speech Recognition

Why it mattered

Whisper showed that weak, very large supervision can beat small, clean supervision for robustness. Its training recipe, one decoder that takes task tokens as input, also made a single model replace a chain of separate speech components.

The paper's central comparison uses 14 academic test sets. LibriSpeech clean is the in-distribution reference; the other 13 are out-of-distribution. The zero-shot Large V2 model has a word error rate of 2.7 on LibriSpeech clean, the same as a wav2vec 2.0 baseline trained on LibriSpeech, but averages 12.8 across the 13 out-of-distribution sets against 29.3 for that baseline, a 55.2% average relative error reduction.

History

Before this work, speech recognition gains came mostly from larger unlabelled pre-training, such as wav2vec 2.0, which then needed fine-tuning on labelled data. Supervised corpora were small: SpeechStew, the paper's example of a mix of existing sets, totals 5,140 hours. The weakly labelled sets that came next, from Chen et al. and Galvez et al., reached about 10,000 and 30,000 hours of noisier transcripts. Radford and colleagues argued that the gap to vision work, where weakly supervised web data had already improved robustness, was a matter of scale, and they went to the next order of magnitude, 680,000 hours.

The problem

Two problems stood in the way. The first is brittleness. A model that does very well on the test split of its training corpus often does much worse on other recordings of the same kind of speech, because it has learned quirks of that corpus. Fine-tuning for each new domain is also costly and needs specialist work. The goal was a system that works out of the box across many recording conditions.

The second is coverage. Most high-quality speech datasets are English, read or clean, and short. Real use needs many languages, noisy audio, and recordings that run for minutes or hours. Each of those extra needs multiplies the work of building a separate pipeline unless one model can cover them.

How it works

Trace one 30-second clip of a French speaker through the system.

  1. Resample and window. The audio is resampled to 16,000 samples per second, so a 30-second clip has 480,000 samples. Check: 30 times 16,000 is 480,000.
  2. Log-Mel spectrogram. Each 25-millisecond window with a 10-millisecond step becomes a column of 80 log-magnitude Mel values. That gives 3,000 columns for 30 seconds. Check: 30 seconds divided by 10 milliseconds is 3,000.
  3. Convolutional stem. Two convolution layers, the second with stride 2, halve the time axis to 1,500 positions and add the Gaussian Error Linear Unit (GELU) nonlinearity. Sinusoidal position embeddings are added to these 1,500 positions. Check: 3,000 divided by 2 is 1,500.
  4. Encoder. Transformer blocks with pre-activation residuals, followed by a final layer normalization, turn the positions into an audio representation.
  5. Decoder prompt. The decoder is an audio-conditioned language model. Its input starts with a start-of-transcript token, a language token (one of 99), a task token (transcribe or translate), and a no-timestamps token. Check: that is four prompt tokens before any text.
  6. Decode. The decoder predicts text tokens one at a time, attending to the encoder output, until it emits an end-of-transcript token. Byte-level BPE, the GPT-2 tokenizer (refit for the multilingual models), turns the text into the tokens it predicts; see Subword Tokenization.
  7. Long audio. For recordings longer than 30 seconds, the window is shifted by the timestamps the model predicts, and beam search with 5 beams plus a temperature fallback guards against repetition.
flowchart LR
  A[Audio 16 kHz] --> B[80-channel log-Mel, 10 ms steps]
  B --> C[Conv stem, stride 2]
  C --> D[Encoder Transformer]
  D --> E[Decoder with task tokens]
  E --> F[Text, with optional timestamps]

The math

Let xx be the log-Mel features of a 30-second chunk, y1,…,yTy_1, \dots, y_T the target tokens (task and language tokens included), and θ\theta the model parameters. Training minimises the negative log-likelihood of the tokens to be predicted:

L(θ)=−∑t∈Plog⁡pθ(yt∣x,y<t),\mathcal{L}(\theta) = -\sum_{t \in \mathcal{P}} \log p_\theta(y_t \mid x, y_{\lt t}),

This is the summed cross-entropy over the tokens, where each pθp_\theta term is a Softmax output. Here P\mathcal{P} is the set of positions whose loss is kept. The paper masks out the loss over the earlier transcript text used as context, so P\mathcal{P} excludes those positions and includes everything else. In words: each predicted token is scored by how much probability the model gave it, given the audio and the tokens before it.

Evaluation uses word error rate, which counts the minimum number of word edits between the hypothesis and the reference. With SS substitutions, DD deletions, II insertions and NN reference words:

WER=S+D+IN.\mathrm{WER} = \frac{S + D + I}{N}.

Worked example of WER

Example
Counting errors by hand

The reference is "the cat sat on the mat", so N=6N = 6. Two hypotheses:

  1. Hypothesis A: "the cat sat on mat". It drops "the", so D=1D = 1, S=0S = 0, I=0I = 0. WER is 1/6≈0.1671/6 \approx 0.167.
  2. Hypothesis B: "a cat sat on the hat". "the" becomes "a" and "mat" becomes "hat", so S=2S = 2. WER is 2/6≈0.3332/6 \approx 0.333.
  3. The paper normalises both strings first, so case and punctuation do not count. Without normalisation, a difference such as "you're" against "you are" would count as errors.

Interpretation: WER can exceed 1 when the hypothesis is much longer than the reference, and it penalises harmless formatting differences, which is why the paper standardises text before scoring.

Results

The paper evaluates zero-shot, which means the model never sees the training split of each benchmark. Its three main findings, with the paper's numbers, are below.

Robustness (Table 2). Averaged over the 13 out-of-distribution test sets, the Large V2 model has WER 12.8, against 29.3 for a wav2vec 2.0 baseline trained on LibriSpeech and evaluated on the same sets. The two are level on LibriSpeech clean (2.7 each), and the gap grows on the other sets: Artie 6.2 against 24.5, Common Voice 9.0 against 29.9, and CHiME6 25.5 against 65.8.

Multilingual and translation. On Multilingual LibriSpeech the zero-shot model scores 7.3, ahead of XLS-R (1B) at 10.9 and mSLAM-CTC (2B) at 9.7. On VoxPopuli it is behind, at 13.6 against 8.1 for Maestro. For speech translation into English on CoVoST2 it reaches 29.1 BLEU, a new state of the art in the paper's table, with the largest gain on low-resource languages. Language identification is weaker: 64.5 on Fleurs against 77.7 for mSLAM-CTC, partly because 20 Fleurs languages have no training data.

Scale. Table 6 shows English WER falling from 30.5 at 3,405 hours to 9.9 with the full 681,070 hours. The paper notes that the gains from 13,000 to 54,000 hours slow noticeably, and that English recognition is approaching human level. The multilingual WER falls from 92.4 to 29.2 over the same range.

Human comparison (Section 3.9). On 25 recordings from the Kincaid46 set, the computer-assisted human service has an aggregate WER 1.15 percentage points better than Whisper's. The paper concludes that Whisper is close to human accuracy on English, not perfect.

Limits. The paper itself lists repeat loops, skipped words at segment edges, and complete hallucination of unrelated text as errors that remain. Languages with little data score poorly: most languages have under 1,000 hours. Results on VoxPopuli show that the zero-shot approach can lose to fine-tuned systems on a distribution that others trained on. The robustness claims rest on a choice of reference set, LibriSpeech, and the authors caution about overfitting their text normaliser.

Worked example from the results

Example
Reading Table 7

Table 7 shows the average WER across seven long-form datasets as decoding heuristics are added.

  1. Greedy decoding only: average WER 11.0.
  2. Add beam search: 10.6. Change: 11.0−10.6=0.411.0 - 10.6 = 0.4 points better. Adding temperature fallback leaves the average at 10.6.
  3. Add voice activity detection: 10.2. Change: 10.6−10.2=0.410.6 - 10.2 = 0.4 points better.
  4. Add previous-text conditioning: 10.0. Change: 10.2−10.0=0.210.2 - 10.0 = 0.2 points better, and it helps most on TED-LIUM3 (3.42) and CORAAL (18.1).
  5. Add the initial timestamp constraint: still 10.0, but Kincaid46 improves to 8.41.

Interpretation: the gains are small on average and uneven per dataset. A reader should check which datasets move before claiming a general improvement.

Try it: a system's WER on a set of 200 reference words has 10 substitutions, 4 deletions and 6 insertions. What is its WER? Answer: (10+4+6)/200=0.10(10 + 4 + 6)/200 = 0.10, or 10%.

Recap

  • One encoder-decoder Transformer reads 30-second log-Mel windows and writes text, with task tokens choosing the job.
  • Weak supervision at 680,000 hours buys robustness that small clean corpora do not.
  • Zero-shot scores are the headline; the paper is candid that some tasks and languages still lag.
  • Read next: Automatic Speech Recognition for the task itself, and Sequence to Sequence Learning with Neural Networks for the encoder-decoder idea it builds on.

Reading guide

  • Section 1 (Introduction): the case for weak supervision at scale. Needs Automatic Speech Recognition.
  • Section 2.1 (Data Processing): filtering machine-made transcripts and mismatched languages. Needs no prerequisite beyond the floor.
  • Section 2.2 (Model): the stem, encoder and decoder. Needs Transformer and Encoder-Decoder Architecture.
  • Section 2.3 (Multitask Format): the special token sequence. Needs Language Model and Subword Tokenization.
  • Section 2.4 (Training Details): AdamW, warmup and clipping. Needs Softmax for the output probabilities.
  • Section 3.2 (Evaluation Metrics): word error rate and why it needs normalising. The metric is defined in The math above.
  • Sections 3.3 to 3.7: the zero-shot results, multilingual results, translation and noise tests. Read them with the results section above.
  • Section 3.8 and 4.5 (Long-form): the window shift, Beam Search and the temperature fallback.
  • Section 4 (Analysis): scaling and the ablations that test whether the gains come from data, size or multitask training.
  • Section 6 (Limitations): what the authors left open.

Check yourself

QuestionWhy does a 30-second clip become 1,500 encoder positions rather than 3,000?Show answer

The log-Mel front end produces one column every 10 milliseconds, so 30 seconds gives 3,000 columns. The second convolution in the stem has stride 2, which halves the time axis to 1,500 positions.

QuestionCompute the word error rate for a 50-word reference with 3 substitutions, 2 deletions and 1 insertion.Show answer

(3+2+1)/50=6/50=0.12(3 + 2 + 1)/50 = 6/50 = 0.12, so the WER is 12%.

QuestionWhy does the paper train on weakly labelled web transcripts rather than a smaller corrected corpus, and what is the trade-off it accepts?Show answer

Web transcripts are far larger, and the paper argues that scale buys robustness across conditions that small corpora do not cover. The price is noisier labels, which the authors try to reduce through filtering, and for some languages the amount of data is too small to help.

QuestionA team fine-tunes Whisper on its own call-centre audio and the word error rate falls. Does this contradict the paper's zero-shot claim?Show answer

No. The zero-shot claim concerns performance on datasets the model never trained on. Fine-tuning is a separate setting, which the paper names as future work; a gain there shows domain adaptation, not that the zero-shot result was wrong.

Sources

Read the full paper

Alec Radford, Jong Wook Kim, Tao Xu et al., 2022. arXiv:2212.04356