Sound Has No Spaces
Automatic speech recognition takes an audio signal and returns the words that were spoken. Written text arrives already cut into letters and words. Speech does not. A recording is a continuous wave, sampled thousands of times per second, and nothing in it marks where one word ends and the next begins. People also blur sounds together, drop syllables, hesitate, restart sentences and talk over each other.
Most systems do not work on the raw wave. They first convert it into a spectrogram, usually on the mel scale, which spaces frequencies the way human hearing does. The audio becomes a sequence of short frames, typically one every 10 milliseconds, and each frame is a vector describing how much energy sits in each frequency band. A three second clip is about 300 frames. The sentence spoken in it might be eight words, or forty characters.
That mismatch is the central problem. The input is long, the output is short, and nobody has told the model which frames belong to which letter.
Hidden Markov Models and Forced Alignment
For roughly three decades the answer was a pipeline. An acoustic model scored how well each frame matched small units of sound, usually context dependent phones. A pronunciation dictionary mapped words to sequences of phones. A language model, normally an n-gram model, scored how likely a word sequence was. A hidden Markov model tied everything together by treating speech as a walk through phone states, and a decoder searched for the word sequence with the best combined score.
For most of that period the acoustic model was a Gaussian mixture model. In 2012 Geoffrey Hinton and colleagues from the University of Toronto, Microsoft, Google and IBM published a joint article in IEEE Signal Processing Magazine reporting that deep neural networks, used in place of the Gaussian mixtures, reduced error rates substantially across several large tasks. The hybrid DNN and HMM system became the industry standard almost immediately.
The hybrid still needed a frame level alignment to train on. Someone, or more often an older model, had to decide that frames 41 to 47 were the sound /k/. Every component was trained separately, and each one brought its own assumptions and its own expert knowledge.
Connectionist Temporal Classification
In 2006 Alex Graves, Santiago Fernández, Faustino Gomez and Jürgen Schmidhuber presented Connectionist Temporal Classification (CTC) at ICML. The paper’s subtitle states the goal: labelling unsegmented sequence data with recurrent neural networks. CTC lets a network learn from pairs of audio and transcript without any alignment between them.
The trick is an extra output symbol called the blank. At every frame the network outputs a probability distribution over the characters plus the blank. A sequence of frame outputs is turned into text by a fixed rule: merge repeated symbols, then delete blanks. So «hh_e_ll_llo» and «h_eel_l__o» both collapse to «hello». The blank is what allows a double letter, because «ll» with nothing between them would merge into a single «l».
Many frame sequences collapse to the same transcript. CTC defines the probability of a transcript as the sum over all of them, and a dynamic programming algorithm, similar to the forward and backward passes used for hidden Markov models, computes that sum efficiently. The loss is the negative log of this probability. The network never learns where each letter is. It only learns to put its probability mass on paths that collapse to the right answer.
In the original paper, a bidirectional LSTM trained with CTC on the TIMIT phoneme benchmark outperformed both a baseline HMM and a hybrid HMM and RNN system.
The Independence Assumption
CTC has a known weakness. It treats each frame’s output as conditionally independent of the others, given the audio. The network cannot directly use the fact that it just emitted «q» to make «u» more likely. Any knowledge of spelling or grammar has to come from the acoustic evidence alone or be added afterward.
In practice CTC models are almost always decoded with a beam search that adds an external language model. Baidu’s Deep Speech (Hannun and colleagues, 2014) used exactly this recipe: a recurrent network trained end to end with CTC on several thousand hours of speech, decoded together with an n-gram language model, and no phone dictionary anywhere.
Graves proposed a fix in 2012 called the RNN Transducer. It adds a prediction network that reads the labels emitted so far, so each output depends on previous outputs as well as on the audio. Transducers keep the property that matters most for live dictation: they process audio left to right and can emit words as they arrive. This is why they became common in streaming, on device recognition.
Listening, Attending and Spelling
A different route came from machine translation. Listen, Attend and Spell (Chan, Jaitly, Le and Vinyals, ICASSP 2016) used an encoder to read the spectrogram and an attention based decoder to produce characters one at a time, each step conditioned on everything produced so far. There is no blank symbol and no explicit alignment. The attention weights learn, in effect, where to look in the audio for the next character.
Attention models write more fluent text because the decoder is itself a language model. The cost is that they need the whole utterance before decoding starts, and they can fail in ways CTC does not, such as skipping a phrase or repeating one when attention loses its place. Many production systems combined both: a shared encoder trained with a CTC loss and an attention loss at the same time, where the CTC term pushes alignments to stay monotonic.
Case: Human Parity on Switchboard
In October 2016 Microsoft researchers led by Wayne Xiong released a paper titled «Achieving Human Parity in Conversational Speech Recognition». They measured professional transcribers on the Switchboard benchmark, recorded telephone conversations between strangers, and found a word error rate of 5.9 percent. Their own ensemble of acoustic and language models reached the same figure, and the journal version later reported 5.8 percent.
The result was real, but it was a result about one benchmark. Switchboard is English telephone audio from the 1990s, and models had been tuned on it for over twenty years. A system that matched people there could still struggle badly on a noisy kitchen recording, a heavy accent or a medical dictation.
Weak Supervision at Scale
Two lines of work attacked that brittleness. One was self-supervision. wav2vec 2.0 (Baevski, Zhou, Mohamed and Auli, NeurIPS 2020) pre-trained a model on 53,000 hours of unlabeled audio by masking parts of the signal and asking the network to identify the right hidden segment. Fine-tuned on just ten minutes of labeled speech, it reached word error rates of 4.8 and 8.2 percent on the clean and other test sets of LibriSpeech.
The other line was OpenAI’s Whisper (Radford, Kim, Xu, Brockman, McLeavey and Sutskever, ICML 2023). Instead of clean, carefully transcribed corpora, the authors collected 680,000 hours of audio paired with transcripts found on the internet. Those transcripts were imperfect, which is what «weak supervision» refers to. About 117,000 hours covered 96 languages other than English, and 125,000 hours were translation data, audio in one language paired with English text.
The model itself is a standard encoder and decoder transformer. It takes 30 second windows of log mel spectrogram and generates text tokens. Special tokens at the start of the output tell it the language, whether to transcribe or translate into English, and whether to predict timestamps, so one network handles all these tasks. The paper reported that on LibriSpeech Whisper performed about the same as a strong supervised model, but across other English datasets it made far fewer errors without being trained on any of them. The authors described the result as approaching human accuracy and robustness.
Case: Sentences That Were Never Spoken
A decoder that writes fluent text can also write fluent text that is not in the audio. In 2024 Allison Koenecke and colleagues presented «Careless Whisper: Speech-to-Text Hallucination Harms» at the ACM FAccT conference. They ran Whisper on more than 13,000 audio segments from AphasiaBank, recordings of people with aphasia and of a control group. In experiments from 2023, roughly 1 percent of transcriptions contained whole phrases or sentences that did not exist in the audio, and 38 percent of those hallucinations included explicit harms such as violent language, invented associations or false authority. Hallucinations were more frequent for speakers with longer pauses between words. The authors noted that the hallucination rate dropped in later versions of the service.
This was not the first fairness problem found in recognition. Koenecke had also led a 2020 study in PNAS testing commercial systems from Amazon, Apple, Google, IBM and Microsoft. Averaged across the five, the word error rate was 0.35 for Black speakers and 0.19 for white speakers, and the gap remained on identical phrases spoken by both groups.
Closing Thought
The two kinds of error tell you something about the architectures behind them. A CTC model that cannot hear a word tends to produce garbled letters, and the garbage is visible to anyone who reads it. A decoder that is also a language model tends to fill the gap with something plausible, and plausible text is exactly the kind a reader does not check. Word error rate counts both mistakes the same way, but they are not equally dangerous. In a medical note or a court transcript, an obviously broken sentence prompts someone to listen to the recording again. A clean sentence that was never said does not.
By: Max Johnson B.
Deja una respuesta