Whisper is OpenAI's speech recognition model: a transformer encoder–decoder that listens to 30 seconds of audio and writes down what was said, or its English translation. It was released in September 2022 with open weights and code (OpenAI, n.d.; Radford et al., 2023, sec. 1).
How it works
The audio is resampled to 16 kHz and turned into an 80-channel log-Mel spectrogram, computed on 25 ms windows every 10 ms (Radford et al., 2023, sec. 2.2): a picture of the sound, with time on one axis and energy per frequency band on the other, the bands spaced on the Mel scale, which mimics the perception of pitch. It is the old recipe of computing features inspired by the human auditory system from a spectral analysis (Witten et al., 2017, p. 524). Two convolution layers condense that picture; sinusoidal positions are added and the encoder's transformer blocks follow. The decoder, with cross-attention over the encoder's output, generates tokens with GPT-2's BPE (2023, sec. 2.2). There are five sizes, from 39 to 1,550 million parameters (2023, sec. 2.4).
The cleverest part is the output format. The task is not chosen by switching models but
with special tokens at the start of what the decoder writes: <|startoftranscript|>,
a language token (one of 99), <|transcribe|> or <|translate|>, and <|notimestamps|>
or timestamps every 20 ms; if there is no speech, <|nospeech|>
(2023, sec. 2.3). A single model thus replaces several stages of a classic
system: detecting speech, identifying the language, transcribing, translating and aligning
text with audio. It is T5's move applied to speech: the instruction is part of the
sequence.
What changed
Classic speech recognition chained signal preprocessing, hidden Markov models and a language model, and deep learning gradually replaced pieces of that chain (Witten et al., 2017, p. 524). M. Mitchell (2019) calls it deep learning's first major success in language processing, from 2012 on (2019, ch. 11). Before Whisper, the usual approach was to pretrain encoders on untranscribed audio (self-supervised learning) and then fine-tune a decoder for each dataset (Radford et al., 2023, sec. 1).
Whisper bet on weak supervision. It is the familiar supervised setup, sound files paired with transcripts (Chollet, 2021, sec. 1.1.3), but with 680,000 hours of pairs taken from the internet, noisy and unchecked (Radford et al., 2023, sec. 2.1). 65% is English; about 117,000 hours cover 96 other languages (Spanish, with ≈ 11,100, ranks third) and about 125,000 are translation into English (2023, app. E). Transcripts produced by other automatic recognizers had to be filtered out, so as not to learn their "transcript-ese" (2023, sec. 2.1). Where the audio came from was not disclosed, and the dataset was not released.
The payoff is zero-shot robustness. Models trained on LibriSpeech match or beat a human on that dataset but make roughly twice as many errors as the human on others; the best Whisper model, without having seen LibriSpeech, makes 55% fewer errors outside it than a supervised model that is just as good inside it, and roughly matches human robustness (Radford et al., 2023, sec. 3.3). It is the i.i.d. assumption problem seen from speech.
Limits
Quality depends on how many hours each language had, and most had fewer than a thousand (Radford et al., 2023, sec. 6); Quechua and Guaraní are absent (2023, app. E). Automatic language identification also polluted the data: most of what was labeled as Welsh translation was English audio misclassified (2023, sec. 3.5).
The decoder is an audio-conditioned language model, and that has a cost: the paper reports repetition loops and complete hallucinations, transcripts unrelated to the audio (Radford et al., 2023, sec. 6). The model card attributes this to the model mixing next-word prediction with transcription (OpenAI, n.d.). Koenecke et al. (2024) ran 13,140 speech segments through the API in 2023: 1.4% of the transcriptions contained invented phrases, and 38% of those included explicit harms (violence, made-up names or illnesses, YouTuber-style thanks), more often for speakers with aphasia, whose pauses are longer (2024, secs. 3, 4.2).