Glossary
Connectionist temporal classification (CTC)
Connectionist temporal classification (CTC) is a way to train a neural network to turn audio into text without knowing in advance which moment of sound matches which letter. The network labels every short slice of audio with a character or a blank, and the blanks and repeated labels are then removed to leave the transcript.
Updated October 17, 20261 cited fact, each traced to its source
Also called CTC.
Connectionist temporal classification (CTC) is a training method for neural networks that map audio to text when nobody has marked where each letter sits in the recording. Graves and colleagues introduced it in 2006 because earlier recurrent networks needed pre-segmented training data and post-processing to produce label sequences 1. CTC removes that need, so a network can learn from an audio clip and its written transcript alone.
CTC labels every slice of audio, then collapses the labels
A speech model cuts the audio into a long series of short frames. At each frame, the network gives a probability for every character in the alphabet and for one extra symbol called the blank. The network does not have to say where a letter begins or ends.
To turn those frame labels into text, the decoder applies two rules. It first merges runs of the same symbol into one, then deletes every blank. For example, the frame labels h, h, blank, e, e, blank, l, l, blank, l, o, o collapse to h, blank, e, blank, l, blank, l, o. Removing the blanks leaves hello.
The blank does real work. It keeps the two l's in "hello" apart. Without it, the run l, l, l would merge into a single l and the decoder would produce "helo".
Training adds up every alignment that spells the right words
Many different frame sequences collapse to the same transcript, and CTC does not need to know which one is correct. During training, it adds up the probability of all of them and tries to make the total probability of the correct transcript as high as possible. The timing is learned implicitly rather than given as a label.
Why it matters for dictation
CTC is cheap to run. Each frame is labeled with little reference to the others, so the output can be produced as audio arrives. The cost is that each label has limited knowledge of the words before it. Two words that sound alike, such as "their" and "there", can be decided without much context, so CTC models usually rely on a language model to choose the right spelling.
That limit is why later models, including the RNN transducer, were built to condition each output on the labels already written. When a dictation product says it is fast and light, CTC is often part of the design, but the accuracy you see depends on the whole system, not on the training method alone.
Related terms
- RNN transducer (RNN-T): an extension that also conditions each output on the labels already emitted.
- Acoustic model: the part of a recognizer that scores sound against speech units.
- Language model: the part that scores which word sequences are likely.
- Hidden Markov model (HMM): the earlier approach that CTC and transducers replaced in many systems.
Guides that cover it
Evidence
Every number on this page, with where it comes from. Open a fact to see the exact words in its source.
- 1.Graves and colleagues wrote that recurrent networks needed pre-segmented training data and post-processing to produce label sequences, and presented a method that trains them to label unsegmented sequences directly.
Alex Graves et al., Proceedings of the 23rd International Conference on Machine Learning (ICML 2006), pp. 369-376, 2006 · Original
Related terms
- Speech Recognition: What It Is and How Well It WorksThe topic this term belongs to
- Acoustic model
- Automatic speech recognition (ASR)
- Conformer
- Hidden Markov model (HMM)
- Inverse text normalization (ITN)
- Language model (in speech recognition)
- LibriSpeech
- Mel spectrogram
- Real-time factor (RTF)
- RNN transducer (RNN-T)
- Speaker diarization
- Voice activity detection (VAD)
Pages that use this term
- Speech Recognition: What It Is and How Well It WorksTopic
- Speech Recognition Models: How Neural ASR WorksGuide
- Real-Time Speech Recognition: Streaming and LatencyGuide
- History of Speech Recognition: From Audrey to WhisperGuide
- How are speech recognition models trained?Question
- What are the most important speech recognition research papers?Question
- What role do hidden Markov models play in speech recognition?Question
- Who invented speech recognition?Question
- Acoustic modelGlossary
- Automatic speech recognition (ASR)Glossary
- ConformerGlossary
- Hidden Markov model (HMM)Glossary
- RNN transducer (RNN-T)Glossary
- wav2vec 2.0Glossary