← Back to Multimodal Mind Map
👁️ MultimodalID: asr

ASR (Whisper)

语音识别 ASR
🎯Core Definition
ASR maps an audio sequence x=(x1,…,xT)x = (x_1, \dots, x_T) (~100 frames/s) to text y=(y1,…,yL)y = (y_1, \dots, y_L); the core difficulty is length mismatch (T≫LT \gg 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 yy after removing blanks and merging repeats:
📌Overview
P(y∣x)=∑π∈B−1(y)∏t=1Tp(πt∣x)P(y|x) = \sum_{\pi \in \mathcal{B}^{-1}(y)} \prod_{t=1}^{T} p(\pi_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 ll the decoder attends over encoder outputs, learning soft alignment implicitly with an intrinsic LM prior:
📌Overview
P(yl∣y<l,x)=softmax⁡(QlK⊤dk)P(y_l | y_{<l}, x) = \operatorname{softmax}\left(\frac{Q_l K^\top}{\sqrt{d_k}}\right)
📌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.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of ASR (Whisper).
Use Cases
In production engineering, what are the primary use cases for ASR (Whisper) and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
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?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "ASR (Whisper)"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardAudio RepresentationNext Card →TTS

🔗 More Multimodal Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/Multimodal/card/asr
中文速览与面试要点

语音识别 ASR (ASR (Whisper))

定义: ASR(自动语音识别)把音频序列 x = (x_1, , x_T)(约每秒 100 帧)映射为文本 y = (y_1, , y_L),核心难题是长度不对齐(T L)与对齐学习,两条主流路线: CTC(Connectionist Temporal Classification): 引入 blank 符号,对删除 blank、合并重复后得到 y 的所有单调对齐路径求边际概率: P(y|x) = _ B^-1(y) _t=1^T p( _t | x) 假设对齐单调、无需逐帧标注,解码用前缀 beam search;缺点是帧间输出条件独立,难以建模语言长程依赖,但天然适合流式。 注意力编码器-解码器(LAS / Whisper): 解码器生成第 l 个字符时对编码器输出做注意力,隐式学习软对齐并自带语言模型先验: P(y_l | y_<l, x) = softmax ( Q_l K^ d_k ) 效果更好但自回归解码慢、对齐无显式约束;混合方案共享编码器同时算 CTC 与注意力损失(如 ESPnet joint CTC/attention),兼得两者。 Whisper 弱监督: 用 68 万小时多语言音视频配字幕数据弱监督训练(无需人工逐句转写),统一多任务输出格式——token 序列以任务指令开头(language 标签、task=transcribe/translate、时间戳),直接自回归生成文本,对多口音、噪声、远场录音鲁棒。 使用场景: 会议/字幕转写、语音助手输入、音频→文本 RAG 管道;面试常问 CTC 与注意力解码的对比与 Whisper 数据策略。 解决的问题: 传统 HMM-GMM 需要专家手工特征、词典与强制对齐;CTC 用动态规划免去逐帧对齐标注,注意力解码免去单调性假设与外部语言模型,Whisper 用弱监督把标注成本降两个数量级并换来跨语言鲁棒性,成为事实标准。

核心要点

  • CTC 损失怎么算?blank 的作用?如何解决长度不对齐?
  • CTC 与注意力解码器(attention decoder)各有什么优缺点?
  • Whisper 的多任务训练格式是什么?弱监督数据从哪来?
  • 68 万小时数据带来哪些能力?Whisper 的局限是什么?
  • 为什么说 CTC 适合流式、注意力适合离线?依据是什么?