Topic: math

Reading: 14 min, plus 4 in closed details. Which mathematics each part of machine learning uses and which child page owns it, one tiny model's training step with every number, the objects that wear several hats, and how to read an equation in a paper. Data as of October 2026.

The idea in one screen

One training step of one model uses almost all of the mathematics of machine learning, each area for one move: linear algebra scores the input, probability turns the scores into a bet and prices it, information theory says what the price means, calculus finds the downhill direction, optimisation decides how far to step, and statistics asks, from outside the loop, whether the model really got better. Floating point sits under every move, and variational inference is where the areas meet.

The running example every child page uses

A language model with a three-word vocabulary, cat, dog and sat, has read "the cat"; the right next word is sat. The context is the vector x=(2,1)x = (2, 1) and the model is one weight matrix WW with one row per word: cat (1,0)(1, 0), dog (0,1)(0, 1), sat (1,−2)(1, -2). It scores the words z=Wx=(2,1,0)z = Wx = (2, 1, 0), turns the scores into the bet p=(0.665,0.245,0.090)p = (0.665, 0.245, 0.090), and so bets on cat and gives the truth only 9%. A real language model does the same with a vocabulary of about 100,000 tokens and thousands of numbers per word. Every child page works its examples on this model (or on the two-layer version in the Gradient lab), so a number met on one page can be checked on another.

Fig. 1 plays one training step of it, forward along the front row and backward along the row behind it, and pins each child page's concept where it acts. Every number is the tiny model's own, computed on this page; each step links to the section that owns it.

  1. Input and weights (linear algebra). The context "the cat" is the vector x=(2,1)x = (2, 1); the whole model is one weight matrix WW, the glass plate, with one row per word. Linear algebra, section 1
  2. Score (linear algebra). z=Wx=(2,1,0)z = Wx = (2, 1, 0): one dot product per row, large when a word's row points where xx points. Linear algebra, section 3
  3. Bet (probability). Softmax turns the scores into the bet p=(0.665,0.245,0.090)p = (0.665, 0.245, 0.090): most on cat, 9% on sat, the truth. Probability, sections 6 and 7
  4. Pay (information theory). The loss is the surprise at the truth, L=−ln⁡0.090=2.408L = -\ln 0.090 = 2.408 nats =3.473= 3.473 bits, above the uniform guess's ln⁡3=1.099\ln 3 = 1.099 (the flat plate). Information theory, sections 1 and 3
  5. Gradient on the scores (calculus). The backward pass starts at the loss and runs along the back row: ∇zL=p−y=(0.665,0.245,−0.910)\nabla_z L = p - y = (0.665, 0.245, -0.910), prediction minus target. Calculus and optimisation, section 2
  6. Gradient on the weights (matrix calculus). ∇WL=(p−y)x⊤\nabla_W L = (p - y)\,x^\top, the bar field behind the plate: shaped like WW, of rank 1, fed by the gradient arriving and the input the forward pass kept. Matrix calculus and backprop, section 5
  7. Step (optimisation). W←W−0.1∇WLW \leftarrow W - 0.1\,\nabla_W L, then the forward pass again: sat's probability rises from 0.090 to 0.170 and the loss falls to 1.773. The learning rate stays under the local limit 2/λmax⁡=2/1.855=1.082/\lambda_{\max} = 2/1.855 = 1.08. Calculus and optimisation, section 4
  8. Was it real? (statistics). The training sentence's loss fell by construction; only the average change on held-out sentences, with its error bar, says the model improved. With a spread of 0.5 nats per sentence and 100 sentences, a 0.1-nat gain has a 95% error bar of ±1.96×0.5/100=±0.098\pm 1.96 \times 0.5/\sqrt{100} = \pm 0.098: it only just clears zero. Statistics, sections 5 and 7
  9. Under every box (numerical computing). Every number above is a float: eze^{z} passes the largest float32 at z=88.72z = 88.72, so a real softmax subtracts the largest score first. Where all the areas meet, in a model with a hidden cause, is the ELBO. Numerical computing, section 7; Variational inference, section 3

You need: nothing; this is the entry page, and each child page says what it assumes.

New terms

Logits: raw scores, one per word, before softmax turns them into probabilities.
Loss (negative log-likelihood): −ln⁡py-\ln p_y, minus the log of the probability given to what happened.
Nat and bit: units of the loss with ln⁡\ln and log2⁡\log_2; 1 nat = 1.443 bits. Training code prints nats.
Gradient: one slope of the loss per number in the model, the same shape as what it is the gradient of.
Curvature: how fast the slope changes; with many weights, the Hessian matrix.
Standard error: the uncertainty of an average, s/ns/\sqrt{n}.

1. The map: which maths each part of ML uses

Read a row as "when you work on this part of a model, this is the maths, this is the one object to know, and this page owns it". The last column is where the maths is applied in depth outside this topic.

Part of MLMathsThe object to knowOwner (section)Applied on
Embeddings, layers, attention scoreslinear algebrathe dot product, the matrix product and the shape of every tensorLinear algebra (1, 3, 4, 13)The transformer from zero
Fine-tuning and compressing weights (LoRA, MLA, GaLore)linear algebrarank and the SVD: what is really low rankLinear algebra (10, 12)PEFT
The output layer and its lossprobabilitysoftmax as a distribution; choose the target's distribution and the loss is its negative log-likelihoodProbability (6, 7)Loss functions
Calibration of a model's probabilitiesprobabilityproper scoring rulesProbability (8)Evaluation metrics
Sampling and temperatureprobability, informationtemperature, one dial on the entropy of the betProbability (6, 10); Information theory (5)Sampling and Decoding
Reading a loss curve or an evaluation in nats, perplexity, bits per byteinformation theorycross-entropy = entropy + KL: a floor you cannot remove, plus waste you canInformation theory (3, 6, 7)Pretraining
Contrastive and retrieval modelsinformation theory, linear algebraInfoNCE and its ln⁡N\ln N ceiling; cosine similarityInformation theory (9); Linear algebra (1)Contrastive and self-supervised learning
KL penalties in RL fine-tuning, DPO, distillationinformation theoryKL and which way round it is takenInformation theory (4, 10)Alignment
The gradient of a loss on the logitscalculusprediction minus target, for every matched loss and outputCalculus and optimisation (2)Loss functions
The backward pass, its cost and its memorymatrix calculusthe chain rule as vector-Jacobian products; about twice the forward FLOPs; stored activationsMatrix calculus and backprop (3, 5, 8, 9)Distributed Training
The optimiser step and the learning rateoptimisationcurvature: the 2/λmax⁡2/\lambda_{\max} limit and the condition numberCalculus and optimisation (4, 5, 10, 11)Optimisers and learning-rate schedulers
Low precision, NaNs, loss scaling, non-determinismnumerical computingthe float format: range, machine epsilon, rounding, and which operations amplify themNumerical computing (1 to 3, 7, 9)Quantization and Precision
Evaluation, A/B tests, variance across seedsstatisticsthe standard error s/ns/\sqrt{n} and the paired comparisonStatistics (5, 7, 8)Eval statistics
VAEs, diffusion and flow modelsvariational inferencethe ELBO, and the derivations D1 to D8 the generative pages citeVariational inference (3, 6, 7)Topic: generative-and-multimodal

The two letters that change meaning between pages: this page and most children write pp for the model and qq or yy for the target; Information theory uses the textbook convention, pp the truth and qq the model, and says so at its top. HH is a Hessian on the optimisation pages and an entropy on the information page; the Notation decoder lists such clashes.

2. One training step, with every number

Fig. 1's moves as one table: each with the one number that matters, what that number teaches, and where it is explained. Every value is recomputed by the page's scripts (src/read/recompute.py), and the Gradient lab recomputes them live when you change the model.

MoveThe tiny model's numberWhat it teachesExplained on
Scorez=Wx=(2,1,0)z = Wx = (2, 1, 0); cosine of each row with xx: cat 0.894, dog 0.447, sat 0a score is a dot product: large when the word's row points where the input pointsLinear algebra, section 1
Betp=(0.665,0.245,0.090)p = (0.665, 0.245, 0.090); adding 10 to every score changes nothingsoftmax only sees differences between scores; temperature rescales themProbability, section 6
PayL=−ln⁡0.090=2.408L = -\ln 0.090 = 2.408 nats =3.473= 3.473 bits; a uniform guess costs ln⁡3=1.099\ln 3 = 1.099the loss is a surprise in nats; this model did worse than knowing nothing. With a real vocabulary of 50,000 tokens the uniform guess, and so the loss at initialisation, is ln⁡50000=10.82\ln 50000 = 10.82 natsProbability, section 7; Information theory, section 1
Gradient∇zL=p−y=(0.665,0.245,−0.910)\nabla_z L = p - y = (0.665, 0.245, -0.910); ∇WL=(p−y)x⊤\nabla_W L = (p - y)\,x^\top, rank 1for a matched loss and output the gradient is prediction minus target; a weight's gradient is an outer productCalculus and optimisation, section 2; Matrix calculus and backprop, section 5
Steplearning rate 0.1: loss 1.773; 0.3: 0.778; 1: 0.011. Local limit 2/λmax⁡=2/1.855=1.082/\lambda_{\max} = 2/1.855 = 1.08a step past 2/λmax⁡2/\lambda_{\max} overshoots and grows; the limit moves as the bet grows confidentCalculus and optimisation, section 4
Was it real?a spread of 0.5 nats per sentence needs about 100 sentences to see a 0.1-nat gain; a 500-question benchmark near 50% has a 95% interval of about ±4.4\pm 4.4 pointsthe loss on the training sentence fell by construction; only the average change on held-out text, with its error bar, says whether the model improvedStatistics, section 5
Under every boxlogits (1000,999,0)(1000, 999, 0): eze^{z} passes the largest float32 at z=88.72z = 88.72, so a naive softmax returns NaNsubtract the largest logit first (log-sum-exp); frameworks fuse softmax and cross-entropy for this reasonNumerical computing, section 7

The step itself is gradient descent, W←W−η∇WLW \leftarrow W - \eta\,\nabla_W L. On this model the new scores are z−η‖x‖2(p−y)z - \eta \lVert x \rVert^2 (p - y) with ‖x‖2=5\lVert x \rVert^2 = 5, so at η=0.1\eta = 0.1 each score moves by half its gradient and sat's probability rises from 0.090 to 0.170. One backward pass did two matrix products ((p−y)x⊤(p - y)\,x^\top for the weights, W⊤(p−y)W^\top (p - y) for the input) against the forward pass's one: the factor of two behind "training costs about 6 FLOPs per parameter per token", derived on Matrix calculus and backprop, section 8.

3. The same object in different hats

Two objects turn up on several child pages under different names. Seeing that each is one thing is the payoff of learning the areas together, and no single child can show it.

Cross-entropy wears four hats

Same scores z=(2,1,0)z = (2, 1, 0) and bet p=(0.665,0.245,0.090)p = (0.665, 0.245, 0.090), but suppose the right word had been cat, the model's favourite. One number, 0.408 nats, read four ways:

Probability: a likelihood

−ln⁡0.665=0.408-\ln 0.665 = 0.408
The negative log-likelihood of cat under a categorical model; minimising its average is maximum likelihood. Probability, section 7

Information: a code length

0.588 bits
The same number divided by ln⁡2\ln 2: cat's codeword length in a code built from the bet. Averaged over real data it is entropy plus KL. Information theory, section 3

Calculus: prediction minus target

(−0.335,0.245,0.090)(-0.335, 0.245, 0.090)
Its gradient on the scores, p−yp - y, adding up to 0. Calculus and optimisation, section 2

Contrastive learning: InfoNCE

ln⁡3−0.408=0.691\ln 3 - 0.408 = 0.691
Read cat as the positive and dog and sat as two negatives with similarities 2, 1 and 0: 0.408 is the InfoNCE loss with N=3N = 3, and it certifies at least 0.691 nats of mutual information by I≥ln⁡N−LI \ge \ln N - L (van den Oord et al. 2018). Information theory, section 9

With the real answer, sat, the loss is 2.408 and the bound ln⁡3−2.408\ln 3 - 2.408 is negative: it certifies nothing. The bound can never exceed ln⁡N\ln N, which is why contrastive models such as CLIP train with huge batches (32,768 pairs; Radford et al. 2021).

Curvature is read three ways

For a yes-or-no prediction with score zz and probability p=σ(z)p = \sigma(z), three quantities from three areas are the same number, p(1−p)p(1 - p): 0.25 at z=0z = 0 (its largest value) and 0.09 at z=ln⁡9=2.197z = \ln 9 = 2.197 (p=0.9p = 0.9). Drag zz in the Gradient lab, panel 4, which computes each one by its own route.

Optimisation: the Hessian

The second derivative of binary cross-entropy in zz is p(1−p)p(1 - p), whatever the label yy. Calculus and optimisation, section 3

Statistics: a variance

A Bernoulli label that is 1 with probability pp has variance p(1−p)p(1 - p). Probability, section 3

Probability: the Fisher information

The score (the slope of the log-likelihood in zz) is y−py - p; its variance, the Fisher information, is p(1−p)p(1 - p). Statistics, section 2

A confident prediction therefore sits in a flat part of the loss. On the tiny model the many-word version holds: the Hessian of the loss in the scores, diag⁡(p)−pp⊤\operatorname{diag}(p) - p\,p^\top, is exactly the covariance matrix of the one-hot draw, with per-word variances pi(1−pi)=(0.223,0.185,0.082)p_i(1 - p_i) = (0.223, 0.185, 0.082) (a simulation of 200,000 draws gives 0.222, 0.185, 0.081), and its largest eigenvalue, times ‖x‖2=5\lVert x \rVert^2 = 5, is section 2's λmax⁡=1.855\lambda_{\max} = 1.855.

Why this matters for natural gradients, and a correction to the old page

For the matched pairs (sigmoid with binary cross-entropy, softmax with cross-entropy, identity with squared error) the curvature in the scores does not depend on the label, so it equals its own average over labels, the Fisher. That is why natural-gradient methods and K-FAC precondition with the Fisher, and why the curvature of TRPO's KL constraint is the Fisher matrix. A correction to the old page: the equality is exact with respect to the scores only. With respect to the weights of a deep network the Hessian gains an extra term (the residual p−yp - y times the curvature of the network itself), so there the Fisher equals the Hessian only approximately; it is exactly the "generalised Gauss-Newton" part of it (Martens 2020, New insights and perspectives on the natural gradient method).

4. Which area to reach for: a diagnosis

When a paper or a training run confuses you, first ask which move of the step it is about. The symptom usually names the area, and the area names one word to look for.

SymptomAreaThe word to look forPage
You cannot see why a loss is that loss and not anotherprobabilitythe distribution: choose it and the loss is decidedProbability, section 7
An evaluation number will not say what it meansinformation theorynats, bits per byte, the entropy floorInformation theory, section 6
A representation has collapsed, or a fine-tune barely moved anythinglinear algebrarankLinear algebra, section 12
A run ran out of memory and you cannot see where it wentcalculusthe backward pass's stored activationsMatrix calculus and backprop, section 9
The loss oscillates and explodes after a learning-rate changeoptimisationcurvature and 2/λmax⁡2/\lambda_{\max}Calculus and optimisation, section 4
A NaN appears, or float16 training stalls with zero gradientsnumerical computingoverflow, underflow and the loss scaleNumerical computing, section 10
A claimed gain might be noisestatisticsthe standard error and a paired testStatistics, section 7
A generative model's objective looks like magicvariational inferencethe ELBO and its gapVariational inference, section 3

5. How to read an equation in a paper

An equation in a paper is a compressed paragraph, and every child page's notation meets in it. Expanding it takes five steps, always in the same order. Here they are on scaled dot-product attention, equation 1 of Attention Is All You Need (Vaswani et al. 2017):

Attention⁡(Q,K,V)=softmax⁡(QK⊤dk)V\operatorname{Attention}(Q, K, V) = \operatorname{softmax}\!\left(\frac{Q K^\top}{\sqrt{d_k}}\right) V
  1. Name every symbol. QQ holds the queries (one row per position, "what should I look at?"), KK the keys ("what I contain"), VV the values ("what I hand over"), dkd_k the length of each query and key row, ⊤\top the transpose, softmax applied to each row separately. If a symbol is not defined near the equation, search the paper for its first use; the Notation decoder lists the conventions papers assume without saying.
  2. Write the shape beside every symbol. With nn queries and mm keys: QQ is n×dkn \times d_k, KK is m×dkm \times d_k, so QK⊤QK^\top is n×mn \times m, one score for every query-key pair; VV is m×dvm \times d_v, so the result is n×dvn \times d_v, one output row per query. If the shapes do not fit, you have misread a symbol.
  3. Read the operations from the inside out, in words. Dot each query with each key (how well they match); divide by dk\sqrt{d_k}; turn each query's row of scores into weights that add up to 1; return, for each query, the weighted average of the value rows.
  4. Plug in tiny numbers. One query q=x=(2,1)q = x = (2, 1), the three keys and values are the rows of the tiny model's WW, dk=2d_k = 2. The raw scores are (2,1,0)(2, 1, 0); divided by 2\sqrt{2} they are (1.414,0.707,0)(1.414, 0.707, 0), and softmax turns them into weights (0.576,0.284,0.140)(0.576, 0.284, 0.140). The output is 0.576(1,0)+0.284(0,1)0.576\,(1, 0) + 0.284\,(0, 1) +0.140(1,−2)+\, 0.140\,(1, -2) =(0.716,0.004)= (0.716, 0.004): mostly cat's row. Without the division the weights would be (0.665,0.245,0.090)(0.665, 0.245, 0.090), sharper.
  5. Ask why each piece is there. Why dk\sqrt{d_k}? The paper's footnote: if a query's and a key's entries are independent with mean 0 and variance 1, their dot product has variance dkd_k. With dk=64d_k = 64 raw scores would typically be about 8 apart, softmax would put nearly all the weight on one key, and its gradients would vanish; dividing by dk\sqrt{d_k} brings the variance back to 1. A term you cannot justify is usually the thing the paper is really about.
The habit
Name, shape, read, plug, ask. Step 4 is also how you test your own derivations: if tiny numbers do not come out right, the algebra is wrong. The attention block itself, with every shape, is owned by The transformer from zero; its backward pass on these same numbers is in Matrix calculus and backprop, section 6.

6. The child pages

Each child owns the depth this page only maps. In this order each builds on the ones before: the matrices first, then their derivatives, then probability and statistics, then curvature and optimisation, then information, then what floating point does to all of it, and generative models last because they use everything. Times are each page's own header: core reading, plus optional closed blocks.

Child page, about 45 min, plus 13 in closed details.

Every matrix as rotate, stretch, rotate: products and shapes, rank, norms, least squares, eigenvalues, the SVD, conditioning, and what is really low rank in GPT-2's weights and in real LoRA updates.

Child page, about 32 min, plus 22 in closed details.

The shape of every derivative, the chain rule as Jacobian products, reverse mode, backprop through a two-layer network by hand, the layer gradients, what the backward pass costs and keeps, and gradient checking.

Child page, about 32 min, plus 16 in closed details.

A model's output as a distribution: scored (losses as likelihoods, proper scoring, calibration on three real models), reshaped (temperature, priors, Bayes), averaged (LLN and CLT) and sampled (Gumbel-max, reparameterisation).

Child page, about 33 min, plus 6 in closed details.

How much a number computed from data would move on another sample: estimators, maximum likelihood, intervals, the bootstrap, tests and power, Bayesian estimation, regression, cross-validation (bias and variance for model choice and double descent are on Regularisation).

Child page, about 32 min, plus 11 in closed details.

Taylor models as the thread through loss gradients, Hessians, gradient descent and its step limit, Newton and quasi-Newton, convexity, Lagrange and KKT, stochastic gradients and the edge of stability.

Child page, about 38 min, plus 8 in closed details.

What a log-loss number means: entropy and codes, cross-entropy and KL, temperature, perplexity and bits per byte measured on real text, mutual information, InfoNCE, KL penalties and estimators. Uses the textbook letters (pp the truth, qq the model).

Child page, about 40 min, plus 9 in closed details.

A number bit by bit and what that does to training: IEEE 754, epsilon and rounding, the formats from float64 to FP8, cancellation, summation error and determinism, the stable softmax, mixed precision and loss scaling, NaN hunting.

Child page, about 23 min, plus 18 in closed details.

The evidence lower bound derived three ways with its gap drawn, mean-field and amortised inference, gradients through samples, then the closed derivations D1 to D8 that the VAE, diffusion and flow-matching pages cite.

Practice on the tiny model across pages: the Gradient lab (losses, backprop, curvature, overflow, eight gradient bugs). Symbols and conventions in papers: the Notation decoder. Books, courses and papers: Further reading.

Glossary: every term this page uses, each linked to the page that owns it (reference)

Terms

Vocabulary: the set of tokens a language model can output (3 words here, about 100,000 in real models).
Vector: an ordered list of numbers; its dimension is how many.
Matrix: a table of numbers; its shape is rows by columns.
Dot product: multiply two vectors entry by entry and add; large when they point the same way.
Matrix-vector product: one dot product per row of the matrix.
Weight matrix: the numbers a layer learns.
Logits: raw scores before softmax.
Length (norm): ‖x‖=∑ixi2\lVert x \rVert = \sqrt{\sum_i x_i^2}.
Cosine similarity: the dot product divided by both lengths; 1 aligned, 0 at right angles.
Transpose: rows and columns swapped, W⊤W^\top.
Batch: several inputs processed together as one matrix.
Outer product: a column times a row, giving a rank-1 matrix.
Rank: how many independent directions a matrix really uses.
Singular value decomposition (SVD): any matrix as a sum of rank-1 layers, largest first.
LoRA: fine-tuning by learning only a low-rank change BABA.
Probability distribution: non-negative numbers, one per outcome, adding up to 1.
Categorical distribution: one draw among several outcomes.
Softmax: exponentiate the scores, then divide by their total.
Exponential: eze^z, always positive; e≈2.718e \approx 2.718.
Temperature: divide the scores by TT before softmax; low sharpens, high flattens.
Likelihood: the probability the model gave to what actually happened.
Independent (i.i.d.): knowing one tells nothing about another; identically distributed means drawn from the same distribution.
Negative log-likelihood (NLL): −ln⁡py-\ln p_y, the loss.
Maximum-likelihood estimation (MLE): choose the weights that make the data most probable.
MAP estimation: MLE plus a prior; "loss plus regulariser".
Proper scoring rule: a loss whose expected value is lowest at the true probabilities.
Bernoulli: a yes-or-no outcome; its NLL is binary cross-entropy.
Gaussian: the bell curve; its NLL is squared error.
Surprise: −log⁡p-\log p of an outcome.
Bit and nat: units of surprise with log2⁡\log_2 and ln⁡\ln; 1 nat = 1.443 bits.
Entropy: average surprise; the shortest average code length.
Cross-entropy: average surprise when the data comes from qq and you bet pp; the training loss.
KL divergence: cross-entropy minus entropy; the removable part of the loss; not symmetric.
One-hot: a vector with 1 for the right answer and 0 elsewhere.
Perplexity: elosse^{\text{loss}}; an effective number of choices; tokenizer-dependent.
Bits per byte: total surprise in bits divided by text length in bytes; tokenizer-free.
Derivative: a slope, change in output per tiny change in input.
Partial derivative: the slope along one input with the others fixed.
Gradient: all partial derivatives together; points uphill.
Chain rule: the slope through a chain of steps is the product of their slopes.
Backpropagation: the chain rule run from the loss backwards through every layer.
Jacobian: the table of every output's slope with respect to every input.
Vector-Jacobian product: what each layer computes in backprop, without building its Jacobian.
Gradient descent: W←W−η∇WLW \leftarrow W - \eta \nabla_W L.
Learning rate: the step size η\eta.
Curvature or second derivative: how fast the slope changes.
Hessian: the matrix of second derivatives.
Eigenvalues: here, the curvatures along the Hessian's principal directions.
Condition number: largest over smallest curvature; how lopsided the bowl is.
Newton's method: divide the gradient by the curvature, −H−1g-H^{-1}g.
Adam: a per-weight step size from a moving average of squared gradients.
Convex: bowl-shaped everywhere; any minimum is the global one.
Mean, standard deviation, variance: the average, the typical distance from it, and that distance squared.
Standard error: the uncertainty of a mean, s/ns/\sqrt{n}.
Central limit theorem: averages of many independent measurements are approximately normal.
Paired comparison: compare two models example by example so shared difficulty cancels.
Minibatch gradient: the average gradient over BB examples; noise shrinks like 1/B1/\sqrt{B}.
InfoNCE: cross-entropy over one positive and N−1N - 1 negatives; contrastive learning's loss.
Mutual information: how much knowing one variable tells you about another.
Score (statistics): the slope of the log-likelihood.
Fisher information: the variance of the score; the expected curvature of the NLL.

Symbols

xx, WW, zz: the input vector, the weight matrix, the scores z=Wxz = Wx.
WijW_{ij}, wiw_i: the entry in row ii, column jj; row ii.
∑j=1d\sum_{j=1}^{d}: add up over jj from 1 to dd.
‖x‖\lVert x \rVert: the length of xx.
⊤\top: transpose.
pp, pip_i, yy: the model's probabilities; the probability of word ii; the right answer (an index, or a one-hot vector).
ee, ln⁡\ln, log2⁡\log_2: Euler's number; the natural log; the base-2 log.
∝\propto: proportional to.
LL: the loss.
P(Y|X)P(Y \mid X): the probability of YY given XX.
∂\partial, ∇\nabla: partial derivative; gradient (∇WL\nabla_W L: gradient of LL with respect to WW).
σ(z)\sigma(z): the sigmoid 1/(1+e−z)1/(1 + e^{-z}). (Elsewhere σ\sigma can mean a standard deviation; context decides.)
η\eta, ←\leftarrow: the learning rate; "replace with".
λ\lambda, λmax⁡\lambda_{\max}, κ\kappa: a curvature (eigenvalue), the largest one, the condition number.
HH, gg: the Hessian and the gradient (on the information page, HH is entropy: papers reuse letters).
d‾\bar{d}, ss, nn, SE\mathrm{SE}: a mean, a standard deviation, a sample size, a standard error.
QQ, KK, VV, dkd_k: attention's queries, keys, values and key length.