Notation conventions

x2,  βt,  WQx^2,\; \beta^t,\; W^Q Superscript (power or label)

Usually a power (x² = x·x), but a capital or a word up there is often just a label (W^Q).

In ML papers

A superscript is normally a power: x2=x⋅xx^2 = x \cdot x, β1t\beta_1^t is β1\beta_1 multiplied by itself tt times, exe^{x} is the exponential. On a vector it is usually applied elementwise: g2\mathbf{g}^2 squares each entry.

But a superscript is also used as a label: WQW^Q, WKW^K, WVW^V in the Transformer paper name three different matrices, and words like xtest\mathbf{x}^{\text{test}} are tags. Special superscripts have their own pages: ⊤^\top (Transpose), −1^{-1} (Inverse), ∗^* (Star (optimal)), (i)^{(i)} (Superscript in parentheses).

How to type it

LaTeXShows
x^2x2x^2
x^{10} braces for more than one characterx10x^{10}

A worked example

0.93=0.729,(1,−2,3)2=(1,4,9)0.9^{3} = 0.729, \qquad (1, -2, 3)^2 = (1, 4, 9)

The second is elementwise, as in Adam's gt2g_t^2.

Equations that use it

Related

x⊤y\mathbf{x}^\top \mathbf{y}Transposex(i),  W[l]\mathbf{x}^{(i)},\; W^{[l]}Superscript in parenthesesA−1A^{-1}Inverseθ∗\theta^*Star (optimal)

Decode this example →