Skip to content

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

TermPlain definitionSee
ActionWhat 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 patchingCopy 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–criticA policy (the actor) updated with policy gradients weighted by advantages that a learned value function (the critic) estimates.Actor–critic & advantage (hub)
AdvantageA(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 RLRL 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 taxThe drop on standard benchmarks after RLHF. InstructGPT reduced it by mixing pretraining gradients into PPO (PPO-ptx).InstructGPT
AttentionScaled 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 balancingMoE 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
TermPlain definitionSee
BaselineAn 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 equationThe 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-encoderEncodes query and document separately into vectors scored by a dot product, so document vectors can be precomputed and indexed (dense retrieval).E5
BootstrappingUpdating 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 countRank 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 modelP(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)
TermPlain definitionSee
CalibrationPredicted 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-optimalFor a fixed compute budget, grow parameters and training tokens in roughly equal proportion, about 20 tokens per parameter.Chinchilla (compute-optimal)
Circuit tracingBuilding an attribution graph that shows which interpretable features, through which paths, produce a model’s output on one prompt.Circuit tracing (attribution graphs)
Clip-higherDAPO’s asymmetric PPO clip: a larger upper bound ε_high lets low-probability tokens gain mass, which counters entropy collapse.DAPO
Context foldingAn 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 rotOutput quality degrades as input length grows, even on simple tasks and well within the advertised window.Context Rot
ContaminationBenchmark test items appear in a model’s training data, so scores overstate ability.Contamination (exchangeability test)
Contextual embeddingA 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 monitorabilityHow 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
CriticA learned value function used to compute advantages. PPO trains one alongside the policy; GRPO removes it.Actor–critic & advantage (hub)
Cross-encoderA 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
TermPlain definitionSee
Decision modelA 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 agentAn 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
DPODirect 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. GRPOA 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
DSPyA 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 samplingDAPO’s rule of dropping groups whose samples all get the same reward (zero advantage) and sampling more, so every batch carries gradient signal.DAPO
TermPlain definitionSee
Effective context lengthThe longest input length at which a model still meets a quality threshold. It is usually well below the advertised window.RULER
Entropy collapsePolicy entropy falls quickly during RL, sampling becomes nearly deterministic, exploration stops and performance plateaus.Entropy Mechanism
Exposure biasA 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
TermPlain definitionSee
FlashAttentionExact 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 rewardA small rule-based reward for following an output template, such as putting reasoning and answer inside the right tags.DeepSeek-R1
TermPlain definitionSee
GAEGeneralized 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 modelAn LLM that writes a critique or reasoning before giving its score, used as a reward or judge.Generative reward models
GKDGeneralized 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 lawWhen a measure becomes a target, it stops being a good measure. The root cause of reward hacking.Goodhart variants
GQAGrouped-query attention: groups of query heads share one key and value head, which shrinks the KV cache.GQA (and MQA)
GRPOGroup 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
TermPlain definitionSee
Hard negativesNon-relevant documents that score high for a query. Training on them sharpens embedders, but mined ones may be unlabelled positives (false negatives).NV-Retriever
TermPlain definitionSee
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 learningDoing a task from examples placed in the prompt, without any weight update.GPT-3 (few-shot learners)
Induction headAn attention-head circuit that finds an earlier occurrence of the current token and copies the token that followed it.Induction heads
Inoculation promptingTraining 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
TermPlain definitionSee
k3 estimatorThe 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 penaltyA β·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 cacheThe 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
TermPlain definitionSee
Late chunkingEncode 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 interactionKeep 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 retrievalThe 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 hypothesisThe 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 rerankingAn LLM reads many candidates at once and outputs a ranked permutation, usually over sliding windows.RankGPT
LLM judgeAn LLM prompted to grade or compare outputs. Scalable, but biased by position, length and its own style.LLM-as-a-judge (MT-Bench)
LoRALow-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 tokensExcluding 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 middleModels 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
TermPlain definitionSee
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
MaxSimLate-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
MLAMulti-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)
MoEMixture 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 returnEstimating a value from complete observed returns. Unbiased but high-variance.Monte Carlo, TD & Q-learning
MOPDMulti-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)
MRLMatryoshka Representation Learning: train so that every prefix of the embedding is itself a usable embedding, which allows truncation at search time.Matryoshka (MRL)
MTEB / MMTEBThe Massive (Multilingual) Text Embedding Benchmark: many tasks across retrieval, classification, clustering and more, with a public leaderboard.MTEB & MMTEB
TermPlain definitionSee
nDCGNormalised discounted cumulative gain: graded relevance summed with a log-rank discount and divided by the score of the ideal ranking.RCP-nDCG
NuggetAn 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)
TermPlain definitionSee
On-policy / off-policyOn-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 shapingDAPO’s soft penalty that grows as a response approaches the maximum length, instead of punishing truncated answers as plainly wrong.DAPO
Over-optimisationAs 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
TermPlain definitionSee
PagedAttentionStores 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@kThe 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
PolicyThe mapping from states to a distribution over actions. In LLM RL the policy is the language model itself.MDPs, returns & discounting
Policy gradientThe gradient of expected return, E[∇ log π(a ∣ s) · Ψ], where Ψ is the return, an advantage or another weighting.REINFORCE & the PG theorem
Position biasA 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 clipPPO’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
ProbingTraining 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
TermPlain definitionSee
Q-functionQ(s, a): the expected return from taking action a in state s and following the policy afterwards.Value functions & Bellman
Q-learningOff-policy TD control that updates Q(s, a) toward r + γ·max over a′ of Q(s′, a′).Monte Carlo, TD & Q-learning
qrelsQuery relevance judgements: TREC’s labels mapping each (query, document) pair to a relevance grade.UMBRELA (LLM relevance judgments)
TermPlain definitionSee
RAGRetrieval-augmented generation: retrieve passages for the input, then condition generation on them.RAG (Lewis et al.)
ReActA 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 policyA frozen copy of the starting model (usually the SFT model) that the KL penalty measures distance from.InstructGPT
REINFORCEThe 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
ReturnThe (discounted) sum of rewards from a time step to the end of the episode.MDPs, returns & discounting
Reverse KLKL(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 hackingThe 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)
RLAIFRL from AI feedback: preference labels come from an AI model guided by written principles rather than from human labellers.Constitutional AI (RLAIF)
RLHFRL 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
RLOOREINFORCE 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)
RLVRRL with verifiable rewards: the reward comes from a checker (exact answer match, unit tests) instead of a learned reward model.Tülu 3 (RLVR)
RolloutGenerating samples or trajectories with the current policy for an RL update. Usually the most expensive part of LLM RL.RL infra: verl, OpenRLHF, AReaL
RoPERotary position embedding: rotates query and key dimension pairs by position-dependent angles, so attention scores depend on relative position.RoPE (RoFormer)
Rubric rewardA reward computed by checking an answer against a list of weighted criteria, used where no single correct answer exists.Rubrics as Rewards (RaR)
TermPlain definitionSee
Scaling lawA 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 gamingBehaviour that satisfies the literal objective without achieving the intended outcome. Reward hacking is the RL case.Specification gaming (DeepMind)
Speculative decodingA 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 vectorA 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)
SuperpositionA network representing more features than it has dimensions by storing them in non-orthogonal directions, which makes single neurons polysemantic.Toy models of superposition
SycophancyA model agreeing with or flattering the user instead of being accurate, often reinforced by preference-based training.Sycophancy in LMs
TermPlain definitionSee
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 computeSpending more inference computation (longer reasoning, more samples, search) to improve answers, instead of training a bigger model.Compute-optimal test-time scaling
Tool callStructured output that asks an external tool (a search engine, code interpreter or API) to run, with the result inserted back into the context.Toolformer
TrajectoryThe 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 regionA 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)
TermPlain definitionSee
Value functionV(s): the expected return from state s when following the policy.Value functions & Bellman
VerifierThe 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
TermPlain definitionSee
Weight-space programmingAn 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
TermPlain definitionSee
Zero-advantage groupIn 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