Save this video free

Lecture 9c

Prof. Schniter · 56:06 · Watch on YouTube

Part of The Ohio State University ECE 5307. See all 22 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Lecture 9c Watch on YouTube →

Overview

Transformers build context-sensitive token representations through stacked attention blocks, then use those representations for next-token generation and tasks such as sentiment classification. The lecture derives query-key-value attention, multi-head processing, positional embeddings, and causal masking, then connects them to a character-level Shakespeare demo that reached 55% test accuracy and to practical LLM choices such as subword tokenization and temperature-controlled sampling.

Key takeaways

Chapters

0:00 Transformer Pipeline: From Token Embeddings to Autoregressive Text
9:54 Watermarking Text Through Model-Specific Sampling Choices
13:32 Basic Self-Attention Uses Softmax-Normalized Similarity
17:00 Query, Key, and Value Projections Enable Multi-Head Attention
22:50 Matrix Form of Attention and Head Selection
26:03 Transformer Blocks Combine Attention, Layer Norm, and MLPs
30:38 Sentiment Classification Requires Positional Embeddings
37:12 Causal Masking Prevents Future-Token Leakage
42:37 Shakespeare Character Model: 55% Test Accuracy
49:04 LLM Tokenization Uses Subwords Instead of Whole Dictionaries
51:42 Token Embeddings, Temperature, and Candidate Filtering

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

Transcript excerpt

0:01 Okay, welcome back everyone. So, we're going to continue our discussion of transformers [clears throat] uh and we're going to get a little bit into large language models today, I believe. So, >> [clears throat] >> we've been kind of using as a model problem this idea of um token prediction, predicting one new character forward in a sequence or one new word forward in a sentence, things like that. >> [clears throat] >> And I mentioned that there's different um neural network architectures that have been proposed over the decades to do that. But, they all have um some trouble looking back in time and figuring out what's really important in the past to predict the future. And so, um the real solution to that which has

0:50 kind of um caused uh this in some sense revolution um you know, this AI revolution, these chatbots, all the stuff that we're experiencing these days is based on a particular [clears throat] neural network architecture called the transformer and that is based on a particular uh mechanism or concept called attention. And so, [clears throat] we first started talking about this in the context of this phrase and trying to predict one uh character in the you know, to the right. And [clears throat] we said in order to really predict that character well you have to understand that um this word run is is a verb and dog is a subject in order to conjugate this properly because dog

1:38 is singular, you need to add a plural S to run and so on. And so, really in order to do that well um that prediction you have to sort of analyze all the different um different characters in that sentence and you have to figure out which of them matter, which of them

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

In this course

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, Prof. Schniter.

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.