Glossary

This is a lookup page. Weekly notes also define the terms where their calculations first need them. Start with nn-llm-start-here to see the objects working together.

TermMeaning in this courseCalculation
Token; tokenizerA unit of text; the rule that splits text into units and assigns their integer labels. A token need not be a whole word.1, 7
VocabularyThe finite set of allowed token labels.1
Corpus; datasetA collection of observed text; more generally a collection of observations.1
ContextThe tokens supplied before the token to be predicted.1
Parameter; weight; biasAn adjustable number; a coefficient multiplying an input; an additive offset. Parameters are fixed during generation.3
Score; logitA real number assigned to an alternative before normalization. It need not lie between zero and one.1
SoftmaxExponentiate a list of scores and divide each exponential by their sum. The result is a probability vector.1
LikelihoodProbability assigned to the observed data, viewed as a function of parameters.1
Loss; cross-entropyA prediction error criterion; here usually the average negative logarithm of the probability assigned to observed targets.1
Training; gradient descentAdjust parameters using observed examples; one method moves against the derivative of the loss.3, 10
Test data; generalizationObservations kept out of fitting; prediction performance on fresh observations.1
Neuron; activationAn affine combination of inputs followed by a specified function; that function, often nonlinear.3
Layer; hidden representationA stage of the calculation; the intermediate vector it computes before the final output.3
BackpropagationApply the chain rule from output to input, reusing intermediate derivatives to compute all parameter gradients.3
EmbeddingA learned vector assigned to each token.7
Query; key; valueThe vector used to form comparisons; the vector it is compared with; the vector averaged using the resulting weights.6, 8
Attention headOne set of query, key and value projections and the weighted mixing they define.8
Causal maskA restriction that prevents a position from using later positions.8
Residual connectionAdd a sublayer’s output to its input. The added vector is not assumed small.8
Feed-forward sublayerA learned nonlinear map acting on each position separately, with shared parameters across positions.8
NormalizationIn this decoder, rescale each position’s feature vector using its component mean and variance, then apply learned scales and offsets.8
Decoder; autoregressiveA model that predicts the next token from preceding tokens; generation repeats this operation, appending each selected token.8, 10
Batch; epochA group of examples used for one gradient estimate; one pass through the training dataset.10
Capacity; loadFeasibility or retrieval limit under a specified criterion; typically the number of random patterns divided by the number of components.3–5
RecurrenceReuse a state-update map over internal iterations. Weight sharing distinguishes it from an arbitrary sequence of layers.9
Decoding temperatureA positive number dividing output scores before sampling. It changes generation probabilities without retraining.10
Diffusion scoreThe vector , a derivative of a density. It is not a vocabulary logit.14

Symbols, including the different uses of , and , are recorded in nn-llm-conventions.