ASR maps an audio sequence x=(x1,…,xT) (~100 frames/s) to text y=(y1,…,yL); the core difficulty is length mismatch (T≫L) and alignment learning. Two main routes:
📌Overview
CTC (Connectionist Temporal Classification): a blank symbol is introduced and the marginal probability is summed over all monotonic alignments that collapse to y after removing blanks and merging repeats:
📌Overview
P(y∣x)=∑π∈B−1(y)∏t=1Tp(πt∣x)
📌Overview
Assumes monotonic alignment, needs no frame labels, decodes with prefix beam search; frames are conditionally independent — weak at long-range language modeling, but naturally streaming-friendly.
📌Overview
Attention encoder-decoder (LAS / Whisper): at step l the decoder attends over encoder outputs, learning soft alignment implicitly with an intrinsic LM prior:
📌Overview
P(yl∣y<l,x)=softmax(dkQlK⊤)
📌Overview
Higher accuracy but slower autoregressive decoding and no explicit alignment; hybrid systems share an encoder and train CTC + attention jointly (e.g. ESPnet), getting both.
📌Overview
Whisper weak supervision: 680k hours of multilingual audio-video captions (no manual per-sentence transcription), with a unified multi-task output format — the token sequence starts with task directives (language tag, task=transcribe/translate, timestamps) and text is generated autoregressively; robust to accents, noise and far-field recording.
💡Use Cases
meeting/subtitle transcription, voice assistant input, audio-to-text RAG pipelines; interviews compare CTC vs attention decoding and Whisper's data strategy.
⚡Key Problems Solved
HMM-GMM needed expert features, lexicons and forced alignment; CTC removes frame-labeling via dynamic programming, attention removes monotonicity and the external LM, and Whisper's weak supervision cuts labeling cost by two orders of magnitude while gaining cross-language robustness — now the de facto standard.
🎯5 High-Frequency Exam Points
1
How is CTC computed; the role of blank; how does it handle length mismatch?
2
CTC vs attention decoder: pros and cons of each?
3
Whisper's multi-task training format, and where its weak supervision comes from?
4
What does 680k hours buy Whisper, and what are its limits?
5
Why is CTC preferred for streaming ASR and attention for offline — what's the basis?