Glossary

Each term of art used in the course, explained in a sentence, with the module that explains it at length.

Last reviewed 28 October 202671 terms

TermMeaningModule
Activation functionFixed function a unit applies to its weighted sum, such as ReLU or sigmoid, which lets stacked layers model curved relationships.Module 1
AgentSystem that runs a model in a loop of planning, calling tools and observing results until a task is finished.Module 7, in preparation
AttentionTransformer layer in which each token gathers information from itself and earlier tokens, weighted by how well its query matches their keys.Module 4, in preparation
BackpropagationCalculation that works out, in one backward sweep, how much each weight contributed to the error.Module 2, in preparation
Base modelModel after pretraining and before post-training, which continues documents without following instructions.Module 5, in preparation
BenchmarkFixed set of test questions used to compare models, whose scores leak and saturate over time.Module 9, in preparation
BiasExtra number a unit adds to its weighted sum, shifting the threshold at which the unit becomes active.Module 1
BitSingle binary digit, either 0 or 1, with eight bits making one byte.Module 1
Byte-pair encodingProcedure that builds a token vocabulary by repeatedly merging the most frequent pair of adjacent symbols.Module 3, in preparation
Chain of thoughtIntermediate reasoning written out by a model before its answer, which may omit what actually drove the answer.Module 5, in preparation
Chain ruleRule from calculus that lets backpropagation pass blame for an error back through each layer.Module 2, in preparation
ContaminationLeakage of benchmark questions into training data, which inflates test scores.Module 9, in preparation
Context windowMaximum number of tokens a model can take in at once, covering prompt, documents, conversation and answer.Module 4, in preparation
Cross-entropyStandard loss for probability outputs, which charges a small penalty when the correct answer got a high probability and a steep one when it got a low probability.Module 2, in preparation
DeployerUnder the EU AI Act, a person or body using an AI system under its authority, other than in a personal non-professional activity (Article 3(4)); in industry usage, the business that builds a product on a model and controls its system prompt, tools and data access.Module 7, in preparation
Diffusion modelGenerator that learns to remove noise from images and creates new ones by denoising random noise step by step.Module 8, in preparation
DistillationTraining a smaller student model to imitate the outputs of a larger teacher model.Module 5, in preparation
DPODirect preference optimisation, a way of training on pairs of preferred and rejected answers without a separate reward model.Module 5, in preparation
EmbeddingVector of numbers representing a token, placed so that tokens used in similar contexts sit close together.Module 3, in preparation
EpochOne complete pass over a training dataset.Module 2, in preparation
ExtractionDeliberate prompting designed to make a model reproduce memorised training data.Module 6, in preparation
FeatureConcept a model represents internally, usually as a pattern of activity spread across many units.Module 9, in preparation
Feed-forward blockSmall network inside each transformer layer that processes each token separately and appears to hold many factual associations.Module 4, in preparation
Fine-tuningFurther training of an existing model on a smaller, targeted dataset.Module 8, in preparation
FLOPOne floating-point operation, meaning one multiplication or addition of numbers with fractional parts, the unit in which training compute is counted.Module 2, in preparation
General-purpose AI modelUnder the EU AI Act, an AI model that displays significant generality and can competently perform a wide range of distinct tasks, and that can be integrated into a variety of downstream systems (Article 3(63)).Module 12, in preparation
GPUChip with thousands of simple arithmetic units, suited to the parallel multiplication that neural networks need.Module 2, in preparation
GradientSlope telling training which way, and how steeply, the loss changes as each weight is nudged.Module 2, in preparation
Gradient descentRepeated nudging of every weight a small step in the direction that reduces the loss.Module 2, in preparation
HallucinationFluent, confident output that is false, such as an invented citation.Module 6, in preparation
InferenceRunning a trained model with frozen weights to answer queries.Module 2, in preparation
InterpretabilityResearch that tries to explain in human terms what a trained network computes.Module 9, in preparation
KV cacheStore of the keys and values of earlier tokens, which spares a model from recomputing them for each new token.Module 4, in preparation
Learning rateSize of each step taken during gradient descent.Module 2, in preparation
LoRAFine-tuning method that freezes the original weights and trains small add-on matrices.Module 8, in preparation
Loss functionMeasure that turns a model’s error into a single number that training tries to reduce.Module 2, in preparation
MatrixGrid of numbers used to turn one list of numbers into another, the form in which a layer’s weights are stored.Module 1
MemorisationCapacity of a model to reproduce a training passage verbatim or nearly so.Module 6, in preparation
Mixture of expertsDesign in which a router sends each token through a few of many parallel feed-forward blocks.Module 5, in preparation
Open-weight modelModel whose parameters can be downloaded, with or without its training code or data.Module 8, in preparation
OverfittingFitting the quirks of training data so closely that performance on new data suffers.Module 2, in preparation
ParameterOne learned number in a model, also called a weight.Module 1
Power lawRelationship in which each tenfold increase in one quantity changes another by about the same proportion.Module 5, in preparation
PretrainingMain training phase, in which a model learns to predict the next token across a very large body of text.Module 5, in preparation
Prompt injectionText that a model treats as an instruction against its deployer’s intentions.Module 7, in preparation
QuantisationStorage of each weight with fewer bits, which shrinks a model at some cost in accuracy.Module 1
RAGRetrieval-augmented generation, in which a system fetches relevant passages and places them in the model’s input.Module 7, in preparation
Reinforcement learningTraining by trial and reward, in which a model produces an answer, receives a score and has its weights nudged towards what scored well.Module 5, in preparation
Residual streamRunning vector for each token to which every transformer block adds its output.Module 4, in preparation
Reward hackingFinding answers that score well with a reward signal without being better answers.Module 5, in preparation
Reward modelSeparate model trained to predict which answers people prefer, used to steer an assistant during RLHF.Module 5, in preparation
RLHFReinforcement learning from human feedback, which trains an assistant against a reward model learned from human rankings.Module 5, in preparation
RouterComponent of a mixture-of-experts model that picks which experts handle each token.Module 5, in preparation
Scientific notationWay of writing very large numbers, in which 1025 means 1 followed by 25 zeros.Module 1
ScoreRaw number a model gives each token in its vocabulary before the softmax turns the scores into percentages.Module 6, in preparation
SoftmaxFunction that turns a list of scores into percentages that add up to 100.Module 4, in preparation
Sparse autoencoderSecond network that breaks a model’s internal activity into many rarely active features that are easier to interpret.Module 9, in preparation
SuperpositionArrangement in which a network represents more concepts than it has units by letting concepts share units.Module 9, in preparation
Supervised fine-tuningFirst stage of post-training, in which a model is trained on example prompts paired with good responses.Module 5, in preparation
System promptInstructions written by the deployer and placed before the conversation.Module 7, in preparation
TemperatureSetting that sharpens or flattens the probabilities before a token is drawn.Module 6, in preparation
TokenFragment of text, such as a word or part of a word, mapped to an integer in a fixed vocabulary.Module 3, in preparation
Top-p samplingDrawing only from the smallest group of tokens whose probabilities reach a chosen share.Module 6, in preparation
Training computeTotal operations used to train a model, roughly six times the parameters times the training tokens.Module 2, in preparation
TransformerThe 2017 architecture behind modern language models, built from stacked attention and feed-forward blocks.Module 4, in preparation
UnitBasic building block of a neural network, which popular accounts call a neuron.Module 1
VectorList of numbers, such as the 12,288 numbers GPT-3 uses to represent each token.Module 3, in preparation
Verifiable rewardsScores from an automatic checker, such as a test that marks a mathematics answer right or wrong, used to train reasoning models.Module 5, in preparation
WatermarkSignal embedded in generated content so that a detector can recognise it later.Module 8, in preparation
WeightAnother name for a parameter, the strength a unit gives one of its inputs.Module 1
Weighted sumTotal obtained by multiplying each input by its weight and adding the results.Module 1