HackerTubewatch
Surprise me
Frame from Transformers, the tech behind LLMs | Deep Learning Chapter 5 Plays via YouTube's privacy-enhanced embed

Transformers, the tech behind LLMs | Deep Learning Chapter 5

43 videos recommended on HN
YouTube
13 HN users recommended this explainer10 months2024–2026 score 13
Years with an HN recommendation, 2007–2026

HN treats it as the go-to visual introduction to transformers, and many say it finally made attention and embeddings click.

3Blue1Brown's visual explanation of how transformers and GPT-style language models work, tracing data through tokens, embeddings and attention.

“what bade me finally understand the transformer architecture [0] and attention [1], are 3Blue1Brown's videos.” (HN, 2024)

6 strong recommendations · 7 recommendations · 3 citations · Explainers · intro

16 Hacker News comments

From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.

@BenoitP Apr 2024 Strongly recommends
on HN thread Visualizing Attention, a Transformer's Heart [video]
Read more
3Blue1Brown is really a godsend. I had been trying and failed to get an intuition for the self-attention mechanisms, and also why you want to stack you transformer layers. I went through a lot of material (Key-Query-Value interpretations, SVD of these, etc.) but his comment in chapter 5 video [1] made it click for me: "But you should think of the primary goal of this network that it (the word embedding) flows through as being to enable each one of those vectors to soak up a meaning that's much more rich and specific than what mere individual words could represent". Here is my intuition: Transformers are merely a Convnet for token sequences. In the sense that information is first local and each data means something wrt its immediate neighbors. You extract data locally, and then you dezoom to and redo exactly the same at a higher level. Convnet have been shown to reproduce edge detecting kernels first (vertical edge), then assemble them into basic shapes (vertical+oblique: corner), then bigger shapes (something round), then link shapes together (round+round separated by a horizontal shape with rectangles on top), and then it's a car! [2] Transformers do the same. They assemble meaning among tokens ("ju" + "mps" : a conjugated verb), then assemble these at a higher level ("cat jumps" -> noun+verb), then it's a sentence "the cat jumps over the wall", then a paragraph, then a chapter, then a book. All differentiable so any deviation from something coherent can tweak its knobs high
Made self-attention intuition click for the commenter.
@Wilduck May 2024 Strongly recommends
on HN thread Ask HN: Why can't ChatGPT solve Wordle-type questions?
3Blue1Brown has a fantastic video on GPT that I'd highly recommend called "But what is a GPT? Visual intro to transformers" [1]. You'll need to have some background in mathematical reasoning, but not too much. He does a great job of drawing pictures to show the mathematical transformations that happen under the hood. [1] [this video]
Visual intro to transformers needing modest math background.
@tomashm Jul 2024 Strongly recommends
on HN thread The Illustrated Transformer (2018)
This is good, but what bade me finally understand the transformer architecture [0] and attention [1], are 3Blue1Brown's videos. 0. [this video] 1. [link]
Finally made the transformer architecture and attention understandable.
@manmal May 2025 Strongly recommends
on HN thread Embeddings are underrated (2024)
This video explains the direction-encodes-trait topic very well IMO: [this video] It’s the first in a series of three that I can very highly recommend. > there's no way that there's a 1-to-1 correspondence between concepts and dimensions. I don’t know about that! Once you go very high dimensional, there is a lot of direction vectors that are almost perfectly perpendicular to each other (meaning they can cleanly encode a trait). Maybe they don’t even need to be perfectly perpendicular, the dot product just needs to be very close to zero.
Explains how directions in embedding space encode traits.
@gf000 Jan 2026 Strongly recommends
on HN thread King – man and woman is queen; but why?
I really recommend watching this section of this video. Embeddings do encode plenty of "human knowledge" into the vector values and their relations to each other. [this video] This even opens up a more data-based approach to linguistics, where it is also heavily used.
Shows embeddings encode human knowledge in vector relations.
@robrenaud Jun 2026 Strongly recommends
on HN thread "They're made out of weights"
3 blue 1 brown has a great visual introduction to transformers, the heart of LLMs. It's chapter 5. Start at chapter 1 if you want more background on neural nets and backprop. [this video]
Great visual introduction to transformers; start from chapter 1 for background.
@CharlesW Apr 2024 Recommends
on HN thread Ask HN: If AI can be creative, does this mean humans can be taught creativity?
To quote GPT-4, "AI's 'creativity' is more about remixing and reinterpreting the information it has been fed". I think the degree to which a person perceives human-like creativity from AI/LLMs is inversely proportional to their understanding of how they work. Here's a great video that can help demystify GPTs: [this video]
Demystifies how GPTs work.
@MAXPOOL Jul 2024 Recommends
on HN thread The Engineer’s Guide to Deep Learning: Understanding the Transformer Model
There are many others that are better. 1/ The Annotated Transformer Attention is All You Need [link] 2/ Transformers from Scratch [link] 3/ Andrej Karpathy has really good series of intros: [link] Let's build GPT: from scratch, in code, spelled out. [link] GPT with Andrej Karpathy: Part 1 [link] 4/ 3Blue1Brown: But what is a GPT? Visual intro to transformers | Chapter 5, Deep Learning [this video] Attention in transformers, visually explained | Chapter 6, Deep Learning [link] Full 3Blue1Brown Neural Networks playlist [link]
Listed among better transformer learning resources.
@semiquaver Apr 2025 Recommends
on HN thread Reasoning models don't always say what they think
Read more
LLMs are completely deterministic. Their fundamental output is a vector representing a probability distribution of the next token given the model weights and context. Given the same inputs an identical output vector will be produced 100% of the time. This fact is relied upon by for example [link] a lossless compression system that would not work if LLMs were nondeterministic. In practice most LLM systems use this distribution (along with a “temperature” multiplier) to make a weighted random choice among the tokens, giving the illusion of nondeterminism. But there’s no fundamental reason you couldn’t for example always choose the most likely token, yielding totally deterministic output. This is an excellent and accessible series going over how transformer systems work if you want to learn more. [this video]
Excellent accessible series on how transformers work.
@andrehacker May 2025 Recommends
on HN thread Writing an LLM from scratch, part 13 – attention heads are dumb
Read more
It is regarded to be "the best" book on the topic by many. I found just like what Giles Thomas wrote that the book focuses on the details and how to write the lower level code without providing the big picture. I am personally not very interested in that as these details are likely to change rather quickly while the principles of LLMs and transformers will probably remain relevant for many years. I have been looking for, but failed, to find a good resource that approaches it the way 3blue1brown [1] explains it but then go deeper from there. The blog series from Giles seem to take the book and add the background to the details. [1] [this video]
Gold-standard big-picture explanation of LLM principles.
@matthewolfe Jun 2025 Recommends
on HN thread Show HN: TokenDagger – A tokenizer faster than OpenAI's Tiktoken
Read more
Modal's GPU glossary is a good overview about how GPUs work [0]. Karpathy's LLM overview is a good high level overview on LLMs [1]. 3b1b's video (and subsequent videos) on transformers was excellent at helping me understand the math at a high level [2]. This matrix multiplication optimization worklog helped me understand writing better CUDA (not for beginner intro though) [3]. During this process I also asked ChatGPT a lot of questions. I'm definitely open to suggestions about "how to learn" with all the new tools we have. I felt this has not been straightforward to figure out. [0] [link] [1] [link] [2] [this video] [3] [link]
Excellent for understanding transformer math at a high level.
@dannyw Apr 2026 Recommends
on HN thread Claude Token Counter, now with model comparisons
LLMs are explicitly designed to handle, and also possibly 'learn' from different tokens encoding similar information. I found this video from 3blue1brown very informative: [this video] Also, think about how a LLM would handle different languages.
Informative on how LLMs handle tokens.

Citations, criticism and jokes

@meat_machine Apr 2024 Cites it
on HN thread Could the cosmos, in fact, be conscious?
Read more
from wikipedia: >Occam's razor is the problem-solving principle that recommends searching for explanations constructed with the smallest possible set of elements it's a general principle or _recommendation_, not some law of the universe. Some people might argue that "God wills it" is the simplest explanation for many things, but that doesn't mean it's true. The simplicity of an explanation doesn't necessarily have anything to do with its validity. In addition, the introduction of panpsychism, just like the introduction of God into any argument, brings up a whole other set of questions that need to be answered -- additional complexity, which is the opposite of Occam's Razor. Emergence out of complex systems is arguably the simpler explanation, because it's something that's already been observed, measured, and studied, like storms emerging from simpler principles of weather systems. Or take your computer or smartphone -- do you truly understand all the mechanisms from which we go from "shocking rocks" to create series of on/off signals, to things like communicating on the internet, or watching videos? Is computing and mathematics some inherent property of silicon? Nearly part of a computer, on some fundamental level, is a relatively simple mechanism, and has an almost useless function on its own. Even for engineers who understand every level of abstraction, it must still be near-miraculous that any of this works, even though these emergent properties are deliberately crafted, w
Cited in a consciousness and emergence argument.
@tmsh Apr 2024 Cites it
on HN thread You can't spell "Gell-Mann amnesia" without LLM
Read more
I also dismissed LLMs given their "accuracy." But I think that's the wrong thing to compare. The sheer fact that a transformer architecture model gets better at scale and that we can feed it at scale is insane. It's what makes it AI and not just ML. The fact that you can get billions of parameters to do anything useful from a relatively simple algorithm on a relatively small amount (high GBs / low TBs) of text means the algorithm is insane. That's what people miss - they think GPT is trained on "the whole internet" and is similar to some of low-variate regression model that is "approximating things." It is absolutely approximating things - so does all intelligence -- but it is truly sifting / "attending to" what is important over a relatively small corpus and organizing into billions of parameters the way a brain would organize data. Will it hallucinate details? statistics? Etc.? Yes, and it should not be used in its current form for "truth." But it's very different from a low-variate model that is synthesizing in a low-dimensional space (which is how we gradually learn about the world) and an extremely-high dimensional model that is starting to see "what is important" in ways that are far, far above human intelligence. Similar to a human brain (due to the underlying neural architecture and any type of hierarchical compression of knowledge) but with far more input data, and a simplicity that maybe the brain has maybe it doesn't -- but is far more scalable and capable of hiera
Linked alongside a discussion of transformer scaling.
@retr0reg Sep 2025 Cites it
on HN thread Words are lossy compressor, LMs speaks in meanings
This high dimensional vector space does allows them to theoretically embed a interpretable "deeper understanding", reference [this video] . It's the pre-train process that determines whether or not they demonstrate this "deeper understanding". This "deeper understanding" refers to the understanding to the word, can be contextual, pragmatic, or semantic.
Cited for high-dimensional vector space embedding meaning.

Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.

Keyboard shortcuts

/
Search
j k
Next / previous video
r
Surprise me
l
Like (video page)
w
Watch later (video page)
?
This help
Esc
Close