Zooming In
Take a curve. Pick a point on it. Now zoom in. Zoom more. Eventually, the curve looks like a straight line — its tangent line. The slope of that tangent is the derivative at that point.
Formally: . The "rise over run" as the run shrinks to nothing.
Why It's the Most Useful Quantity in AI
Loss landscapes are curves (well, surfaces in many dimensions, but locally curves along any direction). At a given point in weight space, the derivative of the loss with respect to a weight tells you: "how much will the loss change if I nudge this weight a tiny bit?"
That's the steering wheel of training. Without it, you'd be wandering randomly. With it, you can confidently take the smallest, most useful step.
Common Derivative Shapes
| Function | Derivative |
|---|---|
| (constant) | |
| (yes, itself) | |
You don't need to memorize this — autograd does the work. But knowing the shape helps you sanity-check unexpected results.