CTC Loss: The Forward Algorithm

hard
Unit 23 · Rnns0/0 to milestone

Speech recognition outputs one distribution per audio frame, but the transcript is much shorter, and nobody knows which frame produced which letter. CTC (Graves et al., 2006) sums the probability over all alignments that collapse to the target: merge repeated symbols, then remove blanks.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
CTC Loss: The Forward Algorithm · TechGradify