Save this video — free

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

UofU Data Science · 1:20:11 · Watch on YouTube

UUtah CS 6340 NLP | Fall 2026 | Transformers: Self-attention Watch on YouTube →

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.

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.