Calculus and gradients

∇θL\nabla_\theta \mathcal{L} Nabla (gradient)

The gradient: the vector of partial derivatives. ∇_θ L is how the loss changes with each parameter.

In ML papers

∇θL\nabla_\theta \mathcal{L} is the gradient of the loss with respect to the parameters: a vector (or array) with one entry per parameter, each the partial derivative ∂L∂θi\frac{\partial \mathcal{L}}{\partial \theta_i}. It points in the direction that increases the loss fastest, so gradient descent steps the other way: θ←θ−η∇θL\theta \leftarrow \theta - \eta \nabla_\theta \mathcal{L}.

The subscript says which variables to differentiate with respect to; the gradient has the same shape as them.

Other meanings, by context

How to type it

LaTeXShows
\nabla∇\nabla
\nabla_\theta with respect to θ∇θ\nabla_\theta

A worked example

L=θ12+3θ2  ⇒  ∇θL=(2θ1,3)=(2,3) at θ=(1,0)\mathcal{L} = \theta_1^2 + 3\theta_2 \;\Rightarrow\; \nabla_\theta \mathcal{L} = (2\theta_1, 3) = (2, 3) \text{ at } \theta = (1, 0)

One partial derivative per parameter, collected into a vector.

Common confusions

Equations that use it

Related

∂L∂w\frac{\partial \mathcal{L}}{\partial w}Partial derivativepθ(x)p_\theta(x)Thetadydx\frac{dy}{dx}Derivative (d/dx)θ←θ−η∇θL\theta \leftarrow \theta - \eta \nabla_\theta \mathcal{L}Assignment arrow

Decode this example →