Appendix C on the web

Glossary

552 terms, A to Z. Search runs in this browser, and every entry links back to the sections where the term is recorded.

What is real here. The entries come from registry/glossary.json, copied into src/data/glossary.json at export time. The section lists come from the loaded chapters; in this fixture build only chapter 1 contributes occurrences.

Search runs in this browser. No query is sent anywhere.

552 entries shown.

A

ablation

Removing one component of a system to measure what that component contributes.

Example: Retraining without dropout to see whether dropout helped.

Sections:

abstraction barrier

The boundary that separates the users of an abstraction from its implementation.

Example: Code outside a queue never reads its internal array.

Sections:

accumulation

Adding the contributions that arrive at a node from more than one reader.

Sections:

actor-critic

A policy-gradient method that learns a policy and a value function together, using the value function to judge actions.

Sections:

Adam

An optimiser that adapts a separate step size for each parameter using running averages of gradients and squared gradients.

Example: AdamW is the usual default for transformer training.

Sections:

adjoint

The derivative of the seeded output with respect to a node, accumulated from every path that reaches the node.

Sections:

alignment

The problem of making a system pursue the outcomes its designers intended, including under distribution shift and scale.

Example: A model that follows a specification but violates its intent.

Sections:

attention

A weighted average over a set of items, where the weights depend on how relevant each item is to the current query.

Example: A decoder focusing on the words of a source sentence.

Sections:

attention weight

A non-negative number that says what fraction of one value enters an output, with the weights for one output summing to one.

Sections:

automatic differentiation

Computing exact derivatives of a program by applying differentiation rules to each operation.

Example: Reverse-mode autodiff on a neural network's forward pass.

Sections:

B

batch normalisation

Normalising a layer's activations across the batch, then applying a learned scale and shift.

Example: Subtracting the batch mean and dividing by the batch standard deviation.

Sections:

Bayes' rule

A formula that turns a conditional probability around using the prior and the evidence.

Formal definition: P(A|B) = P(B|A) P(A) / P(B)

Example: Updating a disease belief after a test result.

Sections:

Bellman equation

A recursive equation expressing a value in terms of the immediate reward and the next state's value.

Formal definition: V(s) = E[r + gamma V(s')]

Example: The value of a state equals the reward now plus the discounted value of where you land.

Sections:

big-O

An upper bound on growth, up to a constant factor, for large inputs.

Example: 3n^2 + 5n is O(n^2).

Sections:

bootstrap

Resampling the observed data with replacement to estimate the variability of a statistic.

Example: A thousand resampled means give a standard error.

Sections:

C

cache

A small, fast memory that holds recently used data close to the processor.

Example: A 32 KB level-one cache holding the current array block.

Sections: no section recorded yet

cancellation

Losing precision when subtracting two nearly equal numbers.

Example: 1.0000001 minus 1.0000000 leaves only the uncertain digits.

Sections: no section recorded yet

cardinality

The number of elements in a set, or the size of an infinite set under a matching rule.

Example: The set of digits has cardinality ten.

Sections: no section recorded yet

catastrophic cancellation

Subtracting two nearly equal numbers that already carry error, so that the earlier error arrives in the answer at full size.

Sections:

Cauchy–Schwarz inequality

The statement that the size of the dot product of two lists never exceeds the product of their norms.

Sections:

central limit theorem

The sum of many independent, similarly sized random variables is approximately Gaussian.

Example: The distribution of sample means becomes bell-shaped.

Sections:

channel capacity

The maximum rate at which information can be sent reliably through a noisy channel.

Example: A binary symmetric channel with error rate 0.1 has capacity below one bit per use.

Sections:

Cholesky factorisation

Writing a positive-definite matrix as a lower-triangular matrix times its transpose.

Formal definition: A = L L^T

Example: The matrix [[4,2],[2,5]] factors with L = [[2,0],[1,2]].

Sections: no section recorded yet

column space

The set of all combinations of the columns of a table, which is the set of outputs it can produce.

Sections:

comparison tree

A binary tree whose nodes are the comparisons a sorting procedure makes and whose leaves are the orders it can output.

Sections:

concentration inequality

A bound on the probability of a large deviation, computed from a few summary facts about a random variable.

Sections:

confidence interval

A procedure that produces an interval which contains the true value in a stated long-run fraction of samples.

Example: A 95 percent interval computed by the same rule in repeated samples.

Sections:

continuity

A function is continuous at a point when small changes in the input cause small changes in the output.

Example: A curve you can draw without lifting the pen.

Sections: no section recorded yet

continuous random variable

A random variable whose possible values you obtain by measuring, so between any two values sit more values.

Sections:

contradiction

A proof that assumes the claim is false and derives an impossibility.

Example: Assuming the square root of 2 is a fraction in lowest terms forces both numerator and denominator to be even.

Sections:

counterexample

One case that makes a universal claim false.

Example: The number 2 is a counterexample to the claim that every prime is odd.

Sections:

counting sort

A sorting procedure that counts how many times each value occurs and writes the values out in order of their counts, without comparing two keys.

Sections:

covariance

A measure of how two random variables move together.

Formal definition: Cov(X,Y) = E[(X - E[X])(Y - E[Y])]

Example: Height and weight tend to have positive covariance.

Sections:

covariance matrix

A square table whose diagonal holds each measurement's variance and whose off-diagonal entries hold the covariances between pairs.

Sections:

Cramer-Rao bound

A lower bound on the variance of any unbiased estimator.

Example: No unbiased estimator beats the inverse Fisher information.

Sections: no section recorded yet

cross-entropy

The average surprise of a model's predictions, measured in bits or nats per token.

Sections:

cross-validation

Splitting the data into folds, training on some and testing on the rest, and rotating which fold is held out.

Example: Five-fold cross-validation reports the average error over five held-out folds.

Sections:

D

data abstraction

Building a compound value behind a small set of operations, so users never depend on how it is stored.

Example: A queue with put and get, regardless of whether it uses an array or a linked list.

Sections: no section recorded yet

data structure

A way of holding a collection of values in a program, together with the operations that read and change it.

Sections:

dataset

A collection of examples used for learning or evaluation.

Example: Sixty thousand labelled digit images.

Sections:

degradation problem

The finding that a deeper plain network can end with a higher training error than a shallower one.

Sections:

delegate

Whoever receives a smaller instance of the same problem together with the same promise, and whose workings the caller does not inspect.

Sections:

descent direction

A direction whose inner product with the gradient is negative, so a small enough step along it lowers the loss.

Sections:

determinant

A number that records how a matrix scales volume and whether it is invertible.

Example: A 2-by-2 determinant is the signed area scale factor.

Sections:

dictionary

A structure that maps a key to a value, so a stored answer can be found from the input it belongs to.

Sections:

diffusion model

A generative model that learns to reverse a gradual noising process.

Example: Starting from noise and denoising step by step into an image.

Sections:

direction

A chosen list of rates, one per input, that says which way the inputs move.

Sections:

discrete random variable

A random variable whose possible values you obtain by counting, so they can be listed one by one.

Sections:

distance metric

A rule that assigns a non-negative distance to each pair of points, with symmetry and the triangle inequality.

Example: Euclidean distance between two feature vectors.

Sections:

divide and conquer

Solving a problem by splitting it, solving the parts, and combining the answers.

Example: Merge sort splits the list in half, sorts each half, then merges.

Sections:

E

embedding

A learned vector that represents a discrete object such as a word or a token.

Example: A 768-dimensional vector for the token cat.

Sections:

entropy

The average surprise of a random variable, or the shortest average code length for its outcomes.

Formal definition: H(X) = -sum_x p(x) log p(x)

Example: A fair coin has one bit of entropy.

Sections:

error

The fraction or count of predictions that are wrong on a set of examples.

Example: Three wrong answers out of fifty give an error of 0.06.

Sections:

error curve

The graph of selection-set error against a tuning parameter such as k.

Sections:

estimator

A rule that computes a guess about a population quantity from a sample.

Example: The sample mean as an estimate of the population mean.

Sections:

evidence lower bound

A tractable lower bound on the log likelihood of a latent-variable model.

Formal definition: log p(x) >= E_q[log p(x,z) - log q(z)]

Example: The training objective of a variational autoencoder.

Sections:

example

One item in a dataset, usually a set of features together with a label.

Example: One 28-by-28 image of a handwritten digit.

Sections:

expectation

The probability-weighted average of a random variable.

Formal definition: E[X] = sum_x x P(X = x)

Example: The expected number of heads in ten fair flips is five.

Sections:

experiment

A procedure that produces a result and can be repeated under recorded conditions.

Example: Training the same model with five different random seeds.

Sections:

exponent field

The eight bits that store the scale of the number, read as an unsigned integer with an offset.

Sections:

F

finite difference

An estimate of a derivative obtained by dividing a change in the function's value by a small but nonzero change in its input.

Sections:

first-class

A status held by elements that may be named by a variable, passed as an argument, returned as a result, and stored inside a data structure.

Sections:

Fisher information

How sharply the likelihood changes with the parameter, and therefore how much one observation can tell you.

Example: A narrow likelihood gives more information than a flat one.

Sections:

flow matching

A generative method that learns a velocity field transporting a simple distribution to the data distribution.

Example: Learning straight paths from noise to data.

Sections: no section recorded yet

forward mode

Automatic differentiation that carries one input direction forward beside the program as it runs.

Sections:

forward process

The fixed sequence of small random noising steps that turns a picture into noise.

Sections:

G

Gaussian distribution

The bell-shaped distribution defined by a mean and a variance.

Formal definition: p(x) = (1 / sqrt(2 pi sigma^2)) exp(-(x - mu)^2 / (2 sigma^2))

Example: Heights in a population.

Sections: no section recorded yet

Gaussian elimination

A systematic row operation procedure that turns a linear system into an equivalent triangular one.

Example: Using row swaps and subtractions to solve three equations in three unknowns.

Sections:

generalised linear model

A model with a linear score and a link function that maps it to the mean of a distribution.

Example: Logistic regression and Poisson regression are both GLMs.

Sections:

generative model

A model that represents a probability distribution over data and can sample from it.

Example: A model that produces new images resembling a training set.

Sections:

gradient descent

Repeatedly stepping in the direction opposite the gradient to reduce a function.

Formal definition: x_{t+1} = x_t - eta grad f(x_t)

Example: Walking downhill on a bowl-shaped loss surface.

Sections:

H

He initialisation

A rule that sets the weight variance to 2 divided by the fan-in, compensating for the units a rectified linear unit switches off.

Sections:

Hessian

The matrix of second partial derivatives, describing local curvature.

Example: For a quadratic bowl, the Hessian is constant and positive definite.

Sections: no section recorded yet

higher-order function

A function that takes another function as an argument or returns one as its result.

Example: A sorting function that accepts the comparison it should use.

Sections:

Huffman code

A prefix code built by repeatedly merging the two least frequent symbols.

Example: Assigning short codes to common letters.

Sections:

hypothesis test

A rule that decides between a null hypothesis and an alternative using data and a chosen error rate.

Example: Rejecting a null hypothesis when the p-value is below 0.05.

Sections: no section recorded yet

I

image

The set of outputs a function can produce.

Example: The image of a 2-by-2 matrix is its column space.

Sections:

information content

The surprise of one outcome, measured in bits as the base-two logarithm of one over its probability.

Sections:

initialisation

The rule that sets the starting values of a model's parameters before training.

Example: Drawing weights from a Gaussian scaled by the layer width.

Sections:

inner alignment

The gap between the written objective and the objective a model actually learned.

Sections:

interpretability

The study of explanations for a model's behaviour that a person can check and use.

Example: Attributing a prediction to the input features that most affected it.

Sections:

invariant

A statement that is true before and after every step of a loop or process.

Example: In a loop that adds one item per step, the running total equals the sum of the items seen so far.

Sections: no section recorded yet

iteration

Repeating a block of steps until a condition holds, without the procedure calling itself.

Example: A while loop that multiplies a running product by each integer from 1 to n.

Sections: no section recorded yet

iterative process

A process whose state a fixed number of variables describes completely, together with a fixed rule for updating them and an optional end test.

Sections:

J

Jacobian

The matrix of all first partial derivatives of a vector-valued function.

Example: A 2-by-2 matrix for a map from the plane to the plane.

Sections: no section recorded yet

Jacobian-vector product

The derivative of a function applied to one direction, which is one column of the Jacobian.

Sections:

K

k-nearest neighbours

A predictor that takes a vote or average over the k closest stored examples.

Formal definition: hat y(x) = majority vote of the labels of the k nearest stored examples to x

Example: With k = 3, two neighbours say cat and one says dog, so the prediction is cat.

Sections:

L

label

The answer attached to an example in a supervised learning problem.

Example: The digit 7 written beside an image.

Sections:

lasso

Least squares with a penalty on the absolute size of the coefficients, which can set some to zero.

Example: Selecting three features out of fifty.

Sections:

law of large numbers

The sample average of independent draws approaches the expectation as the sample grows.

Example: A thousand coin flips give a proportion close to one half.

Sections:

least squares

The rule that picks the line whose squared vertical misses add up to the smallest total.

Sections:

limit

The value a sequence or function approaches as its input approaches a point.

Example: The sequence 1, 1/2, 1/3, ... approaches zero.

Sections:

linear map

A function between vector spaces that preserves addition and scalar multiplication.

Formal definition: L(ax + by) = a L(x) + b L(y)

Example: Multiplying every vector by a fixed matrix.

Sections:

linearly separable

Two classes are linearly separable when one straight line puts every item of one class on one side and every item of the other class on the other side.

Sections:

link function

The transformation applied to the mean of the answer so that the transformed mean can be a straight line in the inputs.

Sections:

local fidelity

The accuracy of an explanation near the single input it explains, rather than everywhere.

Sections:

local noise

The chance that a stored row near the query carries an atypical or wrong label.

Sections:

locality

Using data that sits close together in memory, so caches work.

Example: Walking an array in order instead of jumping across it.

Sections: no section recorded yet

log-sum-exp

A numerically stable way to compute the logarithm of a sum of exponentials.

Formal definition: log sum_i exp(z_i) = m + log sum_i exp(z_i - m), with m = max z_i

Example: Subtract the largest score before exponentiating.

Sections: no section recorded yet

logarithmic

Growing like the logarithm of the input, which for base two is the number of halvings needed to bring the input down to one.

Sections:

logistic regression

A linear score passed through the logistic function to produce a probability.

Formal definition: p(y=1|x) = 1 / (1 + exp(-w^T x))

Example: Estimating the chance of a click from two features.

Sections:

loss scaling

Multiplying the loss by a power of two before the backward pass and dividing the gradients back before the update.

Sections:

lower bound

A statement that no procedure of a stated kind can use fewer than a stated amount of work.

Sections:

M

mean squared error

The expected squared difference between an estimate and the true value.

Formal definition: MSE = bias^2 + variance

Example: The average squared error of a fitted curve.

Sections:

measure

A whole number attached to an instance that strictly decreases at every hand-over and never falls below zero, which is what guarantees that the hand-overs stop.

Sections:

memoisation

Caching the result of a function so repeated calls with the same input are free.

Example: A dictionary from input to computed Fibonacci number.

Sections:

mixed precision

Using lower-precision numbers for most operations while keeping a high-precision copy of sensitive values.

Example: Training in 16-bit arithmetic with a 32-bit master copy of the weights.

Sections:

model criticism

Examining where a fitted model fails, on which rows, and whether the failures share a cause.

Sections:

momentum

An update rule that accumulates a velocity in directions that keep pointing the same way.

Example: A ball rolling downhill speeds up in a consistent slope.

Sections:

multi-head attention

Several attention heads run in parallel and concatenated, so different relations can be read at once.

Sections:

multilayer perceptron

A feedforward neural network with one or more hidden layers of units.

Example: An input layer, one hidden layer of 64 units, and an output layer.

Sections: no section recorded yet

mutual information

How much knowing one variable reduces uncertainty about another.

Formal definition: I(X;Y) = H(X) - H(X|Y)

Example: Knowing a word reduces uncertainty about the next word.

Sections:

N

nearest neighbour

The stored example whose features are closest to the input under a chosen distance.

Example: The training image with the smallest Euclidean distance to a new image.

Sections:

neural network

A stack of simple units, each applying a weighted sum and a nonlinearity, composed into a function.

Example: A two-layer network that separates a curved boundary.

Sections: no section recorded yet

no-free-lunch theorem

The theorem that for every learner there exists a task on which it fails, even though another learner succeeds on that task.

Sections:

noise schedule

The list of noise amounts used at the successive steps of the forward process.

Sections:

noisy-channel coding theorem

The result that every rate below capacity is achievable with long blocks and a good code, and no rate above it is.

Sections:

normal equations

The square system whose solution gives the least-squares coefficients, with one equation per column of the data table.

Sections:

O

orthogonal matrix

A square matrix whose columns are orthonormal, so it rotates or reflects without changing lengths.

Sections:

outer alignment

The gap between the objective written down and the outcome the designer actually wants.

Sections:

overdetermined system

A set of equations with more equations than unknowns, so that no exact solution usually exists.

Sections:

P

p-value

The probability, assuming the null hypothesis, of a result at least as extreme as the one observed.

Example: A p-value of 0.03 means three percent of null worlds would look this extreme.

Sections:

partial correctness

The property that a procedure's final results, when it produces any, satisfy what was required of them.

Sections:

perceptron

A single unit that computes a weighted sum and fires when it passes a threshold.

Example: A linear classifier that separates two clouds of points.

Sections:

perplexity

The effective number of equally likely tokens among which a model is choosing, equal to two raised to the cross-entropy in bits.

Sections:

plausible

Of an explanation, accepted by a person as a convincing account, whether or not it is faithful.

Sections:

policy gradient

Estimating the gradient of expected return with respect to policy parameters and ascending it.

Example: Increasing the probability of actions that led to high reward.

Sections:

positive definite

A symmetric matrix whose quadratic form is positive for every nonzero vector.

Formal definition: x^T A x > 0 for all x != 0

Example: The identity matrix is positive definite.

Sections:

postcondition

The clause of a contract that states what is true of the returned value, provided that the procedure terminates.

Sections:

power law

A relationship in which multiplying the input by a fixed factor multiplies the output by a fixed factor.

Sections:

power method

Finding the dominant eigenvector by multiplying a vector by the matrix and rescaling, over and over.

Sections:

precondition

The clause of a contract that states what every caller must establish before the call, which is the caller's obligation.

Sections:

prediction

The value a predictor returns for one input.

Example: The model answers 7 for an image of a seven.

Sections:

predictor

Any procedure that accepts an input and returns a predicted label or value.

Example: A rule that returns the label of the nearest stored example.

Sections:

pretraining

Training a model on a broad body of text before any particular task is named.

Sections:

primal value

The ordinary value a program computes, before any derivative is attached to it.

Sections:

principal component analysis

Projecting data onto the directions of greatest variance, computed from the SVD of the centred data.

Example: The first principal component of a cloud of points is its longest direction.

Sections: no section recorded yet

product rule

The rule that the belief in two events together equals the belief in the first times the belief in the second given the first.

Sections:

provenance

The record of where data, code and results came from and how they were produced.

Example: A log line naming the commit, the seed and the input file.

Sections:

pseudo-alignment

Agreement with the intended objective on the training distribution that does not hold on new inputs.

Sections:

pseudoinverse

The rule that returns the least-squares coefficients, and among ties the shortest coefficient list.

Sections:

Q

Q-learning

A value-based reinforcement learning method that learns action values from experience without a model of the world.

Example: Updating a table of state-action values after each step.

Sections:

quantifier

A phrase such as for all or there exists that states how many objects a claim covers.

Example: For every integer n there exists an integer m larger than n.

Sections:

quantifier prefix

The opening run of quantifiers in a sentence, read from left to right, each choosing after the ones before it.

Sections:

R

random seed

The number that initialises a pseudo-random generator and fixes a run.

Example: Seed 17 reproduces the same shuffle on every machine.

Sections:

random variable

A function that assigns a number to each outcome of an experiment.

Example: The number of heads in ten flips.

Sections:

recurrence

An equation that defines a sequence or a running time in terms of smaller cases.

Example: T(n) = 2 T(n/2) + n.

Sections:

recurrent neural network

A network that processes a sequence one step at a time while carrying a hidden state.

Example: Reading a sentence word by word.

Sections:

recursion

A procedure that calls itself on a smaller version of the same problem.

Example: Factorial(n) = n times Factorial(n-1), with Factorial(0) = 1.

Sections: no section recorded yet

recursion tree

A picture of a recurrence with one node per recursive call, whose level sums add up to the total cost.

Sections:

recursive process

A process that builds a chain of operations to be performed later, expanding until it reaches a case it can answer outright and then contracting as the deferred operations run.

Sections:

resample

One new sample drawn from your data, with replacement, and the same size as the original.

Sections:

reverse mode

Automatic differentiation that walks the operations backwards from one output and accumulates a derivative at every node.

Sections:

reverse process

The learned sequence of steps that removes noise and rebuilds a picture.

Sections:

reward hacking

Satisfying the letter of a written objective in a way that defeats its purpose.

Sections:

ridge point

The number of operations a machine performs per second divided by the number of bytes it can deliver per second.

Sections:

ridge regression

Least squares with a penalty on the squared size of the coefficients.

Example: Shrinking coefficients toward zero without deleting any.

Sections:

rounding error

The difference between a true value and its stored or computed approximation.

Example: Adding 0.1 and 0.2 gives 0.30000000000000004.

Sections: no section recorded yet

S

scaled dot-product attention

Dot-product attention with the scores divided by the square root of the key length before the softmax.

Sections:

scaling law

A regular relationship between model size, data, compute and loss.

Example: Loss falling as a power law in parameter count.

Sections:

seed

The value the backward walk starts from at the output, which selects the combination of outputs being priced.

Sections:

self-supervised learning

Learning in which the supervision signal is generated from the data itself rather than supplied by a person.

Sections:

singular value

One of the non-negative stretch factors in the SVD, equal to the length of the image of a unit right singular vector.

Sections:

singular value decomposition

Writing any matrix as a rotation, a non-negative scaling, and another rotation.

Formal definition: A = U Sigma V^T

Example: A 2-by-2 shear decomposes into two rotations and a stretch.

Sections:

singular vector

One of the perpendicular input or output directions that the SVD rotates onto the axes before and after stretching.

Sections:

soft-thresholding

Shrinking a number toward zero by a fixed amount and leaving it at zero once it would cross.

Sections:

source coding theorem

The result that long blocks from a source can be compressed to about their entropy in bits and no further without loss.

Sections:

sparse autoencoder

A network trained to reconstruct a model's internal activations through a narrow, sparse layer whose active units are candidate features.

Sections:

stochastic gradient descent

Gradient descent using a gradient estimated from a small random batch instead of the whole dataset.

Example: Updating weights after each minibatch of 32 examples.

Sections:

subnormal

A number below the smallest normal one, whose leading digit is zero and whose precision is smaller than the format's.

Sections:

symmetric derivative

The average of the two one-sided slopes, which is what a centred difference returns at a corner.

Sections:

symmetric matrix

A square matrix that equals its own transpose, so its entry in row i and column j equals the entry in row j and column i.

Sections:

T

Taylor approximation

Approximating a function near a point by a polynomial built from its derivatives there.

Formal definition: f(x+h) = f(x) + f'(x)h + f''(x)h^2/2 + ...

Example: Approximating sin(x) by x near zero.

Sections: no section recorded yet

time complexity

How the number of basic steps grows with the input size.

Example: Merge sort takes time proportional to n log n.

Sections:

token

A small unit of text, such as a word piece or a character sequence, that a language model reads.

Example: The word playing split into play and ing.

Sections:

transformer

A network built from attention, small feedforward layers, normalisation and residual connections.

Example: The architecture behind a modern language model.

Sections:

transformer block

One attention sublayer plus one feedforward sublayer, each wrapped in a residual connection and a normalisation.

Sections:

transpose

The same table flipped about its diagonal, so that its columns become rows; multiplying by it takes dot products with the original columns.

Sections:

true risk

The average loss of a predictor over the whole population it will meet.

Formal definition: R(h) = E[ell(h(X), Y)]

Example: The error the model would show on all future images, not only the stored ones.

Sections:

truncation error

The gap between a finite-difference estimate and the exact derivative, caused by using a step that is not zero.

Sections:

U

V

variational autoencoder

A latent-variable model trained by maximizing the evidence lower bound with an amortised encoder.

Example: An encoder that maps an image to a Gaussian code and a decoder that reconstructs it.

Sections:

vector-Jacobian product

The transpose of the Jacobian applied to a seed, which is the derivative of a scalar output with respect to every input.

Sections:

vote

The count of labels among the neighbours, whose largest count decides the prediction.

Sections:

W

X

Xavier initialisation

A rule that sets the weight variance to 2 divided by the sum of fan-in and fan-out.

Sections:

Z