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

    CS480/680 Lecture 19: Attention and Transformer Networks

    Pascal Poupart

    3 HN recommenders · recommended in 3 months, 2023

    YouTube

    1:22:38 · 374K views · Jul 16, 2019

    A university lecture from CS480/680 by Pascal Poupart on attention mechanisms and transformer networks, worked through on a chalkboard.

    HN recommends it to newcomers as a clear explanation of attention, including the query/key/value intuition.

    AI, Machine Learning & DataLLMs & generative AIMachine learning & deep learningUniversity lectures & courses
    1. 26:10
      Attention in transformers, step-by-step | Deep Learning Chapter 63Blue1Brown4.9M views • 2 years ago
    2. 27:14
      Transformers, the tech behind LLMs | Deep Learning Chapter 53Blue1Brown12M views • 2 years ago
    3. 27:07
      Attention Is All You NeedYannic Kilcher814K views • 8 years ago
    4. 39:43
      Do we need Attention? - Linear RNNs and State Space Models (SSMs) for NLPSasha Rush35K views • 3 years ago
    5. 20:39
      AI Language Models & Transformers - ComputerphileComputerphile354K views • 7 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. 57:57
      Lecture 1 | Introduction to Convolutional Neural Networks for Visual RecognitionStanford University School of Engineering2.9M views • 9 years ago
    10. 1:19:08
      CS231n Winter 2016: Lecture1: Introduction and Historical ContextAndrej Karpathy463K views • 10 years ago
    11. 59:48
      [1hr Talk] Intro to Large Language ModelsAndrej Karpathy4.3M views • 2 years ago
    12. 2:25:52
      The spelled-out intro to neural networks and backpropagation: building microgradAndrej Karpathy4.4M views • 4 years ago
    13. 1:11:41
      Lecture 1 | Natural Language Processing with Deep LearningStanford University School of Engineering821K views • 9 years ago
    14. 1:31:13
      A Hackers' Guide to Language ModelsJeremy Howard580K views • 3 years ago
    15. 1:08:40
      Lecture 1 | Machine Learning (Stanford)Stanford2.7M views • 18 years ago
    16. 8:25
      Large Language Models from scratchGraphics in 5 Minutes375K views • 4 years ago
    17. 1:21:28
      Lecture 01 - The Learning Problemcaltech1.5M views • 14 years ago
    18. 18:40
      But what is a neural network? | Deep learning chapter 13Blue1Brown25M views • 9 years ago
    19. 1:05:18
      Recent Developments in Deep LearningGoogle TechTalks85K views • 16 years ago
    20. 1:28:13
      RL Course by David Silver - Lecture 1: Introduction to Reinforcement LearningGoogle DeepMind1.9M views • 11 years ago

    4 comments from Hacker News

    1. @elankartMay 2023· in “Ask HN: Can someone ELI5 Transformers and the “Attention is all we need” paper”

      This might be dumbing this down very very much but it all boils down to having some sort of a special lookup table and you give it a "query" and a bunch of "keys" and the "value" is the most likely next word. As you input something into the network, a network of these tables are consulted and you are given most likely next word. The novelty in this paper is this "query-key-value" relation that gets learned. A lot of previous work in this area was focused on learning a rough state machine to which you input a set of state transitions and it will give you the most likely next state. This will also work but training such networks is very slow and you also don't have the capability to train the network to "attend" to certain part of the inputs. This lookup based technique lets you do that plus this is also very compute efficient (compared to previous techniques). I'm missing a lot of details but that's basically the intuition behind this. These are very excellent resources: - [LINK] - this video

      RecommendsView on HN
    2. @metanonsenseJun 2023· in “Attention is Turing complete [pdf]”

      What made attention mechanism click to me was the video [LINK] by Sebastian Raschka. Another good video on attention that tries to give a bit more intuition on the query/key/value stuff is this video In hindsight, what helped me most is understanding the dimensionality at each step of the attention computation (explained well in Raschka's video). Another think I simply did not get from the original Transformer paper is that the learning of self-attention happens in the linear layers. (At least, that's my current understanding. If that's wrong, I appreciate any correction :)

      RecommendsView on HN
    3. @abhghApr 2023· in “Transformers from Scratch”

      I would also recommend Pascal Poupart's talk [1] on Attention and Transformers. Doesn't seem to be cited often, but its quite well done and seeing him work out some of the details using chalk and board is very reassuring. [1] this video

      RecommendsView on HN
    4. @godelskiMay 2023· in “Ask HN: Can someone ELI5 Transformers and the “Attention is all we need” paper”

      > I have zero AI/ML knowledge This may make it difficult to explain and I already see many incorrect explanations here and even more lazy ones (why post the first Google result? You're just adding noise) > Steve Yegge on Medium thinks that the team behind Transformers deserves a Nobel First, Yegge needs to be able to tell me what Attention and Transformers are. More importantly, he needs to tell me who invented them. That actually gets to our important point and why there are so many bad answers here and elsewhere. Because you're both missing a lot of context as well as there being murky definitions. This is also what makes it difficult to ELI5. I'll try, then try to give you resources to get an actually good answer. == Bad Answer (ELI5) == A transformer is an algorithm that considers the relationship of all parts of a piece of data. It does this through 4 mechanisms and in two parts. The first part is composed of a normalization block and an attention block. The normalization block scales the data and ensures that the data is not too large. Then the attention mechanism takes all the data handed to it and considers how it is all related to one another. This is called "self-attention" when we only consider one input and it is called "cross-attention" when we have multiple inputs and compare. Both of these create a relationship that are similar to creating a lookup table. The second block is also composed of a normalization block followed by a linear layer. The linear layer rep

      CitesView on HN