Save this video free

10/28/26: Lect-09

Joseph Zambreno · 58:40 · Watch on YouTube

10/28/26: Lect-09 Watch on YouTube →

Overview

Joseph Zambreno explains why ordered data such as text, sensor streams, and video requires sequence models: shuffling destroys useful relationships, while fixed-window MLP regression loses older context and struggles with multi-step forecasts. He develops recurrent neural networks as a way to carry a fixed-size hidden summary forward, then connects that idea to language modeling through tokenization, embeddings, teacher forcing, and Andrej Karpathy’s Shakespeare character-RNN demonstration.

Key takeaways

Chapters

0:00 Why Sequence Data Requires Order-Aware Models
8:19 Fixed-Window Autoregression and Its Two MLP Problems
13:26 Building a Four-Step Sine-Wave Predictor
20:43 Why Autoregressive Forecasts Degrade Beyond One Step
26:18 Latent Autoregression: Keeping a Summary of the Past
31:28 RNN Equations and the Recurrent Connection
38:53 Language Modeling Needs Tokenizers, Embeddings, and Targets
44:26 Andrej Karpathy’s Shakespeare Character-RNN and Teacher Forcing
47:20 RNN Implementation, Shared Weights, and Vanishing Gradients
50:19 Shakespeare Data Preparation and the Language-Model Pipeline
53:18 Generating Shakespeare and Seeing the Limits of Character Models

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 But let's let's go ahead and you know officially get started. So this is our next major topic in the course. This is sequence modeling and you've done some of this already in lab. Um it's okay that the lab happened first. You know for earlier labs the labs happen a little bit late and now for later labs the labs are happening first and that that was always going to happen. Um but my hope is okay you've done it. You've written some code. You've gotten some things to work or not work to some degree in the lab. But now let's talk about what this means you know in reality and really kind of cover more of the appropriate background for that and that's the hope. So you tried it made some progress now there should be a lot more of okay I got I understand now why we did what we did for that particular part uh in lab. Um I also like this quote I don't like all the quotes equally but I like this one that prediction is very difficult especially about the future. I think you'd see it attributed to Yogi Barra more often than

0:48 Neils Boore, but no one really knows who originally uh created uh that line and it's appropriate because that that's kind of what we're trying to do when we talk about sequence models. It is really about attempting to predict what comes next, attempting to predict the future. So my my hope is today uh certainly we'll spend some time on the justification for sequence models. It's not that much more than what I just said. Um we'll we'll talk about tokenization, language models, and perplexity. We'll definitely get to that today. We will talk about RNN's and we'll kind of bridge that topic between

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Joseph Zambreno.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.