Notation Decoder

Paste an equation from a machine-learning paper, in LaTeX. See it rendered, with every symbol and construct explained in the order you read it.

Q, K, V and a few other letters mean different things in attention, RL and statistics papers.

Try:

L=βˆ’Ex∼p[log⁑qΞΈ(x)]{\htmlClass{nd-1}{\mathcal{L}}} = -{\htmlClass{nd-2}{\mathbb{E}_{x {\htmlClass{nd-3}{\sim}} {\htmlClass{nd-4}{p}}}}}[{\htmlClass{nd-5}{\log}} {\htmlClass{nd-6}{{\htmlClass{nd-4}{q}}_{\htmlClass{nd-7}{\theta}}}}({\htmlClass{nd-8}{x}})]
  1. L\mathcal{L}

    Loss (β„’)

    The loss: the number training tries to make small. Also written L, J(ΞΈ) or β„“.

  2. Ex∼p\mathbb{E}_{x \sim p}

    Expectation

    The expected value: the average of what is inside, weighted by the probabilities in the subscript.

    • the subscript x∼px \sim p says which variable is random and what it is drawn from
  3. ∼\sim

    Distributed as (tilde)

    β€œIs drawn from” or β€œis distributed as”: x ~ p means x is a sample from the distribution p.

  4. pp, qq

    Probability p(x)

    A probability or probability density; p is usually the true or model distribution, q an approximation.

  5. log⁑\log

    Logarithm

    A logarithm, almost always the natural log (base e) in ML papers.

  6. qΞΈq_\theta

    Subscript (index or label)

    A subscript picks an element (xα΅’), a time step (h_t), a named copy (W_q), or the parameters (p_ΞΈ).

    • a subscript ΞΈ\theta names the parameters: the function or distribution is the one with parameters ΞΈ\theta
  7. ΞΈ\theta

    Theta

    The model’s parameters: all of its weights and biases, as one collection.

  8. xx

    Italic letters (variables)

    A plain italic letter is a variable; conventions say what kind (x input, y target, W weights…).

Decoded in your browser: nothing you paste is sent anywhere. Copy a link to share an expression; it travels in the part of the address after #, which browsers do not send to servers.

Famous equations, decoded

Symbols

150 symbols and constructs so far, each with what it means in ML papers, other meanings to watch for, how to type it and a small worked example. All symbols by category β†’

βˆ‡ΞΈL\nabla_\theta \mathcal{L}Nabla (gradient)Ex∼p[f(x)]\mathbb{E}_{x \sim p}[f(x)]ExpectationaβŠ™b\mathbf{a} \odot \mathbf{b}Hadamard (elementwise) productx⊀y\mathbf{x}^\top \mathbf{y}Transposeβˆ₯xβˆ₯2\|\mathbf{x}\|_2Normx∼pdatax \sim p_{\text{data}}Distributed as (tilde)arg⁑max⁑θf(ΞΈ)\arg\max_{\theta} f(\theta)ArgmaxΟƒ(z)\sigma(z)Sigma (lowercase)pΞΈ(x)p_\theta(x)Thetax(i),β€…β€ŠW[l]\mathbf{x}^{(i)},\; W^{[l]}Superscript in parenthesesLβ‰œβˆ’log⁑p(x)\mathcal{L} \triangleq -\log p(x)Defined as (β‰œ)DKL(q βˆ₯ p)D_{\mathrm{KL}}(q \,\|\, p)KL divergence