LECTURES A GRATIS GLOBAL SERVICE
⌕ SEARCH GRATIS GLOBAL ↗
LECTURES
Forward Automatic Differentiation via Dual Numbers
SOURCE: YOUTUBE · NO TRACKING UNTIL YOU PRESS PLAY · TROUBLE PLAYING? WATCH AT THE SOURCE ↗

Forward Automatic Differentiation via Dual Numbers

36 MIN · EN · STATUS: [ STREAMING ]
RATE THIS
MIT · Matrix Calculus For Machine Learning And Beyond · LECTURE 10

Alan Edelman and Steven G. Johnson continue MIT's 18.S096 Matrix Calculus for Machine Learning and Beyond with a session on forward-mode automatic differentiation. The core idea is dual numbers, a number system that carries both a value and its derivative through a computation simultaneously. Edelman and Johnson show how arithmetic rules extend naturally to these dual numbers so that running a program on them yields derivatives alongside ordinary outputs, with no symbolic differentiation or finite-difference approximation required. The lecture builds a small automatic differentiation system from scratch in a few lines of Julia, demonstrating how this trick underlies much of the machinery used in machine learning frameworks. The session assumes familiarity with earlier matrix calculus material from the course and is aimed at students who want to understand what is actually happening inside automatic differentiation tools rather than treating them as a black box.

At a glance

Lecture facts

Runtime compared with the other 1,171 Mathematics lectures
Runtime36 m
Compared with MathematicsShorter than 88%
This series

Matrix Calculus For Machine Learning And Beyond

Every lecture in order, sized by its length.

  • Earlier lectures
  • This lecture
  • Still to come
Lecture 10 of 177 h 30 m before this · 13 h 54 m in total

More from this course

12 LECTURES
Lecture 1 Part 1: Introduction and Motivation

Lecture 1 Part 1: Introduction and Motivation

MIT · 58 MIN
Derivatives as Linear Operators

Derivatives as Linear Operators

MIT · 48 MIN
Derivatives in Higher Dimensions: Jacobians and Matrix Functions

Derivatives in Higher Dimensions: Jacobians and Matrix Functions

MIT · 74 MIN
Vectorization of Matrix Functions

Vectorization of Matrix Functions

MIT · 30 MIN
Kronecker Products and Jacobians

Kronecker Products and Jacobians

MIT · 53 MIN
Finite-Difference Approximations

Finite-Difference Approximations

MIT · 51 MIN
Gradients and Inner Products in Other Vector Spaces

Gradients and Inner Products in Other Vector Spaces

MIT · 64 MIN
Nonlinear Root Finding, Optimization, and Adjoint Gradient Methods

Nonlinear Root Finding, Optimization, and Adjoint Gradient Methods

MIT · 44 MIN
Derivative of Matrix Determinant and Inverse

Derivative of Matrix Determinant and Inverse

MIT · 28 MIN
Differentiation on Computational Graphs

Differentiation on Computational Graphs

MIT · 33 MIN
Adjoint Differentiation of ODE Solutions

Adjoint Differentiation of ODE Solutions

MIT · 58 MIN
Calculus of Variations and Gradients of Functionals

Calculus of Variations and Gradients of Functionals

MIT · 43 MIN