AI & ML

Sequence Modeling

Part of Deep Learning, level 3. About 8 hours of study across the topics below.

Sequences

  1. Sequences and OrderTime and order as structure: variable length, position, and why shuffling breaks meaning.1–2 h
  2. AutoregressionPredict the next from the past: the task behind sequences, time series, and language models.1–2 h

Recurrence

  1. The RNN ConceptRecurrence with shared weights: one cell, unfolded in time.1–2 h
  2. Hidden StateMemory as a vector: the state carries the past into the present step.1–2 h
  3. Vanishing Gradients in TimeLong-range amnesia: why distant past fades from the gradient.1–2 h
  4. LSTM and GRU: The Gating IdeaGates guard memory: the conceptual role of gated recurrence, not cell internals.1–2 h
  5. Sequence-to-Sequence ModelsAn encoder compresses an input sequence, a decoder generates an output sequence: the bottleneck attention was invented to fix.1–2 h
  6. State Space Models for SequencesLinear recurrences with structured, sometimes input-dependent, state updates: linear-time alternatives to attention.1–2 h