Skip to content
HomeVideos
AllLongsCategoriesPlaylists
BooksBlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K

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

    3Blue1Brown

    5 HN recommenders · recommended in 7 months, 2024–2026

    YouTube

    26:10 · 4.9M views · Apr 7, 2024

    3Blue1Brown's visual walkthrough of the attention mechanism inside transformers, covering self-attention, multiple heads and cross-attention. It is chapter 6 of his deep learning series.

    HN treats it as the go-to visual explanation of attention, recommended to people who find text-based transformer explainers hard to follow.

    AI, Machine Learning & DataLLMs & generative AIMachine learning & deep learning
    1. 27:14
      Transformers, the tech behind LLMs | Deep Learning Chapter 53Blue1Brown12M views • 2 years ago
    2. 20:33
      Gradient descent, how neural networks learn | Deep Learning Chapter 23Blue1Brown9.7M views • 9 years ago
    3. 18:40
      But what is a neural network? | Deep learning chapter 13Blue1Brown25M views • 9 years ago
    4. 1:22:38
      CS480/680 Lecture 19: Attention and Transformer NetworksPascal Poupart374K views • 7 years ago
    5. 27:07
      Attention Is All You NeedYannic Kilcher814K views • 8 years ago
    6. 28:48
      LSTM is dead. Long Live Transformers!Seattle Applied Deep Learning541K views • 6 years ago
    7. 1:56:20
      Let's build GPT: from scratch, in code, spelled out.Andrej Karpathy8.2M views • 3 years ago
    8. 3:31:24
      Deep Dive into LLMs like ChatGPTAndrej Karpathy10M views • 1 year ago
    9. 8:25
      Large Language Models from scratchGraphics in 5 Minutes375K views • 4 years ago
    10. 37:20
      But how do AI images and videos actually work? | Guest video by Welch Labs3Blue1Brown2.2M views • 1 year ago
    11. 39:43
      Do we need Attention? - Linear RNNs and State Space Models (SSMs) for NLPSasha Rush35K views • 3 years ago
    12. 42:40
      State of GPT | BRK216HFSMicrosoft Developer786K views • 3 years ago
    13. 20:39
      AI Language Models & Transformers - ComputerphileComputerphile354K views • 7 years ago
    14. 59:48
      [1hr Talk] Intro to Large Language ModelsAndrej Karpathy4.3M views • 2 years ago
    15. 1:31:13
      A Hackers' Guide to Language ModelsJeremy Howard580K views • 3 years ago
    16. 57:57
      Lecture 1 | Introduction to Convolutional Neural Networks for Visual RecognitionStanford University School of Engineering2.9M views • 9 years ago
    17. 2:13:35
      Let's build the GPT TokenizerAndrej Karpathy1.3M views • 2 years ago
    18. 3:54
      Deep Visualization ToolboxJason Yosinski270K views • 11 years ago
    19. 10:18
      Backpropagation calculus | Deep Learning Chapter 43Blue1Brown4M views • 9 years ago
    20. 12:47
      Backpropagation, intuitively | Deep Learning Chapter 33Blue1Brown6.4M views • 9 years ago

    8 comments from Hacker News

    1. @onlyrealcuzzoMay 2026· in “Claude Opus 4.8”

      Because it doesn't work like how you think at all. You're still thinking it works like Chain of Thought. It doesn't. And the difference is key! It works by introducing probabilistic noise, and exploring N paths fully (each with noise) in parallel (all compressed). It's reasoning at a much, much smaller (probabilistic) level than running everything through the expensive large model (deterministic) and sometimes catching that it said, "I think 1.12 is greater than 1.9 because 12 is bigger than 9, final answer". The easiest way to think about it is: if you understand how hyper words work, it's as if it's searching for different versions of the hyper words that probilisticslly would lead to better outcomes IF it fed them to the LLM before it even does. That's not actually how it works exactly. But I think it is close enough to be helpful to understand where the gain is, a rough idea of what's happening (searching paths), and how it can potentially have huge orders of magnitude improvements (doing so without paying the full price of exploring the paths through the expensive and huge model). And also why it is so much harder to determine what it's "thinking". If you aren't familiar with hyper words, this is an amazing series: this video The general idea is that a token is a multidimensional vector to represent a word -> think like "man" is a [noun, singular, English, pronoun, masculine, contemporary, ...]. Each time is sees a new word, it mutates this word to mean some new token (ofte

      Strongly recommendsView on HN
    2. @tomashmJul 2024· in “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. [LINK] 1. this video

      Strongly recommendsView on HN
    3. @superkuhOct 2024· in “LLMs Aren't Thinking, They're Just Counting Votes”

      > when an LLM tells us that the sun rises in the east, it's not because it truly understands astronomy or the solar system. Rather, it has seen the phrase "sun rises in the east" repeated so many times in its training data that this becomes the highest probability answer. It's less about understanding and more about pattern recognition. This is not too different from most human person's experience with basic education ( [LINK] ). Though it is obvious that humans can do more than that too. And while "voting" that may be a close-enough metaphor for the multi-layer perceptron layers, it is not what is happening in the attention layers. I suggest checking out 3blue1brown's videos on gradient descent [LINK] and "How might LLMs store facts" [LINK] versus how attention works this video

      RecommendsView on HN
    4. @MAXPOOLJul 2024· in “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 [LINK] Attention in transformers, visually explained | Chapter 6, Deep Learning this video Full 3Blue1Brown Neural Networks playlist [LINK]

      RecommendsView on HN
    5. @wren6991Jun 2026· in “Can I Buy Your KV Cache?”

      If you want the actual maths instead of handwaving, I recommend: [LINK] For something gentler, 3Blue1Brown: this video (this is part of a series)

      RecommendsView on HN