// reference

Glossary

Every term this course uses, in plain language. Entries link to the level that teaches it live.

World 1 · Neural networks

Neuron
A unit that multiplies its inputs by weights, adds a bias, and squashes the result into a number between 0 and 1. Level: the neuron →
Weight & bias
The numbers a neuron learns. Weights say how much each input matters; the bias sets how easily it fires with no input at all.
Activation function
The squashing function (this course uses sigmoid) that turns a raw weighted sum into something usable, like a probability.
Loss
One number that measures how wrong a model currently is, averaged over all its training examples.
Gradient descent
Repeatedly nudging every weight in the direction that makes the loss a little smaller. Level: training →
Data poisoning
Sneaking manipulated examples into a model's training data so it learns a rule the attacker wants, without touching the target directly.
Hidden layer
A row of neurons between the input and the output. It lets a network bend decision boundaries that a single neuron can only draw as a straight line.
Backpropagation
The algorithm that sends the output's error backward through every layer, via the chain rule, so each weight knows which way to move. Level: layers & backprop →
Backdoor attack
A model trained to behave normally on everything, except when it sees one specific trigger pattern — at which point it does what the attacker wants.
Overfitting
When a model memorizes its training data instead of learning the underlying pattern, so it does great on training data and badly on new data. Level: overfitting →
Membership inference
Guessing whether a specific record was in a model's training data, usually by noticing it's unusually overconfident about it.

World 2 · Inside an LLM

Tokenizer
Splits text into the token IDs a model actually reads. The same text can be split many different ways. Level: tokenizer →
Glitch token
A token that exists in a model's vocabulary but almost never appeared in its training data, so the model behaves strangely around it.
Embedding
A list of numbers (a vector) that represents the meaning of a word or passage, so that similar meanings sit near each other in that space. Level: embeddings →
Retrieval / RAG poisoning
Crafting a passage whose embedding sits unnaturally close to a target query, so a search or retrieval-augmented system picks it first.
Next-token prediction
The core operation of a language model: given the text so far, predict which token comes next. Everything an LLM does is this, repeated. Level: next-token prediction →
N-gram / bigram model
The simplest next-token predictor: count how often each word follows each other word in training text, then predict whichever follower was most common.
Corpus / data poisoning (web-scale)
Injecting text into the pages a model's training pipeline will scrape, so that a phrase repeated often enough shifts what the model predicts — no access to the model itself required.
Attention
The mechanism that lets every token in a transformer look at every other token and decide how much to weight each one. Level: attention →
Prompt injection
Hiding an instruction inside data a model treats as content (a document, a search result), so the model follows it as if it were a real command — because attention has no built-in notion of trust.
Sampling / decoding
Turning a model's raw output scores (logits) into an actual next token, using settings like temperature, top-k and top-p. Level: sampling →
Temperature
A decoding dial: near 0 always picks the single most likely token; higher values spread probability across more options.
RLHF (reinforcement learning from human feedback)
Training a reward model on human preference judgments, then nudging the main model toward whatever that reward model scores higher. Level: fine-tuning and RLHF →
Reward hacking
Optimizing a proxy score (like a reward model's output) past the point where it still tracks what it was meant to measure — Goodhart's law in practice.
Refusal direction / abliteration
Many models represent "refuse this" as roughly one direction in their internal activations. Finding and removing it (abliteration) can delete refusal behavior almost entirely. Level: where refusal lives →

World 3 · How AI systems work

Context window
Everything a model can "see" in one call: system prompt, chat history and any retrieved data, stitched into a single sequence of tokens. Level: the context window →
System prompt extraction
Getting a model to echo back its own hidden system prompt, usually by combining an instruction to ignore prior rules with a request to repeat them verbatim.
RAG (retrieval-augmented generation)
A system that retrieves relevant documents and hands them to the model as context, instead of relying only on what it memorized in training. Level: retrieval (RAG) →
Tool calling
A model outputs a structured request (like a function call) that your code executes on its behalf, then feeds the result back in. Level: tool calling →
Indirect prompt injection
An instruction hidden in content a model will read as part of doing its job (a document, a search result, a tool's output) rather than typed by the user directly.
Agent
A system that loops: plan a step, act (often via a tool), observe the result, and repeat, usually with some autonomy over what it does next. Level: agents →
Goal hijacking
Changing what an autonomous agent is actually pursuing, mid-task, by feeding it an observation that looks like new, legitimate information.
Agent memory
Information an agent stores between sessions, such as past conversations or learned facts, so it can draw on it later. Level: memory →
MCP (Model Context Protocol)
A standard way to describe tools and data sources to an AI system, so it can discover and call them consistently. Level: MCP and supply chain →
Tool poisoning attack
Hiding instructions aimed at a model inside a tool's own plain-text description, where a human reviewing the tool is unlikely to read past the first line.

World 4 · Defend and ship

Guardrail
A filter or check applied to a model's input or output to block disallowed content or behavior. Level: guardrails →
Keyword / regex filter
The simplest guardrail: block text that matches a word list or pattern. Fast and explainable, but matches strings, not intent, so synonyms and paraphrases evade it for free.
Red teaming
Deliberately attacking a system to find its weaknesses before someone else does.
Eval
A structured test that measures how a model or system performs on a set of cases, often used to track how often an attack succeeds. Level: evals and red teaming →
Attack success rate (ASR)
The fraction of attacks in a test suite that got through. A real number about the suite you ran, not a guarantee about attacks you never tried.
Defense in depth
Layering independent defenses so that one layer's blind spot is covered by another's — because an attacker only needs one layer to fail, defenders need all of them to hold. Level: capstone →

← Back to the world map