Course map
Stage 1: Foundations
Stage 2: Machine Learning
Stage 3: Deep Learning
Stage 4: LLMs & Generative AI
Stage 5: Production & Specialization

Part 12 / Topic 2 of 6

Sequence models

Text, audio and time-series are ordered; the classic answer was the RNN: process tokens one by one, carrying a hidden state. LSTMs added gates so the state could remember longer. Their limits set up everything after:

  • Sequential by construction — token 500 waits for 499; training cannot parallelise along the sequence.
  • Long-range memory decays — information squeezed through one fixed-size state.

Attention (section 4) removes both limits, which is why transformers displaced RNNs almost everywhere. The ideas survive: "state carried along a sequence" still powers some speech and streaming models.

Done here? The practice set for Part 12 — 4 exercises with solutions — is on the part page.

Search the guide