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: is the -th entry of ; the entry in row , column . A time or step: , . A label: , , name which matrix or which dimension. Parameters: , , say which parameters the function uses. Under an operator, , and say what it acts over.
How to type it
| LaTeX | Shows |
|---|---|
x_i | |
x_{ij} several characters need braces |
A worked example
Papers count from 1 unless they say otherwise; code counts from 0.
Common confusions
- is often the -th example rather than the -th entry; some authors write (Superscript in parentheses) for examples to keep them apart.
Equations that use it
- Scaled dot-product attention
- Softmax
- Cross-entropy loss
- Adam update
- RMSNorm
- The ELBO
- LoRA
- Batch normalization
- Rotary position embedding (RoPE)
- Multi-head attention
- PPO clipped objective
- DPO loss
- Policy gradient (REINFORCE)
- Bellman equation
- Q-learning update
- InfoNCE contrastive loss
- Diffusion forward process
- DDPM simplified loss
- GAN minimax objective
- AdamW
- Cosine learning-rate schedule
- Perplexity
- Singular value decomposition (SVD)
- Principal component analysis (PCA)