Aloygrad
Minimal reverse-mode autodiff engine written from first principles to understand how gradients and neural networks really work.
Machine-learning foundations · Jan 2026 · Experiment
Overview
Minimal reverse-mode automatic differentiation engine built to understand differentiable programming and neural networks from first principles, giving engineers full control over how gradients work.
Decisions
Small enough to trace
The implementation stays small on purpose; it is for understanding, not for competing with production tensor libraries.
Build from scalar operations
Each value records its dependencies, so backpropagation walks the graph and applies the chain rule one operation at a time.
Stack
Python, Calculus, Linear Algebra
Next project
Pori