Save this video free

UUtah CS 6340 NLP | Fall 2026 | Transformers: Self-attention

UofU Data Science · 1:20:11 · 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 builds the Transformer architecture from token embeddings to self-attention, explaining how query–key dot products produce attention weights and how those weights mix value vectors into contextualized token representations. It then extends the mechanism to multiple heads, explains concatenation and output projection, and connects these operations to encoder–decoder models, decoder-only LLMs, training, and model expressivity.

Key takeaways

Chapters

0:00 Practicum Date Change and Transformer Assignment Preview
2:10 From Token IDs to Learned Static Embeddings
5:00 Contextualizing Tokens for Next-Token Generation
9:30 The 2017 Transformer and Its Cross-Field Impact
13:30 Encoder–Decoder Structure and the Encoder Block
19:30 Polysemy Motivates Self-Attention
21:00 Creating Query, Key, and Value Projections
26:00 Query–Key Dot Products Form Pairwise Scores
31:00 Softmax and Scaling Produce Attention Weights
33:30 Mixing Value Vectors into New Token Representations
41:30 Self-Attention Parameters, Training, and Matrix Shapes
47:00 Reading Attention-Matrix Visualizations
50:00 Multi-Head Self-Attention Learns Multiple Relationships
56:00 Concatenating Heads and Projecting to the Model Dimension
1:01:00 Dimension Choices, Scaling, and Output Projection Questions
1:07:00 Why Heads Can Be Redundant: and What They Learn

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

Transcript excerpt

0:00 Okay, I guess we can get started. Um, I want to start with uh just one uh announcement I already shared over canvas and that's that I changed the uh second practicum uh to October 19 which is the Monday after the fall break uh basically because uh you will need those few extra days to do your practice assignment. It's not the simplest of practice assignments. Uh the Uh but I I'll share the assignment and more instructions and what to expect at the uh practicum um soon. Uh but it's all going to be about transformers which we are going to learn about today on Wednesday and we are going to implement transformer and do basically language modeling with the

0:47 transformer-based architecture. Um are there any questions about this change? Sorry. Second. >> No. Why? >> Why would be >> I see what you mean. Yeah. No. Uh the we are going to finish the transformer architecture this week and then we can have a quiz about it. with the practicum practice assignment you will need more than just this week uh to prepare. So therefore there is that postponing. So nothing else except what is written here changes. So please uh be cautious of

1:36 that. We won't take any accommodations for uh yeah interpreting these changes differently. >> Yeah. also done affect practice. >> No. Yeah, they're all going to be fine. >> Okay. Um then if there is nothing else, any other questions uh related to anything we talked about be it logistics or content. Okay. then we are going to continue. So uh I'm bringing up again this visualization I had uh many weeks back where uh we had some prompt we given to the LLM and then when said okay this uh

2:24 prompt is going to be tokenized and it's

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.