
Differentiation on Computational Graphs
Alan Edelman and Steven G. Johnson continue MIT's 18.S096, Matrix Calculus for Machine Learning and Beyond, with a session on representing computations as graphs: nodes standing for intermediate values connected by edges representing functions. They show how propagating derivatives from inputs to outputs through such a graph produces forward-mode automatic differentiation, while propagating from outputs back to inputs produces reverse mode, the technique underlying backpropagation that the course revisits in lecture 8. The segment builds on the chain rule developed earlier in the course and frames it in the general graph language used throughout modern automatic differentiation software. Delivered as part of MIT's IAP 2023 offering, the talk is aimed at students who already have the basics of matrix calculus and are moving toward the computational machinery used in machine learning systems. Expect blackboard-style derivation and worked examples rather than slides.