Self-Attention Explained: How Transformers Actually Work (Full Visual Breakdown)
175K views Β· Apr 26, 2026 Β· Education
Comments Β· 135
@mmm2008mmm Β· 3 weeks ago (edited)
Self-attention was NOT introduced in "Attention is all you need" (2017). Dot Production attention was introduced in 2015 for machine translation. "Effective approaches to attention-based neural machine translation." (EMNLP 2015) - it is well cited with 12.5K citation so far.
5
@jobayer-hosen Β· 1 month ago
Finally one video made it digestible enough to actually understand.
4
@MOROCCANFREEMIND Β· 6 months ago
This video solded a huge problem to me, I was struggling during months to understand how attention mecanism works, I always find myself lost between equations and weird terminology, finally found someone who explains in a simple direct way, Thank you a lot sir
21
@offside365 Β· 6 days ago
Clearly the best video on Attention mechanism ππ
@kayun-chan-pit8642 Β· 3 weeks ago
I had seen so many visual clips that explained this topic. Many could explain well by comparing with real-world understanding; many explained in math that I could not understand (yes, I'm stupid); however, you are the superhero who could balance both, which are the very tough things together. I would like to bow to you with the "thank you" words 1,000 times from Thailand. Thank you so much again. Hope you are happy, healthy, and wealthy all the time.
@NiharikaCaravan Β· 4 months ago (edited)
But still no one is explaining whatβs exactly q,k,v are and what wq, wk,wv exactly are they , where are they coming from and what values? . Everyone are just theoretically telling things like it preserves context without recomputing everything or just saying it computes q.k,v for each token
19
@vintagex6392 Β· 6 months ago
For anyone curious, this video and code basic's transformer video are the two best explanations I have seen. They have truly helped me understand the concepts.
6
@wuzhai2009 Β· 2 weeks ago
The K and Q matrices project tokens into the same subspace, e.g, cat and sat are related, so they should 'live' together. The value matrix then projects both 'cat' and 'sat' to other tokens that are similar, e.g., 'animals', or other verbs.
@rodbailey6666 Β· 1 month ago
This is a very good description. I found it most helpful.
1
@pablogrech4336 Β· 1 month ago
EXCELLENT. I AM STARTING TO UNDERSTAN THE ATTENTION MECHANISM.
1
@stanleysheppard8464 Β· 5 months ago
I see you renamed the channel and came back as Visual AI. My respect and support for your work. And thanks for perseverance! Subscribed.
2
@RishitShrivastava Β· 3 months ago
Incredible Efforts ! Please Please continue to upload the videos!!
1
Up next

Multi-Head Attention Explained Visually | Simple Transformer Guide
Visual AI Β· 34K views

Attention in transformers, step-by-step | Deep Learning Chapter 6
3Blue1Brown Β· 4.9M views

How Does the Transformer Encoder Actually Work? Complete Visual Breakdown
Visual AI Β· 13K views

Stanford CME295 Transformers & LLMs | Autumn 2026 | Lecture 1 - Transformers
Stanford Online Β· 1M views

Attention Is All You Need, Visually Explained | How Transformers Work
Paper Explained Β· 6.2K views

Give Me 1 Hour, I'll Make Deep Learning Click Forever
Zachary Huang Β· 280K views

Mixture of Experts Explained Visually: How Trillion-Parameter Models Actually Work
Visual AI Β· 44K views

The One Formula Behind ChatGPT | Attention Is All You Need, Explained
Arsenii Fedorov Β· 195 views

Self Attention in Transformers | Transformers in Deep Learning
Learn With Jay Β· 37K views

How GPT Actually Works: Transformer Decoder Explained Visually
Visual AI Β· 13K views

How did they crack the Riemann Hypothesis? - Numberphile
Numberphile Β· 1.3M views

Causal Attention Explained Visually | How GPT Generates Text Step by Step
Visual AI Β· 8.2K views

What AI Agent Skills Are and How They Work
IBM Technology Β· 611K views

Query, Key and Value Matrix for Attention Mechanisms in Large Language Models
Machine Learning Courses Β· 52K views

Visualizing transformers and attention | Talk for TNG Big Tech Day '24
Grant Sanderson Β· 1.4M views

Why Transformers Need Positional Encoding | Sin & Cos Explained Visually
Visual AI Β· 14K views

How Claude Solved the Riemann Hypothesis
Sohil Rathi Β· 344K views

ML Foundations for AI Engineers (in 34 Minutes)
Shaw Talebi Β· 586K views

LLMs Explained: Tokens, Embeddings, Transformers and More
Syntax Β· 1.3M views

Attention is all you need (Transformer) - Model explanation (including math), Inference and Training
Umar Jamil Β· 817K views