Glossary
Terms an IR researcher meets when reading RL, agent and post-training papers, plus the IR, evaluation and architecture terms those papers assume. Each definition is deliberately short; the See column links to the page that explains it properly. Notation: π is the policy, π_ref the frozen reference model, γ the discount, ρ an importance ratio.
A · B · C · D · E · F · G · H · I · K · L · M · N · O · P · Q · R · S · T · V · W · Z
| Term | Plain definition | See |
|---|---|---|
| Action | What the agent chooses at each step. For an LLM policy it is usually one token; some papers treat a whole tool call or response as one action. | MDPs, returns & discounting |
| Activation patching | Copy activations from one run (say, a clean input) into another (a corrupted input) and measure how the output changes, to find which components cause a behaviour. | Activation patching |
| Actor–critic | A policy (the actor) updated with policy gradients weighted by advantages that a learned value function (the critic) estimates. | Actor–critic & advantage (hub) |
| Advantage | A(s, a) = Q(s, a) − V(s): how much better an action is than the policy’s average in that state. It is the multiplier in most policy-gradient updates. | Actor–critic & advantage (hub) |
| Agentic RL | RL in which the policy acts over many turns in an environment (search engine, browser, code sandbox) instead of writing one response. Usually framed as a partially observable MDP. | Agentic RL landscape (survey) |
| Alignment tax | The drop on standard benchmarks after RLHF. InstructGPT reduced it by mixing pretraining gradients into PPO (PPO-ptx). | InstructGPT |
| Attention | Scaled dot-product attention: each query takes a softmax-weighted average of value vectors, with weights from query–key dot products divided by √d_k. | Attention Is All You Need |
| Auxiliary-loss-free load balancing | MoE balancing that adds a per-expert bias to router scores for top-k selection only, and nudges the bias up or down with load, instead of adding a balance loss. | Aux-loss-free load balancing |
| Term | Plain definition | See |
|---|---|---|
| Baseline | An action-independent function, usually a state-value estimate, subtracted from the return in a policy-gradient estimator. It preserves the expected gradient; a well-chosen baseline reduces variance, while a poor one can increase it. | REINFORCE & the PG theorem |
| Bellman equation | The recursion v(s) = E[r + γ·v(s′)]: a state’s value is the expected reward plus the discounted value of the next state. Dynamic programming and TD learning are built on it. | Value functions & Bellman |
| Bi-encoder | Encodes query and document separately into vectors scored by a dot product, so document vectors can be precomputed and indexed (dense retrieval). | E5 |
| Bootstrapping | Updating an estimate toward a target that itself contains an estimate, as TD does with r + γ·V(s′). It trades variance for bias. | Monte Carlo, TD & Q-learning |
| Borda count | Rank aggregation in which every task ranks all models and the ranks are summed. MMTEB orders its leaderboard this way instead of by mean score. | MTEB & MMTEB |
| Bradley–Terry model | P(A preferred to B) = σ(r_A − r_B). The pairwise preference model used to train reward models, and implicitly assumed by DPO. | Reward modeling (hub) |
| Term | Plain definition | See |
|---|---|---|
| Calibration | Predicted probabilities match observed frequencies: decisions made with confidence 0.8 are right about 80% of the time. | Calibration |
| Chain of thought (CoT) | Reasoning text the model writes before its final answer. Reasoning models are trained with RL to produce long ones. | Chain-of-Thought prompting |
| Chinchilla-optimal | For a fixed compute budget, grow parameters and training tokens in roughly equal proportion, about 20 tokens per parameter. | Chinchilla (compute-optimal) |
| Circuit tracing | Building an attribution graph that shows which interpretable features, through which paths, produce a model’s output on one prompt. | Circuit tracing (attribution graphs) |
| Clip-higher | DAPO’s asymmetric PPO clip: a larger upper bound ε_high lets low-probability tokens gain mass, which counters entropy collapse. | DAPO |
| Context folding | An agent branches into a sub-trajectory for a subtask and, when it returns, replaces that branch with a short summary, so the main context stays small. | Context-Folding & AgentFold |
| Context rot | Output quality degrades as input length grows, even on simple tasks and well within the advertised window. | Context Rot |
| Contamination | Benchmark test items appear in a model’s training data, so scores overstate ability. | Contamination (exchangeability test) |
| Contextual embedding | A chunk embedding conditioned on more than the chunk: its parent document (late chunking) or the corpus (CDE). | Overview and reading path |
| Contrastive loss (InfoNCE) | Softmax cross-entropy that pushes the score of the positive pair above the scores of negatives, with a temperature. The standard loss for training embedders. | E5 |
| CoT monitorability | How far a model’s chain of thought reveals what it is doing (for example, planning a reward hack), so that a monitor can catch it. | CoT monitorability |
| Critic | A learned value function used to compute advantages. PPO trains one alongside the policy; GRPO removes it. | Actor–critic & advantage (hub) |
| Cross-encoder | A reranker that reads query and document together in one forward pass and outputs a relevance score. Accurate, but nothing can be precomputed per document. | monoT5 |
| Term | Plain definition | See |
|---|---|---|
| Decision model | A model that returns probabilities over a fixed set of options rather than free text. Calibration is a property to measure on the target distribution, not an interface guarantee. Used as fast judges, classifiers and routers. | Landscape (comparison) |
| Deep research agent | An agent that plans, issues many searches, reads pages and writes a long, cited report. | OpenAI deep research |
| Discount factor (γ) | Weight γ^t on a reward t steps in the future. LLM RL with a single terminal reward usually sets γ = 1. | MDPs, returns & discounting |
| DPO | Direct Preference Optimization: trains the policy on preference pairs with a logistic loss on the difference of log-ratios to the reference, derived from the closed-form optimum of KL-regularised RL. | DPO |
| Dr. GRPO | A GRPO variant that removes per-response length normalisation and per-group std normalisation, which bias training toward long wrong answers and by question difficulty. | Dr. GRPO |
| DSPy | A framework that writes LM pipelines as declarative modules and compiles their prompts and demonstrations with optimizers. | DSPy: compiling declarative LM calls into self-improving pipelines |
| Dynamic sampling | DAPO’s rule of dropping groups whose samples all get the same reward (zero advantage) and sampling more, so every batch carries gradient signal. | DAPO |
| Term | Plain definition | See |
|---|---|---|
| Effective context length | The longest input length at which a model still meets a quality threshold. It is usually well below the advertised window. | RULER |
| Entropy collapse | Policy entropy falls quickly during RL, sampling becomes nearly deterministic, exploration stops and performance plateaus. | Entropy Mechanism |
| Exposure bias | A model trained only on reference or teacher prefixes never sees the states its own mistakes lead to, so at inference its errors compound. On-policy training (DAgger, on-policy distillation) reduces this mismatch by training on the model’s own prefixes; it does not guarantee recovery from every bad prefix. | On-policy distillation: a map |
| Term | Plain definition | See |
|---|---|---|
| FlashAttention | Exact attention computed tile by tile in on-chip SRAM with an online softmax, so the full N × N score matrix is never written to GPU memory. | FlashAttention |
| Format reward | A small rule-based reward for following an output template, such as putting reasoning and answer inside the right tags. | DeepSeek-R1 |
| Term | Plain definition | See |
|---|---|---|
| GAE | Generalized Advantage Estimation: an exponentially weighted (λ) sum of TD errors. λ = 0 gives the one-step TD advantage and λ = 1 gives the Monte Carlo return minus the baseline. | GAE (advantage estimation) |
| Generative reward model | An LLM that writes a critique or reasoning before giving its score, used as a reward or judge. | Generative reward models |
| GKD | Generalized Knowledge Distillation: on-policy distillation where a fraction λ of training sequences are student samples and the token-level divergence (forward KL, reverse KL or generalized JSD) is a design choice. | GKD (on-policy KD) |
| Goodhart’s law | When a measure becomes a target, it stops being a good measure. The root cause of reward hacking. | Goodhart variants |
| GQA | Grouped-query attention: groups of query heads share one key and value head, which shrinks the KV cache. | GQA (and MQA) |
| GRPO | Group Relative Policy Optimization: PPO’s clipped objective without a critic. Each answer’s advantage is its reward minus the mean of a group of answers to the same prompt, divided by the group’s std. | DeepSeekMath / GRPO |
| Term | Plain definition | See |
|---|---|---|
| Hard negatives | Non-relevant documents that score high for a query. Training on them sharpens embedders, but mined ones may be unlabelled positives (false negatives). | NV-Retriever |
| Term | Plain definition | See |
|---|---|---|
| Importance ratio | ρ = π_θ(a ∣ s) / π_old(a ∣ s). It reweights samples drawn from the old policy so they estimate the gradient of the new one; PPO clips it. | Proximal Policy Optimization (PPO) |
| In-context learning | Doing a task from examples placed in the prompt, without any weight update. | GPT-3 (few-shot learners) |
| Induction head | An attention-head circuit that finds an earlier occurrence of the current token and copies the token that followed it. | Induction heads |
| Inoculation prompting | Training with a prompt that explicitly asks for an unwanted behaviour, so the model does not learn it as a default and shows it less at test time. | Inoculation prompting |
| Term | Plain definition | See |
|---|---|---|
| k3 estimator | The per-sample KL estimate ρ − log ρ − 1 with ρ = π_ref / π_θ. It is never negative and unbiased; GRPO uses it in the loss. | DeepSeekMath / GRPO |
| Kendall τ | Rank correlation between two orderings, based on the fraction of concordant and discordant pairs. Used to compare system rankings under different relevance labels. | UMBRELA (LLM relevance judgments) |
| KL penalty | A β·KL(π_θ ‖ π_ref) term that keeps the policy close to the reference model. PPO-based RLHF adds it to each token’s reward; GRPO adds it to the loss. | InstructGPT |
| KV cache | The stored keys and values of earlier tokens, so decoding does not recompute them. Its size grows with layers, KV heads and sequence length. | vLLM / PagedAttention |
| Term | Plain definition | See |
|---|---|---|
| Late chunking | Encode the whole document with a long-context encoder first, then pool token embeddings per chunk, so each chunk vector carries document context. | Late Chunking: contextual chunk embeddings with long-context encoders |
| Late interaction | Keep one vector per token for query and document and score with MaxSim at search time, instead of one vector per text. | ColBERT: contextualized late interaction over BERT |
| Learned sparse retrieval | The model outputs a weight for each vocabulary term, including expansion terms, so documents can be searched with an inverted index. | SPLADE-v3 (and SPLADE v2) |
| Linear representation hypothesis | The idea that models represent concepts as directions in activation space, which can be read with linear probes or added as steering vectors. | Linear representation hypothesis |
| Listwise reranking | An LLM reads many candidates at once and outputs a ranked permutation, usually over sliding windows. | RankGPT |
| LLM judge | An LLM prompted to grade or compare outputs. Scalable, but biased by position, length and its own style. | LLM-as-a-judge (MT-Bench) |
| LoRA | Low-rank adaptation: train two small matrices whose product is added to a frozen weight matrix, instead of updating the full weights. | LoRA |
| Loss masking of retrieved tokens | Excluding tokens returned by tools (search results, page text) from the policy-gradient loss, so the model is trained only on tokens it generated itself. | Search-R1 |
| Lost in the middle | Models use information at the start or end of a long context better than information in the middle (a U-shaped curve). | Lost in the middle |
| Term | Plain definition | See |
|---|---|---|
| Markov decision process (MDP) | States, actions, transition probabilities, rewards and a discount. “Markov” means the next state depends only on the current state and action. | MDPs, returns & discounting |
| MaxSim | Late-interaction score: for each query token take its highest similarity over all document tokens, then sum over query tokens. | ColBERT: contextualized late interaction over BERT |
| MLA | Multi-head latent attention: caches one low-rank latent vector per token, from which per-head keys and values are reconstructed, shrinking the KV cache. | MLA (DeepSeek-V2 latent attention) |
| MoE | Mixture of experts: a router sends each token to the top-k of many feed-forward experts, so active parameters are a small fraction of the total. | Mixtral 8x7B (top-2 MoE) |
| Monte Carlo return | Estimating a value from complete observed returns. Unbiased but high-variance. | Monte Carlo, TD & Q-learning |
| MOPD | Multi-teacher on-policy distillation: train one RL specialist per domain from a shared SFT checkpoint, then merge them into one student that samples its own outputs and is graded per token by the teacher for each prompt’s domain. Named in Xiaomi’s MiMo-V2-Flash report. | MOPD (multi-teacher OPD) |
| MRL | Matryoshka Representation Learning: train so that every prefix of the embedding is itself a usable embedding, which allows truncation at search time. | Matryoshka (MRL) |
| MTEB / MMTEB | The Massive (Multilingual) Text Embedding Benchmark: many tasks across retrieval, classification, clustering and more, with a public leaderboard. | MTEB & MMTEB |
| Term | Plain definition | See |
|---|---|---|
| nDCG | Normalised discounted cumulative gain: graded relevance summed with a log-rank discount and divided by the score of the ideal ranking. | RCP-nDCG |
| Nugget | An atomic fact a good answer should contain. Nugget evaluation scores an answer by which nuggets it supports, with “vital” nuggets weighted above “okay” ones. | AutoNuggetizer (nugget evaluation) |
| Term | Plain definition | See |
|---|---|---|
| On-policy / off-policy | On-policy methods learn from data sampled by the current policy; off-policy methods learn from another policy’s data and need importance weighting or a similar correction. | Monte Carlo, TD & Q-learning |
| On-policy distillation (OPD) | The student samples its own outputs and a teacher gives feedback at every prefix it visited. Per-token reverse KL is the most common choice; forward KL, JSD or selective token masks are also used. It combines RL’s on-policy data with dense, per-token supervision. | OPD map · On-Policy Distillation (blog) |
| Outcome reward model (ORM) | A reward model that scores only the final answer, as opposed to each reasoning step. | Outcome vs process (Uesato) |
| Overlong reward shaping | DAPO’s soft penalty that grows as a response approaches the maximum length, instead of punishing truncated answers as plainly wrong. | DAPO |
| Over-optimisation | As a policy optimises a proxy reward model harder (measured by KL from the start), the true reward first rises and then falls. | RM overoptimization scaling laws |
| Term | Plain definition | See |
|---|---|---|
| PagedAttention | Stores the KV cache in fixed-size blocks indexed by a block table, like virtual memory, which cuts fragmentation and lets samples share prefixes. | vLLM / PagedAttention |
| pass@k | The probability that at least one of k samples is correct, estimated without bias from n samples with c correct as 1 − C(n−c, k)/C(n, k). | RL reasoning boundary |
| Policy | The mapping from states to a distribution over actions. In LLM RL the policy is the language model itself. | MDPs, returns & discounting |
| Policy gradient | The gradient of expected return, E[∇ log π(a ∣ s) · Ψ], where Ψ is the return, an advantage or another weighting. | REINFORCE & the PG theorem |
| Position bias | A judge prefers an answer because of where it appears in the prompt (first or second), not because of its content. | LLM-as-a-judge (MT-Bench) |
| PPO clip | PPO’s objective min(ρ·A, clip(ρ, 1 − ε, 1 + ε)·A). It caps the gain from raising ρ above 1 + ε when A > 0, or lowering it below 1 − ε when A < 0. It does not impose a hard bound on ρ. | Proximal Policy Optimization (PPO) |
| Prediction-powered inference (PPI) | Combine many cheap judge labels with a small human-labelled set to correct the judge’s bias and get valid confidence intervals. | Statistics & judge calibration |
| Probing | Training a simple classifier on a model’s activations to test whether some information is (linearly) decodable. Control tasks check that the probe is not memorising. | Probing classifiers and control tasks |
| Process reward model (PRM) | A reward model that scores each intermediate reasoning step rather than only the final answer. | Let’s Verify Step by Step |
| Term | Plain definition | See |
|---|---|---|
| Q-function | Q(s, a): the expected return from taking action a in state s and following the policy afterwards. | Value functions & Bellman |
| Q-learning | Off-policy TD control that updates Q(s, a) toward r + γ·max over a′ of Q(s′, a′). | Monte Carlo, TD & Q-learning |
| qrels | Query relevance judgements: TREC’s labels mapping each (query, document) pair to a relevance grade. | UMBRELA (LLM relevance judgments) |
| Term | Plain definition | See |
|---|---|---|
| RAG | Retrieval-augmented generation: retrieve passages for the input, then condition generation on them. | RAG (Lewis et al.) |
| ReAct | A prompting format that interleaves Thought, Action (such as a search call) and Observation steps. Most tool-using agents still follow it. | ReAct |
| Recursive language model (RLM) | An LM that holds a long context as a variable in a code environment and calls itself recursively on pieces of it, instead of reading everything at once. | Recursive Language Models (RLMs) |
| Reference policy | A frozen copy of the starting model (usually the SFT model) that the KL penalty measures distance from. | InstructGPT |
| REINFORCE | The basic Monte Carlo policy-gradient algorithm: sample a trajectory and push up the log-probability of its actions in proportion to the return. | REINFORCE & the PG theorem |
| Rejection-sampling fine-tuning (RFT) | Sample several answers, keep the correct or best ones, and fine-tune on them. A simple baseline for RL. | DeepSeekMath / GRPO |
| Return | The (discounted) sum of rewards from a time step to the end of the episode. | MDPs, returns & discounting |
| Reverse KL | KL(q ‖ p) with the student q first: the expectation is over the student’s own samples, so it heavily penalises mass where the teacher has almost none. It is mode-seeking, unlike forward KL(p ‖ q), which is mass-covering. | MiniLLM (reverse-KL KD) |
| Reward hacking | The policy raises its measured reward by exploiting flaws in the reward (a judge, a test suite, a metric) rather than doing the intended task. | Overview |
| Reward model (RM) | A model trained on human or AI preference pairs to output a scalar score, used as the reward in RLHF. | Reward modeling (hub) |
| RLAIF | RL from AI feedback: preference labels come from an AI model guided by written principles rather than from human labellers. | Constitutional AI (RLAIF) |
| RLHF | RL from human feedback: supervised fine-tuning, then a reward model trained on human preferences, then RL (usually PPO) against that reward with a KL penalty. | InstructGPT |
| RLOO | REINFORCE leave-one-out: for k samples per prompt, each sample’s baseline is the mean reward of the other k − 1. | RLOO (REINFORCE leave-one-out) |
| RLVR | RL with verifiable rewards: the reward comes from a checker (exact answer match, unit tests) instead of a learned reward model. | Tülu 3 (RLVR) |
| Rollout | Generating samples or trajectories with the current policy for an RL update. Usually the most expensive part of LLM RL. | RL infra: verl, OpenRLHF, AReaL |
| RoPE | Rotary position embedding: rotates query and key dimension pairs by position-dependent angles, so attention scores depend on relative position. | RoPE (RoFormer) |
| Rubric reward | A reward computed by checking an answer against a list of weighted criteria, used where no single correct answer exists. | Rubrics as Rewards (RaR) |
| Term | Plain definition | See |
|---|---|---|
| Scaling law | A power-law fit of loss against parameters, data or compute, used to predict large runs from small ones. | Kaplan scaling laws |
| Sparse autoencoder (SAE) | An autoencoder with a wide, sparse hidden layer trained on model activations. Its latents often act as interpretable features. | Towards monosemanticity (SAEs) |
| Specification gaming | Behaviour that satisfies the literal objective without achieving the intended outcome. Reward hacking is the RL case. | Specification gaming (DeepMind) |
| Speculative decoding | A small draft model proposes several tokens and the large model verifies them in one pass, with output identical in distribution to the large model’s. | Speculative decoding |
| Steering vector | A direction added to a model’s activations at inference time to shift its behaviour, such as making it more positive or more likely to refuse. | Activation addition (steering) |
| Superposition | A network representing more features than it has dimensions by storing them in non-orthogonal directions, which makes single neurons polysemantic. | Toy models of superposition |
| Sycophancy | A model agreeing with or flattering the user instead of being accurate, often reinforced by preference-based training. | Sycophancy in LMs |
| Term | Plain definition | See |
|---|---|---|
| TD error | δ = r + γ·V(s′) − V(s): the gap between a one-step bootstrapped target and the current estimate. It drives TD learning and is a one-step advantage estimate. | Monte Carlo, TD & Q-learning |
| Test-time compute | Spending more inference computation (longer reasoning, more samples, search) to improve answers, instead of training a bigger model. | Compute-optimal test-time scaling |
| Tool call | Structured output that asks an external tool (a search engine, code interpreter or API) to run, with the result inserted back into the context. | Toolformer |
| Trajectory | The full sequence of states, actions (including tool calls) and observations from one episode. Agentic RL scores and trains on whole trajectories. | Agentic RL landscape (survey) |
| Trust region | A limit on how far one update may move the policy, measured by KL divergence. TRPO enforces it as a constraint; PPO approximates it with clipping. | TRPO (trust regions) |
| Term | Plain definition | See |
|---|---|---|
| Value function | V(s): the expected return from state s when following the policy. | Value functions & Bellman |
| Verifier | The program or model that checks an answer and produces the reward in RLVR. Rule-based verifiers miss correct answers; model-based ones can be fooled. | Rule vs model verifiers |
| Term | Plain definition | See |
|---|---|---|
| Weight-space programming | An LLM agent that reads and edits a network’s weights directly, through a code kernel and a forward-pass budget, to change the network’s behaviour. | Sparks of Weight-Space Programming |
| Term | Plain definition | See |
|---|---|---|
| Zero-advantage group | In GRPO, a group where every sample gets the same reward (all right or all wrong), so all advantages are zero and the group gives no policy gradient. | DAPO |