Save this video — free

Visualizing transformers and attention | Talk for TNG Big Tech Day '24

Grant Sanderson · 57:45 · Watch on YouTube

Visualizing transformers and attention | Talk for TNG Big Tech Day '24 Watch on YouTube →

Overview

Grant Sanderson explains how GPT-style Transformers turn text into token vectors, use stacked attention and feed-forward layers to build context, and predict the next token. He traces attention through learned query, key, and value matrices, dot products, softmax weights, causal masking, and multi-head updates, then connects the architecture’s parallel computation and self-supervised training to its ability to scale across text, images, and sound.

Key takeaways

Chapters

0:00 Next-Token Prediction Turns a Language Model into a Chatbot
4:11 From Tokens to Transformer Layers and Training Loss
13:30 Word Embeddings Encode Meaning in High-Dimensional Spaces
22:20 Why Attention Needs Positional Information and Learned Matrices
25:40 Queries, Keys, and Dot Products Build Attention Scores
31:45 Softmax, Causal Masking, and the Cost of Long Contexts
39:35 Value Vectors Turn Attention Weights into Contextual Updates
43:45 Multi-Head Attention Runs Different Relationships in Parallel
46:15 Why Transformers Scale Across Data and Modalities
49:40 Q&A: Interpretability, Residual Connections, and Analog Computing
55:45 Q&A: Representing Two-Dimensional Images as Tokens

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, Grant Sanderson.

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.