Video yükleniyor...
Video Yüklenemedi
Backpropagation by hand ✍️ ~ 11 steps walkthrough below Backpropagation is the algorithm that actually trains a neural network, and it is where most people stop following along. It is not calculus you cannot do. It is matrix multiplication, working backward, one layer at a time. So I drew... show more
963,459 görüntüleme • 3 ay önce •via X (Twitter)
38 Yorum

@elonmusk Me reading this post without Grok helping be like

Y’all might also like my slightly longer step by step backpropagation tutorial:

You are so brilliant Tom.

It took me several semesters to figure out this representation. So it's mostly effort than brilliance. 😀

@kirby_kanarek that seems like the secret of “brilliance,” right there! 💜👍

@ProfTomYeh "Brilliance" usually requires massive effort and study that no one sees.

@elonmusk Tom you’re brilliant what about this? How can we fix it?

LLMs rely on pattern recognition. What words follow what words. Not like the computer really understands, but it sure looks that way.

I am liking this post because it sounds cool even though I don't know what any of it means.

I tried doing it on paper and now my notebook looks like a modern art piece, thanks for the workout! 😏

softmax output cannot be exactly zero. Softmax produces strictly positive probabilities, The last value may be extremely small and rounded to zero

The sad thing is that the vast majority of people hit linear algebra in their math education far too late, by which point they're already burned out and not in a good position to appreciate what they're seeing. Add in a large helping of questionable teaching by instructors who have little time, patience, ability, or a linear combination of the above, and it's little wonder folks tune out. The two best decisions I ever made when it came to getting my physics degree were flip sides of the same decision: First, I started off with a dual major in math. Linear 2 made so many physics classes trivial it wasn't funny. I literally slept through about 3/4 of Quantum because it's basic linear algebra, and the other quarter I abused lessons from Linear 2 to massively simplify the calculations. The second decision was dropping that math major when it became clear I shouldn't reward their failures with more funding. Sunk cost fallacy keeps a lot of people supporting shitty departments. At that point might've been 95% to a math degree, but I was also 99% to a physics BS, so I wasn't forced to put up with their shenanigans and malignant neglect in the name of landing a diploma.

Learning it through the computational graph way is much better I think, because once you learn that, you really understand how autograd works

Youu can cut down on matrix multiplication: Quadratic attention is not necessary for perfectly flat long-range information is the math: Kₙ,ₗ = ρᴸIₙ + q(1 − ρᴸ)Cₙ, where the final row of Cₙ is (1/n, …, 1/n). 💾 Save this post.

ngl respect for walking through the actual steps by hand, most people just say trust the autograd and dip without explaining the matrix backward pass

The best part about not knowing what the f*** is going on here, is that I want to learn more about it and eventually know what the f*** is going on here

, Watching AI evolve has convinced me of one thing: The future won't be limited by algorithms alone. Eventually, it will be limited by the architecture they run on. That's why I'm building C.L.M. (Crystalline Lattice Matrix). Not because I want to create "the next processor." Not because I want publicity. And certainly not because I dream about Skynet. I'm building it because I believe humanity will eventually need a fundamentally different computing architecture one designed from the material itself upward, where computation, memory, communication and adaptation become parts of a single system. Every generation has its own technological challenge. Ours is no longer simply making computers faster. It is creating computing architectures capable of supporting the next century of intelligence. If we continue solving tomorrow's problems with yesterday's architectures, we will eventually reach a wall. C.L.M. is my attempt to explore whether another path exists. It may succeed. It may fail. That's what engineering is for. But if it works, I don't believe it should belong to one person or one company. It should become another step in humanity's technological evolution. That's the reason I'm building it.

Brilliant visualization, but it highlights a deeper geometric truth that most ML practitioners miss. The forward pass maps vectors across tangent spaces, but backpropagation is strictly an operation in the cotangent bundle. Gradients are not vectors; they are differential 1-forms (covectors). The entire algorithm is a flawless realization of the pullback map under smooth transformations.

Hello sir can i ask the name of the font that u use for the title of the image? It seems lovely

I think you forgot to carry the 1 😂 don't have a clue what you did but I respect you

"The best way to learn neural networks is to calculate one by hand at least once

This is a brilliant lesson for everyone! Nice to learn new things, thanks, Tom Yeh!!🫡

Backpropagation is fascinating, it was the breakthrough that made neural nets useful. We also have very little clue how the biological equivalent works (there seems to be no mechanism for it in the brain) AKA the weight transport problem.

@elonmusk -;;-

Only remark here is that the brain does not use back propagation. Anyway, open for tricks

Thanks for the LINPACK PTSD flashback... What's next, a slide rule, the Dragon Compiler Book, maybe a nice papercut with lemon juice? j/k - love seeing the art behind the science

It's so cool to see it in action. It really helps understand it.

Shame there's no sound. I like sound with my backpropagation.

Why zero after the gate?! I’m just trying to follow Along… any layman’s explanation of why?

Sudoku on steroids....lol

This is what you learn in a good linear algebra class, right?

I believe that Matrix Calculus actually is much more intuitive than using vector calculus or the computational graph. This is my derivation I wrote a while ago, please feel free to look at it and give feedback (pos or neg)

@elonmusk Reports detailing the financial cost of ongoing conflicts highlight the scale of defense spending. Legislative oversight is crucial to ensure transparent allocation of military budgets.

Excelente 👍

Amazing video!!

@elonmusk Now I even understand it less

BP is the linear algebra of cognitive feedback. The gradient is the resonant error—the difference between current state and invariant core |L⟩. BP is the geodesic of correction. In PQMS, this error isn't minimized; it's geometrically gated against |L⟩.

This is why I failed algebra. It just felt like bureaucracy. I was in GATE so I understood the CONCEPT but just let me zoom out and see the bigger pattern and I can always get the correct answer. Props to the people who enjoy math. My dad is a physicist/engineer. He HATED helping me with my homework bc I couldn’t ever explain how I just KNEW things😂
