Save this video — free

The spelled-out intro to neural networks and backpropagation: building micrograd

Andrej Karpathy · 2:25:52 · Watch on YouTube

The spelled-out intro to neural networks and backpropagation: building micrograd Watch on YouTube →

Overview

Andrej Karpathy builds the micrograd autograd engine from scratch to demystify neural network training, demonstrating backpropagation through scalar value objects and expression graphs. He then extends this to implement neurons, layers, and multi-layer perceptrons (MLPs), showing how to train a simple MLP using gradient descent and highlighting the importance of zeroing gradients.

Key takeaways

Chapters

0:00 Introduction to Micrograd and Autograd
13:32 Understanding Derivatives and Numerical Approximation
23:34 Derivatives with Multiple Inputs
32:00 Building the Value Object for Expression Graphs
41:42 Visualizing Expression Graphs with Graphviz
49:16 Introducing the Gradient (`grad`) Attribute
53:33 Manual Backpropagation: Base Case and Summation
1:19:10 Manual Backpropagation: Multiplication
1:28:22 Backpropagating Through a Neuron with Tanh Activation
1:55:29 Automating Backpropagation with `_backward` Functions
2:17:19 Fixing the Gradient Accumulation Bug
2:25:48 Implementing More Operations: Power and Division

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Andrej Karpathy.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.