
Automatic Differentiation on Computational Graphs
MIT instructors Alan Edelman and Steven G. Johnson continue their matrix calculus course (18.S096, IAP 2023) with a session on automatic differentiation. They show how complicated numerical processes, like those inside neural networks, can be expressed as graphs of elementary computational steps linking inputs to outputs. The lecture contrasts forward-mode and reverse-mode automatic differentiation, tracing how each traverses the graph in opposite directions and why that produces very different algorithms with different computational costs. Edelman and Johnson work through the graph structure on the board, connecting the abstract calculus to the backpropagation methods used in machine learning training. The session builds on earlier matrix calculus material in the course and assumes familiarity with Jacobians and chain-rule mechanics from prior lectures. Sixty five minutes of detailed, board-based derivation aimed at students who already have the linear algebra groundwork.