Skip to content
0:00 / 0:00

#transformers#lstm#nlp

LSTM is dead. Long Live Transformers!

Seattle Applied Deep Learning

11K subscribers • 1 video on Hallway

YouTube
  • Recommended by 4 people: 4 on Hacker News.
  • Presented by Leo Dirac, founder of Seattle Applied Deep Learning
  • May be out of date. Uploaded 6 years ago, in an area where tools change fast.

Intermediate. Assumes working knowledge.

540K views6 years ago4 recommendations

AI and machine learningNeural networks and deep learningTransformers and LLMs

Leo Dirac explains the transition from RNNs and LSTMs to transformer-based models in NLP, detailing multi-headed self-attention and positional encoding.

Leo Dirac (@leopd) talks about how LSTM models for Natural Language Processing (NLP) have been practically replaced by transformer-based models. Basic background on NLP, and a brief history of supervised learning techniques on documents, from bag of words, through vanilla RNNs and LSTM. Then there's a technical deep dive into how Transformers work with multi-headed self-attention, and positional encoding. Includes sample code for applying these ideas to real-world projects.

Why it's here

4 people recommend this

What people say. Highly recommended as a clear, visual explanation of how attention mechanisms and transformers work compared to older RNN architectures.

leopdon Hacker News • Recommends

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

I don't think you really want a 5yo's version, because that's "computers can be smart". But for an SDE1-level explanation I made this video which has gotten tons of compliments and keeps people watching year after year: link to this video It's in the context of NLP, which is where transformers started of course.

FL33TW00Don Hacker News • Recommends

On “Rethinking Attention with Performers”

…] This was really useful to really build up to the concepts of attention (although the actual attention section is still brief). 2. link This was great for visualization and understanding that attention wasn't exclusively for transformers and actually was for RNNs first. 3. link Getting to understand how transformers actually work visually. 4. link to this video This lecture by Leo Dirac was extremely helpful to finish off with, not only because it actually includes some pseudocode but it also revisits some key topics and covers why transformers are needed. One of the big confusion points for me was that the concept of ATTENTION and SELF-ATTENTION are not the same thing. Hope this helps.…

peterfireflyon Hacker News • Recommends

On “The Transformer Family”

Yannic Kilcher is great but this video worked better for me: "LSTM is dead. Long live transformers!" (Leo Dirac): link to this video

qigtyofhpon Hacker News • Recommends

On “Understanding and Coding the Self-Attention Mechanism of Large Language Models”

The attention mechanism started as a simple trick to not use recurrent neural networks. Read the intro in the original paper "Attention is all you need paper" ( link ) This video explains the drawbacks to RNNs and how transformers solve that: link to this video Andrej Karpathy explains attention here: link He explains how attention is seen as a communication network: link

abetuskon Hacker News • Mentions

On “We aren't close to creating a rapidly self-improving AI”

…as to be serial per token. Fully parallel allows for GPU optimization, which means you can take advantage of Moore's law for training. I'm always a bit suspicious when people claim a breakthrough of this sort. There's no doubt that better algorithms give better results but how much is due to just faster computers, cheaper compute, memory, etc. 0 link to this video…