Glossary
Every piece of AI jargon this guide explains, from activation functions to zero-shot prompting, in one plain sentence each, with a link to the chapter that explains it properly. 1647 terms. Want to memorise them? Practise with flashcards →
#
- 0-1 loss A loss of 1 for each wrong prediction and 0 for each right one, so its average is the error rate. It gives no gradient to train on. Loss Functions
- 1×1 convolution A convolution whose filter covers a single pixel position but all channels. It acts as a small linear layer at every position, often used to cheaply change the number of channels. Classic CNN Architectures: LeNet to ResNet
- 3-d convolution A convolution whose filter spans time as well as height and width, such as 3 frames × 3 × 3 pixels, so it can detect motion directly from pixels. Video Understanding
- 3d parallelism Combining tensor, pipeline and data parallelism in one training run. Distributed Training
- 4d framework A model of AI fluency built on four competencies: Delegation, Description, Discernment and Diligence. It was developed in 2025 by Rick Dakan, Joseph Feller and Anthropic. AI Fluency: Working Well with AI
A
- a/b test Splitting users randomly between two versions for long enough to measure a difference in a business metric with statistical confidence. Deploying Models
- a/b testing Splitting traffic evenly between variants for a fixed time, then picking a winner with a significance test. Bandits are a more adaptive alternative. Multi-Armed Bandits and Exploration
- a2c Advantage Actor-Critic: the synchronous version of A3C that waits for parallel workers and makes one batched update. Simpler and just as good. Actor-Critic Methods
- a3c Asynchronous Advantage Actor-Critic (DeepMind, 2016): many agent copies explore in parallel and send updates to a shared network. Actor-Critic Methods
- ablation study Experiments that remove or change one part of a method at a time, to show which parts actually matter for the results. The Papers That Shaped AI
- abstention A model declining to answer, for example saying "I don't know", when it isn't confident or the sources don't cover the question. Hallucinations
- accelerator A chip specialised for the dense linear algebra in neural networks, such as an NVIDIA GPU or a Google TPU. AI Hardware: GPUs, TPUs and Accelerators
- acceptance criteria A list of concrete, observable behaviours that must be true when a task is done, with example inputs and outputs. Each should be checkable by a test or a command. Planning and Specs: Telling an Agent What to Build
- accuracy The fraction of predictions that are correct. Misleading when one class is much rarer than the other. Evaluation Metrics
- acoustic model The part of a speech recogniser that maps sounds, usually spectrogram frames, to symbols such as characters or subword tokens. Speech Recognition
- acquisition function In Bayesian optimisation, a score for how useful each candidate setting would be to try next, balancing exploitation and exploration. Hyperparameter Tuning
- action The step in an automation that changes something, such as adding a spreadsheet row, posting a message or creating a draft email. Automating Work Without Code · Reinforcement Learning: The Basics
- action recognition Giving a video clip one label for the action it shows, such as "playing guitar" or "push-up". Video Understanding
- action space The set of all actions the agent can choose from, sometimes depending on the state. Markov Decision Processes
- action value The expected reward or return from taking a particular action, written q(a) for a bandit or q(s, a) in a state. Multi-Armed Bandits and Exploration
- action-value function q_π(s, a): the expected return from taking action a in state s and then following policy π. It lets you compare actions directly. Value Functions and Bellman Equations
- activation The output of a neuron after its activation function has been applied. Neural Networks
- activation function The small fixed nonlinear function a neuron applies to its weighted sum, such as ReLU or sigmoid. Without it, stacked layers collapse into one linear layer. Activation Functions
- activation patching Running a model on a corrupted prompt but pasting in a clean run's activation at one location, to see which components carry the critical information. Mechanistic Interpretability
- activation steering Adding a feature's direction to a model's activations while it runs, to change its behaviour and test whether it uses that feature. Mechanistic Interpretability
- active parameters The parameters actually used to process one token. In a mixture of experts this is far fewer than the total. Mixture of Experts
- active recall Testing yourself by producing an answer from memory, such as closing the book and writing what you know. It builds memory far better than rereading. How to Learn AI
- actor The policy part of an actor-critic method, which chooses the actions. Actor-Critic Methods
- actor-critic A method combining a policy (the actor) with a learned value function (the critic) that scores each step, so the actor learns from low-noise feedback. Actor-Critic Methods
- adaln-zero Adaptive layer normalization plus a learned gate on each residual branch, all initialised to zero so every block starts as the identity. DiT's best conditioning method. Diffusion Transformers
- adam An optimizer that combines momentum with RMSProp-style per-parameter step sizes, plus bias correction. Its step size is set by the learning rate, not the gradient's scale. Optimizers: SGD, Momentum and Adam
- adamw Adam with weight decay applied directly to the weights rather than added to the gradient. The default optimizer for Transformers and language models. Optimizers: SGD, Momentum and Adam
- adapter A small bottleneck network inserted into each layer of a frozen model and trained for a task. It adds a little latency because it can't be merged away. LoRA and Parameter-Efficient Fine-Tuning
- adaptive layer normalization Layer normalization whose scale and shift are produced from the condition (time step and class or text), so the condition retunes every feature channel. Diffusion Transformers
- adaptive learning rate Any optimizer scheme that gives each parameter its own step size based on the history of its gradients, as RMSProp and Adam do. Optimizers: SGD, Momentum and Adam
- additive attention Bahdanau's scoring method, which feeds the query and key through a small one-hidden-layer network with tanh to get a score. Attention
- adjacency matrix An n × n matrix recording a graph's structure: entry (i, j) is 1 if nodes i and j are connected and 0 otherwise. Graph Neural Networks
- adjusted rand index A score comparing a clustering with known categories: 1 means identical groupings, 0 means no better than random. Unsupervised Learning
- advantage How much better an action turned out than expected, for example the return or TD target minus the state's estimated value. Actor-Critic Methods
- advantage function A(s, a) = q(s, a) − v(s): how much better action a is than the policy's average behaviour in state s. Actor-Critic Methods
- adversarial example An input deliberately modified so a model gets it wrong, while a human sees no meaningful difference, like a panda photo with faint noise that a classifier calls a gibbon. Adversarial Examples
- adversarial perturbation The small change added to an input to make an adversarial example, usually limited so no input value moves by more than a small amount ε. Adversarial Examples
- adversarial training Training two models in alternation against each other, each improving by beating the other, as the generator and discriminator do in a GAN. Generative Adversarial Networks · Adversarial Examples
- agency A way of working with AI in which you set it up in advance to carry out future tasks on its own, on your behalf. AI Fluency: Working Well with AI
- agent The learner and decision-maker in reinforcement learning, such as a game-playing program or a robot's controller. It observes the state and chooses actions. Reinforcement Learning: The Basics · Supervised, Unsupervised and Reinforcement Learning
- agent loop The cycle at the heart of an agent: call the model, run the tools it requests, add the results to the transcript, check stop conditions, repeat. AI Agents
- agent skill A folder with a SKILL.md file of instructions, plus any scripts or references, that an agent loads on demand when a task needs it. Write a procedure once, reuse it. Extending Your Agent: Skills, Hooks, MCP and Subagents
- agent team An experimental setup where one lead agent splits a project among several worker sessions that message each other and share a task list. Running Agents in Parallel and in the Background
- agent-computer interface The design of the tools an agent uses: their names, descriptions, inputs and outputs. Good tool design raises agent success as much as a better model. AI Agents
- agentic coding Building software by giving tasks to an AI agent that reads your code, runs commands and edits files on its own, while you direct, review and verify the result. What Is Agentic Coding?
- agentic search Finding relevant code by letting the model run search tools like grep and glob itself and follow the trail, instead of using a pre-built embedding index. AI Coding Assistants and Agents
- ai agent A language model that uses tools in a loop, choosing each next step from what it observes until it judges the goal is met. AI Agents
- ai app builder A tool such as Lovable, Bolt, Replit or v0 that builds a fuller web application from a description, often with a database and hosting. Building Apps Without Coding
- ai assistant An app where you type or speak to a language model and it replies, usually with extra tools such as search or file uploads. Also called a chatbot. Choosing an AI Assistant
- ai detector A tool that claims to tell whether text was written by AI. Such tools are unreliable and have unfairly flagged non-native English writers. AI for Your Profession · Deepfakes and Misinformation
- ai fluency The skill of working with AI systems in ways that are effective, efficient, ethical and safe. It is a set of habits, not a set of tricks. AI Fluency: Working Well with AI
- ai governance The whole system of laws, regulations, standards, company policies and practices that shape how AI is built and used. AI Regulation and Governance
- ai lab An organisation that trains large AI models, such as OpenAI, Google DeepMind, Anthropic or Meta. The AI Landscape Today
- ai literacy Enough understanding among the people who operate or use AI systems for them to do so responsibly. AI Regulation and Governance
- ai management system The policies, roles, risk processes and controls an organisation uses to govern AI, as specified by the standard ISO/IEC 42001. AI Regulation and Governance
- ai policy An organisation's rules on which AI tools are approved, what data may go into them, when to disclose AI use and who to ask. Using AI Safely at Work
- ai product Software in which a model's output is part of what the user gets. Its core component is probabilistic, so the product must be designed around occasional mistakes. Building AI Products
- ai safety The field that studies and reduces the harms AI can cause, through misuse, accidents or broader effects on society. AI Risks and Safety
- ai safety institute A government body that evaluates frontier AI models, such as the UK's, founded in 2023 and renamed the AI Security Institute in 2025. AI Risks and Safety
- ai scribe A tool that drafts clinical notes from a recorded consultation. It needs patient consent and review by the clinician. AI for Your Profession
- ai slop Low-effort, mass-produced AI text, or other content, that sounds generic and that readers increasingly recognise. AI for Writing and Communication
- ai step A step in an automation that sends text to a language model with instructions, such as "classify this enquiry", and passes its answer on. Automating Work Without Code
- ai video Short video clips generated by AI from text or an image, by tools such as Veo, Runway and Kling. Creating Images, Audio and Video with AI
- ai winter A period when enthusiasm and funding for AI collapsed after promises went unmet. There were two, in the mid-1970s and the late 1980s to 1990s. A Short History of AI
- alert fatigue When so many alerts fire that people learn to ignore them, including the important ones. Monitoring and Data Drift
- alexnet The convolutional network that won ImageNet 2012 (15.3% top-5 error) using ReLU, dropout, augmentation and two GPUs, starting the deep learning era in vision. Classic CNN Architectures: LeNet to ResNet
- algorithmic bias When a system's outputs systematically disadvantage some group of people, whatever the cause. Bias and Fairness
- aliasing A frequency above the Nyquist limit showing up as a false lower frequency. Proper resampling filters out high frequencies first to prevent it. Audio as Data
- alibi Attention with Linear Biases: subtracting a fixed penalty proportional to distance from each attention score, with a different slope per head. Positional Encodings
- alignment Which input words line up with which output words, for example in translation. Attention learns it on its own as a by-product. Attention · AI Alignment
- all-reduce A collective operation where every GPU starts with its own vector and ends with the sum or average of all of them. Distributed Training
- allow rule A pattern in the agent's settings, such as Bash(python -m pytest *), for actions that are always fine, so it stops asking about them. Deny rules always win over allow rules. Setting Up a Coding Agent
- allow-list A description of exactly what is allowed, with everything else rejected. Safer than trying to list everything forbidden. From Prototype to Production
- alphago DeepMind's Go program that combined MCTS with policy and value networks and beat Lee Sedol 4–1 in March 2016. Monte Carlo Tree Search and AlphaGo
- alphazero DeepMind's 2017 successor to AlphaGo that learned Go, chess and shogi from self-play alone, using one network to guide MCTS. Monte Carlo Tree Search and AlphaGo
- anchor box A fixed reference box of a set size and shape at each feature-map position. The detector predicts how to shift and stretch it to fit an object. Object Detection
- annotation guidelines Precise instructions for labellers, with worked examples and edge cases, so different people label the same item the same way. Data Pipelines and Datasets
- anomaly detection Finding rare, unusual data points, such as fraud or faults, usually by learning what normal looks like and flagging what doesn't fit. Anomaly Detection
- anonymisation Removing or replacing anything that identifies a person or client, so information can be shared more safely. Using AI Safely at Work
- api Application programming interface: a way for a program to send requests to another service, such as a model provider, and get replies back as data. Using LLM APIs
- api key A secret string that identifies your account to an API and is billed for every call. Anyone who has it can spend your money. Using LLM APIs
- approval prompt The agent's request for your yes or no before it edits a file or runs a command, showing exactly what it wants to do. Setting Up a Coding Agent
- approximate nearest neighbour Search that finds almost all of the true nearest neighbours while examining only a small fraction of the vectors, trading a little accuracy for large speed-ups. Vector Databases
- argmax Which input gives the largest value, rather than the value itself. For the list (4, 7, 9), max is 9 and argmax is position 3. Math Notation Cheat Sheet
- arima Autoregressive integrated moving average: a classical forecasting model using past values, differencing and past forecast errors. Time Series Forecasting
- arithmetic intensity Floating-point operations done per byte moved to or from memory. Low intensity means memory-bound. AI Hardware: GPUs, TPUs and Accelerators
- array NumPy's grid of numbers, all of the same type, stored in one compact block of memory. It has a shape and supports whole-array maths. NumPy and Array Thinking
- artifact A file produced by a run, above all the trained model weights, but also plots, predictions and the saved config. Experiment Tracking and Reproducibility
- artificial general intelligence A hypothetical AI that could learn and do essentially any intellectual task a human can, at least as well as a human. There is no agreed definition or test for it. What Is AI?
- artificial intelligence The field of making computers do things that would seem to need intelligence if people did them, such as recognising faces, understanding language or planning a route. AI is a goal, not one technique. What Is AI?
- artificial neuron The basic unit of a neural network: it multiplies each input by a weight, adds them up with a bias, and passes the result through a function. The Perceptron
- arxiv A free website (arxiv.org) where researchers post papers, often before peer review. Most modern AI papers appear there first. The Papers That Shaped AI
- aspect ratio An image's width divided by its height, such as 4:3 or 16:9. Squashing an image to a different ratio distorts it. Images as Data
- assertion A line in a test stating something that must be true, such as an expected output. If it isn't true, the test fails and shows both values. Tests as Guardrails
- attention A mechanism that scores every input against what is needed now, turns the scores into weights with softmax, and returns the weighted average of the inputs. Attention
- attention head One of the parallel attention operations inside multi-head attention, with its own query, key and value matrices and its own attention pattern. Self-Attention and Multi-Head Attention
- attention matrix The n × n table of attention weights for a sequence; row i shows how much token i attends to every token. Self-Attention and Multi-Head Attention
- attention score The raw relevance number for one query-input pair, usually a dot product, before softmax turns the scores into weights. Attention
- attention weight A positive number from the softmax saying how much one input contributes to the output; the weights for one query sum to 1. Attention
- auc Area under the ROC curve: the probability a random positive scores higher than a random negative. 1 is perfect, 0.5 is random. Evaluation Metrics
- audio token One integer from a neural audio codec's codebook, representing part of a few milliseconds of sound. Transformers generate them like words. Music and Voice Generation
- augmentation A way of working with AI in which you and the AI think together as partners, producing something neither would alone. AI Fluency: Working Well with AI · AI, Work and the Economy · Data Augmentation
- augmented llm The basic building block of agents and workflows: a language model plus retrieval, tools and some form of memory. AI Agents
- authentication Checking who someone is, for example with a login and password, before letting them use an app. Building Apps Without Coding
- auto memory Notes a coding agent writes for itself about your corrections and preferences, kept outside the repository and loaded into later sessions. Claude Code has it on by default. Project Context and Memory Files
- autocast PyTorch's context manager that picks a precision for each operation: 16 bits for matrix multiplications, 32 bits for sensitive ones. Mixed Precision Training
- autocorrelation The correlation of a series with a delayed copy of itself. A spike at lag 7 reveals weekly seasonality. Time Series Forecasting
- autoencoder A neural network trained to reproduce its own input after squeezing it through a narrow middle layer, so it learns a compact code for the data without any labels. Autoencoders
- autograd Short for automatic gradient: the engine in a deep-learning library that records operations and computes the gradient of the loss for every parameter. Build an Autograd Engine from Scratch
- automated test A small piece of code that runs part of your program with a known input and checks the output against the expected answer, reporting pass or fail. Tests as Guardrails
- automatic differentiation Having a library record each operation of the forward pass and then compute exact derivatives automatically, as PyTorch does with
loss.backward(). Backpropagation · Build an Autograd Engine from Scratch - automatic speech recognition Turning spoken audio into written text, also called speech-to-text. Usually shortened to ASR. Speech Recognition
- automation A way of working with AI in which it carries out a specific task you have spelled out, such as turning notes into action items. AI Fluency: Working Well with AI · AI, Work and the Economy
- automation bias The human tendency to over-trust automated systems and stop checking them, especially when they are usually right. Checking AI Output
- automodel The Hugging Face family of classes, such as
AutoModelForCausalLM, that read a repository's config and build the right model architecture. The Hugging Face Ecosystem - autoregressive generation Producing text one token at a time: predict a token, append it to the input, and predict again. GPT and Decoder-Only Models
- autoregressive model A model that generates a sequence one piece at a time, feeding each output back in as input for the next step. Language Modeling and Next-Token Prediction
- autotokenizer The Hugging Face class that loads the tokenizer matching a model, read from the model's repository. The Hugging Face Ecosystem
- average precision A one-number summary of the precision–recall curve, roughly the area under it. Evaluation Metrics
- awq Activation-aware weight quantization: protects the roughly 1% of weights that multiply large activations by scaling them up before quantizing. Quantization
- axis One of the directions along which a tensor or array is laid out, such as batch, channel, row or column. Reducing over an axis makes it disappear. Tensors and Shapes · NumPy and Array Thinking
B
- back-translation Text augmentation that translates a sentence into another language and back again to get a natural paraphrase with the same meaning. Data Augmentation
- backbone The body of a pretrained network below its final head, used as a general-purpose feature extractor. Transfer Learning
- background agent An agent session that runs with no terminal attached and reports back when it finishes or needs you, so you can manage several from one list. Running Agents in Parallel and in the Background
- backpropagation The algorithm that computes the gradient of the loss for every weight in one backward sweep, by applying the chain rule from the output back to the inputs. Backpropagation
- backpropagation through time Training an RNN by running backpropagation on its unrolled chain of time steps, summing the gradients of the shared weights. Recurrent Neural Networks
- backtesting Testing a forecaster by repeatedly training on everything before a date and forecasting the period after, then moving the date forward. Time Series Forecasting
- backup Updating one state's (or action's) value from the values of the states that can follow it. Backup diagrams draw this as a tree. Value Functions and Bellman Equations
- backward pass The second half of a training step, which runs through the network from the loss back to the inputs and computes gradients. Backpropagation
- bag of words Representing a text by how often each vocabulary word appears in it, ignoring word order. Feature Engineering · Naive Bayes
- bagging Bootstrap aggregating: training one model per bootstrap sample of the data and averaging or voting their predictions. Random Forests and Bagging
- base model A model trained only on next-token prediction, before instruction tuning. It continues documents rather than following instructions. GPT and Decoder-Only Models · Pretraining Large Language Models · Large Language Models, Explained Simply
- base rate How common something is in a population before any test or evidence, such as 1% of people having a disease. Bayes' Theorem
- base rate fallacy Ignoring how rare something is when judging evidence, such as assuming a 90%-accurate test means a positive result is 90% likely to be right. Bayes' Theorem
- baseline The simplest model that could possibly work, such as always predicting the most common class. It gives a number any real model must beat. Training Neural Networks in Practice · Policy Gradients
- baseline model The simplest reasonable approach to a problem, such as always predicting the most common answer. A real model must beat it by a meaningful margin. Project Ideas
- batch api An API that processes many requests asynchronously, within 24 hours and often much sooner, at about half the normal price. It suits work nobody is waiting for. Using LLM APIs
- batch inference Scoring many records on a schedule and storing the results, so applications just look up precomputed answers. Deploying Models
- batch normalization Normalising each feature across the examples in the current mini-batch. Standard in CNNs; it uses running statistics at evaluation time. Normalization Layers: BatchNorm and LayerNorm
- batch size The number of examples used for each gradient step. Larger batches give smoother gradients and use hardware better, but mean fewer steps per epoch. Training Neural Networks in Practice
- bayes' theorem The rule for updating a belief with evidence: P(H | E) = P(E | H) × P(H) / P(E). In short, posterior is proportional to likelihood times prior. Bayes' Theorem
- bayesian optimisation Tuning by fitting a model of how the score depends on the settings and using it to choose the most promising setting to try next. Hyperparameter Tuning
- beam search A decoding method that keeps the k most probable partial outputs at each step, extends them all, and keeps the best k again. Sequence-to-Sequence Models · Decoding: Temperature, Top-k and Top-p
- behaviour policy The policy that actually chooses actions and generates the data, often exploratory like ε-greedy. Q-Learning
- bellman equation The rule that a state's value equals the expected immediate reward plus the discounted value of the next state. It links each value to its neighbours'. Value Functions and Bellman Equations
- bellman optimality equation The Bellman equation for the best possible values: it takes the maximum over actions instead of the policy's average. Value Functions and Bellman Equations
- benchmark A fixed set of tasks with known correct answers and a scoring rule, used to compare models. Evaluating LLMs and Benchmarks · The AI Landscape Today
- benchmark saturation Top models scoring near a benchmark's ceiling, so it no longer separates them. Evaluating LLMs and Benchmarks
- bernoulli distribution The distribution of one yes/no trial: 1 with probability p and 0 with probability 1 − p, like a coin flip or a spam/not-spam prediction. Probability Distributions
- bert Bidirectional Encoder Representations from Transformers: Google's 2018 encoder, pretrained by filling in masked words and fine-tuned for understanding tasks. BERT and Encoder Models
- beta-vae A VAE whose KL term is multiplied by a weight β. Values above 1 tend to separate latent dimensions into independent factors such as slant and thickness. Variational Autoencoders
- bfloat16 A 16-bit format with FP32's 8-bit exponent and range but only 7 mantissa bits. The default for training large models. Quantization
- bi-encoder A model that embeds queries and documents separately, so document vectors can be computed in advance. Fast, but it never sees query and document together. Advanced RAG · Sentence Embeddings
- bias A learned number added to a neuron's weighted sum. It shifts the decision boundary, making the neuron easier or harder to switch on. The Perceptron · Linear Regression
- bias correction Adam's adjustment, dividing its running averages by (1 − βᵗ), to undo their pull towards zero in the first steps when they start at zero. Optimizers: SGD, Momentum and Adam
- bias–variance tradeoff As capacity rises, systematic error (bias) tends to fall while sensitivity to the training sample (variance) rises. The best model balances them. Overfitting and the Bias–Variance Tradeoff
- bidirectional context Using words on both sides of a token, before and after it, to work out its meaning. BERT and Encoder Models
- bidirectional rnn Two RNNs, one reading a sequence forwards and one backwards, whose hidden states are joined so each position sees both past and future. Recurrent Neural Networks
- binary cross-entropy Cross-entropy for two classes, also called log loss: −[y ln p + (1−y) ln(1−p)], where p is the predicted probability of class 1. Loss Functions
- binning Cutting a numeric feature into ranges, such as age groups, and treating each range as a category. Captures step-like effects but loses detail. Feature Engineering
- bit The unit of information gained from one fair yes/no answer. An outcome with probability 1/2 carries 1 bit; 1/8 carries 3 bits. Entropy, Cross-Entropy and KL Divergence
- bit depth The number of bits used per channel value. 8 bits give 256 levels (0 to 255); medical and HDR images often use 10, 12 or 16. Images as Data
- black-box attack An attack where the attacker can only send inputs and see outputs, so they estimate gradients from queries or use examples crafted on another model. Adversarial Examples
- block size The context length of a small GPT: the most tokens it can see at once. Older tokens are cropped away. Build a GPT from Scratch
- bm25 The standard keyword-ranking formula, a refined TF-IDF. It rewards rare query words, gives diminishing credit for repeats, and adjusts for document length. Advanced RAG
- boolean mask An array of True/False values, made by a comparison such as
scores > 0.5, used to select only the matching elements. NumPy and Array Thinking - boosting Building a strong model by adding weak models one after another, each focused on the mistakes of the ones before. Gradient Boosting: XGBoost and LightGBM
- bootstrap Estimating the uncertainty of a statistic by repeatedly resampling your data with replacement and recomputing it. The spread of the results approximates the sampling error. Statistics: Mean, Variance and Sampling
- bootstrap sample A sample of n rows drawn with replacement from n rows, so some repeat and about 37% are left out. Random Forests and Bagging
- bootstrapping Updating an estimate using other estimates, such as using the next state's guessed value instead of waiting for the real return. Value Functions and Bellman Equations
- bottleneck The narrow middle layer of an autoencoder. Because it is smaller than the input, the network must keep what matters and throw away the rest. Autoencoders
- bottleneck block A residual block that shrinks the channels with a 1×1 convolution, applies a 3×3 convolution, then expands back with another 1×1 to save computation. Residual Connections
- bottom-up learning Learning by starting with the foundations, such as maths and then classical machine learning, and building upward. This is how universities usually teach. How to Learn AI
- bounding box A rectangle around an object, given by four numbers, such as its corners (x1, y1, x2, y2) or its top-left corner plus width and height. Object Detection
- box plot A chart summarising a variable per group: a box for the middle half of the values, a line at the median, whiskers and outlier dots. Visualising Data
- bradley-terry model A model of comparisons where the chance one item beats another is the sigmoid of the difference in their scores. RLHF and Preference Optimization
- branch A separate line of commits in git. You make one per task so the work can proceed, or be thrown away, without touching main. Git for Agent Work
- brier score The mean squared difference between predicted probabilities and 0/1 outcomes. 0 is perfect; always predicting 0.5 scores 0.25. Evaluation Metrics
- broadcasting Automatically stretching size-1 or missing axes so that arrays of different shapes can be combined, without copying memory. Shapes are lined up from the right. Tensors and Shapes · NumPy and Array Thinking
- browser agent An AI system that operates a web browser on your behalf, clicking, typing and filling forms. Slow and error-prone, so supervise it. Automating Work Without Code
- business metric The number the organisation actually cares about, such as customers retained, revenue or fraud losses avoided. The ML Project Lifecycle
- byte-pair encoding A tokenizer-building method that starts from single characters or bytes and repeatedly fuses the most frequent neighbouring pair into a new token. Tokenization
C
- cache hit A request that reuses a previously cached prompt prefix, so it costs much less and returns its first token sooner. Context Engineering and Memory
- calibration How well a model's confidence matches its accuracy. Well calibrated means answers given with 70% confidence are right about 70% of the time. Hallucinations · Evaluation Metrics
- canary release Sending a small share of traffic (say 1–5%) to a new model and watching it before rolling it out to everyone. Deploying Models
- candidate retrieval The fast first stage of a recommender that narrows millions of items to a few hundred, often by nearest-neighbour search on vectors. Recommender Systems
- carbon intensity Grams of CO₂ emitted per kilowatt-hour of electricity on a grid: a few tens for hydro or nuclear, 800 or more for coal, about 450 worldwide on average. The Energy Cost of AI
- catastrophic forgetting A model losing abilities it used to have after being trained too hard on new, narrow data. Fine-Tuning
- catastrophic risk A possible outcome that could kill very large numbers of people or permanently damage humanity's prospects. Hard to measure because it hasn't happened. AI Risks and Safety
- catboost Yandex's gradient-boosting library (2017), which handles categorical features with careful target encoding and uses symmetric trees. Gradient Boosting: XGBoost and LightGBM
- categorical distribution The distribution of one trial with k possible outcomes whose probabilities add to 1, such as a die roll or a language model's next token. Probability Distributions
- causal mask Setting attention scores for later tokens to −∞ before the softmax, so each token sees only itself and earlier tokens and cannot peek at the answer. Self-Attention and Multi-Head Attention
- cell state The LSTM's separate memory line, changed only by a forget-gate multiplication and a gated addition, so information and gradients can travel far. LSTMs and GRUs
- centroid The centre of a cluster: the mean of the points assigned to it. k-Means Clustering
- chain rule The rule for the slope of a function built from other functions: multiply the slopes of each step. Applied backwards through a network, it is backpropagation. The Chain Rule
- chain rule of probability The exact identity that the probability of a whole sequence equals the probability of each token given all the tokens before it, multiplied together. Language Modeling and Next-Token Prediction
- chain-of-thought prompting Getting a model to write intermediate reasoning steps before its final answer, which improves accuracy on multi-step problems. Chain-of-Thought and Reasoning Prompts
- change of variables The formula that gives the exact density of x = f(z) for an invertible f: the density of z, corrected by how much f stretches or shrinks volume. Normalizing Flows and Flow Matching
- channel One layer of a grid-shaped input or feature map, such as the red, green or blue plane of an image, or one filter's output. Convolutional Neural Networks
- channels-first layout Storing an image tensor as (channels, height, width), so the whole red grid comes first, then green, then blue. PyTorch convolution layers expect it. Images as Data
- character error rate The minimum number of character substitutions, deletions and insertions needed to fix an OCR output, divided by the length of the true text. Often shortened to CER. OCR and Document AI
- character-level language model A model trained to predict the next character of text at every position, which can then generate text one character at a time. Recurrent Neural Networks
- character-level model A language model whose tokens are single characters. The vocabulary is tiny but sequences are several times longer than with subwords. Build a GPT from Scratch
- chat template The model-specific way of wrapping chat messages in special tokens. Training and serving must use the same template, or results quietly degrade. Fine-Tuning an Open Model in Practice · Instruction Tuning and Chat Models · The Hugging Face Ecosystem
- chatbot An app you talk to in ordinary language, typing or speaking, that replies in kind. Modern chatbots are built on large language models. Large Language Models, Explained Simply
- chatbot arena A public site (renamed LMArena, and in January 2026 simply Arena) where users compare two anonymous models' answers and vote; the votes are turned into a ranking. Evaluating LLMs and Benchmarks
- cheapfake Real media deceptively edited, slowed down or taken out of context, without any AI. Deepfakes and Misinformation
- checkpoint A saved copy of a model's weights at some point in training, for example from the epoch with the best validation loss. Training Neural Networks in Practice · Pretraining Large Language Models
- chinchilla scaling DeepMind's 2022 finding that model size and training tokens should grow together, about 20 tokens per parameter, for compute-optimal training. Scaling Laws
- chunk One passage of a document produced by chunking, stored with its embedding and metadata and retrieved as a unit. Retrieval-Augmented Generation
- chunk overlap Repeating the end of one chunk at the start of the next, so a fact that crosses a chunk boundary still appears whole in at least one chunk. Retrieval-Augmented Generation
- chunked prefill Splitting a long prompt's prefill into chunks mixed with ordinary decode steps, so other users' streams don't stall. Serving LLMs at Scale
- chunking Splitting documents into passages small enough to retrieve precisely and to fit several into a prompt, typically a few hundred tokens each. Retrieval-Augmented Generation
- cifar-10 A dataset of 60,000 tiny 32 × 32 colour images in 10 object classes such as planes, cars, birds and cats. Image Classification
- circuit A set of features plus the weights that connect them, which together carry out a computation inside a network. Mechanistic Interpretability
- citation A marker in an answer, such as [2], pointing to the source passage that supports a statement, so users can verify it. Retrieval-Augmented Generation
- class A blueprint that bundles data with the functions that act on it. PyTorch models are classes built on
nn.Module. Python for AI - class imbalance When one class is much rarer than another, as with fraud or disease, so accuracy rewards ignoring the rare class. Evaluation Metrics
- class token An extra learned token, written [CLS], placed at the start of the sequence as a summary slot. Its final state is used to classify the whole input. Vision Transformers
- class weight A multiplier that makes mistakes on a class count more in the loss, often set inversely to how common the class is. Data Cleaning and Preparation
- classification A supervised task where the label is one of a fixed set of categories, such as spam or not spam. Supervised Learning
- classifier-free guidance Running the denoiser with and without the prompt at each step and extrapolating past the prompted prediction, so samples follow the prompt more closely. Latent Diffusion and Stable Diffusion
- clip OpenAI's 2021 model that trains an image encoder and a text encoder together on 400 million image–caption pairs, so matching pictures and text get similar vectors. CLIP and Contrastive Learning
- clipped objective PPO's objective, min(rA, clip(r, 1−ε, 1+ε)A), which gives no credit for moving an action's probability beyond the trust band. Proximal Policy Optimization
- closed model A model available only through its maker's own apps and API. The weights never leave the company's servers. The AI Landscape Today
- cloud agent A coding agent that runs on the provider's computers in a sandboxed copy of your repository. You give it a task from a web page, chat or issue, and it returns a pull request. What Is Agentic Coding?
- cloud gpu A data-centre GPU you rent by the hour from a provider. You pay for every hour the machine is on, so shut it down when finished. Setting Up Your Environment
- cls token A special token placed at the start of BERT's input, whose output vector serves as a summary of the whole text for classification. BERT and Encoder Models
- cluster A group of examples that are more similar to each other than to examples in other groups. Unsupervised Learning
- clustering Grouping examples so that those in the same group are more similar to each other than to those in other groups, without any labels. Unsupervised Learning · Supervised, Unsupervised and Reinforcement Learning
- co-adaptation Neurons learning fragile patterns that only work together with specific partner neurons. Dropout breaks it. Dropout and Regularizing Neural Networks
- code completion An assistant that predicts the next line or block of code as you type, using the code around the cursor. AI Coding Assistants and Agents
- code review Someone other than the author reading a change before it is accepted, looking for mistakes, risks and things that don't belong. With agents, that reader is usually you. Reviewing and Debugging AI-Written Code
- code-based grader An ordinary function that checks an output, such as validating JSON, matching an expected value or checking length. Fast, free and deterministic. Evaluating LLM Applications
- coding agent An AI agent with tools to search, read, edit and run code, which can take a task, change several files, run the tests and iterate until done. AI Coding Assistants and Agents
- coefficient of determination R²: the fraction of the label's variation a model explains. 1 is perfect, 0 is no better than predicting the mean. Evaluation Metrics
- cognitive offloading Letting a tool hold or do mental work for you. Fine for things you don't need to know; harmful for things you need to understand. AI for Research and Learning
- cohen's kappa Agreement between two annotators corrected for chance: κ = (p_o − p_e)/(1 − p_e). 1 means perfect agreement, 0 means no better than chance. Data Pipelines and Datasets
- cold start The problem of recommending for new users or new items that have no interaction history yet. Recommender Systems
- collaborative filtering Recommending from the behaviour of similar users or items, without needing to know what the items are. Recommender Systems
- colour jitter Randomly changing an image's brightness, contrast, saturation and hue during training, so the model copes with different cameras and lighting. Data Augmentation
- colour space A way of describing colours with numbers, such as RGB, greyscale, HSV or YCbCr. Each makes certain jobs easier. Images as Data
- column transformer A scikit-learn tool that applies different preprocessing to different columns, such as scaling numbers and one-hot encoding categories, then joins the results. scikit-learn
- commit A saved snapshot of every tracked file in a git project, with a message saying what changed and why. Commits are your save points. Git for Agent Work
- common crawl A non-profit that has crawled the public web since 2008 and publishes free snapshots. It is the main raw source of LLM training text. Pretraining Large Language Models
- compaction Summarising an agent's work so far when its context nears the limit, then continuing in a fresh context from that summary. Context Engineering and Memory
- complementary skill A skill whose value rises as AI improves, such as judging quality, domain expertise, accountability or working with people. AI, Work and the Economy
- component One number inside a vector, also called an element or entry. In
[120, 4, 30]the first component is 120. Vectors - compound scaling EfficientNet's rule for growing a network: increase depth, width and input resolution together in fixed proportion rather than just one of them. Classic CNN Architectures: LeNet to ResNet
- compounding error How small per-step error rates multiply over long tasks: at 95% per step, a 20-step task with no correction succeeds only about 36% of the time. AI Agents · Model-Based RL and World Models
- computation graph A diagram of a calculation where each operation is a node and arrows show which values feed into which. Autograd records it and runs the chain rule backwards over it. The Chain Rule · Build an Autograd Engine from Scratch
- compute The amount of computing power used to train or run AI models. It is the industry's scarcest and most expensive resource. The AI Landscape Today
- compute-bound Limited by how fast arithmetic can be done, because each number loaded is reused many times, as in large matrix multiplications. GPUs and Why AI Needs Them
- compute-optimal The split between model size and training tokens that gives the lowest loss for a fixed training compute budget. Scaling Laws
- concept drift A change in the relationship between inputs and the right answer, P(y|x). Inputs can look identical while predictions become wrong. Monitoring and Data Drift
- conda A package manager popular in science that can also install non-Python software such as compilers and CUDA libraries. Environments live in a central folder. Setting Up Your Environment
- conditional independence The assumption that once you know the class, one feature tells you nothing more about another. Naive Bayes
- conditional probability The probability of something given that you already know something else, written P(A | B). Language Modeling and Next-Token Prediction · Probability Basics
- conditioning Feeding extra information, such as a text prompt, class label or image, into a generative model so it steers what gets generated. Latent Diffusion and Stable Diffusion
- confabulation A term some researchers prefer to hallucination: producing false statements without intent to deceive, like false memories. Hallucinations
- confidence interval A range around an estimate that likely contains the true value, roughly the estimate ± 2 standard errors for 95% confidence. Statistics: Mean, Variance and Sampling
- confidential data Information that must not be shared outside approved channels, such as client material, trade secrets, unreleased results or passwords. Using AI Safely at Work
- configuration file A file, such as YAML or a Python dataclass, holding every setting of a run (learning rate, batch size, seed) instead of scattering constants through code. Experiment Tracking and Reproducibility
- conformity assessment A check, usually by the provider and sometimes by an independent body, that a high-risk AI system meets the legal requirements before it goes on the market. AI Regulation and Governance
- confusion matrix A table counting a classifier's true positives, false positives, false negatives and true negatives. Evaluation Metrics
- connectionism The idea that intelligence emerges from many simple connected units that learn by adjusting their connections. Today it is called deep learning. A Short History of AI
- connectionist temporal classification A training method (CTC) that lets a model label every audio frame with a symbol or a blank, then collapses repeats and blanks into text, without needing frame-by-frame alignments. Speech Recognition
- connector A link that lets an assistant search your own apps and files, such as email, calendar or a company drive. Clear it with IT first. Choosing an AI Assistant
- constitutional ai Anthropic's method of training for harmlessness using a short written list of principles that an AI applies to critique, revise and compare answers. RLHF and Preference Optimization
- constrained decoding Generating text while blocking every token that would break a schema or grammar, so the output is guaranteed to have a valid shape. Structured Output and JSON
- container A packaged image holding an app with its exact Python, libraries and model file, so it runs the same everywhere. Docker is the standard tool. Deploying Models
- contamination In scikit-learn's anomaly detectors, the expected fraction of anomalies, which sets the threshold for flagging. Anomaly Detection
- content credentials An open standard from the C2PA coalition that attaches a tamper-evident record of how a media file was made, including whether AI was used. Creating Images, Audio and Video with AI · Deepfakes and Misinformation
- content provenance A signed record, made at capture or creation and carried with a file, of where content came from and how it was edited. Deepfakes and Misinformation
- content-based filtering Recommending items similar in their own features, such as genre or text, to those a user liked. Works for brand-new items. Recommender Systems
- context budget A planned allocation of the context window to its parts, such as system prompt, tools, documents, history and reply, so no part crowds out the others. Context Engineering and Memory
- context engineering Deliberately choosing the whole set of tokens a model sees on each call: instructions, retrieved data, memory, history and tool results. Context Engineering and Memory
- context isolation Keeping each sub-agent's exploration in its own context window, so the lead agent sees only the condensed results rather than every page read. Multi-Agent Systems
- context length extension Techniques for running a model on longer inputs than it was trained on, mostly by adjusting positional encodings plus a little fine-tuning. Positional Encodings
- context rot The drop in answer quality as a context window fills up, because relevant facts get missed among irrelevant ones. Context Engineering and Memory
- context stuffing Putting many marginally relevant chunks into the prompt. It costs money, slows answers and can bury the passage that matters. Retrieval-Augmented Generation
- context vector The single fixed-size vector a basic seq2seq encoder passes to its decoder, meant to summarise the whole input sentence. Sequence-to-Sequence Models · Attention
- context window The maximum number of tokens a model can look at in one go, covering both your input and its output. Long Context and Efficient Attention · Tokenization · Large Language Models, Explained Simply
- contextual bandit A bandit where the best option depends on side information, such as who the user is. Most personalisation systems are contextual bandits. Multi-Armed Bandits and Exploration
- contextual embedding A vector for a word that depends on the sentence around it, so "bank" by a river and "bank" for money get different vectors. BERT and Encoder Models
- contextual retrieval Prepending a short LLM-written context to each chunk at indexing time, explaining where it comes from, so the chunk can be found and understood on its own. Advanced RAG
- continuous batching Rescheduling at every decode step: finished sequences leave and waiting requests join, keeping the batch full. Serving LLMs at Scale
- continuous integration Running the linter, type checker and tests automatically on a clean machine for every push and pull request, so no change skips the checks. Tests as Guardrails
- contour line A curve on a map joining points of equal height. On a loss landscape, the gradient always cuts straight across contour lines. Partial Derivatives and Gradients
- contrastive language–image pretraining Training image and text encoders so that matching image–caption pairs score high similarity and mismatched pairs score low. It is what the letters in CLIP stand for. CLIP and Contrastive Learning
- contrastive learning Learning an embedding space where different views of the same thing are pulled close together and views of different things are pushed apart. Self-Supervised Learning · Sentence Embeddings
- controlnet An add-on network that makes an image model follow a spatial guide such as an edge map, depth map or pose skeleton. Text-to-Image in Practice
- convergence The point where training stops improving because the parameters have settled near a minimum and the loss has levelled off. Gradient Descent
- conversation summarisation Keeping recent turns word for word and folding older turns into a running summary, so a long chat fits in the context window. Context Engineering and Memory
- convnext A 2022 CNN that modernised ResNet with Transformer-era choices (patchify stem, large depthwise kernels, LayerNorm, GELU) and matched vision Transformers of similar size. Classic CNN Architectures: LeNet to ResNet
- convolution Sliding a small filter across an input and, at each position, multiplying the overlapping numbers and adding them up to produce one output value. Convolutional Neural Networks
- convolutional neural network A network for grid-shaped data such as images that slides small learned filters across its input, sharing the same weights at every position. Also called a CNN or convnet. Convolutional Neural Networks
- correlation A number from −1 to +1 measuring how well a straight line describes how two quantities move together. Zero means no straight-line relationship; it never proves causation. Statistics: Mean, Variance and Sampling
- corrigibility The property of an AI system that doesn't resist being corrected, modified or shut down. AI Alignment
- cosine decay A schedule that lowers the learning rate smoothly along half a cosine wave from its peak to a minimum by the final step. Learning Rate Schedules
- cosine similarity The cosine of the angle between two vectors: 1 when they point the same way, 0 when unrelated, −1 when opposite. Sentence Embeddings · Dot Product, Norms and Similarity
- cost function Another name for the loss function, sometimes used for the loss averaged over the whole dataset. Loss Functions
- cost per token What it costs to generate tokens, usually per million: GPU cost per hour divided by tokens produced per hour. Serving LLMs at Scale
- coupling layer An invertible flow layer that leaves half its input unchanged and uses it to scale and shift the other half, so it is easy to invert with a cheap determinant. Normalizing Flows and Flow Matching
- covariance matrix A table of how each pair of features varies together; the diagonal holds each feature's variance. PCA and Dimensionality Reduction
- covariate shift Data drift where the input distribution P(x) changes but the rule linking inputs to outputs stays the same. Monitoring and Data Drift
- credit assignment The problem of working out which of many earlier actions deserve credit or blame for a reward that arrives much later. Reinforcement Learning: The Basics
- critic The value-function part of an actor-critic method, which judges whether each step went better or worse than expected. Actor-Critic Methods
- cross-attention Attention where queries come from one sequence and keys and values from another, such as a decoder reading an encoder or an image reading a text prompt. Self-Attention and Multi-Head Attention
- cross-encoder A model that reads a query and a document together and outputs a relevance score. Accurate but slow, so it is used to rerank shortlists. Advanced RAG · Sentence Embeddings
- cross-entropy The average negative log probability a model gave to the true tokens; its average surprise. It is the loss language models minimise in training. Language Modeling and Next-Token Prediction · Entropy, Cross-Entropy and KL Divergence · Loss Functions
- cross-validation Rotating which part of the data is held out for validation, training several times and averaging the scores, for a steadier estimate. Cross-Validation
- crowding problem In 2D there isn't room for all of a high-dimensional point's moderately near neighbours, so clusters smear together without a heavy-tailed kernel. t-SNE and UMAP
- csv Comma-separated values: a plain-text table with one row per line and commas between columns. The most common format for tabular data. Pandas and Working with Data
- ctc blank The extra "no new symbol here" output in CTC. It fills gaps between sounds and separates genuinely repeated letters, such as the two l's in "hello". Speech Recognition
- cuda NVIDIA's platform, released in 2007, for programming its GPUs. PyTorch uses CUDA libraries behind the scenes. GPUs and Why AI Needs Them
- curse of dimensionality In very many dimensions, points are all roughly equally far apart, so nearness carries little information and data becomes sparse. k-Nearest Neighbours
- custom gpt ChatGPT's version of a custom assistant: saved instructions and documents packaged so every chat starts with that context and others can use it. AI in Your Daily Workflow
- custom instructions A standing note about you and your preferences that an assistant adds to every conversation, such as "use British spelling; be concise". Choosing an AI Assistant
- custom subagent A helper agent you define, with its own instructions, a restricted tool list and optionally a different model. It works in a separate context and returns a summary. Extending Your Agent: Skills, Hooks, MCP and Subagents
- cutmix Augmentation that pastes a rectangle from one image into another and mixes the labels in proportion to the area each image covers. Data Augmentation
- cyclical encoding Placing a repeating quantity such as hour of day on a circle using its sine and cosine, so 23:00 ends up next to midnight. Feature Engineering
D
- dangerous capability evaluation A test of whether a model can do specific hazardous things, such as help with weapons, exploit software or copy itself. AI Risks and Safety
- dark knowledge The information in a model's small probabilities for wrong answers, such as a cat looking a bit like a dog, which one-hot labels throw away. Knowledge Distillation and Small Models
- data accumulation Adding synthetic data alongside the original real data instead of replacing it, which avoids model collapse in experiments. Synthetic Data
- data analysis tool An assistant feature that writes and runs small programs on your actual file to calculate, chart and clean data, instead of guessing from text. AI for Data and Spreadsheets
- data centre A building full of servers, networking and cooling equipment where AI models are trained and run. The Energy Cost of AI
- data cleaning Fixing the inconsistencies that break analysis, such as duplicate names, mixed date formats, stray spaces and blank rows. AI for Data and Spreadsheets · Data Cleaning and Preparation
- data contamination Test questions or answers appearing in a model's training data, which inflates its benchmark score. Evaluating LLMs and Benchmarks
- data distribution The pattern of how likely each possible example is in real data, written p(x). Realistic photos have high p(x); random static has almost none. What Generative Models Do
- data drift A change in the distribution of a model's inputs compared with the data it was trained on. Monitoring and Data Drift
- data exfiltration Getting private data out of a system to an attacker, for example by making a model put secrets into an email or an image URL. Prompt Injection and LLM Security
- data leakage Information that wouldn't be available at prediction time sneaking into training or evaluation, making a model look better than it really is. Training, Validation and Test Sets
- data mixture The proportions of web text, code, books, papers, maths and other sources combined for pretraining. Pretraining Large Language Models
- data parallelism Every GPU holds a full copy of the model and processes a different slice of each batch; gradients are averaged so the copies stay identical. Distributed Training
- data pipeline The automated chain of steps that turns raw data into a training set: ingest, validate, clean, label, split, version, document and load. Data Pipelines and Datasets
- data poisoning Slipping crafted examples into a model's training data so it learns a hidden behaviour, such as a backdoor that triggers on a particular pattern. Adversarial Examples
- data protection Law, such as the EU and UK GDPR, governing how personal data may be collected and processed, including for AI training. Privacy, Data and Copyright
- data retention How long an AI provider keeps your chats and files. It ranges from about 30 days to years, depending on provider, plan and settings. Using AI Safely at Work
- data type The kind of value something is, such as a whole number (int), a decimal (float), text (str) or True/False (bool). It decides what you can do with the value. Python for AI
- data validation Checking each new batch of data against expectations (schema, ranges, missing values, volume) and blocking batches that fail. Data Pipelines and Datasets
- data versioning Recording exactly which version of a dataset was used, with a content hash or a tool like DVC, so old results stay reproducible. Experiment Tracking and Reproducibility
- dataframe A pandas table with named columns, each of one type, and a label for every row. Like a spreadsheet you control with code. Pandas and Working with Data
- dataloader A PyTorch object that wraps a dataset and serves shuffled mini-batches, optionally loading data in parallel worker processes. PyTorch
- dataset In PyTorch, an object that knows how many examples it has and returns example number i. TensorDataset wraps tensors you already have. PyTorch
- datasheet Standard documentation for a dataset: why and how it was made, what each record means, what is missing or skewed and what uses are inappropriate. Data Pipelines and Datasets
- dbscan A density-based clustering method that grows clusters through dense regions, finds clusters of any shape, and labels isolated points as noise. k-Means Clustering
- ddim A faster, deterministic sampler for an already trained diffusion model. It predicts the clean data and re-noises to a much lower level, jumping many steps at once. Diffusion Models
- ddpm Denoising Diffusion Probabilistic Models (Ho, Jain and Abbeel, 2020): the paper and sampler that trained a denoiser by noise prediction and sampled over about 1,000 small steps. Diffusion Models
- dead neuron A ReLU neuron whose input is negative for every example, so it always outputs 0, gets zero gradient, and can never recover. Activation Functions
- deadly triad The combination of function approximation, bootstrapping and off-policy learning, which can make value estimates diverge. Deep Q-Networks
- deceptive alignment A hypothetical failure where a model with different goals behaves well because it knows it is being watched or trained, and differently otherwise. AI Alignment
- decibel A logarithmic unit of loudness or power: every 10 dB is a tenfold change in power. Computed as 10 log₁₀(power). Audio as Data
- decision boundary The line, plane or hyperplane where a classifier switches from one answer to the other. For a perceptron it is where w · x + b = 0. The Perceptron · Logistic Regression
- decision threshold The probability cut-off above which a classifier predicts the positive class. Usually 0.5, but best set from the costs of each kind of error. Logistic Regression
- decision tree A model that predicts by asking a series of yes/no questions about the features, following branches from the root to a leaf. Decision Trees
- decode The phase of generation that produces tokens one at a time, each step reading all the weights and the whole KV cache from memory. The KV Cache and Fast Inference
- decoder The part of a model that generates the output one token at a time, conditioned on the encoder's representation and its own previous outputs. Sequence-to-Sequence Models · The Transformer
- decoder-only model A Transformer made only of causally masked blocks, with no encoder, trained to predict the next token. Nearly all modern LLMs use this design. GPT and Decoder-Only Models
- decoding The procedure that turns a model's next-token probabilities into actual text, one token at a time, such as greedy choice or sampling. Decoding: Temperature, Top-k and Top-p
- deduplication Removing exact and near-duplicate documents from training data, so compute isn't wasted and the model doesn't memorise repeated text. Pretraining Large Language Models
- deep learning Machine learning with large neural networks made of many layers of simple units. It has driven most AI breakthroughs since about 2012. What Is AI?
- deep q-network DQN: Q-learning with a neural network instead of a table, stabilised by experience replay and a target network. It learned Atari games from pixels. Deep Q-Networks
- deep research An assistant mode that spends several minutes running dozens of searches and reading many sources to write a long, referenced report. AI for Research and Learning
- deepfake Synthetic media that realistically shows a real person saying or doing something they never said or did. Deepfakes and Misinformation
- defence in depth Using several independent safety layers, each catching some of what the others miss, because no single safeguard is reliable. AI Risks and Safety
- degradation problem The finding that adding more layers to a plain network can raise its training error, because the deeper network is harder to optimise. Residual Connections
- delegation In the 4D framework, setting goals and deciding whether, when and how to use AI, and which part of a task to give it. AI Fluency: Working Well with AI
- demographic parity A fairness metric requiring every group to be selected at the same rate, regardless of true outcomes. Bias and Fairness
- dendrogram A tree diagram of the merges in hierarchical clustering. Cutting it at a height gives that many clusters. k-Means Clustering
- denoiser The network in a diffusion model that takes a noisy example and its step number and predicts the noise that was added, often a U-Net or Transformer. Diffusion Models
- denoising autoencoder An autoencoder given a corrupted input and trained to rebuild the clean original. It must learn what real data looks like, the seed of diffusion models. Autoencoders
- denoising strength A number between 0 and 1 in img2img that sets how much noise is added to the input. 0 returns it unchanged; 1 ignores it entirely. Text-to-Image in Practice
- dense vector A vector of a few hundred or thousand dimensions, nearly all non-zero, such as a neural embedding. It captures meaning rather than exact words. Embeddings and Semantic Search
- density estimation Learning how likely each kind of example is, a probability distribution over the data, so you know what normal looks like. Unsupervised Learning
- dependency Another package that a package needs in order to work. Installing PyTorch also pulls in its dependencies. Setting Up Your Environment
- deployment Putting software online so other people can use it. The point at which to decide whether it needs an engineer's review. Building Apps Without Coding
- depth separation The finding that some functions a deep network computes cheaply would need exponentially many neurons in a shallow one. Why Neural Networks Work
- depthwise separable convolution A cheap convolution split in two: a per-channel spatial filter (depthwise) then a 1 × 1 filter that mixes channels (pointwise). Used by MobileNet for phones. Classic CNN Architectures: LeNet to ResNet
- derivative The slope of a function at a point: how much the output changes per unit change of the input, for a tiny nudge. In AI it says which way to move each weight. Derivatives and Slopes
- description In the 4D framework, clearly describing what you want, how the AI should go about it and how it should behave, so you get useful output. AI Fluency: Working Well with AI
- deskilling The loss of ability that happens when relying on a tool erodes the skills you need to do the work, or to check the tool. AI, Work and the Economy
- deterministic policy A policy that always picks the same action in a given state. Markov Decision Processes
- device Where a tensor's data lives and is computed in PyTorch:
cpu,cuda(an NVIDIA GPU) ormps(an Apple-silicon GPU). GPUs and Why AI Needs Them - dice coefficient A mask overlap score: twice the shared pixels divided by the total pixels of both masks. Always at least as large as IoU; 1 means a perfect match. Image Segmentation
- dictionary A collection of key–value pairs in curly braces, looked up by key rather than position, as in
config["lr"]. Often used for settings. Python for AI - dictionary learning Finding a large set of directions such that every activation vector is a sum of just a few of them. Mechanistic Interpretability
- diff The line-by-line list of differences between two versions of code: removed lines marked with -, added lines with +. It is where you review what an agent actually changed. Git for Agent Work
- differential privacy A mathematical guarantee that an analysis's result is almost equally likely whether or not any one person's data is included, usually achieved by adding calibrated noise. Privacy, Data and Copyright
- diffusion model A generative model that learns to undo a gradual noising process. It generates by starting from pure noise and removing a little predicted noise at each of many steps. Diffusion Models
- diffusion transformer A diffusion or flow model whose denoiser is a plain Transformer working on a sequence of small latent patches instead of a convolutional U-Net. Diffusion Transformers
- digital watermark A hidden signal embedded in content when it is generated, invisible to people but detectable by software that knows the secret key. Deepfakes and Misinformation
- diligence In the 4D framework, taking responsibility for what you do with AI: choosing tools carefully, being open about AI's role and owning what you share. AI Fluency: Working Well with AI
- dimension The number of components in a vector.
[120, 4, 30]is 3-dimensional; a 28 × 28 image flattened into a list is 784-dimensional. Vectors - dimensionality reduction Describing each example with fewer numbers while keeping what matters, for compression, speed or plotting. Unsupervised Learning
- dino A self-supervised method that trains a student network to match a slowly updated teacher on different crops of the same image, learning strong features without labels. Vision Transformers
- direct prompt injection Prompt injection where the attacker is the user, typing into the chat to override the developer's instructions. Prompt Injection and LLM Security
- directed acyclic graph Steps joined by arrows that only go forward, never in a loop (DAG). Pipeline orchestrators run each step once its inputs are ready. Data Pipelines and Datasets
- directional derivative The slope of a function when you step in a chosen direction: the dot product of the gradient with a unit vector pointing that way. Partial Derivatives and Gradients
- disaggregated serving Running prefill and decode on separate pools of GPUs, each sized for its own bottleneck, and passing the KV cache between them. Serving LLMs at Scale
- discernment In the 4D framework, judging how accurate, sound and useful the AI's output and behaviour actually are. AI Fluency: Working Well with AI
- disclosure Telling the people who rely on your work that AI helped make it, when they would otherwise feel misled. Using AI Safely at Work
- discount factor A number γ between 0 and 1 that shrinks rewards the later they arrive. Near 0 the agent is short-sighted; near 1 it is far-sighted. Reinforcement Learning: The Basics
- discriminative learning rate Giving different layer groups different learning rates when fine-tuning, smallest for early general layers and largest for the head. Transfer Learning
- discriminative model A model that learns p(y | x), the probability of a label given an input, such as spam or not spam. It only needs the boundary between classes, not what the data looks like. What Generative Models Do
- discriminator The network in a GAN that outputs the probability that a sample is real. It acts as a learned, constantly improving loss for the generator. Generative Adversarial Networks
- disparate impact When a decision process selects one group at a much lower rate than another. A selection-rate ratio below 0.8 is the traditional US warning sign. Bias and Fairness
- distance metric A rule turning two feature vectors into one non-negative number that is zero when they are identical, such as Euclidean distance. k-Nearest Neighbours
- distillation temperature A number that divides the logits before softmax in distillation. Higher values flatten the distribution so small probabilities become visible. Knowledge Distillation and Small Models
- distributed training Splitting the work of training one model across many GPUs and machines to beat limits of time and memory. Distributed Training
- distribution shift When the data a model meets in use differs from the data it was trained and tested on, such as a new hospital's scanners. Training, Validation and Test Sets
- distributional hypothesis The idea that words appearing in similar contexts tend to have similar meanings: you know a word by the company it keeps. Word Embeddings
- divided space-time attention Splitting video attention into two cheaper steps: each patch attends to the same position in other frames, then to the patches of its own frame. Video Understanding
- document ai Systems that understand documents beyond plain OCR: their layout, tables and form fields, so they can extract data or answer questions about a page. OCR and Document AI
- document visual question answering Answering questions about a document image, such as "what is the deductible?", tested by benchmarks like DocVQA. OCR and Document AI
- domain shift A difference between the data a model was trained on and the data it is used on, such as everyday photos versus medical scans. Transfer Learning
- dot product Multiplying two vectors component by component and adding up the results, giving one number. Large and positive means they point the same way. Dot Product, Norms and Similarity
- dot-product attention Scoring attention by the dot product of query and key. It is simple and fast because all scores come from one matrix multiplication. Attention
- double descent Test error peaking where a model can just fit the training data exactly, then falling again as capacity keeps growing. Overfitting and the Bias–Variance Tradeoff
- double dqn A DQN variant where the online network chooses the next action and the target network scores it, which reduces overestimation. Deep Q-Networks
- double q-learning A fix for maximization bias that keeps two value tables: one picks the best next action and the other scores it. Q-Learning
- dpo Direct Preference Optimization: training directly on preference pairs to raise the preferred answer's probability relative to the reference model, with no reward model or RL. RLHF and Preference Optimization
- dropout A regulariser that switches off each hidden neuron at random with probability p during training, so no neuron can rely on another. It does nothing at evaluation. Dropout and Regularizing Neural Networks
- dueling network A Q-network whose head is split into a state value and per-action advantages, then recombined, so it can learn which states are good without judging every action. Deep Q-Networks
- dyna Sutton's 1990 architecture that, after each real step, also updates its model and replays many imagined transitions from it. Model-Based RL and World Models
- dynamic loss scaling Adjusting the loss scale automatically: halve it and skip the step on overflow, double it after many good steps. Mixed Precision Training
- dynamic programming Bellman's family of methods that compute values by sweeping the Bellman equation over every state, using a known model of the environment. Value Functions and Bellman Equations
- dynamic quantization Storing weights in INT8 and computing activation scales on the fly at run time. Quantization
- dynamics function The function p(s′, r | s, a) giving the probability of each next state and reward for every state and action. It is the complete rulebook of an MDP. Markov Decision Processes
E
- early fusion Training one Transformer from the start on sequences that mix image, text and sometimes audio tokens, instead of attaching a separate vision encoder later. Multimodal LLMs
- early stopping Ending training when validation error stops improving, before the model starts memorising the training data. Regularization: L1 and L2
- edge A connection between two nodes in a graph. Edges can be directed or undirected and can carry their own features. Graph Neural Networks
- edge deployment Running the model on the user's own device: no network round trip, works offline, keeps data private, but the model must be small. Deploying Models
- edit format The convention a coding agent uses to express a file change, such as whole-file rewrite, search-and-replace or unified diff. AI Coding Assistants and Agents
- effective context length The length up to which a model keeps its short-context quality, often much shorter than its advertised context window. Long Context and Efficient Attention
- eigendecomposition Writing a symmetric matrix as QΛQᵀ: rotate so the eigenvectors line up with the axes, stretch each axis by its eigenvalue, rotate back. PCA rests on it. Eigenvectors and SVD
- eigenvalue The number by which a matrix stretches its eigenvector. Above 1 stretches, between 0 and 1 shrinks, negative flips. Eigenvectors and SVD
- eigenvector A direction that a matrix only stretches or flips, never turns: Av = λv. Its stretch factor is the eigenvalue. Eigenvectors and SVD
- elastic net A penalty combining L1 and L2. It keeps the lasso's sparsity but shares weight among groups of correlated features. Regularization: L1 and L2
- elbo The evidence lower bound: reconstruction quality minus the KL distance from the prior. It sits below the true log-likelihood, so raising it trains a VAE. Variational Autoencoders
- elbow method Choosing k by plotting inertia against k and looking for the bend where it stops falling steeply. k-Means Clustering
- element-wise product Multiplying two lists of the same length entry by entry and keeping the list, written ⊙. For example, (1, 2) ⊙ (3, 4) = (3, 8). Math Notation Cheat Sheet
- elo rating A rating scale borrowed from chess. A 100-point gap means the higher-rated model is expected to win about 64% of head-to-head comparisons. Evaluating LLMs and Benchmarks
- embedding A list of numbers (a vector) representing a piece of text, placed so that texts with similar meanings get similar vectors. Embeddings and Semantic Search
- embedding layer A learnable table with one vector per vocabulary item; looking up a word means taking its row. The first layer of every language model. Word Embeddings
- embedding model A neural network that turns text into a fixed-length embedding vector. Queries and documents must be embedded with the same model. Embeddings and Semantic Search · Sentence Embeddings
- embodied emissions Emissions released by manufacturing the hardware and buildings, before the model is trained or used. The Energy Cost of AI
- emergent ability A skill that seems to appear suddenly once models pass a certain size. Part of the suddenness can come from all-or-nothing metrics. GPT and Decoder-Only Models
- encoder The part of a model that reads the input and turns it into an internal representation, such as a context vector or a set of hidden states. Sequence-to-Sequence Models · The Transformer
- encoder model A Transformer with full, unmasked attention that turns text into one vector per token. Good at classification, search and extraction, not generation. BERT and Encoder Models
- encoder-decoder A design that pairs an encoder, which reads the input, with a decoder, which writes the output. Used by seq2seq models, the original Transformer, T5 and Whisper. Sequence-to-Sequence Models · The Transformer
- encoder–decoder architecture A network that first compresses its input into a compact representation (encoder) and then expands it back into a full-size output (decoder). Image Segmentation
- energy per query The energy used to answer one request. Around 0.24 to 0.34 Wh for a typical text chatbot reply in 2025, but much more for images, video or long reasoning. The Energy Cost of AI
- ensemble A model built by combining the predictions of many models, such as averaging or voting. Random Forests and Bagging
- entropy The average surprise of a probability distribution: how uncertain you are before seeing the outcome. Highest when all outcomes are equally likely, zero when one is certain. Entropy, Cross-Entropy and KL Divergence
- entropy bonus A reward for keeping the action distribution spread out, which stops the policy becoming deterministic too early and keeps it exploring. Actor-Critic Methods
- enum A field whose value must be one of a fixed list of options, such as GBP, EUR or USD. Enums make classification reliable. Structured Output and JSON
- environment Everything outside the agent that it interacts with. It answers each action with a reward and a new state. Reinforcement Learning: The Basics · Supervised, Unsupervised and Reinforcement Learning
- environment variable A named value the operating system passes to a program, used to supply secrets like API keys without writing them in code. Using LLM APIs
- episode One run of the agent–environment loop from a starting state to an end, such as one game or one attempt to cross a grid. Reinforcement Learning: The Basics
- epoch One full pass through all the training data. Training usually runs for several epochs. Gradient Descent
- epsilon-greedy An exploration rule: with small probability ε pick a random action, otherwise pick the one with the highest current estimate. Multi-Armed Bandits and Exploration
- equal opportunity A weaker form of equalized odds requiring only equal true positive rates, so qualified people in every group get through at the same rate. Bias and Fairness
- equalized odds A fairness metric requiring equal true positive rates and equal false positive rates across groups. Bias and Fairness
- error analysis Reading many real outputs, noting each failure, and grouping and counting the failure types to decide what to measure and fix. Evaluating LLM Applications
- estimator In scikit-learn, any object that learns from data with
fit, such as a model or a scaler. scikit-learn - eu ai act The European Union's comprehensive AI law (Regulation 2024/1689), in force since August 2024, which sets obligations by risk tier and for general-purpose AI models. AI Regulation and Governance
- euclidean distance The straight-line distance between two points: the length of their difference vector. It is what k-nearest neighbours and k-means use by default. Dot Product, Norms and Similarity
- euler method The simplest way to follow a velocity field: repeatedly move a small time step Δt along the current velocity. Normalizing Flows and Flow Matching
- eval An automated test of an AI application's behaviour on a set of examples, producing a score you can track across changes. Evaluating LLM Applications
- eval set A fixed collection of realistic inputs, with expected outputs or criteria, used to score every version of an AI application the same way. Evaluating LLM Applications
- evaluation mode The state set by
model.eval(), in which dropout is switched off and batch norm uses stored averages. Use it when measuring performance. PyTorch - evaluator-optimizer A pattern where one call produces an answer, another critiques it against clear criteria, and the first revises, looping until good enough or a round limit. AI Agents
- event Any collection of outcomes you care about, such as "the die shows an even number" or "this email is spam". Probability Basics
- example One row of data: the features describing one case, plus its label in supervised learning. Supervised Learning
- exception An error that stops normal execution, such as a KeyError or TypeError. Python raises it and prints a traceback unless code catches it. Python for AI
- excessive agency Giving an LLM more permissions, tools or autonomy than its job requires, which magnifies the harm a manipulated model can do. Prompt Injection and LLM Security
- expected calibration error ECE: the average gap between confidence and actual accuracy across confidence bins, weighted by how many predictions fall in each bin. Hallucinations
- expected improvement An acquisition function: the average amount a candidate setting is expected to beat the best score so far, counting only improvements. Hyperparameter Tuning
- expected return The average return over all the randomness in the environment and the policy. It is what a good policy maximises. Markov Decision Processes
- expected value The long-run average of a random variable: each possible value times its probability, all added up. A fair die's expected value is 3.5. Probability Basics · Math Notation Cheat Sheet
- experience replay Storing past transitions and training on random batches drawn from them, which breaks correlations in the data and reuses each experience many times. Deep Q-Networks
- experiment tracking Automatically recording the code version, data version, configuration, seed, environment and results of every training run. Experiment Tracking and Reproducibility
- expert One of the parallel feed-forward networks in a mixture-of-experts layer. Each token is processed by only a few of them. Mixture of Experts
- expert capacity The maximum number of tokens an expert accepts per batch. Overflow tokens skip that layer through the residual connection. Mixture of Experts
- expert parallelism Placing different experts on different GPUs and sending each token to wherever its chosen experts live. Mixture of Experts
- expert system A 1980s-style AI program that encoded human experts' knowledge as hundreds or thousands of IF–THEN rules. Useful but brittle, and unable to learn. A Short History of AI
- explainability Methods that produce explanations after the fact for models that aren't interpretable on their own. Often used interchangeably with interpretability. Interpretability and Explainability
- explained variance The share of the data's total variance captured by a principal component, its eigenvalue divided by the sum of all eigenvalues. PCA and Dimensionality Reduction
- explicit feedback A rating a user deliberately gives, such as 4 stars or a thumbs up. Clear but rare. Recommender Systems
- exploding gradient A gradient that grows huge as it is passed back through many layers, causing wild updates and often a
nanloss. Vanishing and Exploding Gradients - exploration–exploitation trade-off The tension between using the option that looks best so far (exploiting) and trying others to learn whether they are better (exploring). Multi-Armed Bandits and Exploration
- exploratory data analysis The loop of looking at data, asking questions and summarising it, with tables and plots, before building any model. Pandas and Working with Data
- explore-plan-code-verify A four-step rhythm for agent work: the agent reads the relevant code, proposes a plan you correct, implements it in small steps, then you check every requirement. Planning and Specs: Telling an Agent What to Build
- exponent The bits of a floating-point number that set its range: how large or small it can be. Quantization
- exponential backoff A retry strategy that waits longer after each failure, doubling the delay (1 s, 2 s, 4 s…), usually with a little random jitter. Using LLM APIs
- exposure bias The mismatch caused by teacher forcing: the model never practised building on its own mistakes, so one wrong token can derail generation. Sequence-to-Sequence Models
F
- f1 score The harmonic mean of precision and recall, which stays low if either is low. Evaluation Metrics
- fabricated citation A reference produced by AI that looks real, with authors, title and year, but doesn't exist or doesn't say what is claimed. Checking AI Output
- factuality Whether an output is true about the world. Hallucinations
- fair use The US doctrine allowing some unlicensed uses of copyrighted work, judged by purpose, nature of the work, amount used and market effect. Privacy, Data and Copyright
- fairness metric A number that compares some statistic of a model's behaviour, such as selection or error rates, across groups. Bias and Fairness
- fairness through unawareness Trying to be fair by removing the protected attribute from a model's inputs. It rarely works, because proxies leak the same information. Bias and Fairness
- faithfulness Whether a model's written reasoning truly reflects what drove its answer; often weak. In RAG evaluation, also whether every claim is supported by the retrieved text. Chain-of-Thought and Reasoning Prompts · Hallucinations · Interpretability and Explainability
- false negative An example that is actually positive but was predicted negative: a miss. Also called a type II error. Evaluation Metrics
- false positive An example that is actually negative but was predicted positive: a false alarm. Also called a type I error. Evaluation Metrics
- fan-in The number of inputs feeding into a neuron or layer. Weight Initialization
- fan-out The number of outputs a layer produces, that is, its number of neurons; it sets how gradients spread on the backward pass. Weight Initialization
- fast fourier transform A fast algorithm (FFT) for the discrete Fourier transform, taking about N log N steps instead of N². Every audio library uses it. Audio as Data
- feature One piece of information about an example that the model uses as input, such as a house's floor area. Usually written x. Supervised Learning
- feature engineering Creating better input features from raw data, such as ratios, date parts, counts or flags, so the needed information is easy for a model to use. Feature Engineering
- feature extraction Transfer learning that freezes a pretrained network's body and trains only a new head on top of its features. Transfer Learning
- feature importance A score for how much a model relies on each feature, such as the total impurity decrease from splits on it. Random Forests and Bagging
- feature map The grid of outputs produced by sliding one filter across the input, showing where its pattern appears. Convolutional Neural Networks
- feature scaling Putting numeric features on comparable scales so that none dominates distances, gradients or penalties just because of its units. Data Cleaning and Preparation · k-Nearest Neighbours
- feature selection Keeping only the useful features and dropping irrelevant ones, for example with the lasso, tree importances or validation checks. Feature Engineering
- feature subsampling Letting each split, or each tree, choose only from a random subset of the features, which makes ensemble trees less alike. Random Forests and Bagging
- feature vector A vector describing one example for a machine-learning model, where each component is a feature such as size, age or a pixel's brightness. Vectors
- federated learning Training a shared model without collecting raw data: devices train locally and send only model updates, which a server averages. Privacy, Data and Copyright
- feed-forward network The MLP in each Transformer block: two linear layers with a nonlinearity between, applied to each token separately. It holds much of the model's knowledge. The Transformer
- feedback loop When a model's decisions change the world that produces its future training data, so its predictions appear to confirm themselves. Bias and Fairness
- few-shot evaluation Testing a model with a few worked examples in the prompt. Scores can differ noticeably from zero-shot runs on the same benchmark. Evaluating LLMs and Benchmarks
- few-shot prompting Including a few example inputs with their desired outputs in the prompt, so the model copies the format, tone and handling of edge cases. Prompt Engineering · Asking Well: Everyday Prompting · GPT and Decoder-Only Models
- fgsm Fast Gradient Sign Method: an attack that adds ε times the sign of the loss gradient with respect to the input, nudging every pixel one step towards a wrong answer. Adversarial Examples
- filter A small grid of learned weights, such as 3 × 3, that a convolution slides across its input to detect one pattern. Also called a kernel. Convolutional Neural Networks
- fine-grained classification Telling apart very similar classes, such as 200 bird species or car models by year. It needs higher resolution and more data per class. Image Classification
- fine-tuning Continuing to train an already-trained model briefly on a small, targeted dataset. Good for changing behaviour, format and style; poor for adding facts. Fine-Tuning
- fine-tuning head A small, freshly initialised layer added on top of a pretrained model to produce outputs for a specific task, such as class labels. BERT and Encoder Models
- finite difference Estimating a derivative numerically by computing the slope between two nearby points, such as (f(x + h) − f(x − h)) / 2h. Used to check gradients, too slow for training. Derivatives and Slopes
- first draft An initial version of a piece of writing, to be edited and checked. AI can produce one quickly from your notes. AI for Writing and Communication
- fit The scikit-learn method that learns from training data: weights for a model, or means and spreads for a scaler. scikit-learn
- flashattention An exact attention algorithm that computes attention in tiles held in fast on-chip memory, never storing the full score matrix. It cuts memory from n² to n. Long Context and Efficient Attention
- floating point A way of storing real numbers as a sign, an exponent and a mantissa, like scientific notation. Quantization
- flops Floating-point operations, the additions and multiplications a computer performs. Training compute is counted in them. Pretraining Large Language Models · GPUs and Why AI Needs Them
- flow matching Training a network to predict the velocity along straight lines from random noise points to data points (target: data minus noise), then generating by following it. Normalizing Flows and Flow Matching
- fold One of the k roughly equal parts the data is split into for cross-validation. Cross-Validation
- forecast horizon How far ahead a forecast predicts. Features must be known that far in advance, so lags shorter than the horizon leak the future. Time Series Forecasting
- forecasting Predicting future values of a time series from its past, ideally with a sense of uncertainty. Time Series Forecasting
- forget gate The LSTM gate that decides how much of the old cell state to keep at each step. Near 1 means remember; near 0 means erase. LSTMs and GRUs
- formatter A tool that rewrites code into one consistent layout. It finds no bugs but keeps diffs free of style noise, so real changes stand out. Tests as Guardrails
- forward chaining Validation for time-ordered data: train on earlier periods and validate on the period just after, moving forward each round. Cross-Validation
- forward pass Running an input through a network layer by layer to compute its output. Neural Networks
- forward process The fixed, unlearned part of diffusion that adds a little Gaussian noise to data at each step until only pure noise remains. Diffusion Models
- foundation model A large pretrained model that can be adapted to many different uses, rather than built for one task. GPT and Decoder-Only Models · The AI Landscape Today
- fourier transform A calculation that breaks a signal into the sine waves it is made of, showing how much of each frequency it contains. Audio as Data
- fp16 Half precision: a 16-bit float with 5 exponent and 10 mantissa bits. More precise than BF16 but with a narrow range (max 65,504). Quantization
- fp8 An 8-bit floating-point format, supported by NVIDIA H100 and later GPUs, used for fast training and inference. Quantization
- frame rate How many still images per second a video contains, usually 24 to 60 frames per second (fps). Video Understanding
- frame sampling Choosing a subset of a video's frames to process, because neighbouring frames are nearly identical and using all of them is too costly. Video Understanding
- frame stacking Feeding the last few frames together as the state so it shows motion, which makes it closer to Markov. Deep Q-Networks
- free tier The no-cost version of an AI assistant, with daily limits and fewer features. On consumer plans, conversations may be used for training unless you switch it off. Choosing an AI Assistant
- frequency How many times a wave goes up and down per second, measured in hertz (Hz). Higher frequency sounds higher in pitch. Audio as Data
- frontier model One of the most capable AI models available at a given moment, made by the leading labs. The AI Landscape Today
- frontier safety framework A developer's if-then policy: if a model reaches a defined dangerous capability level, specific safeguards must be in place before training further or deploying it. AI Risks and Safety
- frozen weights Weights excluded from training updates, so they keep their pretrained values while other parts of the model learn. Fine-Tuning
- full fine-tuning Fine-tuning that updates every weight of the model. Most flexible, but needs a lot of GPU memory for gradients and optimizer state. Fine-Tuning
- fully connected layer A layer in which every input connects to every neuron, computed as Wx + b. Also called a dense or linear layer. Neural Networks
- fully sharded data parallel PyTorch's implementation of ZeRO stage 3 (FSDP): parameters, gradients and optimizer state are all sharded across GPUs. Distributed Training
- function A named, reusable block of code that takes inputs (arguments) and gives back an output with
return. Defined withdef. Python for AI - function approximation Representing values or policies with a parameterised function such as a neural network instead of a table, so learning generalises to unseen states. Deep Q-Networks
- function calling Another name for tool use: the model replies with a structured request to call one of your functions with specific arguments. Tool Use and Function Calling
- function composition Plugging the output of one function into another, as in f(g(x)). A neural network is a long composition of layers ending in a loss. The Chain Rule
G
- game tree The tree of all positions reachable from the current one, with a branch for each legal move. Monte Carlo Tree Search and AlphaGo
- gate A small learned layer with a sigmoid output between 0 and 1 that multiplies another signal, deciding how much of it to let through. LSTMs and GRUs
- gated model A model on the Hub you can download only after accepting its licence on the web page and logging in with an access token. The Hugging Face Ecosystem
- gated recurrent unit A simpler gated recurrent network with two gates (update and reset) and no separate cell state. About 25% smaller than an LSTM. Usually called a GRU. LSTMs and GRUs
- gaussian distribution The bell curve, also called the normal distribution, set by its mean μ and standard deviation σ. About 68% of values fall within one σ of the mean. Probability Distributions
- gaussian naive bayes Naive Bayes for continuous features, fitting a bell curve to each feature within each class. Naive Bayes
- gelu The Gaussian Error Linear Unit, z·Φ(z): a smooth version of ReLU that dips slightly below zero. Used in BERT and GPT models. Activation Functions
- general-purpose ai model A large model, such as GPT, Claude or Llama, that can serve many uses, regulated on a separate track under the EU AI Act. AI Regulation and Governance
- generalisation Doing well on examples the model has never seen, not just the ones it was trained on. It is the real goal of machine learning. Supervised Learning · How Machines Learn
- generalisation gap The difference between a model's error on new data and its error on its training data. A big gap signals overfitting. Overfitting and the Bias–Variance Tradeoff
- generalized advantage estimation GAE: an advantage estimate that is a discounted sum of future TD errors, with λ sliding between one-step TD (λ = 0) and Monte Carlo (λ = 1). Actor-Critic Methods
- generalized policy iteration The general pattern of an evaluation process and an improvement process pushing on each other until both settle. Almost every RL algorithm fits it. Value Functions and Bellman Equations
- generative adversarial network A pair of networks trained against each other: a generator turns noise into fake samples and a discriminator tries to tell them from real data. Generative Adversarial Networks
- generative ai AI that produces new content such as text, images, audio, video or code, rather than only labelling or scoring existing content. ChatGPT and Midjourney are examples. What Is AI?
- generative model A model that learns the distribution of its training data, p(x), well enough to produce new examples that look as if they came from the same data. What Generative Models Do
- generator The network in a GAN that turns random noise into samples. It never sees real data and learns only from the discriminator's gradients. Generative Adversarial Networks
- gflops Billions of floating-point operations, used to measure compute per forward pass. In DiT, more Gflops reliably meant better images. Diffusion Transformers
- gguf The single-file model format used by llama.cpp. It holds the (usually quantized) weights plus the architecture, tokenizer and chat template needed to run them. Running Models Locally
- gini impurity The chance that two examples drawn at random from a group have different classes. 0 for a pure group, 0.5 for a 50/50 two-class mix. Decision Trees
- git bisect A git command that finds the commit that introduced a bug by binary search through history, testing commits halfway between a known good and a known bad one. Reviewing and Debugging AI-Written Code
- global average pooling Averaging each final feature channel over all positions to get one number per channel. It replaces big fully connected layers and lets a network accept any image size. Classic CNN Architectures: LeNet to ResNet
- global batch size The total number of examples per training step across all GPUs: per-GPU batch times the number of data-parallel GPUs. Distributed Training
- global explanation An explanation of what a model relies on overall, across all its predictions. Interpretability and Explainability
- glove Stanford's 2014 word-embedding method that fits vectors so their dot products match the logarithm of how often word pairs co-occur in a corpus. Word Embeddings
- goal misgeneralisation When a model keeps its skills in a new situation but pursues the wrong goal, because several goals fitted the training data equally well. AI Alignment
- goodhart's law When a measure becomes a target, it ceases to be a good measure. Optimising hard on a proxy drives it apart from what it was meant to track. AI Alignment
- goodput Throughput counting only requests that met their latency targets. Serving LLMs at Scale
- gpt Generative Pre-trained Transformer: OpenAI's model series, and by extension any decoder-only Transformer trained to predict the next token. GPT and Decoder-Only Models
- gptq A post-training method that quantizes weights column by column, adjusting the remaining weights to compensate for each rounding error. Quantization
- gpu A graphics processing unit: a chip with thousands of simple cores that do the same operation on many numbers at once, ideal for matrix multiplication. GPUs and Why AI Needs Them
- gpu kernel A small function that runs on the GPU, executed by thousands of threads at once, each working on its own piece of the data. GPUs and Why AI Needs Them
- gpu offloading Splitting a model so some layers run on the GPU and the rest on the CPU. It lets a too-large model run, but much more slowly. Running Models Locally
- graceful degradation Falling back to something simpler, such as search results, a form or a human, when the model times out, errors or is unsure, instead of breaking. Building AI Products
- gradient The vector of all partial derivatives of a function. It points in the direction of steepest increase, and gradient descent steps the opposite way. Partial Derivatives and Gradients
- gradient accumulation Summing gradients over several small batches before each weight update, giving the effect of a bigger batch without more memory. Fine-Tuning an Open Model in Practice
- gradient boosting Boosting where each new small tree fits the negative gradient of the loss (the residuals, for squared error): gradient descent with trees as steps. Gradient Boosting: XGBoost and LightGBM
- gradient checking Testing a backward pass by comparing its gradients with slow numerical estimates obtained by nudging each parameter and re-measuring the loss. Backpropagation
- gradient checkpointing Recomputing activations during the backward pass instead of storing them, trading roughly 20% more time for much less memory. Fine-Tuning an Open Model in Practice
- gradient clipping Scaling a gradient down whenever its norm exceeds a threshold, keeping its direction. A cheap safety net against exploding gradients. Vanishing and Exploding Gradients · Build a GPT from Scratch
- gradient descent The algorithm that trains most AI models: compute the gradient of the loss, take a small step against it, and repeat. Gradient Descent
- gradient norm The overall size of a gradient: the square root of the sum of its squared entries. Logging it reveals vanishing or exploding gradients. Vanishing and Exploding Gradients
- gradual unfreezing Fine-tuning by unfreezing a pretrained network one block at a time, from the top down, after first training the new head. Transfer Learning
- graph Data made of things (nodes) and the connections between them (edges), such as atoms and bonds or people and friendships. Graph Neural Networks
- graph attention network A GNN that uses attention to learn how much each neighbour should count, rather than weighting them by a fixed formula. Also called a GAT. Graph Neural Networks
- graph convolutional network A simple GNN layer that adds self-loops, averages over neighbours with degree normalisation, then applies a shared weight matrix and a nonlinearity. Also called a GCN. Graph Neural Networks
- graph neural network A neural network for graph data, in which each node repeatedly gathers messages from its neighbours with shared weights and updates its own vector. Graph Neural Networks
- greedy decoding Generating output by always picking the single most likely next token. Fast, but can miss a better overall sequence. Sequence-to-Sequence Models · Decoding: Temperature, Top-k and Top-p
- greedy policy A policy that always picks the action with the highest estimated value. Being greedy on the true optimal values is optimal. Value Functions and Bellman Equations
- greyscale An image with one channel that stores only brightness. It is a weighted mix of R, G and B (0.299, 0.587, 0.114), since the eye is most sensitive to green. Images as Data
- grid search Trying every combination of a few chosen values for each hyperparameter. Simple, but the count multiplies quickly. Hyperparameter Tuning · scikit-learn
- grounding Making a model answer only from provided sources rather than its general memory, so its claims can be traced and checked. Retrieval-Augmented Generation · Checking AI Output · Hallucinations
- group k-fold k-fold cross-validation that keeps each group (patient, user) entirely in one fold, so validation uses only unseen groups. Cross-Validation
- group normalization Normalising within groups of channels for each example separately. Works with tiny batches, so it is used in detection and diffusion models. Normalization Layers: BatchNorm and LayerNorm
- group split A split that keeps all examples from the same group (patient, user, document) on one side, so the test set holds only unseen groups. Training, Validation and Test Sets
- group-wise quantization Using a separate scale for each small block of weights, typically 32 to 128. Standard for 4-bit LLMs. Quantization
- groupby The pandas split–apply–combine operation: split rows into groups by a column's values, summarise each group, and combine the results into a table. Pandas and Working with Data
- grouped-query attention Attention where query heads are split into groups that each share one key and value head, a compromise that shrinks the KV cache with little quality loss. The KV Cache and Fast Inference
- grpo Group Relative Policy Optimization: an RL method that scores each sampled answer against the average of its group, removing PPO's separate value model. Reasoning Models and Test-Time Compute · Proximal Policy Optimization
- guardrail A check outside the model that blocks or corrects bad inputs, outputs or actions, such as a schema validator, an injection filter or a spending limit. Building AI Products
- guidance scale The number w that sets how strongly classifier-free guidance pushes towards the prompt. 0 ignores it, 1 is plain conditioning, higher trades variety for prompt fidelity. Latent Diffusion and Stable Diffusion
H
- habit stacking Attaching a new habit to one you already have, such as running an action-items prompt right after every meeting. AI in Your Daily Workflow
- hallucinated api A function, option or package that a model invented and that doesn't exist, or existed only in an older version. Running the code usually exposes it at once. Reviewing and Debugging AI-Written Code
- hallucination Model output that is fluent and confident but false or unsupported by its sources. Hallucinations · What Is AI?
- handoff Passing control of a conversation, usually with its transcript, from one agent to another specialist agent, such as from a triage agent to a billing agent. Multi-Agent Systems
- hard negative A negative example that looks similar to the anchor but is not a match, added because random negatives become too easy. Sentence Embeddings
- hash-based split Assigning each example to train or test from a hash of its stable ID, so it always lands in the same split as the dataset grows. Data Pipelines and Datasets
- hat notation A hat over a symbol, as in ŷ, marking an estimate or a model's prediction rather than the true value. Math Notation Cheat Sheet
- hbm High-bandwidth memory: stacks of DRAM next to the processor, giving terabytes per second of bandwidth but limited, costly capacity. AI Hardware: GPUs, TPUs and Accelerators
- he initialization Drawing starting weights with variance 2/fan-in, which makes up for ReLU zeroing half the signal. Also called Kaiming initialisation. Weight Initialization
- head The final, task-specific layer or layers of a network, such as the classifier that maps features to class scores. Transfer Learning
- headless mode Running an agent non-interactively: one prompt in, no one to answer questions, result out, then it exits. Used in scripts, scheduled jobs and CI. Running Agents in Parallel and in the Background
- hierarchical clustering Clustering that repeatedly merges the two closest clusters, starting from single points, producing a tree of nested clusters. k-Means Clustering
- high-risk ai system Under the EU AI Act, AI used in sensitive areas such as hiring, credit, education or law enforcement, or as a safety part of regulated products. Allowed with strict obligations. AI Regulation and Governance
- hinge loss The loss max(0, 1 − m), where m is the margin. It is zero for examples correctly classified by at least 1 and is used by SVMs. Loss Functions · Support Vector Machines
- histogram A chart that splits a variable's range into bins and draws a bar for how many values fall in each, showing its shape, skew and odd spikes. Visualising Data
- histogram binning Bucketing each feature into a few hundred bins before training, so tree splits are only tried between bins. Much faster. Gradient Boosting: XGBoost and LightGBM
- hnsw Hierarchical Navigable Small World: a layered graph index where each vector links to near neighbours and search walks greedily from sparse top layers to the full bottom layer. Vector Databases
- holdout set Another name for the test set: data held out of all training and decisions, used for a final, honest estimate. Training, Validation and Test Sets
- hook Your own script that a coding agent runs automatically on an event, such as before a tool call or when it stops. The model can't skip it, so it enforces rules. Extending Your Agent: Skills, Hooks, MCP and Subagents
- huber loss A loss that is squared for small errors and grows linearly for large ones, beyond a threshold δ, so outliers can't dominate. Loss Functions · Deep Q-Networks
- hugging face hub The website huggingface.co where the AI community shares models, datasets and demo apps, each in its own repository. The Hugging Face Ecosystem
- human in the loop A design where a person reviews, approves or corrects the AI's work at defined points, chosen by how reliable the model is and how costly errors are. Building AI Products · Automating Work Without Code
- hunk One block of changed lines in a diff, with a few unchanged lines around it for context and a header such as @@ -5,13 +5,19 @@ giving its position. Reviewing and Debugging AI-Written Code
- hybrid architecture A model mixing many state space or recurrent layers with a few attention layers, combining cheap long context with precise recall. State Space Models and Mamba
- hybrid search Running keyword search and vector search on the same query and merging their result lists, so exact terms and similar meanings are both caught. Advanced RAG
- hyde Hypothetical document embeddings: the LLM writes a plausible answer, and that answer is embedded and used for the search, because it resembles the documents more than the question does. Advanced RAG
- hyperparameter A setting chosen before training that controls how a model learns, such as the learning rate, tree depth or k. Not learned from data. Hyperparameter Tuning
- hypothesis The function a learning algorithm currently proposes for how the label depends on the features. Classical textbooks use it to mean the model, written h. Supervised Learning
I
- ide An integrated development environment: an editor for writing, running and debugging code, such as VS Code or PyCharm. Setting Up Your Environment
- ide agent A coding agent built into a code editor that shows its edits in the editor as it works, so you can watch and accept or reject them. Examples: Cursor, GitHub Copilot in VS Code. What Is Agentic Coding?
- identity matrix A square matrix with 1s on the diagonal and 0s elsewhere. Multiplying by it leaves any vector unchanged, like multiplying a number by 1. Matrices and Matrix Multiplication
- ill-conditioning A loss landscape that is much steeper in some directions than others, like a long narrow valley, which makes plain gradient descent zig-zag. Optimizers: SGD, Momentum and Adam
- image classification Assigning one label from a fixed list of classes to a whole image, such as cat, dog or defect. Image Classification
- image editing Changing an existing image with AI, such as removing a background, extending the edges or editing by instruction ("make it evening"). Creating Images, Audio and Video with AI
- image normalisation Rescaling each colour channel by subtracting its mean and dividing by its standard deviation, so inputs centre near 0 with a spread of about 1. Images as Data
- image segmentation Labelling every pixel of an image with what it shows and, if wanted, which object it belongs to. Image Segmentation
- image tiling Cutting a large image into several fixed-size tiles plus a downscaled overview and encoding each, so a model can see fine detail at the cost of more tokens. Multimodal LLMs
- image token A vector representing part of an image that a language model reads in its input sequence, just like a text token. One image is often hundreds of them. Multimodal LLMs
- image-to-video Generating a video conditioned on a given first frame (or first and last frames), so the model animates an existing picture. Video Generation
- image–text retrieval Finding the images that best match a text query, or the texts that best match an image, by nearest-neighbour search in a shared embedding space. CLIP and Contrastive Learning
- imagenet A dataset of millions of labelled photos in thousands of categories, released in 2009 by Fei-Fei Li's team. Its yearly competition sparked the deep learning boom in 2012. A Short History of AI
- imagined rollout A sequence of steps simulated inside a learned model rather than in the real environment. Model-Based RL and World Models
- img2img Generating from a partly noised version of an existing image instead of pure noise, so the input fixes the layout while the model redraws details. Text-to-Image in Practice
- implicit feedback Behaviour such as clicks, plays and purchases. Plentiful but noisy, and with only positives: an unclicked item is mostly unseen. Recommender Systems
- implicit generative model A generative model that can produce samples but has no formula for the probability of a given example, such as a GAN. It needs a different training signal, like a judge network. What Generative Models Do
- implicit regularization A built-in preference for simple, smooth solutions that comes from the training method itself, such as SGD from small random weights, not from an explicit penalty. Dropout and Regularizing Neural Networks
- import The statement that loads a package into your program so you can use it, as in
import numpy as np. Python for AI - importance sampling Correcting for data drawn from one distribution when you want an average under another, by weighting each sample by the ratio of their probabilities. Proximal Policy Optimization
- imputation Filling missing values with an estimate, such as the median or most frequent value, or a prediction from the other columns. Data Cleaning and Preparation · scikit-learn
- in-batch negatives Using the other examples in a training batch as free negatives for each anchor in contrastive learning. Sentence Embeddings
- in-context learning A model picking up a task from instructions or examples in the prompt, with no change to its weights. GPT and Decoder-Only Models
- inception module GoogLeNet's building block, which runs 1 × 1, 3 × 3 and 5 × 5 convolutions and pooling in parallel and concatenates the results, so one layer sees several scales. Classic CNN Architectures: LeNet to ResNet
- independence Two events are independent when knowing one tells you nothing about the other. Only then does P(A and B) = P(A) × P(B). Probability Basics
- index The labels of the rows in a pandas Series or DataFrame. By default 0, 1, 2…, but it can be dates, names or IDs. Pandas and Working with Data
- indicator function A function that gives 1 if a condition is true and 0 if it is false, written 𝟙[·]. Math Notation Cheat Sheet
- indirect prompt injection Prompt injection planted in content the model reads later, such as a web page, email or document, so an innocent user's request triggers it. Prompt Injection and LLM Security
- induction head An attention head that implements 'if A was followed by B earlier and A appears again, predict B', working with a previous-token head in an earlier layer. Mechanistic Interpretability
- inductive bias The assumptions a model or architecture builds in about the data, such as a CNN assuming a pattern means the same thing anywhere in an image. Convolutional Neural Networks · Why Neural Networks Work · Vision Transformers
- inertia The total squared distance from each point to its own cluster's centre. k-means tries to make it small. k-Means Clustering
- inference Using a trained model to make predictions on new data. Also called prediction; usually much faster than training. Supervised Learning · What Is AI?
- inference endpoint A URL that accepts input, usually JSON over HTTP, and returns the model's predictions. Deploying Models
- inference engine Software such as vLLM or SGLang that serves an LLM behind an API, with batching, KV-cache management and other speed tricks. Serving LLMs at Scale
- infiniband A high-speed network used to connect thousands of servers in a training cluster; much slower than NVLink. AI Hardware: GPUs, TPUs and Accelerators
- infonce loss The contrastive loss that applies softmax over the similarities of one example to all candidates and penalises a low probability for its true partner. Self-Supervised Learning · Sentence Embeddings
- information content How surprising an outcome is, measured as −log₂ p bits for an outcome of probability p. Rare events carry more information. Entropy, Cross-Entropy and KL Divergence
- information diet A deliberate, small set of trustworthy sources you follow on a schedule, instead of trying to keep up with everything. Staying Current
- information extraction Pulling specific fields out of unstructured text, such as the total and due date from an invoice. Structured Output and JSON
- information gain How much a question reduces entropy, such as the split chosen by a decision tree: entropy before minus the weighted average entropy after. Entropy, Cross-Entropy and KL Divergence · Decision Trees
- inner alignment Whether the goals a model actually learns match the objective it was trained on. A gap here is inner misalignment. AI Alignment
- inpainting Regenerating only a masked region of an image while the rest is kept, for example to remove an object or fix a hand. Text-to-Image in Practice
- input gate The LSTM gate that decides how much of the new candidate information to add to the cell state. LSTMs and GRUs
- input token A token the model reads in a request, including the system prompt and the whole conversation so far. You are billed for each one. Using LLM APIs
- input validation Checking every value that comes from outside your program for type, range and shape before using it, and rejecting it clearly if it is wrong. From Prototype to Production
- instance segmentation Giving each countable object its own pixel mask, so two cats become cat 1 and cat 2. Background is usually ignored. Image Segmentation
- instruct model A model that has been instruction-tuned, usually also preference-trained, so it follows requests instead of just continuing text. Also called a chat model. Instruction Tuning and Chat Models
- instruction hierarchy Training a model to give system-prompt instructions priority over user messages, and both over tool outputs or other content it reads. Prompt Injection and LLM Security
- instruction tuning Supervised fine-tuning on many instruction-and-response examples in a chat format, turning a base model into an assistant that answers and stops. Instruction Tuning and Chat Models
- instructions file A Markdown file in a repository, such as CLAUDE.md or AGENTS.md, that tells a coding agent how to build, test and follow the project's conventions. AI Coding Assistants and Agents
- int4 A 4-bit integer format with just 16 levels, from −8 to 7, common for compressing LLM weights. Quantization
- int8 An 8-bit integer format with 256 evenly spaced levels, from −128 to 127. Quantization
- inter-annotator agreement How often different annotators give the same label to the same item. Low agreement usually means unclear guidelines. Data Pipelines and Datasets
- inter-token latency The gap between successive streamed tokens, set by the decode step. Also called time per output token. Serving LLMs at Scale
- interaction feature A feature made by multiplying two features, capturing an effect that depends on both, such as discount × is_weekend. Feature Engineering
- interconnect The links between chips and machines, such as NVLink inside a server or InfiniBand between servers. AI Hardware: GPUs, TPUs and Accelerators
- interpolation threshold The model size at which it can just fit every training point exactly. In double descent, test error peaks there. Overfitting and the Bias–Variance Tradeoff
- interpretability The degree to which a human can understand why a model behaves as it does. Interpretability and Explainability
- intersection over union How well two regions overlap: the area they share divided by the area they cover together. 1 is a perfect match, 0 no overlap. Object Detection
- inverted dropout The standard form of dropout: surviving activations are scaled up by 1/(1 − p) during training so evaluation needs no change. Dropout and Regularizing Neural Networks
- inverted file index An index (IVF) that clusters vectors into cells with k-means and, at query time, searches only the few cells whose centres are nearest the query. Vector Databases
- irreducible error The noise in the labels themselves, which no model can remove. It sets a floor on achievable test error. Overfitting and the Bias–Variance Tradeoff
- irreducible loss The part of the loss no model can remove, because human text is never fully predictable. Scaling Laws
- isolation forest An anomaly detector that isolates points with random splits; anomalies, being few and far away, are isolated in fewer splits. Anomaly Detection
- iteration One update of the parameters, also called a step: compute the loss on a batch, get the gradient, move the parameters. Gradient Descent
J
- jacobian The table of slopes for a function with a vector input and vector output: row i is the gradient of output i. For a linear layer y = Wx it is W. Partial Derivatives and Gradients
- jagged frontier The uneven edge of what AI can do: brilliant at some tasks and quietly bad at others that look just as easy, with no visible sign of which is which. AI Fluency: Working Well with AI · AI, Work and the Economy
- jailbreak An input crafted to make a chatbot ignore its safety training and do something it was trained to refuse. Adversarial Examples
- jevons paradox The observation that when using a resource becomes more efficient, total use can rise, because it becomes cheaper and worth using for more things. The Energy Cost of AI
- join Combining two tables by matching a shared key column, called merge in pandas. A left join keeps every row of the left table. Pandas and Working with Data
- joint probability The probability that two events both happen, such as P(spam and contains "free"). It is one cell of a table of counts. Probability Basics
- json JavaScript Object Notation: a text format for data made of nested lists and key–value pairs, the common language of web APIs. Structured Output and JSON
- json schema A standard way to describe the shape of JSON data: which fields exist, their types, which are required and which values are allowed. Structured Output and JSON
- json-rpc A small standard for remote procedure calls in JSON. Each request has a method, parameters and an id that the reply repeats. MCP messages use it. Model Context Protocol
- jupyter kernel The running Python process behind a notebook that executes cells and holds every variable in memory until it is restarted. Notebooks: Jupyter and Colab
K
- k-fold cross-validation Splitting data into k folds and training k times, each time validating on a different fold, then averaging the k scores. Cross-Validation
- k-means A clustering method that places k centres, assigns each point to its nearest centre, moves each centre to its points' mean, and repeats. k-Means Clustering
- k-means++ A way to choose k-means starting centres so they spread out: each new centre is picked with probability proportional to squared distance from existing ones. k-Means Clustering
- k-nearest neighbours A method that predicts for a new example by finding the k most similar stored examples and letting them vote or averaging their values. k-Nearest Neighbours
- kernel A function that computes the dot product of two inputs in a richer feature space directly from the original vectors. Support Vector Machines
- kernel trick Replacing every dot product in an algorithm with a kernel, so it works in a huge feature space without ever building those features. Support Vector Machines
- key The vector each item offers to be matched against queries. How well a key matches the query sets that item's attention weight. Attention
- key information extraction Pulling specific fields, such as invoice number, date or total, out of forms, receipts and invoices into structured data. OCR and Document AI
- keyword search Search that matches the exact words of the query. It is reliable for names and codes but misses synonyms and paraphrases. Embeddings and Semantic Search
- kl divergence The extra surprise caused by predicting with the wrong distribution: cross-entropy minus entropy. It is zero only when the two match, and not symmetric. Entropy, Cross-Entropy and KL Divergence · Proximal Policy Optimization
- kl penalty A cost for drifting away from the reference model during preference training, which stops reward hacking and keeps text fluent. RLHF and Preference Optimization · Proximal Policy Optimization
- knowledge cutoff The date a model's training data ends. The model knows nothing about events after it unless given tools or retrieval. Hallucinations · Large Language Models, Explained Simply
- knowledge distillation Training a small student model to imitate a large teacher's outputs, including its full probability judgements, rather than only the correct labels. Knowledge Distillation and Small Models
- kolmogorov-smirnov test A statistical test of whether two samples share a distribution, using the largest gap D between their cumulative distribution curves. Monitoring and Data Drift
- kv cache A store in GPU memory of the attention keys and values of every token processed so far, so each generation step only processes the newest token. The KV Cache and Fast Inference
L
- l1 regularization A penalty on the sum of absolute weights. It drives many weights to exactly zero, leaving a sparse model. Regularization: L1 and L2
- l2 regularization A penalty on the sum of squared weights. It shrinks all weights smoothly towards zero but rarely makes any exactly zero. Regularization: L1 and L2
- label The answer you want the model to predict for an example, such as a house's sale price. Also called the target and written y. Supervised Learning
- label noise Wrong labels in a dataset. Even famous benchmark test sets contain a few per cent of them. Data Pipelines and Datasets
- label shift A change in how common each outcome is, P(y), such as fraud rates doubling during a sale. Monitoring and Data Drift
- label smoothing Training a classifier on softened targets, such as 0.9 for the right class with the rest spread over the others, to stop overconfident outputs. Dropout and Regularizing Neural Networks
- label-preserving transformation A change to an input that leaves its correct label unchanged, such as mirroring a photo of a cat. Augmentation must use only these. Data Augmentation
- labelled data Data where each example has the correct answer (its label) attached, such as photos tagged cat or dog. Usually expensive to produce. Supervised, Unsupervised and Reinforcement Learning
- labelling Attaching the correct answer to each example, by experts, contractors or crowdworkers. Also called annotation. Data Pipelines and Datasets
- lag feature A past value of a series used as a feature, such as sales 7 days ago, turning a time series into a table. Time Series Forecasting
- language model A model that gives a probability to every possible next token given the text so far. Generating text means sampling from it again and again. Language Modeling and Next-Token Prediction
- laplace smoothing Adding a small pseudo-count to every count so no estimated probability is ever exactly zero. Also called add-one smoothing. Naive Bayes
- large language model A very large neural network trained to predict the next piece of text, on huge amounts of writing. It is the technology behind ChatGPT, Claude and Gemini. Often shortened to LLM. Large Language Models, Explained Simply
- lasso Linear regression with an L1 penalty. It sets many weights to exactly zero, so it doubles as feature selection. Regularization: L1 and L2
- latency How long one request takes, from sending it to receiving the answer. Deploying Models
- latent code The short vector of numbers an encoder produces for one input, written z. The decoder rebuilds the input from it alone. Autoencoders
- latent diffusion Running diffusion on a small compressed code from an autoencoder instead of on raw pixels, then decoding the result. It makes image generation dozens of times cheaper. Latent Diffusion and Stable Diffusion
- latent dynamics A learned model that predicts how a compact hidden summary of the state changes, instead of predicting raw pixels. Model-Based RL and World Models
- latent factor A hidden "taste" number learned for each user and item, such as how sci-fi a film is. Scores are dot products of factor vectors. Recommender Systems
- latent space The space of all possible codes a model can produce at its bottleneck. In a well-trained model, nearby points decode to similar-looking examples. Autoencoders
- latent structure Hidden simpler structure in data: although recorded with many numbers, the data really varies in only a few ways. Unsupervised Learning
- latent variable A hidden random input, usually written z, that a generative model invents and transforms into data. It is never observed directly in the training set. What Generative Models Do
- lateral reading Checking a claim by leaving the source and seeing what other independent sources say, rather than studying the original harder. Checking AI Output · Deepfakes and Misinformation
- lawful basis The legal reason an organisation needs to process personal data under GDPR, such as consent, contract or legitimate interests. Privacy, Data and Copyright
- layer A group of neurons that all read the same input and produce their outputs together, usually computed as one matrix multiply plus a bias and an activation. Neural Networks
- layer normalization Normalising each example across its own features, with no dependence on the batch. Used in every Transformer. Normalization Layers: BatchNorm and LayerNorm · The Transformer
- layout analysis Detecting and labelling the regions of a page, such as titles, paragraphs, tables, figures and headers. OCR and Document AI
- lazy learning Learning that does no work at training time beyond storing the data; all computation happens when a prediction is needed. k-Nearest Neighbours
- leaderboard A ranking of models by some measure, such as human votes or benchmark scores. Treat each as one noisy signal. Staying Current
- leaf A node with no further questions, holding the prediction: the majority class or the average value of its training examples. Decision Trees
- leaky relu A ReLU variant that gives negative inputs a small slope (often 0.01) instead of zero, so neurons cannot die completely. Activation Functions
- learned positional embedding A trained table with one vector per position, added to token embeddings. It cannot handle positions past the table's last row. Positional Encodings
- learning curve A plot of training and validation scores against the amount of training data, used to diagnose high bias or high variance. Overfitting and the Bias–Variance Tradeoff
- learning path An ordered route through study material for a particular goal, such as using AI at work or becoming an ML engineer. Learning Paths
- learning rate How big a step gradient descent takes each time it updates the parameters, written η. Too small is slow; too large overshoots and diverges. Gradient Descent
- learning rate range test A short run that raises the learning rate a little after every batch and records the loss, to find a sensible peak rate. Learning Rate Schedules
- learning rate schedule A rule that changes the learning rate as training goes on, typically warming up at the start and decaying towards the end. Learning Rate Schedules
- least privilege Giving an automation or tool access only to what it needs, such as one folder rather than a whole drive, so mistakes cause limited damage. Automating Work Without Code
- least squares Choosing a model's parameters to make the sum of squared residuals as small as possible. Linear Regression
- least-to-most prompting Asking the model to list simpler sub-questions first, then solving them in order and feeding each answer into the next. Chain-of-Thought and Reasoning Prompts
- leave-one-out cross-validation Cross-validation with one fold per example: train on all but one, test on that one, repeat for every example. Cross-Validation
- lenet Yann LeCun's early convolutional network (LeNet-5, 1998) for reading handwritten digits: two convolution and pooling stages then three fully connected layers, about 60,000 weights. Classic CNN Architectures: LeNet to ResNet
- lethal trifecta An agent with access to private data, exposure to untrusted content and the ability to communicate externally. With all three, data theft is possible. Prompt Injection and LLM Security
- liar's dividend The benefit liars gain once fakes are common: genuine evidence becomes easier to dismiss as a deepfake. Deepfakes and Misinformation
- lightgbm Microsoft's gradient-boosting library (2017), which grows trees leaf-wise and is usually the fastest. Gradient Boosting: XGBoost and LightGBM
- likelihood How probable the observed evidence or data is if a particular hypothesis or parameter value is true, written P(E | H). Bayes' Theorem
- likelihood ratio How much more probable the evidence is if the hypothesis is true than if it is false. Posterior odds equal prior odds times this ratio. Bayes' Theorem
- likelihood-based model A generative model trained by maximum likelihood, making the training examples as probable as possible under the model. Autoregressive models, VAEs, flows and diffusion models belong here. What Generative Models Do
- lime A local explanation method that perturbs an input many times, asks the model to predict each copy, and fits a small linear model to the answers. Interpretability and Explainability
- line plot A chart that connects points in order, used for training curves of loss or accuracy against steps or epochs. Visualising Data
- linear combination Scaling several vectors by numbers and adding the results. A neuron's weighted sum of its inputs is a linear combination. Vectors
- linear probe A test of learned features: freeze the encoder, train only a linear classifier on top with labelled data, and measure accuracy. Self-Supervised Learning
- linear recurrence An update of the form new state = A × old state + B × input, with no nonlinearity inside, which allows parallel computation. State Space Models and Mamba
- linear regression A model that predicts a number as a weighted sum of the features plus a bias, with weights chosen to minimise the squared errors. Linear Regression
- linear representation hypothesis The idea that a network represents concepts as directions in its activation space, so how strongly a concept is present is how far the activations point along that direction. Mechanistic Interpretability
- linear separability The property of a dataset whose classes can be split perfectly by a single straight line, plane or hyperplane. The Perceptron
- linear transformation A way of moving every point in space that keeps straight lines straight and the origin fixed: stretching, rotating, slanting or flipping. Every matrix performs one. Matrices and Matrix Multiplication
- link prediction Predicting whether an edge should exist between two nodes, as in friend suggestions or recommendations. Graph Neural Networks
- linter A tool that reads code without running it and flags likely mistakes, such as an unused import or a misspelled name. Ruff is a common one for Python. Tests as Guardrails
- list An ordered collection of values in square brackets, looked up by position counting from 0, as in
losses[0]. Python for AI - list comprehension A one-line way to build a new list from an old one, as in
[s * 2 for s in sizes]. Python for AI - llm-as-judge Using a second model call to grade outputs against a written rubric, for qualities code can't check. It must be calibrated against human labels. Evaluating LLM Applications · Evaluating LLMs and Benchmarks
- lloyd's algorithm The standard k-means procedure: alternate assigning points to the nearest centre and moving centres to their points' mean until nothing changes. k-Means Clustering
- load balancing Keeping tokens spread evenly across experts, usually with an auxiliary loss, so no expert is overloaded or starved. Mixture of Experts
- local api An HTTP endpoint on your own machine (localhost) that serves a local model in the same style as a cloud API, so apps can switch by changing the base URL. Running Models Locally
- local derivative How an operation's output changes with each of its inputs, such as b for a·b with respect to a. The chain rule multiplies these. Build an Autograd Engine from Scratch
- local explanation An explanation of why a model made one particular prediction. Interpretability and Explainability
- local gradient The slope of one small operation's output with respect to its input, ignoring the rest of the network. Backpropagation
- local minimum A dip in the loss that is lower than everything nearby but not the lowest point overall. The gradient is zero there. Gradient Descent
- local model A language model running on your own computer or server instead of through a cloud API, giving privacy, offline use and no per-token bill. Running Models Locally
- local outlier factor An anomaly score comparing a point's local density with its neighbours'. Well above 1 means much sparser than its neighbourhood. Anomaly Detection
- lockfile A file, such as
uv.lock, recording the exact version of every package in an environment, so the same setup can be recreated later. Setting Up Your Environment - log probability The logarithm of a probability. Adding logs instead of multiplying many small probabilities avoids underflow to zero. Naive Bayes
- log scale An axis where equal distances mean equal ratios, so 1, 10, 100 and 1,000 are evenly spaced. Useful for skewed data and falling losses. Visualising Data
- log transform Replacing a value x with log(1 + x) to pull in a long tail, so doubling counts the same whether from small or large values. Feature Engineering
- log-derivative trick The identity ∇p = p ∇log p, which turns the gradient of an expectation into an expectation you can estimate by sampling. Policy Gradients
- log-likelihood The logarithm of the likelihood. It has its peak in the same place but turns products into sums and avoids numbers too small for a computer. Maximum Likelihood Estimation
- logistic regression A classifier that passes a weighted sum of the features through the sigmoid to predict the probability of the positive class. Logistic Regression
- logit A raw, unnormalised score a network outputs for a class before softmax or sigmoid turns it into a probability. Neural Networks · Decoding: Temperature, Top-k and Top-p · Logistic Regression
- logit scale The number similarities are multiplied by before the softmax, equal to 1 divided by the temperature. CLIP learns it, capped at 100, so modest differences become confident choices. CLIP and Contrastive Learning
- logits The raw scores a model outputs for every vocabulary token before softmax turns them into probabilities. The Transformer
- long short-term memory A recurrent network with a separate cell state and three learned gates, which lets it keep information for hundreds of steps. Usually called an LSTM. LSTMs and GRUs
- long-term memory Information stored outside the model across sessions, such as user facts and decisions, retrieved into the context when relevant. Context Engineering and Memory
- loop Code that repeats a block, such as a
forloop that runs once per item in a list. Training is at heart a loop over steps or epochs. Python for AI - lora Low-Rank Adaptation: freezing each weight matrix and learning its change as the product of two thin matrices, B times A. The update can be merged afterwards. LoRA and Parameter-Efficient Fine-Tuning
- lora adapter A small set of trainable low-rank matrices added beside a frozen model's weight matrices. It holds everything a LoRA fine-tune learns, often tens of megabytes. Fine-Tuning an Open Model in Practice
- lora rank The width r of LoRA's thin matrices. Higher ranks add more trainable parameters; 8 to 64 is common and 16 a good default. Fine-Tuning an Open Model in Practice
- loss A single number measuring how wrong a model's predictions are across the training examples. Training tries to make it as small as possible. Also called error or cost. How Machines Learn
- loss curve A plot of training and validation loss over time. Its shape shows whether a model is learning healthily, overfitting, underfitting or diverging. Training Neural Networks in Practice
- loss function The formula that turns a model's errors into one number to be minimised in training. It defines what a good model means. Loss Functions
- loss landscape The surface you get by plotting the loss for every possible setting of the parameters; training is a walk downhill on it. Gradient Descent
- loss masking Excluding some tokens, such as the user's prompt, from the loss, so the model is trained only to produce its own replies. Fine-Tuning
- loss scaling Multiplying the loss by a large number before the backward pass so tiny FP16 gradients don't underflow, then dividing it back out. Mixed Precision Training
- loss spike A sudden jump in training loss. Small ones recover; big ones may need a rollback to an earlier checkpoint. Pretraining Large Language Models
- low-rank adaptation The full name of LoRA: adapting a model by learning weight changes that are low-rank, built from only a few directions. LoRA and Parameter-Efficient Fine-Tuning
- low-rank approximation Keeping only the largest few pieces of a matrix's SVD to rebuild it with far fewer numbers. It is the best approximation of that rank. Eigenvectors and SVD
M
- machine learning The main way of building AI today: instead of a programmer writing the rules, the computer learns them from examples. What Is AI?
- magic command A notebook instruction starting with
%or!that is not Python, such as%timeitto time code or!nvidia-smito run a shell command. Notebooks: Jupyter and Colab - majority vote Predicting the class that most of a set of voters, such as nearest neighbours or trees, chose. k-Nearest Neighbours
- majority voting Picking the answer that appears most often among several attempts. It needs answers that can be compared, such as numbers or labels. Chain-of-Thought and Reasoning Prompts
- malfunction AI doing something nobody wanted, from confident errors and bias to, in the speculative case, pursuing unintended goals. AI Risks and Safety
- mamba A 2023 selective state space model architecture by Gu and Dao that matched Transformers of similar size on language modelling without attention. State Space Models and Mamba
- manhattan distance The sum of the absolute differences between two vectors' features, like walking along a city grid. k-Nearest Neighbours
- manifold A lower-dimensional surface, possibly curved, on which high-dimensional data lies, like a crumpled sheet of paper in a room. t-SNE and UMAP
- mantissa The bits of a floating-point number that set its precision: how many significant digits it keeps. Quantization
- margin In classification, the label (±1) times the model's score, positive when correct. In SVMs, the empty band between the boundary and the nearest points. Loss Functions · Support Vector Machines
- marginal probability The probability of one event regardless of others, found by adding up joint probabilities across a row or column of the table. Probability Basics
- markov assumption The simplification that only the last few tokens matter for predicting the next one, ignoring everything earlier. Language Modeling and Next-Token Prediction
- markov decision process The mathematical model of an RL problem: states, actions, rewards, the probabilities of each next state and reward, and a discount factor. Markov Decision Processes
- markov property The assumption that what happens next depends only on the current state and action, not on how you got there. Markov Decision Processes
- masked autoencoder A self-supervised method that hides most image patches (75%) and trains a vision Transformer to reconstruct the missing pixels. Often called MAE. Vision Transformers
- masked language modeling Hiding some tokens of a text and training the model to predict them from the rest. BERT's main pretraining task. BERT and Encoder Models
- masked modelling A self-supervised task that hides random parts of the input, such as words or image patches, and trains the model to predict them. Self-Supervised Learning
- master weights The 32-bit copy of every parameter that receives the updates, so tiny changes are not rounded away. Mixed Precision Training
- matplotlib The standard Python plotting library. A figure holds one or more axes, each a chart you draw on and label. Visualising Data
- matrix A rectangular grid of numbers in rows and columns. It can hold a dataset (one example per row) or act as a machine that transforms vectors. Matrices and Matrix Multiplication
- matrix factorisation Approximating the user–item matrix as the product of two thin matrices of user and item factors, fitted only to known entries. Recommender Systems
- matrix inverse The matrix that undoes another, so A⁻¹A is the identity. Matrices that squash space flat have none, because information is lost. Matrices and Matrix Multiplication
- matrix multiplication Combining two matrices so that each entry of the result is the dot product of a row of the first with a column of the second. Shapes (m × n)·(n × p) give m × p. Matrices and Matrix Multiplication
- matrix rank The number of independent directions a matrix really uses, equal to its number of non-zero singular values. Eigenvectors and SVD
- max depth The largest number of questions allowed from a tree's root to any leaf. The single most useful knob against overfitting. Decision Trees
- max tokens A hard cap on how many tokens a reply may contain. If the model reaches it, the reply is cut off. Using LLM APIs
- maximization bias The upward bias from taking the maximum of noisy estimates: the largest of several noisy guesses tends to be too high. Q-Learning
- maximum a posteriori Choosing parameters that maximise likelihood times a prior, rather than likelihood alone. With a Gaussian prior on weights it equals L2 regularisation. Maximum Likelihood Estimation
- maximum likelihood estimation Choosing the parameters that make the observed data most probable. Nearly every training loss, including squared error and cross-entropy, comes from it. Maximum Likelihood Estimation
- maximum-margin classifier A linear classifier that chooses, among all separating boundaries, the one with the widest empty band to the nearest points. Support Vector Machines
- mcp client A component inside an MCP host that keeps a connection to exactly one MCP server. Model Context Protocol
- mcp host The AI application a user works in, such as a chat assistant, IDE or custom agent. It owns the model and decides which servers and tools are available. Model Context Protocol
- mcp prompt A reusable prompt template with arguments offered by an MCP server, which the user picks, for example as a slash command. Model Context Protocol
- mcp resource Read-only data offered by an MCP server, identified by a URI, that the application or user can attach to a conversation. Model Context Protocol
- mcp server A program that offers tools, resources or prompts to any MCP host, such as a GitHub, database or notes server. Model Context Protocol
- mean The ordinary average: add up all the values and divide by how many there are. It is easily dragged around by outliers. Statistics: Mean, Variance and Sampling
- mean absolute error The average size of the errors, ignoring sign. It is minimised by the median and shrugs at outliers. Loss Functions
- mean average precision The standard detector score: for each class, the area under the precision–recall curve (average precision), averaged over classes. COCO also averages over IoU thresholds 0.50 to 0.95. Object Detection
- mean iou Intersection over union computed for each class and averaged over classes. The headline score for semantic segmentation benchmarks. Image Segmentation
- mean pooling Turning one vector per token into one vector per text by averaging the token vectors, ignoring padding. Sentence Embeddings
- mean reciprocal rank The average over test questions of 1 divided by the rank of the first relevant result, counting 0 when it is missing. It rewards putting the right result near the top. Advanced RAG
- mean squared error The average of the squared differences between predictions and true values. Large misses count much more than small ones. Linear Regression
- mechanistic interpretability Reverse-engineering a trained network into understandable parts, the concepts it represents and the circuits that connect them, much like decompiling a program. Mechanistic Interpretability
- median The middle value once the data is sorted (or the average of the two middle values). Unlike the mean, it barely moves when there are outliers. Statistics: Mean, Variance and Sampling
- median absolute deviation The median of each value's absolute distance from the median. A spread measure that barely moves when a few values are extreme. Anomaly Detection
- meeting assistant A tool that records or transcribes a meeting and produces a summary, decisions and action items. Get consent and check its output. AI in Your Daily Workflow
- mel scale A pitch scale that stretches low frequencies and squeezes high ones, so equal steps in mels sound like equal steps in pitch to human ears. Audio as Data
- mel spectrogram A spectrogram whose frequency bins are summed into bands spaced evenly on the mel scale, typically 40 to 128. With a log, it is the standard input for speech models. Audio as Data
- memorisation A model being able to reproduce specific training examples word for word, not just general patterns. More likely for data repeated many times. Privacy, Data and Copyright
- memory An assistant feature that remembers facts from past chats. Convenient, but worth reviewing and switching off for sensitive work. Choosing an AI Assistant
- memory bandwidth How fast data can be read from memory, in GB per second. It limits local generation speed, because every token requires reading all the weights. Running Models Locally · GPUs and Why AI Needs Them
- memory file A plain Markdown file, such as CLAUDE.md or AGENTS.md, that a coding agent loads at the start of every session: a short briefing on commands, conventions and traps. Project Context and Memory Files
- memory hierarchy The levels of memory from small, fast on-chip SRAM to large, slow HBM and CPU memory; fast code keeps work in the upper levels. AI Hardware: GPUs, TPUs and Accelerators
- memory-bandwidth bound Limited by how fast data can be moved from memory rather than by arithmetic speed, as in the decode phase of generation. The KV Cache and Fast Inference
- memory-bound Limited by how fast data can be moved rather than by arithmetic, as with adding arrays or generating text one token at a time. GPUs and Why AI Needs Them
- merge Bringing a finished branch's commits into another branch, usually main. If both changed the same lines, git reports a conflict for you to resolve. Git for Agent Work
- merge rule One learned step of byte-pair encoding saying which pair of symbols to fuse into a new one. The ordered list of merges is the tokenizer. Tokenization
- merging adapters Adding a trained LoRA adapter's low-rank update into the base weights, producing an ordinary model with no extra layers or latency. Fine-Tuning an Open Model in Practice
- message passing The core GNN step: every node collects its neighbours' vectors, aggregates them by sum, mean or max, and updates its own vector. Graph Neural Networks
- messages api Anthropic's API for calling Claude: you send a model id, a system prompt and a list of user and assistant messages, and get back content blocks. Using LLM APIs
- metadata filter A condition on stored attributes, such as owner or date, that restricts a vector search to items that match. Vector Databases
- method A function that belongs to an object, called with a dot, as in
losses.append(0.4)ormodel.parameters(). Python for AI - mfcc Mel-frequency cepstral coefficients: a compact summary of each log-mel frame, about 13 numbers, made with a cosine transform. The standard speech input for decades. Audio as Data
- micro-batch A small slice of a batch that moves through a pipeline on its own, so different stages can work at the same time. Distributed Training
- min-max scaling Scaling a feature by subtracting its minimum and dividing by its range, so values fall between 0 and 1. Sensitive to outliers. Data Cleaning and Preparation
- mini-batch A small random subset of the training data, typically 32 to a few thousand examples, used to estimate the gradient for one update. Gradient Descent
- minimax game A game where one player tries to make a shared value as large as possible and the other tries to make it as small as possible; the original GAN objective. Generative Adversarial Networks
- missing value An empty cell in the data, usually shown as NaN or None. Ask why it is missing before deciding how to handle it. Data Cleaning and Preparation · Pandas and Working with Data
- misuse A person deliberately using AI to cause harm, such as fraud with cloned voices. The AI works as designed; the user's goal is bad. AI Risks and Safety
- mixed precision training Doing the heavy matrix maths in 16 bits for speed while keeping weights, updates and sensitive operations in 32 bits for accuracy. Mixed Precision Training
- mixture of experts An architecture that replaces each feed-forward block with many experts and a router that sends each token to only a few of them. Mixture of Experts
- mixup Augmentation that blends two training images and their labels with the same random weight, giving targets like 70% house, 30% boat. Data Augmentation
- ml project lifecycle The loop a machine learning project goes round: frame the problem, get data, build baselines and models, evaluate, deploy, monitor, and back again. The ML Project Lifecycle
- mlops Machine learning operations: the practice of running the ML loop reliably, with versioned data and code, automated training and testing, deployment and monitoring. The ML Project Lifecycle
- mm-dit Stable Diffusion 3's multimodal diffusion Transformer: image and text tokens share one sequence with joint attention, each with its own weights. Diffusion Transformers
- mmlu Massive Multitask Language Understanding: a 2020 benchmark of multiple-choice exam questions across 57 subjects. Random guessing scores 25%. Evaluating LLMs and Benchmarks
- mnist A classic dataset of 70,000 handwritten digits, 28 × 28 greyscale pixels, in 10 classes. It is the hello world of computer vision. Image Classification
- mode collapse A GAN failure where the generator produces only a few kinds of output that fool the discriminator, such as 3 of 8 blobs, and ignores the rest of the data. Generative Adversarial Networks
- mode coverage How well a generative model produces all the kinds of data, including rare ones, in the right proportions. GANs often score poorly on it; diffusion models score well. What Generative Models Do
- model A function that takes an example's features and returns a prediction. Its behaviour is set by adjustable parameters. Supervised Learning · What Is AI?
- model capacity How flexible a model is: how many different patterns it can represent. It grows roughly with the number of parameters. Overfitting and the Bias–Variance Tradeoff
- model card The README of a model repository describing what the model is for, how it was trained, its limitations and its licence. The Hugging Face Ecosystem · Project Ideas · AI Regulation and Governance
- model collapse The narrowing and degradation of models trained generation after generation on earlier models' output; rare cases vanish first. Synthetic Data
- model context protocol An open standard, introduced by Anthropic in 2024, for connecting AI applications to tools and data provided by separate server programs. Model Context Protocol
- model exploitation When a policy optimiser finds actions the learned model wrongly rates as great, such as walking through a wall the model never saw. Model-Based RL and World Models
- model flops utilization MFU: the share of the hardware's peak arithmetic speed that a training run actually achieves, often 30 to 50%. Pretraining Large Language Models
- model monitoring Watching a deployed model's service health, inputs, outputs and real performance so you notice decay before users do. Monitoring and Data Drift
- model predictive control Planning a short sequence of actions with a model, executing only the first, then re-planning from the new real state. Model-Based RL and World Models
- model registry A catalogue of trained models with version numbers and stages such as staging and production, so deployment can refer to 'version 7'. Experiment Tracking and Reproducibility
- model routing Sending easy requests to a small, cheap model and hard ones to a large model, using a classifier or the small model's confidence. Building AI Products
- model serialization Saving a trained model to a file another process can load, for example with pickle, safetensors or ONNX. Deploying Models
- model training setting The account setting that controls whether your conversations may be used to improve future AI models. On consumer plans it is often on by default. Using AI Safely at Work
- model-based reinforcement learning RL that learns a model of how the environment works and uses it to plan or to generate imagined experience. Model-Based RL and World Models
- model-free Describes methods that learn what to do directly from experience without learning how the environment works. Model-Based RL and World Models · Q-Learning
- momentum An optimizer trick that steps along a decaying running sum of past gradients, so consistent directions speed up and back-and-forth oscillations cancel. Optimizers: SGD, Momentum and Adam
- monte carlo method Estimating values by running full episodes and averaging the actual returns. Unbiased but noisy, and it must wait for the episode to end. Q-Learning
- monte carlo tree search A planning method that grows a search tree by repeated simulation: select, expand, simulate, back up, focusing effort on the most promising moves. Monte Carlo Tree Search and AlphaGo
- multi-agent debate Several agents answer the same question independently, then read each other's answers and revise them over a few rounds to reach a better answer. Multi-Agent Systems
- multi-agent system Several model-driven agents working together on one task, usually a lead agent that hands subtasks to sub-agents. It can be faster and broader than one agent, at many times the token cost. Multi-Agent Systems
- multi-armed bandit The simplest RL problem: repeatedly choose among options with unknown average payoffs, with no states and no delayed effects. Multi-Armed Bandits and Exploration
- multi-head attention Running several attention operations in parallel, each with its own smaller projections, then joining their outputs and mixing them with one more matrix. Self-Attention and Multi-Head Attention
- multi-label classification Classification where one image can carry several labels at once. It uses one independent sigmoid per class instead of a single softmax. Image Classification
- multi-query attention Attention where many query heads share a single key and value head, shrinking the KV cache by the number of heads. The KV Cache and Fast Inference
- multi-turn conversation An exchange of several alternating user and assistant messages, flattened into one token sequence by a chat template. Instruction Tuning and Chat Models
- multicollinearity When features are strongly correlated, so the model can't tell them apart and their individual weights become unstable. Linear Regression
- multilayer perceptron A neural network made of stacked fully connected layers with a nonlinear activation between them. Often shortened to MLP. Neural Networks
- multimodal llm A language model that also takes other kinds of input, such as images, audio or video, usually by turning them into tokens it reads alongside text. Multimodal LLMs
- multinomial naive bayes Naive Bayes on word counts (a bag of words), the standard version for text. Naive Bayes
- multiple linear regression Linear regression with several features, each with its own weight. The model is a flat plane or hyperplane. Linear Regression
- mutation testing Checking your tests by deliberately planting small bugs in the code and seeing whether any test fails. A bug no test catches marks untested code. Tests as Guardrails
- muzero DeepMind's 2019 system that plans with MCTS inside a learned model, so it does not need to be told the rules. Monte Carlo Tree Search and AlphaGo
N
- n-gram A run of n consecutive tokens. An n-gram model predicts the next token by counting how often it followed the previous n − 1 tokens. Language Modeling and Next-Token Prediction
- n-step return A target that adds n real rewards and then bootstraps from the estimated value of the state reached, between one-step TD and Monte Carlo. Actor-Critic Methods
- naive bayes A classifier that applies Bayes' theorem and assumes features are independent given the class, multiplying a prior by one likelihood per feature. Naive Bayes
- naive forecast A baseline forecast where every future value equals the last observed value. Time Series Forecasting
- narrow ai AI built or trained for a particular range of tasks, such as playing chess or answering questions. Every AI system that exists today is narrow. Also called weak AI. What Is AI?
- nash equilibrium A balance in a game where neither player can do better by changing its strategy alone. For a GAN, it is when fakes match the data and the discriminator outputs 1/2. Generative Adversarial Networks
- nearest neighbour search Finding the stored vectors closest to a query vector. Doing it exactly means comparing the query with every vector. Vector Databases
- needle in a haystack A long-context test that hides one sentence at some depth in long filler text and asks the model to retrieve it. Long Context and Efficient Attention
- negative log-likelihood Minus the log-likelihood, usually averaged over examples. Minimising it is maximum likelihood, and it is the training loss of most models. Maximum Likelihood Estimation
- negative prompt Text describing what you do not want. It replaces the empty prompt in classifier-free guidance, so each step moves away from it. Text-to-Image in Practice
- negative sampling A training shortcut that replaces a softmax over the whole vocabulary with a classifier telling real word pairs from a few random fake ones. Word Embeddings
- neighbour embedding Placing points in a low-dimensional map so that each point's nearest neighbours in the original space stay nearby. t-SNE and UMAP
- nested cross-validation An outer cross-validation loop for scoring wrapped around an inner loop for tuning, giving an honest estimate of tune-then-train. Cross-Validation
- nesterov momentum A momentum variant that measures the gradient at the point the velocity is about to carry you to, so it slows down a little sooner. Optimizers: SGD, Momentum and Adam
- network depth The number of layers in a neural network. Deep learning means networks with many layers. Neural Networks
- network width The number of neurons in a layer of a neural network. Neural Networks
- neural audio codec An autoencoder with a discrete bottleneck that compresses audio into short columns of integer tokens and decodes them back to sound. Music and Voice Generation
- neural network A model made of layers of artificial neurons, where each layer's outputs are the next layer's inputs. Its weights are learned from data. Neural Networks
- next sentence prediction BERT's second pretraining task: guessing whether one segment really followed another. Later work found it didn't help and dropped it. BERT and Encoder Models
- next-token prediction The training task of guessing the token that comes next in a text. The model is rewarded for giving the true next token high probability. Language Modeling and Next-Token Prediction · Large Language Models, Explained Simply
- nf4 4-bit NormalFloat, the data type QLoRA uses to store frozen weights. Its levels are spaced to suit normally distributed weights. Fine-Tuning an Open Model in Practice
- no-code automation Tools that connect your apps so work happens automatically when something occurs, built by clicking blocks together instead of programming. Automating Work Without Code
- node One box in a decision tree. Internal nodes hold a question; the top one is the root. Decision Trees
- node classification Predicting a label for each node in a graph, such as a paper's topic in a citation network. Graph Neural Networks
- noise floor The loss level a constant learning rate cannot get below, because noisy mini-batch gradients keep the weights jiggling around the minimum. Learning Rate Schedules
- noise schedule The hand-chosen list of noise amounts β₁…β_T that says how much noise each forward step adds, for example rising linearly from 0.0001 to 0.02. Diffusion Models
- non-maximum suppression A clean-up step for detectors: keep the highest-scoring box, delete boxes that overlap it above an IoU threshold, and repeat, leaving one box per object. Object Detection
- nonlinear dimensionality reduction Reducing dimensions with methods that can follow curved structure, such as t-SNE, UMAP or autoencoders, unlike linear PCA. t-SNE and UMAP
- nonlinearity Another name for an activation function: the bend each neuron adds so that a network can model curves rather than only straight lines. Activation Functions
- norm The length of a vector. The usual L2 norm is the square root of the sum of squared components; the L1 norm adds absolute values. Dot Product, Norms and Similarity
- normal equation The exact formula for linear regression's best parameters, θ = (XᵀX)⁻¹Xᵀy, found by setting the gradient of the squared error to zero. Linear Regression
- normalisation Dividing each vector by its length so all vectors have length 1. Cosine similarity then becomes a plain dot product. Embeddings and Semantic Search
- normalization layer A layer that rescales the numbers passing through it to zero mean and unit spread, then applies a learned scale and shift. Normalization Layers: BatchNorm and LayerNorm
- normalizing flow A generative model built from a stack of invertible layers mapping noise to data, which lets it compute the exact probability of any example. Normalizing Flows and Flow Matching
- notation The shorthand symbols used to write maths compactly, such as Σ for a sum. Each symbol stands for a short phrase. Math Notation Cheat Sheet
- notebook A document that mixes runnable code, its output (tables, charts) and written notes, run one piece at a time. Jupyter and Colab are the common ones. Notebooks: Jupyter and Colab
- notebook cell One block of a notebook: either code that you run with Shift+Enter, or text written in Markdown. Notebooks: Jupyter and Colab
- numpy The Python library for fast arrays of numbers. It does maths on whole arrays at once in compiled code, often hundreds of times faster than loops. NumPy and Array Thinking
- nvlink NVIDIA's fast chip-to-chip link joining GPUs within a server or rack, giving hundreds of GB/s per GPU. AI Hardware: GPUs, TPUs and Accelerators
- nyquist frequency Half the sample rate: the highest frequency a recording can represent. At 16 kHz it is 8,000 Hz. Audio as Data
O
- object One thing built from a class blueprint, with its own data.
c = Counter()creates a Counter object. Python for AI - object detection Finding every object of interest in an image, drawing a box around each and labelling it with a class and a confidence score. Object Detection
- object hallucination A multimodal model confidently describing objects that are not in the image, often ones common in similar scenes. Multimodal LLMs
- objective function The quantity a training algorithm optimises; usually the loss, sometimes plus a regularization penalty. Loss Functions
- observation What the agent actually perceives at a step. It may be the full state or only a partial hint of it, like a camera that cannot see behind. Reinforcement Learning: The Basics
- ocr-free model A model that reads a page image and directly produces text or structured output, with no separate OCR step, such as Donut or a multimodal LLM. OCR and Document AI
- odds The probability that something happens divided by the probability that it doesn't, p/(1−p). Probability 0.8 is odds of 4. Logistic Regression
- off-policy Describes methods that learn about one policy (usually the greedy one) from data generated by a different behaviour, such as old or random experience. Q-Learning
- offline evaluation Running the eval set before shipping, for example in continuous integration, to catch regressions before users see them. Evaluating LLM Applications
- on-policy Describes methods that learn about the same policy that is generating the data. Old data from a previous policy must be thrown away or corrected. Policy Gradients · Q-Learning
- one-class svm An SVM trained on normal data that learns a boundary enclosing most of it; points outside are flagged as anomalies. Anomaly Detection
- one-cycle policy A schedule where the learning rate rises to a high peak over about the first 30% of training, then falls far below its starting value. Learning Rate Schedules
- one-hot encoding Representing item k of V as a vector of V zeros with a single 1 in position k. Simple, but every pair of items looks equally unrelated. Word Embeddings · Data Cleaning and Preparation · scikit-learn
- one-stage detector A detector, such as YOLO or RetinaNet, that predicts boxes and classes directly in a single pass, without a separate proposal stage. Usually faster. Object Detection
- one-vs-rest Handling many classes by training one yes/no classifier per class and picking the most confident. Logistic Regression
- online evaluation Measuring quality on live traffic, through user feedback, automatic checks on every response and judge scoring of a sample. Evaluating LLM Applications
- online inference Computing a prediction at the moment a request arrives, using information only available then. Needs an always-up, fast service. Deploying Models
- online softmax Computing a softmax in chunks by keeping a running maximum and running sum, rescaling earlier totals when a larger score appears. Long Context and Efficient Attention
- open-vocabulary detection Detecting objects described by any text prompt, such as "red backpack", rather than only a fixed list of training classes. It combines detection with image–text embeddings. Object Detection
- open-weight model A model whose trained weights are published for anyone to download and run, such as Llama, Qwen, Gemma or Mistral. Its licence may still restrict use. Running Models Locally · GPT and Decoder-Only Models · The AI Landscape Today
- operational emissions Emissions from the electricity used to run hardware, for training and serving a model. The Energy Cost of AI
- operator overloading Defining special methods like
__add__and__mul__so that+and*on your own objects run your code. Build an Autograd Engine from Scratch - opt-out A rights holder's machine-readable reservation of their rights, which stops their work being used under the EU text and data mining exception. Privacy, Data and Copyright
- optical character recognition Turning images of text, such as scans, photos or screenshots, into characters a computer can search and process. Usually shortened to OCR. OCR and Document AI
- optical flow A per-pixel estimate of motion between two frames: for every pixel, a small arrow giving how far it moved horizontally and vertically. Video Understanding
- optimal policy A policy whose expected return is at least as high as every other policy's in every state. Value Functions and Bellman Equations
- optimistic initial values Starting every estimate high so each option disappoints when tried, which makes even a greedy agent try them all early on. Multi-Armed Bandits and Exploration
- optimizer The rule that turns gradients into weight updates, such as SGD, momentum or Adam. Optimizers: SGD, Momentum and Adam
- optimizer object A PyTorch object, such as
torch.optim.AdamW, that holds a model's parameters and applies an update rule withstep(). PyTorch - optimizer state The extra numbers an optimizer keeps for each parameter, such as Adam's two running averages. It costs memory and must be saved with checkpoints. Optimizers: SGD, Momentum and Adam
- orchestrator The lead agent in a multi-agent system. It plans the job, writes briefs for sub-agents, combines their reports and decides whether more work is needed. Multi-Agent Systems
- orchestrator-workers A pattern where a central model decides which subtasks are needed, hands them to worker calls and merges their answers. AI Agents
- ordinal encoding Mapping categories to integers such as small = 0, medium = 1, large = 2. Use it only when the order is real. Data Cleaning and Preparation
- orthogonal At right angles. Two vectors are orthogonal when their dot product is exactly zero. Dot Product, Norms and Similarity
- out-of-bag error A forest's error estimated by scoring each row using only the trees whose bootstrap sample left it out. A free validation estimate. Random Forests and Bagging
- outer alignment Whether the objective we specify and train on actually captures what we intend. A gap here is outer misalignment. AI Alignment
- outlier A value far from the rest of the data, such as one huge salary in a list of ordinary ones. Outliers can distort means, correlations and models trained with squared error. Statistics: Mean, Variance and Sampling · Anomaly Detection · Data Cleaning and Preparation · Visualising Data
- outlier feature A hidden dimension in large transformers whose activations are far larger than the rest, breaking naive INT8 quantization. Quantization
- outpainting Inpainting on an enlarged canvas, where the new border is the region to fill, to extend a picture beyond its frame. Text-to-Image in Practice
- output gate The LSTM gate that decides how much of the squashed cell state to expose as the new hidden state. LSTMs and GRUs
- output token A token the model writes in its reply, including any thinking. Output tokens usually cost several times more than input tokens. Using LLM APIs
- over-smoothing The effect of stacking too many GNN layers: every node's vector becomes an average of most of the graph, so all nodes look alike. Graph Neural Networks
- over-training Training a model on far more tokens than compute-optimal, accepting extra training cost to get a smaller model that is cheaper to run. Scaling Laws
- overfitting When a model learns the noise and accidents of its training data, scoring well on it but badly on new data. Overfitting and the Bias–Variance Tradeoff
- overfitting a single batch Training on one small batch over and over to check the loss reaches almost zero. If it can't, the bug is in the code. Training Neural Networks in Practice
- overflow When a number too large for the format becomes infinity. Mixed Precision Training
- oversampling Adding copies of rare-class examples, or synthetic ones as in SMOTE, to the training set to balance the classes. Data Cleaning and Preparation
P
- package A bundle of code someone else wrote and published, such as NumPy or PyTorch. You install it once and import it in each program. Python for AI
- package manager A tool that downloads and installs packages along with the other packages they depend on. pip, uv and conda are the common ones for Python. Setting Up Your Environment
- padding A border of extra values, usually zeros, added around an input so a convolution can keep the output the same size and see edge pixels fully. Convolutional Neural Networks
- pagedattention Storing the KV cache in small fixed-size blocks allocated as sequences grow, like operating-system memory pages. The core of the vLLM engine. The KV Cache and Fast Inference
- pandas The standard Python library for tables of data. It loads, cleans, filters, summarises and joins data in DataFrames. Pandas and Working with Data
- panoptic segmentation Semantic and instance segmentation at once: countable things get separate instances and uncountable stuff like sky or road gets a class. Image Segmentation
- parallel scan An algorithm that combines a chain of associative steps, such as linear updates, in about log₂ T rounds instead of T sequential steps. State Space Models and Mamba
- parallel tool calls Several tool calls requested in a single model reply, such as the weather in two cities. All results go back together in one message. Tool Use and Function Calling
- parallelisation A workflow pattern that runs several model calls at once and combines them in code, either by splitting the task into parts or by voting on repeated runs. AI Agents
- parameter An adjustable number inside a model, such as a weight or bias, whose value is learned from the training data. Supervised Learning · How Machines Learn
- parameter-efficient fine-tuning PEFT: methods that freeze a pretrained model and train only a small number of new or selected parameters, usually well under 1%. LoRA and Parameter-Efficient Fine-Tuning
- parameterised query A database query with placeholders such as ? where the values are sent separately, so input can never be mistaken for part of the command. From Prototype to Production
- parent-document retrieval Indexing small chunks for precise matching, but sending the larger section they belong to to the LLM so it reads well in context. Also called small-to-big. Advanced RAG
- parquet An open columnar file format that stores each column together and compresses well, so you can read only the columns you need. Data Pipelines and Datasets
- partial derivative The slope of a many-input function with respect to one input while all other inputs are held fixed. Written with a curly ∂. Partial Derivatives and Gradients
- partially observable mdp An MDP in which the agent receives observations that only hint at the true state, so it needs memory or a belief about which state it is in. Markov Decision Processes
- pass@k The probability that at least one of k attempts is correct. For independent attempts with success rate p it is 1 − (1 − p)^k. Evaluating LLMs and Benchmarks · Reasoning Models and Test-Time Compute
- patch A small square of pixels, typically 16 × 16, cut from an image. A vision Transformer treats each patch like a word. Vision Transformers
- patch embedding The step in a vision Transformer that flattens each image patch and multiplies it by one shared learned matrix to turn it into a token vector. Vision Transformers
- patchify Cutting a latent image into small squares, flattening each, and projecting it to a token vector so a Transformer can process it. Diffusion Transformers
- path-scoped rule In Claude Code, a rules file in .claude/rules/ with a paths: list that loads only when the agent reads or edits a matching file, so it costs context only when relevant. Project Context and Memory Files
- per-channel quantization Using a separate scale for each row (output channel) of a weight matrix, so an outlier only hurts its own row. Quantization
- perceptron The original learning artificial neuron: it computes a weighted sum of its inputs plus a bias and outputs 1 if the total is above zero, otherwise 0. The Perceptron
- perceptron learning rule The perceptron's update: after each mistake, add (or subtract) the input to the weights and nudge the bias, scaled by the learning rate. Correct answers change nothing. The Perceptron
- permission mode The setting that decides which actions a coding agent may take on its own and which need your approval, from read-only plan mode to no checks at all. Setting Up a Coding Agent
- permutation importance How much a model's score drops when one feature's column is shuffled in held-out data. More trustworthy than impurity importance. Random Forests and Bagging · Interpretability and Explainability
- permutation invariance Giving the same result whatever order the inputs come in, as sum, mean and max do. GNNs need it because node numbering is arbitrary. Graph Neural Networks
- perplexity e raised to the average cross-entropy on held-out text: the number of equally likely tokens the model is, on average, torn between. Lower is better. Language Modeling and Next-Token Prediction · Entropy, Cross-Entropy and KL Divergence · t-SNE and UMAP
- personal data Any information about an identifiable person, such as names with contact details, customer records, staff files or CVs. It has legal protection in many countries. Using AI Safely at Work
- pgd Projected Gradient Descent: an attack that takes many small FGSM-like steps, pulling the input back within ε of the original after each one. The standard yardstick for testing defences. Adversarial Examples
- piecewise linear function A function made of straight pieces joined at corners. A ReLU network computes exactly this kind of function. Why Neural Networks Work
- pip Python's built-in package installer, as in
pip install numpy. Usepython -m pipto be sure it installs into the Python you are running. Setting Up Your Environment - pipeline In scikit-learn, a chain of preprocessing steps and a final model packaged as one estimator, so every step learns from training data only. scikit-learn
- pipeline bubble Idle time at the start and end of a pipeline while stages wait for work: (p − 1)/(m + p − 1) of the total. Distributed Training
- pipeline parallelism Placing consecutive blocks of layers on different GPUs, with activations flowing from one to the next like an assembly line. Distributed Training
- pivot table A spreadsheet summary table that groups rows by category and totals them, such as sales by month and region. AI for Data and Spreadsheets
- pixel One tile of the grid that makes up a digital image (short for picture element). It stores a single colour as one number (greyscale) or three (red, green, blue). Images as Data
- plan mode An agent mode in which it may read and explore but not edit files, and must present a plan for you to approve before making changes. Planning and Specs: Telling an Agent What to Build
- planning Using a model of the environment to look ahead and improve decisions before or without acting in the real world. Monte Carlo Tree Search and AlphaGo · Model-Based RL and World Models
- plugin A bundle of skills, hooks, subagents and MCP servers packaged as one installable unit, usually installed from a marketplace. Extending Your Agent: Skills, Hooks, MCP and Subagents
- policy The agent's behaviour: a rule giving which action to take, or the probability of each action, in every state. Learning means improving it. Reinforcement Learning: The Basics
- policy evaluation Computing the value function of a fixed policy, for example by repeatedly applying the Bellman expectation equation until the values settle. Value Functions and Bellman Equations
- policy gradient A method that adjusts the policy's parameters by gradient ascent on expected return, making actions that led to high returns more likely. Policy Gradients
- policy gradient theorem The result that the gradient of expected return can be written using action values and the gradient of the policy, with no need to differentiate the environment. Policy Gradients
- policy improvement Making a policy greedy with respect to its own value function. The new policy is guaranteed to be at least as good. Value Functions and Bellman Equations
- policy iteration A planning method that alternates full policy evaluation and policy improvement until the policy stops changing, which is then optimal. Value Functions and Bellman Equations
- policy model In RL terms, the language model being trained: it chooses each token, and its answers are what get rewarded. RLHF and Preference Optimization
- policy network A neural network that takes a state and outputs action probabilities, or the parameters of a distribution over actions. Monte Carlo Tree Search and AlphaGo · Policy Gradients
- polynomial features Powers and products of features, such as x², x³ and x₁x₂, that let a linear model fit curves. They multiply quickly in number. Feature Engineering
- polynomial regression Linear regression on powers of a feature (x, x², x³…), letting it fit curves. Too many powers overfit. Linear Regression
- polysemanticity When a single neuron fires for several unrelated things, such as citations, Korean text and HTTP requests. Mechanistic Interpretability
- pooling Shrinking a feature map by summarising small regions, for example keeping the largest value (max pooling) or the average in each 2 × 2 block. Convolutional Neural Networks
- population Everything you actually care about, such as all emails a filter will ever see. You rarely have it all, so you study a sample. Statistics: Mean, Variance and Sampling
- population stability index A drift score comparing the share of data in each bin: Σ (c − r) ln(c/r). Below 0.1 is usually read as no significant change. Monitoring and Data Drift
- portfolio project A finished, clearly written-up project you can show others as evidence of what you can do. Project Ideas
- position interpolation Stretching a RoPE model's context by dividing all positions by a factor, so longer inputs fit into the range of angles it was trained on. Positional Encodings
- positional encoding Information added to a Transformer so it knows the order of tokens, since attention on its own ignores order. Positional Encodings
- positive pair Two examples that should be treated as matching in contrastive learning, such as two augmented views of the same image or an image and its caption. Self-Supervised Learning
- post-norm The original Transformer layout that normalises after each residual addition, Norm(x + F(x)). Less stable and needs warmup. Normalization Layers: BatchNorm and LayerNorm
- post-training The training after pretraining, such as instruction tuning and learning from feedback, that turns a base model into a helpful assistant. Large Language Models, Explained Simply
- post-training quantization Quantizing a finished model without retraining, often using a small calibration set (PTQ). Quantization
- posterior The updated probability of a hypothesis after seeing the evidence, written P(H | E). Today's posterior becomes tomorrow's prior. Bayes' Theorem
- posterior collapse A VAE failure where a powerful decoder ignores the code: the encoder outputs the prior for every input, the KL term drops to zero, and the latent carries no information. Variational Autoencoders
- power law A relationship where multiplying the input by 10 always multiplies the output by the same factor. It is a straight line on log-log axes. Scaling Laws
- power usage effectiveness A data centre's total energy divided by the energy reaching its computers. A PUE of 1.1 means 10% extra for cooling and power losses. The Energy Cost of AI
- pre-norm A Transformer layout that normalises only the input to each branch, x + F(Norm(x)), leaving a clean residual path. The modern standard. Normalization Layers: BatchNorm and LayerNorm · The Transformer
- precision Of everything flagged positive, the fraction that really was positive: TP / (TP + FP). Evaluation Metrics
- precision–recall curve A plot of precision against recall across thresholds. More informative than the ROC curve when positives are rare. Evaluation Metrics
- predict The scikit-learn method that produces answers for new examples using what
fitlearned. scikit-learn - prediction The output a model gives for an input, such as an estimated rent for a flat or the next word of a sentence. How Machines Learn
- predictive parity A fairness metric requiring a positive prediction to mean the same in every group: among those flagged, the same share are truly positive. Bias and Fairness
- preference data Records of a prompt with two or more responses and a judgement of which is better, used to train reward models or DPO. RLHF and Preference Optimization
- prefill The first phase of generation, which processes the whole prompt in one parallel pass and fills the KV cache. It sets the time to first token. The KV Cache and Fast Inference
- prefix caching Computing the KV cache for a shared start of many prompts once and reusing it. APIs offer it as discounted prompt caching. The KV Cache and Fast Inference
- prefix tuning Learning a few vectors that are prepended to the keys and values in every attention layer, like an invisible learned instruction. LoRA and Parameter-Efficient Fine-Tuning
- preprint A research paper shared publicly before, or instead of, formal peer review. The Papers That Shaped AI
- preprocessing pipeline A chain of preparation steps and the model in one object, so every learned number comes from training data and is applied identically to new data. Data Cleaning and Preparation
- pretext task An invented task, such as predicting a hidden word or matching two views of an image, used only to make a network learn good representations. Self-Supervised Learning
- pretrained model A network already trained, usually on a huge dataset, whose weights you can download and adapt to your own task. Transfer Learning
- pretraining The long, expensive first stage of building an LLM: next-token prediction on trillions of tokens. It provides most of the model's knowledge. Pretraining Large Language Models · Large Language Models, Explained Simply
- primary source The original source of a fact, such as the study, the law or the company filing itself, rather than an article, blog or AI answer about it. AI for Research and Learning
- principal component One of the directions PCA finds: the first has the most spread in the data, each next one the most remaining spread at right angles. PCA and Dimensionality Reduction
- principal component analysis PCA: rotating the axes to line up with the directions of greatest variance, so you can keep the first few and describe data with fewer numbers. PCA and Dimensionality Reduction
- prior The distribution assumed for codes before seeing any data. In a VAE it is a standard Gaussian, and it is what you sample from to generate. Variational Autoencoders · Bayes' Theorem
- prioritized experience replay Replaying surprising transitions, those with large TD errors, more often than ordinary ones. Deep Q-Networks
- privacy budget The ε in differential privacy: how much one person's data may change the result. Smaller is more private, and each release spends some of it. Privacy, Data and Copyright
- probability A number from 0 (impossible) to 1 (certain) saying how likely something is. With equally likely outcomes it is favourable outcomes divided by all outcomes. Probability Basics
- probability density For continuous values, the height of the curve describing how likely values are near each point. Areas under it are probabilities; the height itself can exceed 1. Probability Distributions
- probability distribution A complete description of something uncertain: every possible outcome with how likely it is, sharing a total probability of 1. Probability Distributions
- probability ratio The new policy's probability of an action divided by the old policy's. A ratio of 1 means no change. Proximal Policy Optimization
- probing classifier A small, simple model trained on a network's hidden activations to test whether some property is stored there. Interpretability and Explainability
- problem decomposition Splitting a problem too big for one pass into simpler sub-questions that are solved in turn. Chain-of-Thought and Reasoning Prompts
- problem framing Turning a vague wish into a precise prediction task: what is predicted, when, with which information, what action follows and what errors cost. The ML Project Lifecycle
- process reward model A reward model that scores each step of a solution rather than only the final answer, useful for guiding search. Reasoning Models and Test-Time Compute
- product quantisation Compressing vectors by splitting each into chunks and replacing every chunk with the id of its nearest entry in a small learned codebook. Vector Databases
- production Software running where other people can reach it, with real data, for an indefinite time, and with you responsible for what happens. From Prototype to Production
- productivity How much useful output is produced per unit of work, such as issues resolved per hour or tasks completed per day. AI, Work and the Economy
- progress file A short Markdown note the agent updates during long work: what is done, what is next, decisions made. A fresh session reads it to continue where the last one stopped. Project Context and Memory Files
- progressive disclosure Loading information in stages, only as far as the task needs. A skill costs just its name and description until it is used. Extending Your Agent: Skills, Hooks, MCP and Subagents
- prohibited ai practice A use of AI banned outright under the EU AI Act, such as social scoring, workplace emotion recognition or untargeted scraping of faces. AI Regulation and Governance
- project A workspace in an AI assistant that stores instructions and reference documents once, so every chat in it starts with that context. Gemini calls these Gems. Choosing an AI Assistant
- projection Mapping each point onto chosen directions, such as the first k principal components, to get its new, shorter coordinates. PCA and Dimensionality Reduction
- projector The small network, often a two-layer MLP, that translates a vision encoder's patch features into a language model's embedding space. Multimodal LLMs
- prompt All the text sent to a language model in one request: instructions, background documents, examples and the question itself. Prompt Engineering · Asking Well: Everyday Prompting
- prompt caching A provider feature that stores the processed state of a repeated prompt prefix, so later requests starting with the same tokens cost less and respond faster. Building AI Products · Context Engineering and Memory
- prompt chaining Splitting a task into fixed steps, each a model call whose output feeds the next, often with code checks between steps. AI Agents · Prompt Engineering
- prompt engineering The craft of writing prompts that get reliable results from a language model: clear instructions, context, examples, a defined output format, and testing like code. Prompt Engineering
- prompt ensembling Averaging the text embeddings of several caption templates for each class, such as "a photo of a dog" and "a drawing of a dog", to improve zero-shot accuracy. CLIP and Contrastive Learning
- prompt injection An attack where text written to look like instructions makes a language model do something its developer or user didn't intend, because instructions and data share one channel. Prompt Injection and LLM Security
- prompt library Your own collection of prompts that have worked, each with a note on when to use it, so you never rewrite them. AI in Your Daily Workflow
- prompt template A prompt with slots, such as {review}, that code fills in for each request. Templates are what you version, test and reuse. Prompt Engineering · Asking Well: Everyday Prompting
- prompt tuning Learning a few soft prompt vectors placed in front of the input embeddings only. Works well for very large models, poorly for small ones. LoRA and Parameter-Efficient Fine-Tuning
- prompt-completion dataset Training data where each example pairs a prompt (the input conversation) with the ideal completion, so the loss can be computed on the answer only. Fine-Tuning an Open Model in Practice
- promptable segmentation Segmentation driven by a prompt such as a click or a box: the model outlines whatever you point at, without naming it, as Segment Anything does. Image Segmentation
- prompting Writing instructions for an AI to get useful results, by giving clear context, a clear task and a clear picture of success. Asking Well: Everyday Prompting
- protected attribute A characteristic such as sex, race, age or disability that law or ethics says should not drive a decision. Also called a sensitive attribute. Bias and Fairness
- prototype A working mock-up that shows how something would work, so people can react to it before it is built properly. Building Apps Without Coding
- proximal policy optimization PPO: an actor-critic that reuses each batch for several updates but clips its objective so the new policy stays close to the one that collected the data. Proximal Policy Optimization
- proxy metric A number you can compute offline, such as accuracy or AUC, standing in for the business metric. Useful only if improving it improves the business metric. The ML Project Lifecycle
- proxy variable A feature that stands in for a protected attribute, such as a postcode for race, letting a model discriminate without seeing the attribute. Bias and Fairness
- pruning Cutting away what doesn't earn its keep: branches of a decision tree that don't reduce error enough, or tuning trials clearly behind earlier ones. Decision Trees · Hyperparameter Tuning
- puct AlphaZero's selection rule: a move's mean value plus an exploration bonus weighted by the policy network's prior probability for that move. Monte Carlo Tree Search and AlphaGo
- pull request A web page, on GitHub and similar sites, proposing that a branch be merged. It shows the full diff and lets people and automated checks comment before anyone merges. Git for Agent Work
- pydantic A Python library that turns a class with type hints into a JSON Schema and validates data against it, returning a typed object or precise errors. Structured Output and JSON
- python The programming language almost all AI work is done in, designed to be easy to read. The heavy number-crunching it directs runs in fast C, C++ and GPU code underneath. Python for AI
- pytorch The most widely used deep-learning library: GPU tensors, automatic gradients, building blocks for models, and tools for feeding data. PyTorch
Q
- q-learning A model-free algorithm that nudges Q(s, a) towards the reward plus the best estimated value of the next state after every step. It learns the optimal action values. Q-Learning
- q-table A lookup table with one estimated action value for every state–action pair, as used in tabular Q-learning. Q-Learning
- qlora A fine-tuning method that keeps the frozen base model in 4-bit precision and trains small 16-bit LoRA adapters, so large models fit on one GPU. Fine-Tuning an Open Model in Practice · LoRA and Parameter-Efficient Fine-Tuning
- quadratic attention Full attention's cost growing with the square of the sequence length, because every token is compared with every other token. Long Context and Efficient Attention
- quantile loss A loss that charges under- and over-predictions at different rates, so the model learns a chosen percentile, such as the 90th. Loss Functions
- quantization Storing a model's numbers with fewer bits, such as 8 or 4 instead of 16 or 32, to save memory and speed up inference. Quantization
- quantization level How many bits store each weight and how, named like Q4_K_M or Q8_0. Fewer bits means a smaller, faster model with some loss of quality. Running Models Locally
- quantization-aware training Simulating rounding during training so the model learns weights that survive low precision (QAT). Quantization
- query The vector saying what a position is looking for. It is compared with every key to produce attention scores. Attention
- query rewriting Using an LLM to transform a user's question before retrieval, for example making a follow-up standalone, generating paraphrases or splitting it into sub-questions. Advanced RAG
R
- randaugment An automatic augmentation policy that applies N randomly chosen operations at a shared strength M to each image, with only those two numbers to tune. Data Augmentation
- random erasing Blanking out a random rectangle of a training image (also called Cutout), so the model cannot rely on one telltale region. Data Augmentation
- random forest An ensemble of deep decision trees, each trained on a bootstrap sample and limited to random feature subsets at each split, that vote. Random Forests and Bagging
- random resized crop Cutting a random rectangle (often 8% to 100% of the area, varied aspect ratio) from an image and resizing it to the training size. The standard ImageNet augmentation. Data Augmentation
- random search Trying a fixed number of random hyperparameter combinations. Usually finds good settings faster than a grid. Hyperparameter Tuning
- random seed A starting number that makes a random number generator produce the same sequence every run, so results can be repeated. NumPy and Array Thinking
- random variable A number whose value depends on chance, such as the face of a die or the number of spam emails tomorrow. Usually written with a capital letter, X. Probability Basics
- rank The number of independent directions a matrix can produce. In LoRA, the small inner size r of the two thin matrices, typically 4 to 64. LoRA and Parameter-Efficient Fine-Tuning
- rate limit A cap on how many requests and tokens an account may send per minute. Exceeding it gets calls refused, with HTTP status 429. Using LLM APIs
- rbf kernel The Gaussian kernel exp(−γ‖a − b‖²): similarity 1 for identical points, near 0 for distant ones. γ sets how far each point's influence reaches. Support Vector Machines
- react Reason plus act: an agent pattern that alternates short written thoughts with actions and observations, keeping track of the plan as it goes. AI Agents
- reading order The sequence in which a page's words or blocks should be read, recovered by grouping boxes into lines, columns and regions. OCR and Document AI
- reasoning effort An API setting on reasoning models that trades accuracy against time and cost by controlling how much the model thinks before answering. Chain-of-Thought and Reasoning Prompts
- reasoning model A model trained, usually with reinforcement learning on checkable problems, to think at length before answering, such as OpenAI's o1 (2024), DeepSeek-R1 and, by 2026, most frontier models. Reasoning Models and Test-Time Compute
- recall Of all real positives, the fraction the model caught: TP / (TP + FN). Also called sensitivity or the true positive rate. Evaluation Metrics
- recall@k The fraction of the true top k nearest neighbours (or relevant items) that a search actually returns. 9 of 10 gives 0.9. Vector Databases
- receptive field The patch of the original input that can affect one unit in a network. It grows with each stacked convolution, pooling or stride. Convolutional Neural Networks
- reciprocal rank fusion A way to merge ranked lists using only ranks: each list gives a document 1/(60 + rank), and the scores are added. Documents several lists like rise to the top. Advanced RAG
- recommender system A system that chooses which items, such as films, songs or products, to show each user, predicting what they will like. Recommender Systems
- reconstruction error The difference between the original data and its version rebuilt from a compressed form. Large error can flag anomalies. PCA and Dimensionality Reduction
- rectified flow A flow-matching variant that adds reflow: retraining on the model's own noise-sample pairs so paths become straighter and need very few steps. Normalizing Flows and Flow Matching
- recurrent neural network A network that reads a sequence one step at a time, reusing the same weights and passing a hidden state from each step to the next. Also called an RNN. Recurrent Neural Networks
- recurrent state The fixed-size vector a recurrent or state space model carries from step to step, summarising everything read so far. State Space Models and Mamba
- recursive partitioning Growing a tree by choosing the best split, applying it, and repeating inside each resulting group until a stopping rule. Decision Trees
- red line Something you should not use AI for in your job, because the risk to people, trust or the law outweighs the time saved. AI for Your Profession
- red-green-refactor The rhythm of test-driven development: write a test and watch it fail (red), make it pass with the simplest code (green), then tidy up while tests stay green (refactor). Tests as Guardrails
- red-teaming People, and increasingly AI systems, deliberately trying to make a model misbehave before release, to find weaknesses. AI Risks and Safety
- reference model A frozen copy of the model before preference training, usually the SFT model, which the trained policy is kept close to. RLHF and Preference Optimization
- reference window The baseline data, usually training data or a recent stable period, that current production data is compared with. Monitoring and Data Drift
- reflog Git's record of every position your branches have recently pointed to, including commits you discarded with a reset. It is how you recover "lost" commits. Git for Agent Work
- region proposal A candidate area that might contain an object, suggested by a first stage so a second stage can classify it and refine its box. Object Detection
- regression A supervised task where the label is a number on a continuous scale, such as a price, a temperature or a delivery time. Supervised Learning
- regression test A test that reruns known cases after every change to make sure old fixes and working behaviour have not broken. Evaluating LLM Applications
- regression tree A decision tree for numeric targets: each leaf predicts the mean of its examples and splits reduce squared error. Decision Trees
- regret The reward lost compared with always choosing the best option. Good bandit strategies keep it growing only slowly, like log T. Multi-Armed Bandits and Exploration
- regularization Adding a penalty for complexity, usually on the size of the weights, so a model fits only patterns the data clearly supports. Regularization: L1 and L2
- regularization strength The number λ (alpha in scikit-learn; C = 1/λ in some models) that sets how heavily the penalty counts. Chosen on validation data. Regularization: L1 and L2
- reinforce The basic policy-gradient algorithm (Williams, 1992): after each episode, push up each action's log-probability in proportion to the return that followed it. Policy Gradients
- reinforcement learning Learning by trial and error: an agent acts, receives rewards, and adjusts its behaviour to collect as much total reward as possible over time. Nobody tells it the right action. Reinforcement Learning: The Basics · Supervised, Unsupervised and Reinforcement Learning
- rejection sampling Generating many candidates per problem and keeping only those that pass an automatic check, such as a known answer or tests. Synthetic Data
- relative position How far apart two tokens are, as opposed to their absolute addresses. RoPE and ALiBi make attention depend on it. Positional Encodings
- relu The rectified linear unit, max(0, z): it passes positive numbers unchanged and turns negatives into zero. The default hidden-layer activation. Activation Functions
- repair loop Sending a failed output's validation errors back to the model and asking for a corrected version, with a cap on the number of attempts. Structured Output and JSON
- reparameterization trick Writing a random code as z = μ + σ·ε with fresh noise ε, so the randomness sits outside the network and gradients can flow back through μ and σ. Variational Autoencoders
- repeated cross-validation Running k-fold cross-validation several times with different shuffles and averaging, to smooth out the luck of how folds were cut. Cross-Validation
- repetition penalty Lowering the scores of tokens that have already appeared, to discourage the model from repeating itself. Decoding: Temperature, Top-k and Top-p
- replay buffer The memory that holds past transitions for experience replay. When full, the oldest are dropped. Deep Q-Networks
- representation collapse A failure where an encoder gives every input the same output, trivially making all views similar while learning nothing. Self-Supervised Learning
- representation learning A network discovering its own useful descriptions of the data, layer by layer, instead of using hand-designed features. Why Neural Networks Work · Feature Engineering
- reproducibility Being able to rerun a recorded experiment and get the same model, or the same result within known seed variance. Experiment Tracking and Reproducibility
- reranking A second retrieval stage that rescores a shortlist of candidates with a slower, more accurate model and keeps only the best few for the LLM. Advanced RAG
- reshaping Changing the shape of a tensor without changing its numbers or their order in memory, such as flattening (8, 3, 32, 32) to (8, 3072). Tensors and Shapes
- residual The gap between a prediction and the true value for one example. Gradient boosting fits each new tree to the current residuals. Gradient Boosting: XGBoost and LightGBM · Linear Regression
- residual block A small stack of layers wrapped by a skip connection, computing x + F(x). The building unit of ResNets. Residual Connections
- residual connection Adding a block's input to its output, y = x + F(x), so the block only learns a correction and gradients get a direct path back. Residual Connections
- residual stream A view of a Transformer as one vector running from input to output, which every attention and MLP layer reads from and adds to. Residual Connections · The Transformer
- residual vector quantization Quantizing a vector with a stack of codebooks, where each codebook encodes what the previous ones missed, so early codes are coarse and later ones add detail. Music and Voice Generation
- resnet A 2015 CNN family that adds each block's input back to its output through skip connections, so networks of 50 to 152 layers train well. ResNet-50 is a standard backbone. Classic CNN Architectures: LeNet to ResNet
- resolution The number of pixels in an image, given as width × height, such as 224 × 224 or 4032 × 3024. Images as Data
- responsible scaling policy Anthropic's frontier safety framework, defining AI Safety Levels with safeguards required before a model reaching each level is trained further or deployed. AI Risks and Safety
- retraining Training the model again on recent data to fix drift. The new model must beat the old one before it replaces it. Monitoring and Data Drift
- retrieval evaluation Measuring whether search finds the right passages, using real questions labelled with the chunks that answer them and metrics such as recall@k and MRR. Advanced RAG
- retrieval-augmented generation Answering a question by first retrieving relevant passages from your documents and putting them in the prompt, so the model answers from them and can cite them. Often called RAG. Retrieval-Augmented Generation
- retriever The part of a RAG system that searches the document collection and returns the passages most relevant to a question, usually by semantic search. Retrieval-Augmented Generation
- return The total of future rewards from a time step on, each discounted by how far away it is. The agent tries to maximise it, not just the next reward. Reinforcement Learning: The Basics
- reverse process The learned part of diffusion that removes noise one small step at a time, turning pure noise back into data. Diffusion Models
- reverse-mode differentiation Computing derivatives by sweeping backwards from one output to all inputs. Ideal for neural networks, which have many parameters but a single loss. Backpropagation
- review bottleneck The point where the work of many parallel agents must pass through one human's review in series. It, not the agents, sets how fast trustworthy work ships. Running Agents in Parallel and in the Background
- reward The number the environment sends back after each action, saying how good that single step was. Reinforcement Learning: The Basics · Supervised, Unsupervised and Reinforcement Learning
- reward clipping Limiting every reward to a fixed range such as −1 to +1 so one learning rate suits games with very different score scales. Deep Q-Networks
- reward hacking A model finding ways to score highly on an imperfect reward without actually getting better, such as padding answers or flattering the user. RLHF and Preference Optimization · AI Alignment
- reward hypothesis The assumption that every goal we care about can be expressed as maximising the expected total of a single numeric reward signal. Reinforcement Learning: The Basics
- reward model A model that scores an answer with a single number, trained so that answers people prefer get higher scores. RLHF and Preference Optimization
- reward-to-go The return from a given step onwards. Policy gradients weight each action by it, since an action cannot affect earlier rewards. Policy Gradients
- rgb The usual colour space for images: each pixel stores how much red, green and blue light to mix, as three numbers. Images as Data
- ridge point The arithmetic intensity where memory and compute limits meet: peak FLOP/s divided by bandwidth. About 295 FLOPs per byte for an H100. AI Hardware: GPUs, TPUs and Accelerators
- ridge regression Linear regression with an L2 penalty. It also stabilises the weights of correlated features. Regularization: L1 and L2
- right to erasure A person's right under GDPR to have their personal data deleted, also called the right to be forgotten. Hard to honour inside a trained model. Privacy, Data and Copyright
- ring all-reduce An all-reduce in which GPUs pass chunks around a ring; each sends under twice the gradient size however many GPUs there are. Distributed Training
- risk-based regulation Rules whose strictness scales with how much harm a use could cause, so the same model may be unregulated in one use and heavily regulated in another. AI Regulation and Governance
- rlaif Reinforcement learning from AI feedback: like RLHF, but a language model, not a human, judges which answer is better. RLHF and Preference Optimization
- rlhf Reinforcement learning from human feedback: training a model with a reward model learned from human comparisons of answers, usually with PPO and a KL penalty. RLHF and Preference Optimization
- rmsnorm A cheaper LayerNorm that skips subtracting the mean and divides by the root mean square of the features, then applies a learned scale. Normalization Layers: BatchNorm and LayerNorm · The Transformer
- rmsprop An optimizer that divides each parameter's step by the root mean square of its recent gradients, giving every parameter its own effective learning rate. Optimizers: SGD, Momentum and Adam
- robust scaling Scaling a feature by subtracting its median and dividing by its interquartile range, so outliers barely affect the result. Data Cleaning and Preparation
- robust z-score A z-score using the median and median absolute deviation instead of mean and standard deviation, so outliers can't hide themselves. Anomaly Detection
- robustness How well a model keeps working when its inputs are changed, whether by natural variation or by a deliberate attacker. Adversarial Examples
- roc curve A plot of true positive rate against false positive rate as the decision threshold sweeps from 1 to 0. Evaluation Metrics
- role prompting Telling the model, usually in the system prompt, who it is acting as (for example, a senior commercial lawyer), which shifts its vocabulary, depth and judgement. Prompt Engineering · Asking Well: Everyday Prompting
- rollback Switching back to the previous model version quickly when a new release misbehaves. Deploying Models
- rollout A simulated playout from a position to the end of the game, often with random or quick moves, used to estimate how good the position is. Monte Carlo Tree Search and AlphaGo
- roofline model A chart of attainable speed: the lower of the compute peak and arithmetic intensity times memory bandwidth. AI Hardware: GPUs, TPUs and Accelerators
- root cause The underlying reason a bug happens, as opposed to its visible symptom. A good fix changes the root cause, not just the symptom. Reviewing and Debugging AI-Written Code
- root mean squared error The square root of the mean squared error, in the label's own units. It weights big misses more than MAE does. Evaluation Metrics
- rotary position embedding RoPE: rotating query and key vectors by an angle proportional to position, so attention scores depend on the distance between tokens. Used by most open models. Positional Encodings
- router The small layer in a mixture-of-experts model that scores every expert for each token and picks which ones to use. Also called the gate. Mixture of Experts
- routing A workflow pattern where a first call or classifier labels the input and code sends it to a specialised prompt or model. AI Agents
- rubric The written criteria a grader uses to decide pass or fail, ideally one criterion at a time with examples of passes and fails. Evaluating LLM Applications
- rule-based system A program that follows rules written by hand by an expert, such as "add 100 euros if there's a balcony", instead of learning them from data. How Machines Learn
- run One execution of a training script, with its own inputs, settings and outputs. Experiment Tracking and Reproducibility
- runbook A short document saying what to do when things go wrong in production: how to roll back, restore a backup, rotate keys and find the logs. From Prototype to Production
- running statistics The moving averages of batch means and variances that BatchNorm keeps during training and uses instead of batch statistics at evaluation. Normalization Layers: BatchNorm and LayerNorm
- runtime In Colab, the temporary virtual machine that runs your notebook. When it disconnects its memory and files are wiped. Notebooks: Jupyter and Colab
S
- saddle point A flat point that curves up in some directions and down in others, like a horse's saddle. Common in high dimensions, where training can stall near them. Gradient Descent
- safetensors A file format for model weights that holds only numbers and cannot run code when loaded, unlike older pickle files. The Hugging Face Ecosystem
- saliency map A heat map of how much each input pixel or token affects a network's output, computed from the gradient with respect to the input. Interpretability and Explainability
- sample The subset of the population you actually have data on. Numbers computed from it are estimates that would wobble with a different sample. Statistics: Mean, Variance and Sampling
- sample efficiency How much real experience an agent needs to learn. Model-based methods are often far more sample-efficient than model-free ones. Model-Based RL and World Models
- sample rate How many audio measurements are taken per second, such as 16,000 Hz for speech models or 44,100 Hz for CDs. Audio as Data
- sample space The set of everything that can happen in a random situation. For one die it is {1, 2, 3, 4, 5, 6}. Probability Basics
- sampling Choosing the next token at random in proportion to its probability, which gives varied, natural text but occasionally picks bad tokens. Decoding: Temperature, Top-k and Top-p · Probability Distributions · Large Language Models, Explained Simply
- sampling loop The generation procedure: run the model, take the last position's distribution, draw a token, append it, and repeat. Build a GPT from Scratch
- sampling step One network evaluation during generation, removing part of the noise. More steps usually mean better quality but slower generation. Diffusion Models
- sandbox An isolated environment, such as a container or virtual machine, with no access to secrets or production systems, where an agent can run commands safely. AI Coding Assistants and Agents
- sanity check A quick test whose correct answer you know in advance, such as checking that an untrained classifier's loss is about ln C. Training Neural Networks in Practice
- sarsa An on-policy TD algorithm whose target uses the action the agent actually takes next, rather than the best one. It learns the value of its own exploratory policy. Q-Learning
- saturation The state of a neuron whose input sits in a flat part of its activation curve, such as the ends of a sigmoid, so it passes almost no gradient back. Activation Functions
- scalable oversight Research on how humans can reliably supervise AI systems that are more capable than they are, for example through AI-assisted critique or debate. AI Alignment
- scalar A single ordinary number, as opposed to a vector or matrix. Multiplying a vector by a scalar stretches or shrinks it. Vectors
- scale factor The number each weight is divided by before rounding to an integer level, and multiplied by to get it back. Quantization
- scale-up domain The group of chips joined by very fast links, such as 8 GPUs in an HGX server or 72 in an NVL72 rack. AI Hardware: GPUs, TPUs and Accelerators
- scaled dot-product attention The Transformer's attention formula, softmax(QKᵀ / √d_k) V. The √d_k division keeps scores from growing too large as heads get wider. Self-Attention and Multi-Head Attention
- scaling law An empirical rule that a model's loss falls predictably, as a power law, as parameters, data and compute grow. Scaling Laws
- scatter plot A chart with one dot per example and one variable on each axis, showing relationships, clusters and outliers. Visualising Data
- scene text Text appearing in photos of the world, such as signs, licence plates and product labels. It may be curved, rotated or partly hidden, so it is harder than scanned text. OCR and Document AI
- scikit-learn The standard Python library for classical machine learning, imported as
sklearn. Every model shares the same fit and predict interface. scikit-learn - scikit-learn transformer A scikit-learn estimator that changes data rather than predicting answers, such as a scaler or encoder, using
fitthentransform. Unrelated to the Transformer network. scikit-learn - scope creep A change growing beyond what was asked: reformatting, renaming, extra features. The most common way agent changes go wrong in practice. Reviewing and Debugging AI-Written Code
- score function The direction in which data becomes more probable at a given point. For diffusion it is proportional to minus the predicted noise. Diffusion Models · Policy Gradients
- scree plot A plot of each principal component's explained variance, used to see where the curve flattens and choose how many to keep. PCA and Dimensionality Reduction
- sdk Software development kit: a library that wraps an API's raw HTTP calls in convenient functions for a programming language. Using LLM APIs
- seaborn A plotting library built on Matplotlib that makes statistical charts from pandas DataFrames in one line, handling grouping and colours. Visualising Data
- search space The range of values worth trying for each hyperparameter in a search. Scale-like settings should be searched on a log scale. Hyperparameter Tuning
- search tree The part of the game tree that MCTS has explored so far, with visit counts and results stored at each node. Monte Carlo Tree Search and AlphaGo
- seasonal naive forecast A baseline forecast where each value equals the value one season earlier, such as the same day last week. Time Series Forecasting
- seasonality A pattern in a time series that repeats with a fixed period, such as daily rush hours or busy weekends. Time Series Forecasting
- second derivative The derivative of the derivative: how fast the slope itself changes, or curvature. Positive means the curve bends up like a bowl. Derivatives and Slopes
- secret Any value that grants access, such as an API key, database password or cookie-signing key. Secrets belong in the environment, never in code or git. From Prototype to Production
- secret scanning Automatically searching code and its history for strings that look like credentials, so leaks are caught or blocked before they spread. From Prototype to Production
- seed The number that fixes the random starting noise. The same seed with the same settings and model gives the same image. Text-to-Image in Practice
- seed data The small set of hand-written examples, topics or documents that guides a generator and controls the coverage of synthetic data. Synthetic Data
- seed variance The spread of results from runs that differ only in their random seed. It is the noise floor any claimed improvement must beat. Experiment Tracking and Reproducibility
- segmentation mask An image the same size as the input in which each pixel holds a label instead of a colour. Image Segmentation
- selective state space model A state space model whose parameters depend on the current input, so it can choose what to remember and what to skip. State Space Models and Mamba
- self-attention Attention in which every token of a sequence attends to every token of the same sequence, with queries, keys and values all computed from it. Self-Attention and Multi-Head Attention
- self-consistency Sampling several independent reasoning chains for the same question and taking the most common final answer, because wrong chains tend to disagree. Chain-of-Thought and Reasoning Prompts · Reasoning Models and Test-Time Compute
- self-instruct A method where a model writes new instructions, inputs and outputs from a few seed tasks, which are filtered and used to fine-tune it. Synthetic Data
- self-play Training a game-playing agent by having it play against copies of itself, generating its own training games. Monte Carlo Tree Search and AlphaGo
- self-supervised learning Learning from unlabelled data by creating labels from the data itself, such as hiding part of an example and predicting it. How foundation models are pretrained. Self-Supervised Learning · Supervised, Unsupervised and Reinforcement Learning
- semantic chunking Splitting a document where the topic shifts, detected by a drop in embedding similarity between neighbouring sentences. Advanced RAG
- semantic search Searching by meaning: embed the query and return the stored texts whose embeddings are closest, even if they share no words with the query. Embeddings and Semantic Search
- semantic segmentation Giving every pixel a class, such as sky, road or cat. Touching objects of the same class merge into one region. Image Segmentation
- semi-supervised learning Learning from a small set of labelled examples together with a large set of unlabelled ones. Supervised, Unsupervised and Reinforcement Learning
- sentence embedding A single vector representing the meaning of a whole sentence, paragraph or document, so similar texts get similar vectors. Sentence Embeddings
- sequence-level distillation Having a teacher generate text and fine-tuning the student on it with the normal next-token loss. It needs only the teacher's outputs. Knowledge Distillation and Small Models
- sequence-to-sequence model A model that reads an input sequence and writes an output sequence of possibly different length, as in translation. Often shortened to seq2seq. Sequence-to-Sequence Models
- series A single labelled column of values of one type in pandas. A DataFrame is a set of Series sharing the same index. Pandas and Working with Data
- server tool A tool, such as web search or code execution, that the provider runs on its own machines, so results arrive inside the response with no loop for you to write. Tool Use and Function Calling
- service level objective A latency or reliability target promised to users, such as 'first token under 1 second for 99% of requests' (SLO). Serving LLMs at Scale
- session One conversation with a coding agent, with its own memory of what was said and done. It lasts until you exit, and starts with no memory of earlier sessions. Setting Up a Coding Agent
- set A collection of distinct things, written in curly braces, such as {1, 2, 3}. Math Notation Cheat Sheet
- shadow ai Using unapproved AI tools for work, often on a personal account. It is common, mostly well-intentioned, and the biggest source of AI data risk for organisations. Using AI Safely at Work
- shadow deployment Sending a copy of real traffic to a new model and logging its predictions without using them, to compare it safely with the current model. Deploying Models
- shap SHapley Additive exPlanations: a family of fast methods for computing Shapley values to explain individual predictions, with an exact fast version for tree models. Interpretability and Explainability
- shape The list of how many entries a tensor or array has along each axis. A batch of 32 colour images might have shape (32, 3, 224, 224). Tensors and Shapes · NumPy and Array Thinking
- shapley value A fair share of a prediction for each feature, from game theory: its average added contribution over every order in which features could join. The values sum to prediction minus baseline. Interpretability and Explainability
- sharding Splitting a large dataset into many manageable files (shards) that can be read and shuffled in parallel, or given to different GPUs. Data Pipelines and Datasets
- short-term memory What the current conversation holds: the recent turns verbatim plus a running summary of older ones. Context Engineering and Memory
- short-time fourier transform Applying the Fourier transform to short, overlapping, windowed slices of audio (often 25 ms every 10 ms) to see how frequencies change over time. Often shortened to STFT. Audio as Data
- shortcut learning When a model latches on to an easy feature that happens to correlate with the label in training, like snow instead of the wolf. Interpretability and Explainability
- shrinkage The learning rate in gradient boosting: the fraction of each new tree's output added to the model. Smaller is more accurate but needs more trees. Gradient Boosting: XGBoost and LightGBM
- sigmoid The S-shaped function 1/(1 + e⁻ᶻ) that squashes any number into the range 0 to 1. Used for probabilities at the output; its slope is at most 0.25. Activation Functions · Logistic Regression
- silhouette score For each point, (b − a)/max(a, b), comparing its distance to its own cluster with the nearest other cluster. Near 1 is good, negative is misplaced. k-Means Clustering
- silu The sigmoid linear unit, z·σ(z), also called Swish. A smooth ReLU-like curve, cheaper than GELU and nearly the same shape. Activation Functions
- singular value One of the non-negative stretch factors in the SVD, sorted largest first. They are the half-axis lengths of the ellipse a matrix makes from a unit circle. Eigenvectors and SVD
- singular value decomposition Splitting any matrix into rotate, stretch along the axes, rotate: M = UΣVᵀ. It works for every matrix, square or not. Eigenvectors and SVD
- sinusoidal positional encoding The original Transformer's fixed position vectors, made of sines and cosines at many frequencies, like a clock with hundreds of hands. Positional Encodings
- skill compression AI narrowing the gap between new and experienced workers, usually because it helps novices much more than experts. AI, Work and the Economy
- skip connection The path that carries a block's input around its layers. In ResNets it is added to the output; in U-Nets it is often concatenated. Residual Connections
- skip-gram The word2vec variant that uses each word's vector to predict the words within a small window around it. Word Embeddings
- slash command A command typed inside an agent session that starts with /, such as /clear or /init. It controls the agent rather than being sent to the model as a message. Setting Up a Coding Agent
- slicing Picking a range from an array or list with
start:stop, where the start is included and the stop is not. A bare:means everything along that axis. NumPy and Array Thinking - sliding-window attention Letting each token attend only to the previous w tokens, so cost grows linearly with length. Stacked layers still let information travel further. Long Context and Efficient Attention
- slope Steepness: rise divided by run. Positive means the function goes up as the input grows, negative means it goes down, zero means flat. Derivatives and Slopes
- slopsquatting Registering package names that AI models tend to invent, with malicious code inside, and waiting for an agent to suggest and install them. From Prototype to Production
- small language model A language model small enough to run on a laptop or phone, loosely under about 10 billion parameters. Knowledge Distillation and Small Models
- smoothing Giving every possible continuation a little probability so unseen word pairs don't get probability zero. Add-k smoothing pretends each pair was seen k extra times. Language Modeling and Next-Token Prediction
- socratic tutoring Teaching by asking questions that lead you to work things out yourself, rather than handing you the answer. AI for Research and Learning
- soft margin An SVM that allows some points inside the margin or misclassified, charging a hinge-loss penalty set by C. Support Vector Machines
- soft targets A teacher's full probability distribution over answers, often softened by temperature, used as training targets instead of one-hot labels. Knowledge Distillation and Small Models
- softmax A function that turns a vector of scores into probabilities that are all positive and add up to 1, by exponentiating each and dividing by the total. Activation Functions · Attention · Probability Distributions · Logistic Regression
- softmax policy A policy that turns one score per action into probabilities with a softmax, so higher scores mean more likely actions. Policy Gradients
- softmax regression Logistic regression extended to many classes: one score per class, turned into probabilities with softmax. Also called multinomial logistic regression. Logistic Regression
- source grounding Tying AI answers to documents you provide, so every claim can be checked against the original text. AI for Research and Learning
- spaced repetition Reviewing material at growing intervals, such as a day, a week, then a month. It beats cramming; flashcard apps like Anki automate it. How to Learn AI
- spacetime patch A small cube of a compressed video latent, a few positions wide and one or a few frames deep, used as one token by a video Transformer. Video Generation
- sparse attention Restricting attention to a chosen pattern of positions, such as local windows, strides or global tokens, so not every pair is compared. Long Context and Efficient Attention
- sparse autoencoder An autoencoder with a possibly wide middle layer that is penalised for using more than a few units at once, so each unit tends to capture one recognisable feature. Autoencoders · Mechanistic Interpretability
- sparse model A model in which only a small part of the network is used for any given token, such as a mixture of experts. Mixture of Experts
- sparse vector A vector with one dimension per vocabulary word, almost all zeros, as in TF-IDF or BM25. It matches exact words. Embeddings and Semantic Search
- sparsity Having many weights exactly zero, so the model uses only a subset of the features. Regularization: L1 and L2
- speaker diarisation Working out who spoke when in a recording, by splitting the audio into segments labelled by speaker. Speech Recognition
- spec-driven development Working with the written specification as the main artefact, from which code is generated and regenerated. Tools such as GitHub's Spec Kit structure it into spec, plan, tasks and code. Planning and Specs: Telling an Agent What to Build
- specaugment Audio augmentation that masks random bands of time and frequency in a spectrogram, so a speech model cannot depend on any single moment or pitch range. Data Augmentation
- special token A reserved token that never comes from ordinary text, such as end-of-text or start-of-assistant-turn, used to mark structure. Instruction Tuning and Chat Models · Tokenization
- specification A description of exactly what a piece of software must do, including its rules, inputs and outputs. Half a page is often enough. Building Apps Without Coding
- specification gaming Behaviour that satisfies the literal objective while defeating its purpose, like a racing agent that circles scoring points instead of finishing the race. AI Alignment
- specificity Of all real negatives, the fraction correctly cleared: TN / (TN + FP). One minus it is the false positive rate. Evaluation Metrics
- spectrogram A picture of sound with time across, frequency up and brightness for energy, made by taking spectra of short overlapping slices. Audio as Data
- spectrum How much of each frequency a sound contains, as produced by the Fourier transform. Audio as Data
- speculative decoding Speeding up generation by letting a small draft model guess several tokens that the big model checks in one pass, with exactly the same output distribution. Decoding: Temperature, Top-k and Top-p
- spending limit A hard cap, set in a provider's console, on how much an API key or account can spend in a period, so a bug or bot can't run up a huge bill. From Prototype to Production
- split A yes/no question about one feature at a tree node, such as income ≤ 51.5, that divides the examples into two groups. Decision Trees
- spreadsheet formula An instruction in a spreadsheet cell that calculates a result from other cells, such as SUMIFS or XLOOKUP. AI for Data and Spreadsheets
- sram Tiny, very fast on-chip memory (registers, caches, shared memory), roughly ten times faster than HBM but thousands of times smaller. AI Hardware: GPUs, TPUs and Accelerators
- stable diffusion The openly released latent diffusion text-to-image model (2022): a VAE, a denoiser working in a 64×64×4 latent, and a CLIP text encoder joined by cross-attention. Latent Diffusion and Stable Diffusion
- standard deviation The square root of the variance, in the data's own units. Roughly how far a typical value sits from the mean. Statistics: Mean, Variance and Sampling
- standard error The typical size of the error in an estimate made from a sample, such as σ/√n for a mean. Four times the data halves it. Statistics: Mean, Variance and Sampling
- standardisation Scaling a feature by subtracting its mean and dividing by its standard deviation, giving mean 0 and standard deviation 1 (z-scores). Data Cleaning and Preparation
- state A description of the current situation, such as the board position or a robot's joint angles. The agent chooses its action based on it. Reinforcement Learning: The Basics
- state dict A PyTorch model's learned numbers as a dictionary from parameter names to tensors. Saving and loading it is how you store a model. PyTorch
- state space The set of all states the environment can be in. Markov Decision Processes
- state space model A sequence layer that carries a fixed-size state through the sequence with a linear update, so it trains in parallel but generates at constant cost per token. State Space Models and Mamba
- state-value function v_π(s): the expected return when starting in state s and following policy π from then on. It measures how good it is to be in a state. Value Functions and Bellman Equations · Markov Decision Processes
- static batching Running a fixed group of requests until the longest finishes before starting the next group, leaving slots idle. Serving LLMs at Scale
- stationarity When a series' mean, variance and autocorrelation don't change over time. ARIMA needs it, often after differencing. Time Series Forecasting
- stdio transport An MCP transport where the host launches the server as a local subprocess and they exchange messages over standard input and output. Model Context Protocol
- step decay A schedule that keeps the learning rate constant and then cuts it by a fixed factor, usually 10, at chosen points in training. Learning Rate Schedules
- step function A function that outputs 0 below a threshold and 1 above it. The perceptron uses it; its slope is zero, so gradient descent cannot learn through it. The Perceptron
- step size α, how far each update moves an estimate towards its target. It plays the role of the learning rate. Q-Learning
- stochastic depth A regulariser that randomly skips whole residual blocks during training. Dropout and Regularizing Neural Networks
- stochastic gradient descent Gradient descent that estimates the gradient from one random example per step, cheap but noisy. The name is also used loosely for mini-batch training. Gradient Descent
- stochastic policy A policy that gives a probability to each action in a state and samples from it, so it can act randomly. Sometimes the best behaviour is genuinely random. Markov Decision Processes · Policy Gradients
- stop condition A rule that ends an agent loop, such as a final answer, a step or cost limit, a detected repeat, or an action that needs human approval. AI Agents
- stop reason A field in an API response saying why generation ended, such as finished (end_turn), cut off (max_tokens) or waiting for a tool (tool_use). Using LLM APIs
- stratified k-fold k-fold cross-validation where each fold keeps the class proportions of the whole dataset. Cross-Validation
- stratified split A split that divides each class separately, so every set keeps the original class proportions. Training, Validation and Test Sets
- streamable http An MCP transport for remote servers at a URL: the client sends HTTP POST requests and the server can stream responses back. Model Context Protocol
- streaming Receiving a model's reply token by token as it is generated, so text can be shown immediately rather than after the whole answer is ready. Using LLM APIs
- streaming recognition Speech recognition that outputs text while the person is still speaking, as live captions and dictation need. Speech Recognition
- stride How many positions a convolution or pooling window jumps each step. Stride 2 roughly halves the height and width. Convolutional Neural Networks
- structured output Model output in a precise, machine-readable shape, usually JSON matching a schema, so code can use it directly. Structured Output and JSON
- student model The smaller model trained in distillation to match a teacher's outputs. Knowledge Distillation and Small Models
- sub-agent An agent started by a lead agent to handle one narrow subtask in its own fresh context. It works independently and sends back a short report. Multi-Agent Systems
- subscript A small index written below and after a symbol, as in xᵢ, meaning the i-th item. It is not a power. Math Notation Cheat Sheet
- subword A chunk of a word, such as "ization" or "un", used as a token so common words stay whole while rare words are built from parts. Tokenization
- successive halving Starting many configurations on a small budget, keeping the best fraction, giving survivors more budget, and repeating. Hyperparameter Tuning
- summarisation Shrinking a long text down to its essentials for a particular reader and purpose. Watch for important points being left out. AI for Writing and Communication
- summation Adding up a list of terms, written with Σ. For example, Σᵢ₌₁³ i means 1 + 2 + 3 = 6. Math Notation Cheat Sheet
- superposition A network storing more concepts than it has neurons by giving each a nearly perpendicular direction, which works because most concepts are rarely active at once. Mechanistic Interpretability
- supervised fine-tuning SFT: training a model on pairs of prompt and ideal response, using the next-token loss on the response tokens. Fine-Tuning
- supervised learning Learning a rule from examples that come with the correct answer attached, so the model can give correct answers for new inputs it has never seen. Supervised Learning · Supervised, Unsupervised and Reinforcement Learning
- supply-chain attack Planting malicious code in something your software depends on, such as a package, instead of attacking your software directly. From Prototype to Production
- support vector A training point on or inside the margin. Only these points determine an SVM's boundary. Support Vector Machines
- support vector machine A classifier that picks the boundary with the widest margin to the nearest points of each class, and can draw curved boundaries via kernels. Support Vector Machines
- surrogate loss A smooth loss, such as cross-entropy or hinge, trained in place of a target like 0-1 loss that can't be optimised directly. Loss Functions
- surrogate model A cheap model, such as a Gaussian process, that predicts the validation score for any setting, with an uncertainty, from trials so far. Hyperparameter Tuning
- surrogate objective A stand-in objective, built from old data and probability ratios, whose gradient matches the true policy gradient near the old policy. Proximal Policy Optimization
- swe-bench A benchmark of real GitHub issues from Python projects. An agent must write a patch that makes the issue's tests pass without breaking existing ones. AI Coding Assistants and Agents
- swiglu A gated feed-forward block that computes SiLU(Wx) multiplied element by element with Vx. The standard MLP block in many recent language models such as Llama. Activation Functions · The Transformer
- swin transformer A vision Transformer that computes attention only inside local windows, shifts the windows between layers and builds a pyramid of resolutions. A strong backbone for detection and segmentation. Vision Transformers
- sycophancy An AI's tendency to agree with you and tell you what you want to hear, because it was trained partly on human approval. Checking AI Output · AI Alignment
- symbolic ai The approach that treats intelligence as manipulating symbols with hand-written rules, like logic. It dominated AI from the 1950s to the 1980s. A Short History of AI
- symmetric quantization Quantization with one scale and the grid centred on zero, so the largest magnitude maps to the top level. Quantization
- symmetry breaking Starting weights at different random values so that neurons in a layer compute different things and can learn different features. Weight Initialization
- synthetic data Training data produced by a program or model rather than collected from the real world. Synthetic Data
- synthetic media Images, audio or video generated or substantially altered by AI. Creating Images, Audio and Video with AI · Deepfakes and Misinformation
- system prompt Instructions written by the developer that set the model's role, rules, tone and format for a whole conversation, sent separately from the user's messages. Prompt Engineering · Instruction Tuning and Chat Models
- systemic risk Harm that comes not from one failure but from AI being used everywhere, such as effects on jobs, power, information or the environment. AI Risks and Safety
- systolic array A grid of multiply-add units through which data flows in rhythm, each number reused by many units without returning to memory. AI Hardware: GPUs, TPUs and Accelerators
T
- t-sne t-distributed stochastic neighbour embedding: a method that draws high-dimensional data as a 2D map keeping each point's neighbours nearby. t-SNE and UMAP
- tail latency The slow end of the latency distribution, measured by percentiles such as p95 and p99. It is what users notice. Deploying Models
- tangent line The straight line that just touches a curve at one point and has the same slope as the curve there. Its slope is the derivative. Derivatives and Slopes
- tanh The hyperbolic tangent, an S-shaped function running from −1 to 1 and centred on zero. Still used inside LSTMs. Activation Functions
- target encoding Replacing each category with the average label for that category in the training data, usually smoothed and cross-fitted to avoid leakage. Feature Engineering
- target network A frozen copy of the Q-network used only to compute TD targets, refreshed every few thousand steps so the targets hold still. Deep Q-Networks
- target policy The policy an off-policy method is learning about, often the greedy one, which may differ from the policy generating the data. Q-Learning
- task exposure The share of an occupation's tasks that AI could, in principle, make substantially faster. It measures potential change, not job loss. AI, Work and the Economy
- td error The surprise in a TD update: reward plus discounted next-state estimate, minus the current estimate. Positive means things went better than expected. Q-Learning
- td target The value a TD update moves towards: the reward just received plus the discounted estimate of the next state. Q-Learning
- teacher forcing Training a decoder by feeding it the correct previous token at each step, rather than its own prediction. Sequence-to-Sequence Models
- teacher model The large, frozen model whose outputs a student learns to imitate in distillation. Knowledge Distillation and Small Models
- technical debt Shortcuts that save time now but cost much more later, such as forgotten features, chained models or hand-tuned thresholds nobody revisits. The ML Project Lifecycle
- temperature A number that divides the logits before softmax. Below 1 sharpens the distribution towards the top token; above 1 flattens it. Decoding: Temperature, Top-k and Top-p · Probability Distributions
- temporal action localisation Finding when each action starts and ends in a long, untrimmed video. Video Understanding
- temporal consistency Objects, characters and backgrounds staying the same from frame to frame instead of flickering, drifting or popping in and out. Video Generation
- temporal-difference learning Learning that updates an estimate after each step towards the reward plus the current estimate of the next state, instead of waiting for the episode's end. Q-Learning
- tensor A grid of numbers with any number of axes: a scalar has 0, a vector 1, a matrix 2, a batch of colour images 4. Tensors and Shapes
- tensor core Special units in NVIDIA GPUs since 2017 that multiply small blocks of matrices in one step at reduced precision. GPUs and Why AI Needs Them
- tensor parallelism Splitting each large weight matrix across GPUs, which exchange partial results inside every layer. Usually kept within one server. Distributed Training
- terminal A text window where you type commands, also called the command line or shell. Used to install packages and run scripts. Setting Up Your Environment
- terminal agent A coding agent that runs in a command-line window inside your project folder, reading and editing files and running commands in your shell. Examples: Claude Code, Codex CLI, Gemini CLI, Aider. What Is Agentic Coding?
- terminal state A state that ends an episode, such as reaching the goal or falling into a pit. Its value is 0 because nothing follows it. Reinforcement Learning: The Basics
- test set Data locked away during development and used once at the end to estimate how the model will do on new data. Training, Validation and Test Sets · How Machines Learn
- test suite All of a project's automated tests together, usually run with one command. Tests as Guardrails
- test-driven development Writing a failing test before the code that makes it pass. With an agent, tests written first become a definition of done it can't argue with. Tests as Guardrails
- test-time augmentation Averaging a model's predictions over several augmented copies of a test image, such as the original and its mirror. Slightly more accurate, but slower. Data Augmentation
- test-time compute Computation spent while answering, such as long chains of thought or many sampled answers. Accuracy on hard problems grows with it. Reasoning Models and Test-Time Compute · Scaling Laws
- text and data mining exception An EU copyright rule allowing automated analysis of works, including commercial use, unless the rights holder has opted out in a machine-readable way. Privacy, Data and Copyright
- text detection Finding where the text is in an image, as boxes or regions around words or lines. It is object detection with a single class, text. OCR and Document AI
- text encoder A pretrained, usually frozen network (such as CLIP's text half or T5) that turns a prompt into vectors the denoiser can attend to. Latent Diffusion and Stable Diffusion
- text recognition Reading the characters in a cropped image of a word or line and turning it into a string. OCR and Document AI
- text-to-image AI that creates a picture from a written description, such as Midjourney or the image generators in ChatGPT and Gemini. Creating Images, Audio and Video with AI
- text-to-speech AI that reads written text aloud in a natural-sounding voice. Creating Images, Audio and Video with AI · Music and Voice Generation
- tf-idf Term frequency–inverse document frequency: a word-based weighting that scores a word highly when it is common in one document but rare across the collection. Embeddings and Semantic Search · Feature Engineering
- tf32 A tensor-core mode on NVIDIA Ampere and later GPUs that rounds FP32 inputs to 10 mantissa bits inside matrix multiplications for free speed. Mixed Precision Training
- thinking tokens The tokens a reasoning model writes in its chain of thought before its final answer. They are billed like output tokens. Reasoning Models and Test-Time Compute
- thompson sampling A Bayesian bandit strategy: keep a probability distribution over each option's payoff, draw one sample from each, and pick the option with the highest sample. Multi-Armed Bandits and Exploration
- three-pass method S. Keshav's way of reading a paper: a quick overview, then a careful read, then re-deriving or re-implementing it. Each pass happens only if the last justified it. Staying Current
- throughput How many predictions or tokens a system produces per second. Deploying Models
- time series A sequence of measurements in time order, such as daily sales or hourly temperature. Time Series Forecasting
- time to first token How long a user waits before the first piece of the model's answer appears. It is the main part of perceived latency when output is streamed. Building AI Products · Using LLM APIs
- time-based split A split that trains on everything before a cut-off date and tests on everything after, matching how the model will be used. Training, Validation and Test Sets
- token One of the small pieces, often a word or part of a word, that a tokenizer cuts text into. Models read and write tokens, not letters. Tokenization · Large Language Models, Explained Simply
- token classification Giving a label to every token, as in named-entity recognition, by applying a small layer to each token's output vector. BERT and Encoder Models
- token id The integer that stands for a token: its position in the tokenizer's vocabulary. It means nothing without that exact vocabulary. Tokenization
- tokenizer The program that cuts text into tokens and maps each to an integer id, and turns ids back into text. Tokenization
- tokens per parameter Training tokens divided by model parameters. About 20 is compute-optimal; modern small models often use far more. Scaling Laws
- tone The attitude a piece of writing conveys, such as warm, formal, firm or friendly. AI is good at shifting it on request. AI for Writing and Communication
- tool call A structured message from the model naming a tool and its arguments, with an id, asking your code to run it. Tool Use and Function Calling
- tool choice A request setting that controls whether the model may, must or must not call a tool, or must call one specific tool. Tool Use and Function Calling
- tool result The message your code sends back after running a tool, linked to the tool call by its id and containing the output or an error. Tool Use and Function Calling
- tool schema The description of a tool sent to the model: its name, a plain-language description of what it does and when to use it, and a JSON Schema for its parameters. Tool Use and Function Calling
- tool use Letting a language model request that your code run a function, such as a search or calculation, and then answer using the result. Also called function calling. Tool Use and Function Calling
- tool-call loop The cycle of calling the model, running any tools it asks for, sending back the results and calling it again, until it answers without requesting a tool. Tool Use and Function Calling
- top-1 accuracy The fraction of test images whose single most likely predicted class is the correct one. It is plain accuracy. Image Classification
- top-5 accuracy The fraction of test images whose true class is anywhere among the model's five most likely guesses. It was ImageNet's headline metric. Image Classification
- top-down learning Learning by using the real thing first, then digging into how it works as questions arise. The fast.ai course teaches this way. How to Learn AI
- top-k retrieval Returning the k stored items that score highest for a query, such as the five most similar passages. Embeddings and Semantic Search
- top-k routing Sending each token to the k experts with the highest router scores and mixing their outputs, weighted by the renormalised scores. Mixture of Experts
- top-k sampling Sampling only from the k most likely tokens, after dropping the rest and renormalising. Decoding: Temperature, Top-k and Top-p
- top-p sampling Nucleus sampling: keeping the smallest set of top tokens whose probabilities add up to at least p, then sampling from them. Decoding: Temperature, Top-k and Top-p
- topological order An ordering of a graph's nodes in which each node comes after everything it depends on. Backpropagation visits it in reverse. Build an Autograd Engine from Scratch
- tpu Tensor Processing Unit: Google's AI accelerator built around a systolic array, available through Google Cloud. AI Hardware: GPUs, TPUs and Accelerators
- traceback The report Python prints when an error stops a program, showing where it happened. Read it from the bottom up: the last line says what went wrong. Python for AI
- tracing Recording every step of every request, including prompts, retrieved documents, tool calls, tokens and latency, so you can see why something went wrong. Evaluating LLM Applications
- training Finding parameter values that make the loss on the training examples small. Also called fitting. Supervised Learning · What Is AI?
- training compute The total number of floating-point operations used to train a model, roughly 6 × parameters × training tokens. Pretraining Large Language Models
- training data The collection of examples a model learns from, each usually pairing an input with the right answer. How Machines Learn
- training data extraction An attack that deliberately gets a model to output memorised training data, such as names, phone numbers or copyrighted text. Privacy, Data and Copyright
- training loop The code that repeats, for each batch, the forward pass, the loss, clearing old gradients, backpropagation and an optimizer step. Training Neural Networks in Practice · Build a GPT from Scratch
- training mode The state set by
model.train(), in which layers like dropout and batch norm behave as they should while learning. PyTorch - training set The part of the data the model learns from: it sees these examples and their labels and fits its parameters to them. Training, Validation and Test Sets
- training-serving skew A mismatch between how features are computed in training and in production, such as different units or defaults. A common silent bug. The ML Project Lifecycle
- trajectory The record of one run: the sequence of states, actions and rewards the agent went through. Reinforcement Learning: The Basics
- transfer learning Reusing a network trained on one large dataset as the starting point for a different task, so the new task needs far less data. Transfer Learning
- transferability The tendency of adversarial examples crafted against one model to also fool other models trained on similar data. It is why keeping weights secret is not a defence. Adversarial Examples
- transformer The neural network architecture behind modern language models: a stack of identical blocks, each with attention and a feed-forward network, joined by residual connections. The Transformer
- transformer block One repeated layer of a Transformer: attention so tokens exchange information, then a feed-forward network, each with normalisation and a residual connection. The Transformer
- transformers library Hugging Face's Python library that downloads models from the Hub and runs them, by naming the repository in
from_pretrained. The Hugging Face Ecosystem - transformers pipeline A Hugging Face object that bundles tokenizer, model and post-processing for one task, such as text classification, into a single call. The Hugging Face Ecosystem
- transition probability The probability of landing in a particular next state after taking a given action in a given state, written p(s′ | s, a). Markov Decision Processes
- translation equivariance The property that shifting the input shifts the output by the same amount. Convolutions have it because of weight sharing. Convolutional Neural Networks
- transpose Flipping a matrix over its diagonal so rows become columns. An m × n matrix becomes n × m. Matrices and Matrix Multiplication
- transposed convolution A learned upsampling layer that spreads each input value over a larger output patch, often used to double a feature map's resolution. Image Segmentation
- trend The long-run direction of a time series: growth, decline, or a slowly drifting level. Time Series Forecasting
- trigger The event that starts an automation, such as a new form submission, an email arriving or a set time each week. Automating Work Without Code
- trpo Trust Region Policy Optimization (2015): maximises the surrogate objective subject to a limit on KL divergence from the old policy. PPO is its simpler successor. Proximal Policy Optimization
- true negative An example that is actually negative and was predicted negative: a correct all-clear. Evaluation Metrics
- true positive An example that is actually positive and was predicted positive: a correct catch. Evaluation Metrics
- truncated backpropagation through time Splitting a long sequence into chunks, carrying the hidden state forward but backpropagating only within each chunk. Recurrent Neural Networks
- trust region A limit on how far a policy update may move from the current policy, inside which the update's estimates can be trusted. Proximal Policy Optimization
- trustworthiness A score for a map: of each point's nearest neighbours on the map, how many were genuinely near it originally. 1 means no impostors. t-SNE and UMAP
- tubelet A space-time patch of a video, such as 2 frames × 16 × 16 pixels, used as one token by a video Transformer. Video Understanding
- turing test Alan Turing's 1950 proposal: if a judge chatting by text cannot reliably tell a machine from a human, we should credit the machine with intelligence. A Short History of AI
- tutorial hell The trap of following one tutorial after another and feeling you have learned, but being unable to build anything alone from a blank file. How to Learn AI
- two-stage detector A detector that first proposes candidate regions and then classifies and refines each one, as in Faster R-CNN. Accurate and flexible. Object Detection
- two-tower model A recommender with one neural network for users and one for items, each producing a vector; the score is their dot product. Recommender Systems
- type checker A tool, such as mypy, that checks before anything runs that values of the right kinds flow to the right places, using the code's type hints. Tests as Guardrails
- type hint A note in code saying what kind of value a variable or function takes or returns, such as -> Decimal. It lets a type checker catch mismatches. Tests as Guardrails
- typographic attack Fooling an image–text model with written words in the picture, such as a label reading "iPod" stuck on an apple. CLIP and Contrastive Learning
U
- u-net A segmentation network with a shrinking encoder, an expanding decoder and skip connections between matching levels. Standard in medical imaging and inside diffusion models. Image Segmentation
- uct Upper Confidence bounds applied to Trees: MCTS's selection rule, choosing the child with the best average result plus a UCB exploration bonus. Monte Carlo Tree Search and AlphaGo
- umap Uniform manifold approximation and projection: a fast neighbour-preserving map method that can also place new points on a fitted map. t-SNE and UMAP
- undercomplete autoencoder The basic autoencoder whose bottleneck is smaller than its input, forcing it to compress. Autoencoders
- underfitting When a model is too simple to capture the real pattern, so it does badly on both training and new data. Overfitting and the Bias–Variance Tradeoff
- underflow When a number too small for the format becomes zero. Mixed Precision Training
- undersampling Throwing away some majority-class training examples to balance the classes. Faster, but it wastes data. Data Cleaning and Preparation
- uniform distribution A distribution where every value in a range is equally likely, so its density is flat. Computers build other random numbers from it. Probability Distributions
- unit test An automated test that checks one small piece of a program, such as a single function, on its own. Tests as Guardrails
- unit vector A vector of length exactly 1. Dividing any non-zero vector by its length (normalising) gives a unit vector with the same direction. Dot Product, Norms and Similarity
- universal approximation theorem The result that a network with one hidden layer and enough neurons can approximate any continuous function on a bounded region as closely as you like. Why Neural Networks Work
- unrolling Drawing an RNN as one copy of the network per time step, with the hidden state passed along, so it can be trained like an ordinary deep network. Recurrent Neural Networks
- unsupervised learning Learning from data that has no labels, by finding its structure: groups, simpler descriptions, or what is typical. Unsupervised Learning · Supervised, Unsupervised and Reinforcement Learning
- upper confidence bound An exploration rule (UCB) that picks the option with the highest estimate plus a bonus that is large when the option has rarely been tried. Multi-Armed Bandits and Exploration
- upstream gradient The gradient of the loss arriving at an operation's output from the layers after it, which the operation multiplies by its local slope. Backpropagation
- user message The input for the current turn of a conversation with a chat model, such as the question or the document to process. Prompt Engineering
- user-item matrix A table with one row per user and one column per item, holding ratings or interactions. Almost all cells are empty. Recommender Systems
- uv A fast Python package and project manager released in 2024. It installs Python, creates virtual environments, adds packages and writes a lockfile. Setting Up Your Environment
V
- validation Checking data against rules, such as types, required fields and allowed values, before trusting it in your code. Structured Output and JSON
- validation curve A plot of training and validation scores against one capacity setting, such as tree depth, used to find the sweet spot. Overfitting and the Bias–Variance Tradeoff
- validation loss The loss measured on held-back data not used for training. It shows how well the model works on new examples and guides decisions. Training Neural Networks in Practice · Build a GPT from Scratch
- validation set Data held back from training and used to compare options and tune settings. Also called the dev set; its score ends up slightly optimistic. Training, Validation and Test Sets
- value The vector each item hands over when attended to. The attention output is the weighted sum of the values. Attention
- value head The output of a shared network that predicts the state value V(s), alongside a policy head that outputs action probabilities. Actor-Critic Methods
- value iteration A planning method that repeatedly replaces each state's value with its best one-step lookahead until the values converge, then acts greedily. Value Functions and Bellman Equations
- value network A neural network that predicts from a position who is likely to win, or the expected return, replacing slow rollouts. Monte Carlo Tree Search and AlphaGo
- vanishing gradient A gradient that shrinks towards zero as it is passed back through many layers, so the early layers barely learn. Vanishing and Exploding Gradients
- variable A name that refers to a value, created with
=, as inlearning_rate = 0.01. Python for AI - variance A measure of spread: the average squared distance of each value from the mean. Its square root is the standard deviation. Statistics: Mean, Variance and Sampling · Overfitting and the Bias–Variance Tradeoff
- variance preservation Choosing weight sizes so each layer keeps the spread (variance) of signals and gradients about the same, so they neither fade nor explode. Weight Initialization
- variance reduction Techniques, such as baselines, critics and normalisation, that make noisy gradient estimates steadier without changing what they aim at. Policy Gradients
- variational autoencoder An autoencoder whose encoder outputs a small cloud of codes (a mean and a spread) kept close to a standard bell curve, so random codes decode into new, plausible examples. Variational Autoencoders
- vector An ordered list of numbers, which you can also picture as an arrow from the origin. AI describes houses, words and images to the computer as vectors. Vectors
- vector database A system that stores vectors with their text and metadata, keeps an index for fast nearest-neighbour search, and supports updates, deletion and filtering. Vector Databases
- vector index A data structure, such as HNSW or IVF, that speeds up nearest-neighbour search by avoiding comparing the query with every vector. Vector Databases
- vectorisation Replacing an explicit loop over numbers with a single whole-array operation, which runs much faster in compiled code. NumPy and Array Thinking
- velocity field A rule giving a direction and speed of movement at every point and time. Following it from noise carries points onto the data. Normalizing Flows and Flow Matching
- verifiable reward A reward that comes from an automatic check, such as a correct maths answer or passing unit tests, which can't be flattered like a learned reward model. Reasoning Models and Test-Time Compute
- verification Checking an AI's claims, such as facts, numbers, quotes and references, against a trustworthy source before you rely on them. Checking AI Output
- version control A system that saves snapshots of a project over time, so you can see exactly what changed between any two and go back to any of them. Git is the one almost everyone uses. Git for Agent Work
- vgg A 2014 family of deep CNNs (VGG-16, VGG-19) built only from stacked 3 × 3 convolutions. Simple and regular, but very large at 138 million weights. Classic CNN Architectures: LeNet to ResNet
- vibe coding Building software by describing what you want to an AI and accepting what it produces, without reading the code. Andrej Karpathy coined the term in 2025. Building Apps Without Coding
- vibe engineering Simon Willison's name for using coding agents while staying fully accountable for the code, with tests, planning, documentation and review. The opposite of vibe coding. What Is Agentic Coding?
- video autoencoder An autoencoder that compresses video in space and time, typically 8× per side and 4× in time, using 3-D convolutions. Video Generation
- video diffusion model A diffusion model that generates a whole video clip at once, denoising all frames together so objects stay consistent over time. Video Generation
- video understanding Automatically making sense of video: what appears in it, what happens, and when, including motion between frames as well as appearance. Video Understanding
- virtual environment A private folder of Python packages for one project, so that each project's library versions cannot interfere with another's. Setting Up Your Environment
- vision transformer A Transformer applied to images: the image is cut into small patches, each patch becomes a token, and a standard Transformer encoder processes the sequence. Often called ViT. Vision Transformers
- vision-language model A model that combines images and text, for example answering questions about a picture. Often shortened to VLM. Multimodal LLMs
- visit count How many simulations have passed through a node in MCTS. The final move is usually the root's most-visited child. Monte Carlo Tree Search and AlphaGo
- visual instruction tuning Training a multimodal model on image–instruction–answer conversations so it follows requests about images. It is instruction tuning for pictures. Multimodal LLMs
- vocabulary The fixed list of all tokens a model knows, each with its own id. Typical sizes are 30,000 to 200,000. Tokenization
- vocoder A model that turns a spectrogram, which lacks phase, back into a waveform. GAN vocoders such as HiFi-GAN do this in one fast pass. Music and Voice Generation
- voice activity detection Finding the stretches of a recording that contain speech, so silence and music can be skipped. Often shortened to VAD. Speech Recognition
- voice cloning Copying a specific person's voice from a sample recording, so AI can speak in it. It needs that person's explicit consent. Creating Images, Audio and Video with AI · Music and Voice Generation · Deepfakes and Misinformation
- voice mode A way of talking to an AI assistant out loud and hearing spoken replies. Choosing an AI Assistant
- voice sample A few examples of your own writing given to the AI so it can match your style, sentence length and formality. AI for Writing and Communication
- vram The GPU's own memory. Model weights, inputs, activations and gradients must all fit in it. GPUs and Why AI Needs Them
W
- warmup Ramping the learning rate up from near zero to its peak over the first few hundred or thousand steps, to avoid early blow-ups. Learning Rate Schedules
- warmup-stable-decay A schedule that warms up, holds the learning rate at its peak for most of training, and decays only in a short final phase. Learning Rate Schedules
- water footprint The fresh water consumed for an activity, here by data-centre cooling and by the power stations that supply the electricity. The Energy Cost of AI
- waveform Audio as a list of air-pressure measurements over time. Plotted, it shows the sound wave a microphone recorded. Audio as Data
- weak learner A simple model only slightly better than guessing, such as a shallow tree, used as a building block in boosting. Gradient Boosting: XGBoost and LightGBM
- weak supervision Training on a huge amount of noisy, loosely checked labels instead of a small amount of perfect ones, as Whisper did with web transcripts. Speech Recognition
- web search An assistant feature that searches the internet and answers with links, so information is fresher and you can check it. Choosing an AI Assistant
- weight A learned number that says how much one input matters to a neuron, and in which direction. Positive weights push the output up, negative ones push it down. The Perceptron · Linear Regression
- weight decay Shrinking every weight slightly towards zero at each step, a form of regularisation that discourages large weights. Optimizers: SGD, Momentum and Adam · Regularization: L1 and L2
- weight initialization Choosing the starting values of a network's weights before training. Good schemes are random and scaled so signals stay a steady size through the layers. Weight Initialization
- weight sharing Using the same weights at many positions, as a convolution does across an image or an RNN does across time steps. Convolutional Neural Networks
- weight tying Using the same matrix for the input token embeddings and the output layer, which saves parameters. Build a GPT from Scratch
- weighted sum The total you get by multiplying each input by its weight and adding the results, written w · x. The Perceptron
- whisper OpenAI's open speech recognition model (2022), an encoder–decoder Transformer trained on 680,000 hours of web audio. It transcribes about 99 languages and translates to English. Speech Recognition
- white-box attack An attack where the attacker has the model's weights and can compute gradients directly. Adversarial Examples
- whitening Rescaling each principal component's scores to variance 1, giving uncorrelated features on the same scale. PCA and Dimensionality Reduction
- wisdom of crowds The effect that averaging many independent guesses cancels their individual errors, as with Galton's ox-weight competition. Random Forests and Bagging
- word analogy Solving 'a is to b as c is to ?' by vector arithmetic, as in king − man + woman ≈ queen, then finding the nearest word. Word Embeddings
- word embedding A dense vector of a few hundred numbers representing a word, learned so that words used in similar contexts get similar vectors. Word Embeddings
- word error rate The number of word substitutions, deletions and insertions needed to turn a transcript into the reference, divided by the number of reference words. Often shortened to WER. Speech Recognition
- word2vec Google's 2013 method for learning word embeddings by training a tiny network to predict a word's neighbours (skip-gram) or a word from its neighbours (CBOW). Word Embeddings
- wordpiece A subword method used by BERT, like byte-pair encoding but choosing merges that most increase the likelihood of the training data. Tokenization
- workflow A system where model calls and tools are wired together by fixed code paths. You decide the steps; the model fills in each one. AI Agents
- working tree The files of a git project as they are on disk right now, including changes not yet committed. An agent's edits change the working tree. Git for Agent Work
- worktree An extra working folder attached to the same git repository and checked out on a different branch. It lets several agents work at once without editing each other's files. Git for Agent Work
- world model A system that has learned how an environment behaves well enough to predict what happens next, potentially useful for training robots and agents. Video Generation · Model-Based RL and World Models
X
- xavier initialization Drawing starting weights with variance 2/(fan-in + fan-out). Keeps signals steady in networks with tanh, sigmoid or linear layers. Also called Glorot initialisation. Weight Initialization
- xgboost A popular gradient-boosting library (2014) known for second-order updates, built-in regularization and missing-value handling. Gradient Boosting: XGBoost and LightGBM
- xor problem The fact that a single perceptron cannot compute XOR, because no straight line separates its outputs. Solving it needs a hidden layer. The Perceptron
Z
- z-score How many standard deviations a value is from the mean: (x − μ)/σ. Values beyond about ±3 are often treated as suspicious. Anomaly Detection
- zero Zero Redundancy Optimizer: data parallelism where each GPU keeps only its share of optimizer state, gradients and, at stage 3, the parameters. Distributed Training
- zero point An integer offset in asymmetric quantization that lets the grid cover a range not centred on zero. Quantization
- zero-shot Asking a model to do a task with no examples in the prompt, only the request itself. GPT and Decoder-Only Models
- zero-shot chain-of-thought Triggering step-by-step reasoning without worked examples, simply by adding a phrase such as "Let's think step by step." to the prompt. Chain-of-Thought and Reasoning Prompts
- zero-shot classification Classifying into classes the model was never explicitly trained on, for example by comparing an image with captions like "a photo of a {class}". CLIP and Contrastive Learning
- zero-shot prompting Asking a model to do a task from instructions alone, with no examples in the prompt. Prompt Engineering
- zero-shot tts Text-to-speech in a new speaker's voice from only a short recording of them, with no fine-tuning, as VALL-E did with 3 seconds. Music and Voice Generation