Notation conventions

xi,  Wq,  pθ,  dmodelx_i,\; W_q,\; p_\theta,\; d_{\text{model}} Subscript (index or label)

A subscript picks an element (xᵢ), a time step (h_t), a named copy (W_q), or the parameters (p_θ).

In ML papers

Subscripts do several jobs, and context tells them apart:

An index: xix_i is the ii-th entry of x\mathbf{x}; WijW_{ij} the entry in row ii, column jj. A time or step: hth_t, θt\theta_t. A label: WqW_q, dkd_k, dmodeld_{\text{model}} name which matrix or which dimension. Parameters: pθp_\theta, qϕq_\phi, fθf_\theta say which parameters the function uses. Under an operator, ∇θ\nabla_\theta, Ex∼p\mathbb{E}_{x \sim p} and max⁡i\max_i say what it acts over.

How to type it

LaTeXShows
x_ixix_i
x_{ij} several characters need bracesxijx_{ij}

A worked example

x=(5,7,9):x2=7\mathbf{x} = (5, 7, 9): \quad x_2 = 7

Papers count from 1 unless they say otherwise; code counts from 0.

Common confusions

Equations that use it

Related

x(i),  W[l]\mathbf{x}^{(i)},\; W^{[l]}Superscript in parenthesesx2,  βt,  WQx^2,\; \beta^t,\; W^QSuperscript (power or label)pθ(x)p_\theta(x)Thetax∈Rd\mathbf{x} \in \mathbb{R}^{d}Bold lowercase (vector)

Decode this example →