Save this video free

UUtah CS 6340 NLP | Fall 2026 | Transformers: Part 2/2

UofU Data Science · 1:19:33 · Watch on YouTube

Part of University of Utah CS 6340. See all 25 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.

Overview

The lecture completes the original 2017 Transformer architecture, explaining positional information, encoder and decoder blocks, causal masking, cross-attention, and next-token prediction. It contrasts learned and sinusoidal position embeddings with modern RoPE, explains why long context is constrained by quadratic attention memory and imperfect length generalization, and connects the encoder-decoder design to today’s common decoder-only LLMs.

Key takeaways

Chapters

0:00 Course Announcements: Practicum, CHPC GPUs, and Recorded Lecture
3:29 Transformer Inputs: Vocabulary IDs Become Token Embeddings
7:51 Learned Absolute Position Embeddings and Their Limits
13:11 Sinusoidal Position Encoding in the 2017 Transformer
20:57 RoPE Encodes Position Inside Query-Key Attention
24:32 Long Context: RoPE Generalization Meets Quadratic Attention Memory
28:51 NoPE Layers and the Search for Better Length Generalization
35:05 Encoder Feed-Forward Networks: Expansion, Nonlinearity, and Projection
40:01 Residual Connections and Normalization Stabilize Transformer Blocks
47:06 Encoder Blocks Produce Contextualized Source Representations
51:28 Teacher Forcing Makes Decoder Training Parallel
54:51 Causal Attention Masks Future Tokens During Teacher Forcing
1:02:57 Cross-Attention Connects Decoder Tokens to Encoder Outputs
1:07:24 Decoder Blocks Combine Causal, Cross, and Feed-Forward Operations
1:10:16 Language-Modeling Head, Next-Token Loss, and Tied Weights
1:16:02 Encoder-Only, Encoder-Decoder, and Decoder-Only Transformer Designs

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

Transcript excerpt

0:00 All right. Uh, good afternoon everyone. I imagine this is set up, but it's not yet. Sorry. Set this. Right. There we go. I'm going to check the Zoom just to make sure. Okay, that's fine. Okay, hopefully everything is set up properly. You don't know the amount of times I have been thinking I'm recording and then I'm not recording. This is why I'm paranoid now. Okay, we have so much to do today. So, we are going to go over some announcements and then uh continue with the transformer. Um I released I've just released the second practice assignment for your second practicum

0:48 that will happen on Monday after the full break. Um, I said I set up the autograder, but I just noticed some errors. So, after this lecture, I'm going to fix the autograder. But I suppose you won't magically solve this alone in one minute. So, you'll be you'll be fine. Um, next week we are going to do things a little bit differently because I will be at the conference of language modeling column. So, on Monday you will come here and do your quiz in person as always at the beginning of the class. But I'll actually share a recording of the lecture and you can watch it at any time or day and anywhere you want. You can use this lecture uh room to you know sit and with your headphones um you know use that time to watch the recording. Uh but

1:35 it's up to you when exactly you do that. But do show up for the quiz. So don't get confused. Uh if you don't follow what I'm saying, just show up on Monday as you would uh uh uh usually. On Wednesday, uh Giant, your TA will uh give you a tutorial on how to use the

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, UofU Data Science.

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.