Measured shelfAI & Machine Learning

Transformer explainers, ranked by where the analogy ends

Short answer. As measured on 24 November 2026, the top three videos on this shelf are “Let's build GPT: from scratch, in code, spelled out.” (AndrejKarpathy, 95), “Attention in transformers, step-by-step | Deep Learning…” (3Blue1Brown, 92) and “How might LLMs store facts | Deep Learning Chapter 7” (3Blue1Brown, 91). Each score runs from 0 to 100 for how much of the runtime teaches; how we measure.

Median padding
32%
Useful part starts
0:58
Typical runtime
36 min

last recalculated 24 Nov 2026

Every video on this shelf has to solve the same problem: attention is a mechanism made of matrix multiplication, and matrix multiplication is not something you can watch. So each of them picks a metaphor — a lookup table, a search engine, a room where words vote on each other — and the entire quality of the video is decided by what happens after the metaphor.

The ones that rank highly here spend the metaphor quickly and then show the actual operation: what the three projections are, what shape the things being multiplied have, why the scaling term is there, what the mask does. The ones lower down keep the metaphor going for forty minutes, restated in progressively more elaborate ways, and never show a number.

Both types are titled “transformers explained”. The density measurement is what separates them, because a metaphor restated is by definition not new information, and it is the single most common way this topic becomes an hour of video.

Entries carry a difficulty level, and on this topic it matters more than anywhere else on the site: a video that is perfect for someone who already knows what a dot product does is a wasted hour for someone who does not, and the reverse is worse.

  1. 01

    Let's build GPT: from scratch, in code, spelled out.

    Worth it AndrejKarpathy 1:56:20 intermediate

    Density
    95
    Padding
    19%

    Builds a character-level GPT from an empty file and trains it on tiny Shakespeare, cutting validation loss from 4.87 to 1.48, with self-attention explained step by step.

    Open on YouTube →

  2. 02

    Attention in transformers, step-by-step | Deep Learning Chapter 6

    Worth it 3Blue1Brown 26:10 intermediate

    Density
    92
    Padding
    21%

    Clear step-by-step build-up of attention: queries, keys, softmax, masking, values and 96-head GPT-3 parameter counts (just under 58B of 175B).

    Open on YouTube →

  3. 03

    How might LLMs store facts | Deep Learning Chapter 7

    Worth it 3Blue1Brown 22:43 intermediate

    Density
    91
    Padding
    25%
    Useful from
    2:08

    Toy example of an MLP block storing 'Michael Jordan plays basketball' via ReLU as an AND gate, plus GPT-3's ~116 billion MLP parameters and superposition.

    Start at 2:08 →

  4. 04

    Transformers, the tech behind LLMs | Deep Learning Chapter 5

    Worth it 3Blue1Brown 27:14 beginner

    Density
    91
    Padding
    20%

    Visual primer on transformers: next-token loop, embeddings (GPT-3: 50,257 × 12,288, about 617 million weights), unembedding, softmax and temperature, building toward attention.

    Open on YouTube →

  5. 05

    Transformer Neural Networks, ChatGPT's foundation, Clearly Explained!!!

    Worth it StatQuest with Josh Starmer 36:15 intermediate

    Density
    88
    Padding
    24%
    Useful from
    1:04

    Hand-computed Transformer translating 'let's go' to 'vamos', with dot-product similarity 11.7 vs -2.6 shown in self-attention and a full decoder pass; promo only in the last 51 seconds.

    Start at 1:04 →

  6. 06

    The matrix math behind transformer neural networks, one step at a time!!!

    Worth it StatQuest with Josh Starmer 23:43 intermediate

    Density
    86
    Padding
    23%
    Useful from
    1:04

    Follows a three-token 'Let's go' to Spanish example through every transformer matrix step, from embeddings to masked attention and the output softmax, in about 23 minutes with a short promo…

    Start at 1:04 →

  7. 07

    Large Language Models explained briefly

    Worth it 3Blue1Brown 7:58 beginner

    Density
    85
    Padding
    24%

    Compact 8-minute explainer: LLMs predict next-word probabilities, trained via backpropagation and human feedback, with transformer attention outlined; training would take over 100 million…

    Open on YouTube →

  8. 08

    MIT 6.S191 (2023): Recurrent Neural Networks, Transformers, and Attention

    Worth it Alexander Amini 1:02:50 beginner

    Density
    83
    Padding
    24%
    Useful from
    1:15

    Lecture that builds from the RNN recurrence relation and backpropagation through time to self-attention with query, key and value, with LSTMs covered only as intuition.

    Start at 1:15 →

  9. 09

    Transformers explained | The architecture behind LLMs

    Worth it AI Coffee Break with Letitia 19:48 intermediate

    Density
    83
    Padding
    25%
    Useful from
    0:38

    Clear 20-minute transformer walkthrough: Q/K/V self-attention, multi-head, positional embeddings and residuals, with BERT masking (15% of tokens) and the RNN speed contrast.

    Start at 0:38 →

  10. 10

    LLM Lecture: A Deep Dive into Transformers, Prompts, and Human Feedback

    Worth it AI Coffee Break with Letitia 1:31:09 intermediate

    Density
    83
    Padding
    23%
    Useful from
    2:50

    Intuitive 90-minute lecture taking transformers from tokenization and self-attention through decoders, few-shot and chain-of-thought prompting, to DPO/RLHF; two slips: the 133% softmax…

    Start at 2:50 →

  11. 11

    How does AI actually work? Transformers explained

    Worth it AI Search 32:21 beginner

    Density
    82
    Padding
    27%
    Useful from
    0:31

    Clear 32-minute walk through a decoder-only Transformer on the example 'I go to work by', from tokenization to softmax and backprop training, with a roughly 2-minute sponsor read in the…

    Start at 0:31 →

  12. 12

    Transformer LLMs are Turing Complete after all !?

    Worth it AI Coffee Break with Letitia 28:47 intermediate

    Density
    81
    Padding
    29%
    Useful from
    3:01

    Interview: guest says Transformer decoders and RNNs with chain of thought can simulate Turing machines under infinite precision or memory, but training such weights is very hard.

    Start at 3:01 →

  13. 13

    Transformers Explained | Simple Explanation of Transformers

    Worth it codebasics 57:31 intermediate

    Density
    80
    Padding
    23%
    Useful from
    1:36

    A 57-minute intuitive walkthrough of Transformers, from King-minus-man-plus-woman embeddings to query/key/value attention analogies, the feed-forward block and cross attention, with a few…

    Start at 1:36 →

  14. 14

    Transformers for beginners | What are they and how do they work

    Worth it AssemblyAI 19:59 intermediate

    Density
    80
    Padding
    24%
    Useful from
    0:31

    Walks through the transformer architecture, with a step-by-step query/key/value attention calculation divided by 8 and sine/cosine positional encodings; the author says it may need several…

    Start at 0:31 →

  15. 15

    Introduction to Neural Networks

    Worth it ReLU 26:37 beginner

    Density
    78
    Padding
    26%
    Useful from
    1:37

    Clear 27-minute primer: weights and bias, why activations matter, then CNNs, attention and graph nets; training is skipped on purpose.

    Start at 1:37 →

  16. 16

    Illustrated Guide to Transformers Neural Network: A step by step explanation

    Worth it The AI Hacker 15:01 intermediate

    Density
    77
    Padding
    32%
    Useful from
    1:36

    Clear step-by-step transformer walkthrough from embeddings and Q/K/V attention to decoder masking; the author's description of the decoder's cross-attention is wrong.

    Start at 1:36 →

  17. 17

    Evolution of the Transformer Architecture Used in LLMs (2017–2025) – Full Course

    Worth it freeCodeCamp.org 2:49:52 intermediate

    Density
    77
    Padding
    29%
    Useful from
    5:17

    Code-along benchmark of transformer upgrades: RoPE, MLA, post-norm, SwiGLU and no dropout together cut loss from 4.84 to 4.28 (about 11%) on a small model.

    Start at 5:17 →

  18. 18

    Transformers Step-by-Step Explained (Attention Is All You Need)

    Worth it ByteByteGo 10:04 beginner

    Density
    74
    Padding
    28%
    Useful from
    0:15

    Clear 10-minute intro to Transformers: attention as token-to-token communication, with a worked query/key/value, softmax and weighted-sum example on the sentence 'Jake learned AI even…

    Start at 0:15 →

  19. 19

    Transformers: The best idea in AI | Andrej Karpathy and Lex Fridman

    Worth it Lex Clips 8:38 intermediate

    Density
    74
    Padding
    30%
    Useful from
    0:19

    The guest calls the Transformer a general-purpose trainable computer, explaining why it is expressive, optimizable and parallel-efficient, and why residual connections let it learn short…

    Start at 0:19 →

  20. 20

    Test-Time Adaptation: the key to reasoning with DL

    Worth it Machine Learning Street Talk 1:03:36 advanced

    Density
    73
    Padding
    36%
    Useful from
    7:02

    Interview on the 58% ARC approach: all examples in one forward pass, test-time tuning and majority voting, plus 5 min of hiring pitch and tangents.

    Start at 7:02 →

  21. 21

    Become an AI Researcher Course – LLM, Math, PyTorch, Neural Networks, Transformers

    Worth it freeCodeCamp.org 3:06:53 beginner

    Density
    73
    Padding
    28%
    Useful from
    10:13

    Breadth-first course: about 3 hours from derivatives and tensors to a coded GPT-style block, but backprop is left to other videos and exercises are largely 'play with it'.

    Start at 10:13 →

  22. 22

    Transformer Neural Networks - EXPLAINED! (Attention is all you need)

    Worth it CodeEmporium 13:05 intermediate

    Density
    71
    Padding
    30%

    Three-pass transformer walkthrough on an English-to-French example, covering parallel encoding, multi-head and masked attention and Q/K/V, but the attention formula is only named and the…

    Open on YouTube →

  23. 23

    Jeff Dean (Google): Exciting Trends in Machine Learning

    Worth it Rice Ken Kennedy Institute 1:12:30 intermediate

    Density
    70
    Padding
    37%
    Useful from
    0:52

    Jeff Dean's broad survey: ImageNet and speech error-rate gains, TPUs, Transformer, chain-of-thought and Gemini beating state of the art on 30 of 32 benchmarks, with Q&A on data and…

    Start at 0:52 →

  24. 24

    Transformers, explained: Understand the model behind ChatGPT

    Worth it Leon Petrou 24:07 beginner

    Density
    70
    Padding
    29%
    Useful from
    0:33

    Beginner walkthrough of GPT's Transformer pipeline, from next-word training and tokenization to attention and softmax, with no detail on how attention weights are computed.

    Start at 0:33 →

  25. 25

    Transformers, explained: Understand the model behind GPT, BERT, and T5

    Worth skimming Google Cloud Tech 9:11 beginner

    Density
    68
    Padding
    33%
    Useful from
    0:51

    Clear 9-minute conceptual intro to transformers: positional encodings, attention and self-attention explained via an English-French translation and the 'server' example, with no math.

    Start at 0:51 →

Gistil's own measurement. Not a YouTube rating, and not the channel's position. Ranking is ours; the videos belong to their channels.

How this ranking is decided

Every video here was measured on the same axes — how much of its runtime carries information, how much is padding, and the second at which it starts paying off. The order is by value density, not by views, recency or how much we liked the channel. What the numbers mean →

For whole channels rather than single videos, see Best YouTube channels for learning, by subject.

← All measured ai & machine learning videos