PROJECT 07 · AUTOMATIC DIFFERENTIATION

Autograd Engine

Updated: May 2026

Built a reverse-mode autodiff engine from scratch to understand computation-graph construction and execution, with emphasis on correctness, scalability, and gradient-system trade-offs.

Problem

ML frameworks hide gradient computation and graph execution. Rebuilding autograd from first principles makes their correctness and systems trade-offs observable.

Technical Highlights

Python · NumPy · Autograd · Backpropagation · Performance Analysis

  • ~1e-10 gradient error
  • Scales to 10,000+ nodes
  • Iterative DFS avoids recursion limits
← Back to Selected Projects