Calculus and gradients

∂L∂w\frac{\partial \mathcal{L}}{\partial w} Partial derivative

A partial derivative: how one quantity changes when one input changes and the others are held fixed.

In ML papers

∂L∂w\frac{\partial \mathcal{L}}{\partial w} is the partial derivative of L\mathcal{L} with respect to ww: how fast the loss changes as ww changes, with every other variable held fixed. Backpropagation computes these for every weight by the chain rule, ∂L∂w=∂L∂z∂z∂w\frac{\partial \mathcal{L}}{\partial w} = \frac{\partial \mathcal{L}}{\partial z} \frac{\partial z}{\partial w}.

When the bottom is a vector or matrix, the result has its shape: ∂L∂W\frac{\partial \mathcal{L}}{\partial W} is a matrix the same shape as WW.

How to type it

LaTeXShows
\partial∂\partial
\frac{\partial \mathcal{L}}{\partial w}∂L∂w\frac{\partial \mathcal{L}}{\partial w}

A worked example

L=w2b  ⇒  ∂L∂w=2wb=12 at w=3,b=2\mathcal{L} = w^2 b \;\Rightarrow\; \frac{\partial \mathcal{L}}{\partial w} = 2wb = 12 \text{ at } w = 3, b = 2

bb is treated as a constant while differentiating with respect to ww.

Common confusions

Equations that use it

Related

∇θL\nabla_\theta \mathcal{L}Nabla (gradient)dydx\frac{dy}{dx}Derivative (d/dx)ab\frac{a}{b}Fractionδ\deltaDelta (lowercase)

Decode this example →