Papers compress a lot into a little notation. Most of it is the same few dozen symbols. Keep this page open next to a paper.
Symbols
| Notation | Read as | Means |
|---|---|---|
| , | "probability of A", "p of x" | Probability of an event, or of a value . Capital for events, small for distributions |
| "p of y given x" | Probability of when is known: conditional | |
| "p of x and y" | Joint probability of both | |
| "x drawn from p" | is a random sample from distribution | |
| "independent and identically distributed" | independent samples from the same : independence | |
| "expectation of f under p" | Probability-weighted average of : expected value | |
| , | "variance" | Average squared distance from the mean: variance |
| "proportional to" | Equal up to a constant that makes things add to 1 | |
| "partition function", "normaliser" | That constant: | |
| "pi theta" | The policy (the model) with weights | |
| , | "reference", "old policy" | The model before RL; the model that generated the batch |
| "behaviour policy" | Whatever actually generated the samples (often the inference engine) | |
| , , | "query", "output" | A prompt and a generated answer; is token of answer |
| , | "y before t" | All tokens before position |
| "length of y" | Number of tokens in the answer | |
| "indicator" | 1 if the condition is true, else 0 | |
| , | "theta hat" | An estimate of or of the advantage, computed from samples |
| "gradient with respect to theta" | Direction in weight space that increases the quantity fastest | |
| , | "stop gradient" | Treat this as a constant when differentiating |
| , | "KL from q to p" | KL divergence; order matters: divergences |
| , | "entropy of p" | Average surprise: entropy |
| "sigmoid" | : sigmoid. Also used for standard deviation; context decides | |
| "normal" | Gaussian with mean , variance : common distributions | |
| , | "Bernoulli", "Beta" | A coin flip; a distribution over probabilities: common distributions |
| "arg max" | The that makes largest (not the largest value itself) | |
| , | "loss", "objective" | What's minimised; what's maximised |
| "clip" | Keep inside that range: PPO | |
| "big O" | Grows at most like; ignore constants |
Formulas you'll meet
Chain rule for a sequence, and the log-likelihood it gives (chain rule):
Bayes' rule (Bayes):
Marginalising a hidden variable (reasoning as a hidden variable):
Maximum likelihood = minimising cross-entropy = minimising forward KL to the data (likelihood):
Monte Carlo estimate of an expectation (Monte Carlo):
Importance sampling (importance sampling in depth):
Policy gradient with a baseline (score function):
GRPO objective, as written in papers (GRPO):
with
where (no ) is answer 's reward. Yes, means two things in one formula; papers do this.
KL-regularised optimum and DPO (tilted distributions):
Unbiased pass@k (Monte Carlo):
Speculative decoding acceptance (rejection sampling):
Evidence lower bound (reasoning as a hidden variable, diffusion LMs):
Habits of notation
- Subscripts on tell you what's random. means the answers come from the current model; means they came from an older one, and an importance ratio must appear somewhere.
- Hats mean estimates. is the true advantage; is what was computed from a group of samples.
- Dropping arguments: usually means . Papers drop the conditioning once it's been stated.
- Log base: in ML papers, is the natural log unless the units are bits.
- Where the sum's normaliser goes ( per answer, or one for the batch) is a real design choice, not a typo: GRPO fixes.
- "Unbiased" always means unbiased for something. Check whether that's a value or a gradient: Monte Carlo.