Skip to content
Road to Intelligence

Reference

Glossary

Short definitions — two sentences at most — each linking to the full explanation.

122 of 122 terms

A

Activation functionReLU, sigmoid, tanh, GELU, nonlinearity
The nonlinearity applied after each neuron's weighted sum; without it, stacked layers collapse into one linear map. Activation Functions →
Actor–criticactor-critic, critic
An RL method with two learned parts: a policy (actor) that acts and a value estimate (critic) that judges its actions to reduce noise. Actor–Critic Methods →
AdamAdamW, momentum, optimizer
An optimizer combining momentum with per-parameter step sizes. AdamW, its weight-decay variant, is the default for Transformers. Momentum and Adam →
AI winter
A period of collapsed funding and interest after AI's promises outran its results — roughly 1974–1980 and from 1987. AI Winters →
Attention
A mechanism that lets a model compute a weighted average of other positions' information, with weights based on relevance. Attention →
Automatic differentiationautodiff, autograd, computational graph
Software that records a computation's operations and applies the chain rule to compute exact gradients automatically. Computational Graphs and Autodiff →
Autoregressive generationnext-token prediction, decoder-only generation
Generating text one token at a time, each chosen from a distribution conditioned on everything generated so far. Autoregressive Next-Token Prediction →

B

Backpropagationbackprop, backward pass
Computing the gradient of the loss for every weight by passing the error backward through the network with the chain rule. Backpropagation →
Base modelfoundation model, chat model, assistant model, instruction tuning, RLHF
A model after pretraining only: it continues text. Instruction tuning and RLHF turn it into a chat model that answers and follows instructions. From Base Model to ChatGPT →
Batch normalizationbatch norm
Normalizing each layer's activations with mini-batch statistics to speed up and stabilize training. Batch Normalization →
Bayes' theoremprior, posterior, likelihood, base rate
P(H | E) = P(E | H)·P(H) / P(E). Turns 'how likely is the evidence given the cause' into 'how likely is the cause given the evidence'. Conditional Probability and Bayes' Theorem →
Byte-pair encodingBPE, byte-level BPE, merges
A way to build a tokenizer: start from characters or bytes and repeatedly merge the most frequent adjacent pair into a new vocabulary symbol. Tokenization →

C

Causal maskcausal masking, look-ahead mask
Blocks each position from attending to later positions (their scores are set to −∞ before softmax), so next-token prediction can't cheat. Causal Masking →
Chain rule
The derivative of a composition is the product of the derivatives along the chain. Backpropagation applies it layer by layer. The Chain Rule →
Classification
Predicting a category (spam / not spam, digit, next token). Features, Labels and Tasks →
CNNconvolutional neural network, ConvNet
A network built from stacked convolution, nonlinearity and pooling layers, so early layers detect edges and later layers detect larger patterns. Convolutional Neural Networks →
Conditional probabilityP(A | B)
The probability of A given that B happened: restrict attention to the cases where B is true. Conditional Probability and Bayes' Theorem →
Confidence intervalstandard error, error bars
A range expressing the uncertainty of a measured quantity. For an accuracy p on n examples, roughly p ± 2·√(p(1−p)/n). Sampling and Uncertainty →
Context windowcontext length, n_ctx
The maximum number of tokens a model can take into account at once: 1,024 for GPT-2, 2,048 for GPT-3, far more for recent models. Parameters, Tokens and Context Windows →
Convolutionconvolutional layer, kernel, filter
Sliding one small grid of weights (a filter or kernel) across an input and taking a weighted sum at every position. The same weights are reused everywhere. Convolution →
Cosine similarity
The dot product of two vectors divided by the product of their lengths: the cosine of the angle between them, from −1 to 1. Dot Product →
Cross-entropylog loss, negative log-likelihood, NLL
The loss −log p(correct answer). It is the training objective of classifiers and language models. Cross-Entropy Loss →
CTCconnectionist temporal classification
A training objective for sequence labelling without alignments: add a blank symbol and sum the probability of every frame alignment that collapses to the target text. Speech Recognition and Synthesis →

D

Data leakagetarget leakage, contamination
Information in training or evaluation data that won't be available at prediction time, inflating results. Data Leakage →
Derivativeslope
How fast a function's output changes as its input is nudged — the local slope. Derivatives and Gradients →
Distribution shiftcovariate shift, concept drift
A mismatch between the data a model was trained on and the data it meets in use. Distribution Shift →
Dot productinner product
Multiply two vectors element by element and sum the results. Large when the vectors point the same way; the basic similarity score in ML. Dot Product →
Dropout
Randomly switching off units during training so the network can't rely on any single one; a regularizer. Dropout →

E

Embeddingembedding vector, dense representation
A learned vector representing an item (token, word, document, image) so that similar items have nearby vectors. Embeddings →
Emergent abilitiesemergence
Abilities that seem absent in smaller models and appear in larger ones. Whether the jumps are real or an artefact of the metric is debated. Emergent Abilities and the Debate →
Encoder-only / decoder-onlyBERT, GPT, encoder–decoder, T5
The three ways to wire Transformer blocks: bidirectional encoders (BERT), causal decoders (GPT) or both with cross-attention (T5). Encoder, Decoder & Encoder–Decoder →
Entropyinformation, surprise, bits, nats
The average surprise (−log p) of a distribution's outcomes — how uncertain it is. Entropy →
Expected valuemean, expectation
The probability-weighted average of a random quantity. Training minimizes the expected loss over the data. Expected Value and Variance →
Expert systemMYCIN, XCON
A program encoding a specialist's knowledge as if–then rules in a narrow domain; AI's first commercial success (1970s–80s). Expert Systems →
Exploration vs exploitationε-greedy, epsilon-greedy, multi-armed bandit
The trade-off between using the best action known so far and trying others that might be better. Exploration vs Exploitation →

F

Featurefeature vector, input variable
A measurable input property of an example; the model's inputs. Features, Labels and Tasks →
Feature engineeringhand-crafted features
Designing input features by hand — the bottleneck that deep learning's learned features removed. Hand-Crafted Features vs Learned Features →
Feature mapactivation map, channel
The grid of outputs produced by one filter across an input. A convolutional layer with F filters produces F feature maps (channels). Convolution →
Feed-forward networkFFN, MLP
In a Transformer block, a two-layer network applied to each token separately after attention; holds most of the parameters. Feed-Forward Sublayer (MLP) →
Fine-tuningtransfer learning, pretrain then fine-tune
Continuing to train a pretrained model on a smaller, task-specific dataset so it adapts to that task. Pretrain, Then Fine-Tune →
Fixed-vector bottleneck
The constraint in early encoder-decoders where the whole source must be compressed into one fixed-size vector for the decoder. The Fixed-Vector Bottleneck →
Forward passinference
Computing a network's output from its input, layer by layer. The Forward Pass →

G

Generalization
How well a model performs on data it was not trained on — the actual goal of learning. Generalization, Overfitting and Underfitting →
Gradientpartial derivative, ∇
The vector of partial derivatives of a function with respect to all its inputs. It points in the direction of steepest increase. Derivatives and Gradients →
Gradient descentlearning rate, step size
Minimize a loss by repeatedly moving parameters a small step against the gradient: w ← w − η·∇L(w). Gradient Descent →

H

HeuristicA*, heuristic search
A rule of thumb that estimates how promising an option is, used to guide search toward a goal with less exploring. Search →

I

In-context learningfew-shot prompting, zero-shot, one-shot, prompting
A model performing a task from instructions or examples given in its prompt, with no change to its weights. In-Context Learning →
Inductive biasarchitectural prior
Assumptions built into a model's structure, such as a CNN's locality or an RNN's step-by-step order. They help when they match the data and the data is limited. From MLPs to Transformers: The Architecture Story →
Inference engineforward chaining, backward chaining
The part of a rule-based system that applies rules to facts to derive conclusions. Logic and Rules →

K

k-meansclustering
Clustering by alternately assigning points to the nearest centre and moving centres to their points' mean. k-Means Clustering →
KL divergenceKullback–Leibler divergence, relative entropy
A non-negative, asymmetric measure of how different one probability distribution is from another. KL Divergence →
Knowledge graphontology, semantic network, frames
A structured representation of entities and the relations between them — a descendant of symbolic knowledge representation. Knowledge Representation →
Knowledge-acquisition bottleneckbrittleness, tacit knowledge
The difficulty of getting knowledge into rule-based systems: expertise is tacit, full of exceptions, and vast. The Knowledge-Acquisition Bottleneck →

L

Labeltarget, ground truth
The correct output for a training example — what a supervised model learns to predict. Features, Labels and Tasks →
Language modelnext-word prediction
A model that assigns a probability distribution to the next text unit given the preceding units. Language Modeling →
Large language modelLLM, language model at scale
A Transformer with billions of parameters pretrained to predict the next token on a very large amount of text, then usually adapted into an assistant. Pretraining at Scale →
Layer normalizationLayerNorm, RMSNorm
Rescales each token's vector to zero mean and unit variance, with a learned scale and shift, keeping activations stable. Layer Normalization →
Linear regressionleast squares
Predicting a number as a weighted sum of features, fitted by minimizing squared error. Linear Regression →
Logistic regressionsigmoid, logit
A linear classifier: a weighted sum passed through a sigmoid to give a probability, trained with cross-entropy. Logistic Regression →
Logits
The raw, unnormalized scores a model outputs — one per class or vocabulary token — before softmax turns them into probabilities. Softmax →
Loss functionobjective, cost function, MSE
A single number measuring how wrong a model's predictions are. Training minimizes its average over the data. Loss Functions →
LSTMGRU, gated recurrent unit, long short-term memory
A gated recurrent architecture that learns when to retain and update information across sequence steps. GRUs are a more compact related design. LSTMs and GRUs →

M

Machine learninglearning from data
Building systems that learn their behaviour from examples rather than following hand-written rules. From Rules to Learning →
Matrix multiplicationmatmul, linear layer
Each output entry is the dot product of a row of one matrix with a column of the other. A neural-network layer is a matrix multiplication plus a nonlinearity. Matrix Multiplication →
Multi-head attentionMHA, attention head
Several attention operations run in parallel on smaller slices of the vectors, each with its own queries, keys and values; outputs are concatenated. Multi-Head Attention →
Multilayer perceptronMLP, hidden layer, fully connected
A network of layers of neurons — input, hidden layers, output — each building on the previous layer's outputs. Multilayer Perceptron (MLP) →

N

N-grambigram, trigram
A short sequence of n words. An n-gram language model predicts from the previous n−1 words using counts. N-Gram Models →
Naive Bayes
A classifier applying Bayes' theorem with the assumption that features are independent given the class. Naive Bayes →
Neuronunit, node, weights, bias
The basic unit of a neural network: a weighted sum of inputs plus a bias, passed through an activation function. The Artificial Neuron →

O

One-hot encoding
One coordinate per vocabulary item, with exactly one 1 and all other entries 0. It represents identity but gives no similarity between different words. One-Hot Encoding →
Overfittingunderfitting, bias–variance
Fitting the training data (including its noise) so closely that performance on new data suffers. Generalization, Overfitting and Underfitting →

P

Parametersweights, model size
The learned numbers in a model. GPT-3 has 175 billion. Size alone does not determine quality; training data and compute matter as much. Parameters, Tokens and Context Windows →
PCAprincipal component analysis
Finding the directions of greatest variance in data to reduce its dimensions. Principal Component Analysis (PCA) →
Perceptron
The first learning neuron (1958): a thresholded weighted sum with a mistake-driven update rule; limited to linear boundaries. The Perceptron →
PerplexityPPL
exp(average cross-entropy per token): roughly how many tokens a language model is effectively choosing between. Perplexity →
PlanningSTRIPS
Finding a sequence of actions, each with preconditions and effects, that achieves a goal. Planning →
Policyπ
An agent's rule for choosing actions: a probability for each action in each state. MDPs, Policies and Value →
Policy gradientREINFORCE, PPO, advantage
Training a policy network directly by raising the log-probability of actions in proportion to how much better than expected they turned out. Policy Gradients →
Poolingmax pooling, average pooling, downsampling
Summarising each small block of a feature map, usually by its maximum, to shrink it. Cheaper later layers and tolerance to small shifts, at the cost of exact position. Pooling and Downsampling →
Positional encodingposition embedding, RoPE
Information about token position added to (or built into) attention, since attention alone ignores order. Positional Encoding →
Precision and recallF1, confusion matrix
Precision: share of flagged items that were correct. Recall: share of true items that were caught. Evaluation Metrics for Classifiers →
Pretrainingself-supervised learning, pre-training
Training on raw, unlabelled data with a task the data supplies itself, such as predicting the next token. The expensive first stage of building an LLM. Pretraining at Scale →
Probability distributionrandom variable, categorical distribution, Gaussian
An assignment of probabilities to every possible outcome, summing to 1. Classifiers and language models output one. Probability and Distributions →

Q

Q-learningtemporal-difference learning, TD learning, DQN
Learning action values from experience by moving Q(s, a) toward r + γ·max Q(s′, ·) after every step. Q-Learning →
Query, key, valueQ/K/V, QKV
Three learned projections of each token in attention: the query asks 'what am I looking for?', keys advertise 'what I contain', values carry the information passed on. Self-Attention →

R

Random forestdecision tree, gradient boosting
An ensemble of decision trees trained on random subsets of data and features, with predictions averaged. Decision Trees and Random Forests →
Receptive field
The region of the input that can influence one unit. Each stacked 3×3 layer widens it by two pixels; pooling widens it faster. Convolutional Neural Networks →
Regression
Predicting a number (price, demand, temperature). Features, Labels and Tasks →
Regularizationweight decay, L1, L2, ridge, lasso
Techniques that discourage overly complex models, such as penalizing large weights, to improve generalization. Regularization →
Reinforcement learningRL, agent, environment
Learning to act by trial and error: an agent takes actions in an environment and adjusts its behaviour to maximise the total reward it receives. Reinforcement Learning →
Representation learninglearned features, deep learning
Networks learning their own intermediate features from raw data instead of relying on hand-crafted ones. Representation Learning →
Residual connectionskip connection, residual stream
Adding a layer's input to its output (x + f(x)) so the layer learns a correction; makes deep networks trainable. Residual Connections →
Rewardreturn, discount factor, γ
The scalar score an agent receives after an action. The return is the discounted sum of future rewards, which the agent tries to maximise. Reinforcement Learning →
RNNrecurrent neural network, hidden state, backpropagation through time
A network that reads a sequence step by step, repeatedly updating a hidden state that summarizes earlier inputs. Recurrent Neural Networks →
ROC / AUCROC curve
The trade-off between true- and false-positive rates across all thresholds; AUC summarizes it (0.5 = chance, 1 = perfect). Evaluation Metrics for Classifiers →

S

Scaling lawspower law, compute-optimal
Empirical rules showing a model's loss falls smoothly and predictably as parameters, data and compute grow. Scaling Laws (Preview) →
Self-attention
Attention in which every token in a sequence attends to the tokens of the same sequence, producing context-aware representations. Self-Attention →
Self-supervised learningpretraining objective
Learning from unlabelled data by predicting a hidden or next part of it — e.g. the next word. How LLMs are pretrained. Supervised, Unsupervised and Self-Supervised Learning →
Sequence-to-sequenceseq2seq, encoder-decoder
An encoder reads a source sequence and a decoder produces a target sequence, often with a different length or order. Sequence-to-Sequence Models →
Smoothingadd-one smoothing, Laplace smoothing
Adjusting count-based probabilities so unseen continuations are not assigned exact zero probability. N-Gram Models →
Softmax
A function that turns a list of arbitrary scores into positive numbers that sum to 1 — a probability distribution. Larger scores get exponentially more weight. Softmax →
Spectrogrammel spectrogram, STFT, short-time Fourier transform
A time × frequency picture of a sound: each column holds the frequency content of one short window of audio. Audio and Spectrograms →
Stochastic gradient descentSGD, mini-batch, batch size, epoch
Gradient descent using the gradient of a small random batch of examples as a cheap, noisy estimate of the full gradient. Stochastic Gradient Descent (SGD) →
Supervised learninglabels
Learning a mapping from inputs to known correct outputs (labels). Supervised, Unsupervised and Self-Supervised Learning →
Support vector machineSVM, kernel trick
A classifier that picks the boundary with the widest margin; kernels let it draw non-linear boundaries. Support Vector Machines →
Symbolic AIGOFAI, classical AI
AI built from explicit symbols and hand-written rules, manipulated by logic and search. Dominant from the 1950s to the 1980s. Symbolic AI →

T

Temperaturesampling temperature
A decoding setting that divides the logits before softmax: below 1 makes output more predictable, above 1 more varied; 0 means always take the top token. Decoding: Greedy, Temperature, Top-k, Top-p →
Tensorshape, broadcasting
An n-dimensional array of numbers, e.g. [batch, tokens, d_model]. Tracking tensor shapes is most of the bookkeeping in deep learning. Tensors and Shapes →
Tokentoken ID, tokenizer, tokenization
The unit of text a language model reads and writes — often a word piece like 'trans' + 'formers'. Models see token IDs, not characters. Tokenization →
Top-p samplingnucleus sampling, top-k sampling, greedy decoding, beam search
Sampling only from the smallest set of most likely tokens whose probabilities add up to p. Top-k keeps a fixed number instead. Decoding: Greedy, Temperature, Top-k, Top-p →
Transformer
A neural-network architecture built from stacked self-attention and feed-forward layers, introduced in 2017; the basis of modern LLMs. The Transformer Block →
Turing testimitation game
Turing's 1950 proposal: if an interrogator can't tell a machine's typed conversation from a human's, treat the machine as intelligent. The Turing Test →

U

Unsupervised learningclustering, dimensionality reduction
Finding structure in data without labels, such as clusters or low-dimensional directions. Supervised, Unsupervised and Self-Supervised Learning →

V

Validation settest set, train/validation/test split, cross-validation
Held-out data used to choose models and hyperparameters; the test set is kept for one final evaluation. Generalization, Overfitting and Underfitting →
Value functionV(s), Q(s, a), Q-value, Bellman equation
The expected return from a state (V) or from taking an action in a state (Q). The Bellman equation links a state's value to its successors'. MDPs, Policies and Value →
Vanishing gradientsexploding gradients
Gradients shrinking toward zero (or blowing up) as they pass back through many layers, stalling or destabilizing training. Vanishing and Exploding Gradients →
Variancestandard deviation
The average squared distance from the mean — how spread out a quantity is. Its square root is the standard deviation. Expected Value and Variance →
Vector
An ordered list of numbers, e.g. [0.2, −1.3, 4.0]. In ML, almost everything — a word, an image, a user — is represented as a vector. Vectors →
Vision TransformerViT, patch embedding
A Transformer applied to an image cut into patches (for example 16×16 pixels), each patch embedded as a token. Vision Transformer (ViT) →

W

Weight initializationXavier, He initialization
Choosing the scale of random starting weights so signals and gradients stay stable across layers. Weight Initialization →
Word2vecskip-gram, CBOW, negative sampling
Efficient methods for learning word vectors from local context prediction tasks; negative sampling speeds up skip-gram training. Word2Vec →