Skip to content
0:00 / 0:00

#transformer#attentionmechanism#paperwalkthrough

Attention Is All You Need

Yannic Kilcher

333K subscribers • 4 videos on Hallway

YouTube
  • Recommended by 4 people: 4 on Hacker News.
  • Presented by Yannic Kilcher, AI researcher and YouTuber
  • Linked in the descriptionarXiv 1706.03762
  • May be out of date. Uploaded 8 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

814K views8 years ago4 recommendations

AI and machine learningTransformers and LLMsNeural networks and deep learning

Yannic Kilcher walks through the seminal Attention Is All You Need paper, explaining the architecture of the Transformer model.

arxiv.org/abs/1706.03762 Abstract: The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.0 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data. Authors: Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin

Why it's here

4 people recommend this

What people say. Highly recommended as one of the clearest and most accessible video walkthroughs of the original Transformer paper.

bfungon Hacker News • Recommends

On “The Transformer Family”

YouTube channel that explains the paper in detail: link to 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.

kancheon Hacker News • Recommends

On “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 link to this video 1 link 2 link 3 link

visargaon Hacker News • Recommends

On “The potential of transformers in reinforcement learning”

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

throwawaymathson Hacker News • Recommends

On “Ask HN: Can someone ELI5 Transformers and the “Attention is all we need” paper”

The Yannic kilcher review is quite good. link to 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…

throwawaymathson Hacker News • Mentions

On “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: link to 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