Notation conventions

L(θ)\mathcal{L}(\theta) Loss (ℒ)

The loss: the number training tries to make small. Also written L, J(θ) or ℓ.

In ML papers

L\mathcal{L} is the loss (or objective): one number measuring how badly the model with parameters θ\theta does, which training minimizes. A paper may split it into named parts, L=Lrec+βLKL\mathcal{L} = \mathcal{L}_{\text{rec}} + \beta \mathcal{L}_{\text{KL}}. Lowercase ℓ\ell is often the loss on one example, averaged to get L\mathcal{L}.

Other meanings, by context

How to type it

LaTeXShows
\mathcal{L}L\mathcal{L}
\ell often a per-example lossℓ\ell

A worked example

L=12[(2−3)2+(5−4)2]=1\mathcal{L} = \tfrac{1}{2}\left[(2 - 3)^2 + (5 - 4)^2\right] = 1

Mean squared error of predictions (2,5)(2, 5) against targets (3,4)(3, 4).

Equations that use it

Related

X,D,L\mathcal{X}, \mathcal{D}, \mathcal{L}Calligraphic letters∇θL\nabla_\theta \mathcal{L}Nabla (gradient)arg⁡min⁡θL(θ)\arg\min_{\theta} \mathcal{L}(\theta)Argminpθ(x)p_\theta(x)Theta

Decode this example →