HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

Attention Is All You Need

Yannic Kilcher4 HN recommenders · recommended in 4 months, 2020-2025
YouTube
814K views · 8 years ago · explainer · evergreen

Yannic Kilcher walks through the Attention Is All You Need paper, which introduced the Transformer, a sequence model based solely on attention without recurrence or convolutions. He reviews the architecture and the paper's translation results.

HN recommends it as an accessible, clear walkthrough of the transformer paper for people with some AI background.

LLMs & generative AIMachine learning & deep learning#transformers#attention#paperreview#deeplearning#nlp#yannickilcher

5 comments from Hacker News

@throwawaymaths2025 · in “Writing an LLM from scratch, part 13 – attention heads are dumb”

> I love these word-salad exaltations of LLMs - people don't even know what they're writing half the time but it sure is provocative! Well FWIW I have done an implementation of Llama LLM (3 8-70b to be specific) in non-python so I do sort of know what I'm talking about. I'm not the originator of the hash table analogy. I got it from here: ▶ this video Hell, the vectors that are generated are called K/V, so. Yeah it's a hash table. And the idea that first order logic and other facets of intelligence can just be cleverly arranged lookup tables comes from here: link

CitesView on HN
@throwawaymaths2023 · in “Ask HN: Can someone ELI5 Transformers and the “Attention is all we need” paper”

The Yannic kilcher review is quite good. ▶ this video I can't ELI5 but I can ELI-junior-dev. Tl;dw: Transformers work by basically being a differentiable lookup/hash table. First your input is tokenized and (N) tokens (this constitutes the attention frame) are encoded both based on token identity and position in the attention frame. Then there is an NxN matrix that is applied to your attention frame "performing the lookup query" over all other tokens in the attention frame, so every token gets a "contextual semantic understanding" that takes in both all the other stuff in the attention frame and it's relative position. Gpt is impressive because the N is really huge and it has many layers. A big N means you can potentially access information farther away. Each layer gives more opportunities to summarize and integrate long range information in a fractal process. Two key takeaways: - differentiable hash tables - encoding relative position using periodic functions NB: the attention frame tokens are actually K-vectors (so the frame is a KxN matrix) and the query matrix is an NxNxK tensor IIRC but it's easier to describe it this way

RecommendsView on HN
@bfung2023 · in “The Transformer Family”

YouTube channel that explains the paper in detail: ▶ this video And subsequent follow-ups (ROME, editing transformer arch): link I find the channel amazing explaining super complex topics in simple enough terms for people who have some background in AI.

Strongly recommendsView on HN
@visarga2021 · in “The potential of transformers in reinforcement learning”

For accessibility I recommend Yannic Kilcher video review of "Attention Is All You Need" ▶ this video Yannic has been making about 62 other transformer paper reviews since. You can find the usual suspects. link

RecommendsView on HN
@kanche2020 · in “Rethinking Attention with Performers”

Everyone has a different way of approaching. I like video walk-throughs of papers. If you are the same, for the theory bit you may find Yannic Kilcher's videos [0,1] helpful. On implementation side, the best project out there is [2] with good documentation. Also spacy has transformer package [3] (I personally haven't tried it), so maybe it will be easier for you to jump in if you have prior experience with spacy. [0] ▶ this video [1] link [2] link [3] link

RecommendsView on HN
Attention in transformers, step-by-step | Deep Learning Chapter 626:10

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

3Blue1Brown
4.8M views • 2 years ago
CS480/680 Lecture 19: Attention and Transformer Networks1:22:38

CS480/680 Lecture 19: Attention and Transformer Networks

Pascal Poupart
374K views • 7 years ago
Transformers, the tech behind LLMs | Deep Learning Chapter 527:14

Transformers, the tech behind LLMs | Deep Learning Chapter 5

3Blue1Brown
11.6M views • 2 years ago
Do we need Attention? - Linear RNNs and State Space Models (SSMs) for NLP39:43

Do we need Attention? - Linear RNNs and State Space Models (SSMs) for NLP

Sasha Rush
35K views • 3 years ago
LSTM is dead. Long Live Transformers!28:48

LSTM is dead. Long Live Transformers!

Seattle Applied Deep Learning
540K views • 6 years ago
AI Language Models & Transformers - Computerphile20:39

AI Language Models & Transformers - Computerphile

Computerphile
354K views • 7 years ago
Let's build GPT: from scratch, in code, spelled out.1:56:20

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

Andrej Karpathy
8.2M views • 3 years ago
Large Language Models from scratch8:25

Large Language Models from scratch

Graphics in 5 Minutes
375K views • 4 years ago
The Man behind Stable Diffusion25:42

The Man behind Stable Diffusion

Yannic Kilcher
146K views • 4 years ago
GPT-4chan: This is the worst AI ever19:20

GPT-4chan: This is the worst AI ever

Yannic Kilcher
1M views • 4 years ago
State of GPT | BRK216HFS42:40

State of GPT | BRK216HFS

Microsoft Developer
785K views • 3 years ago
Deep Dive into LLMs like ChatGPT3:31:24

Deep Dive into LLMs like ChatGPT

Andrej Karpathy
10.2M views • 1 year ago
[1hr Talk] Intro to Large Language Models59:48

[1hr Talk] Intro to Large Language Models

Andrej Karpathy
4.3M views • 2 years ago
GPT3: An Even Bigger Language Model - Computerphile25:57

GPT3: An Even Bigger Language Model - Computerphile

Computerphile
446K views • 6 years ago
A Hackers' Guide to Language Models1:31:13

A Hackers' Guide to Language Models

Jeremy Howard
580K views • 3 years ago
The spelled-out intro to language modeling: building makemore1:57:45

The spelled-out intro to language modeling: building makemore

Andrej Karpathy
1.3M views • 4 years ago
An Observation on Generalization57:21

An Observation on Generalization

Simons Institute for the Theory of Computing
210K views • 3 years ago
Let's build the GPT Tokenizer2:13:35

Let's build the GPT Tokenizer

Andrej Karpathy
1.3M views • 2 years ago
Lecture 1 | Introduction to Convolutional Neural Networks for Visual Recognition57:57

Lecture 1 | Introduction to Convolutional Neural Networks for Visual Recognition

Stanford University School of Engineering
2.9M views • 9 years ago
A Style-Based Generator Architecture for Generative Adversarial Networks6:18

A Style-Based Generator Architecture for Generative Adversarial Networks

Tero Karras FI
1.3M views • 7 years ago