✳flâneur — a map of the web's best reading
Reverse-mode automatic differentiation from scratch, in Python
sidsite.com · 4,045 words · saved by 1 readers
The site of Sid.
Automatic differentiation is the foundation upon which deep learning frameworks lie. Deep learning models are typically trained using gradient based techniques, and autodiff makes it easy to get gradients, even from enormous, complex models. ‘Reverse-mode autodiff’ is the autodiff method used by most deep learning frameworks, due to its efficiency and accuracy. Let’s: Look at how reverse-mode autodiff works. Create a minimal autodiff framework in Python. The small autodiff framework will deal with scalars. However we will look at a method of vectorising it with NumPy. We will also look at how
Explore this link on the map →related reading
- Differentiable Programming from Scratchthenumb.at
- Calculus on Computational Graphs: Backpropagation -- colah's blogcolah.github.io
- 2404.17625arxiv.org
- The Matrix Calculus You Need For Deep Learningarxiv.org
- Just know stuff. (Or, how to achieve success in a machine learning PhD.) · Patrick Kidgerkidger.site
- GitHub - jax-ml/jax: Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more · GitHubgithub.com
- di.ku.dk/english/research/phd/phd-theses/2025/dissertation_Robert.pdfdi.ku.dk
- 1806.07366arxiv.org
- Yes you should understand backprop | by Andrej Karpathy | Mediumkarpathy.medium.com
- CS231n Deep Learning for Computer Visioncs231n.github.io
- Learning PyTorch with Examples — PyTorch Tutorials 2.12.0+cu130 documentationpytorch.org
- Backpropagation ≠ Chain Rule – Theory Dishtheorydish.blog