Bold lowercase (vector)
A bold lowercase letter is a vector: a list of numbers.
In ML papers
The usual convention: bold lowercase = vector, bold uppercase = matrix (Bold uppercase (matrix)), plain italic = a single number (scalar). So is an input vector, a hidden state, a weight vector, and (not bold) one entry of . Greek vectors are bold too: , . Vectors are column vectors unless a paper says otherwise.
Other meanings, by context
- Papers that skip bold. Many papers (including the Transformer paper) use no bold at all; then only the surrounding text tells you which letters are vectors.
How to type it
| LaTeX | Shows |
|---|---|
\mathbf{x} | |
\boldsymbol{x} bold italic, also for Greek | |
\vec{x} arrow style |
A worked example
The vector is bold; its entries are plain.
Common confusions
- (bold, with subscript) is usually the -th vector, such as the -th example; (plain) is the -th number inside .
Equations that use it
- Softmax
- Layer normalization
- RMSNorm
- The ELBO
- Backpropagation through one layer
- Dropout
- Rotary position embedding (RoPE)
- InfoNCE contrastive loss
- Diffusion forward process
- DDPM simplified loss
- VAE reparameterization trick
- GAN minimax objective
- Logistic regression
- Normal equation (linear regression)
- Singular value decomposition (SVD)
- Principal component analysis (PCA)