No matching terms.
A
Ablation
#
Removing or replacing a component of a model and observing the change in behaviour, to judge whether the component is necessary. In interpretability the replacement is usually zero (which can push the model off distribution), the component's mean output over many inputs, or its output on another input (patching). The three choices can rank components differently, so state which one was used.
Abstention
#
The model declines to answer when unsure, for example saying it does not know, instead of guessing. Under binary grading (1 point for a right answer, 0 for a wrong answer or an abstention), the expected score of guessing is never below that of abstaining, so abstention is never rewarded; to teach it, the evaluation must penalize wrong answers or set an explicit confidence threshold.
Acceptance rate
#
In speculative decoding, the probability that the target model accepts a token proposed by the draft model. For a given prefix it is the sum of min(p, q) over tokens, i.e. 1 minus the total variation distance between the target distribution p and the draft distribution q; averaged over positions it is written α. A speedup needs α to exceed the draft cost coefficient c.
Action chunking
#
The policy predicts T_p future actions at once, executes only the first T_a (T_a ≤ T_p), then predicts again from a new observation. One chunk comes from a single sample, so it stays consistent among several valid ways of acting, and replanning keeps the policy responsive. A small T_a lets it dither between modes; a large one makes it slow to react.
Action expert
#
A separate set of weights in a vision-language-action model that handles the robot state and the noisy action tokens and exchanges information with the vision-language backbone only inside self-attention. In π0 it is a randomly initialized model of about 300M parameters next to the 3B PaliGemma. Tokens go to one set of weights or the other by type, with no learned router, unlike a sparse MoE.
Action tokenization
#
Turning continuous robot actions into discrete tokens so that a language model can generate them like text. RT-2 follows RT-1: each continuous dimension is split uniformly into 256 bins and, with a termination command, an action is 8 integers, each one vocabulary token; decoding samples only these 256 tokens and maps each bin to its center value. The cost is lost precision and slow decoding.
Activation checkpointing
#
Saving the activations of only some layers in the forward pass and recomputing the rest in the backward pass, trading extra forward computation for memory.
Activation patching
#
Replacing an activation in one run with its value from another run and measuring how much of the output is restored, to judge whether the information there causes the behaviour. A common recipe patches a clean run's activation into a corrupted prompt at one layer and position. Results depend on the corruption method and the metric (Zhang and Nanda, 2023).
Activations
#
The intermediate tensors produced in the forward pass that the backward pass still needs to compute gradients. Their memory grows with batch size, sequence length and depth: about 18.75 GiB for 4,096 tokens of Llama 2 7B without recomputation.
Active parameters
#
The number of parameters of a mixture-of-experts model that actually take part in computing one token, which sets the compute per token; memory, by contrast, must hold all experts and follows the total. DeepSeek-V3 has about 671B total and about 37B active parameters.
AdamW
#
The Adam optimizer with decoupled weight decay: it tracks first and second moment estimates of each parameter's gradient and applies weight decay separately from the gradient step. The default optimizer for LLM training.
Adaptive retrieval
#
Letting the model decide whether to retrieve and when to stop, instead of retrieving once per question. FLARE retrieves when the probability of a generated token falls below a threshold; Self-RAG trains the model to emit retrieve and critic reflection tokens, so it decides when to retrieve and scores the passages. Part of the trend of models using tools on their own, as in Toolformer.
Additive attention
#
The attention introduced by Bahdanau et al. (2014) for machine translation: at each decoding step a small feed-forward network scores every encoder state, a softmax normalizes the scores and a weighted sum gives a context vector made for that step, so the whole sentence no longer has to fit in one fixed vector.
Adjusted base frequency ABF
#
Raising RoPE's base frequency from the default 10,000 to a much larger value, so each dimension rotates more slowly, then continuing pre-training on long texts. Proposed by Xiong et al. (2023) for Llama 2 (10,000 to 500,000); Qwen3 uses 1,000,000 in its long-context stage. Unlike position interpolation, which divides all frequencies by s, it changes low frequencies a lot and high ones little.
Advanced RAG
#
The second RAG paradigm in Gao et al.'s survey. It is still a chain, with a layer added before and after retrieval: before it, better indexing (sliding windows, finer segmentation, metadata) and better queries (rewriting, expansion); after it, reranking and context compression, which put the most relevant content at the edges of the prompt and drop the rest. The aim is retrieval quality.
Advantage
#
How much better an action is than the average at that state: A(s,a) = Q(s,a) − V(s). The policy gradient uses it as the weight: push an action up when it is positive and down when it is negative. In practice it is estimated from samples: the reward minus a baseline, GAE, or the group-standardized reward in GRPO.
Agent
#
A system with an LLM at its core that plans, calls tools, observes the results and adjusts its actions in a loop to reach a goal.
Agent harness
#
The engineering layer wrapping the model: it decides what context the model sees, how tool calls are executed, and when to stop. Changing the harness does not touch model parameters yet can move benchmark scores noticeably, so it is part of the system and must be documented as part of the evaluation protocol.
Agent long-term memory
#
Confirmed information that an application persists and retrieves across sessions, usually with scope, provenance, version, and expiration rules for defaults or task continuity.
Agent trajectory
#
The thoughts, actions and observations of one task, recorded in order. It is the basic unit of agent evaluation (judging the process, not only the final answer), of failure analysis and of supervised fine-tuning data: the ReAct paper fine-tunes PaLM-8B and 62B on 3,000 trajectories that ended in a correct answer.
Aha moment
#
The name the DeepSeek-R1 paper gives to an intermediate R1-Zero version writing “Wait, wait. Wait. That’s an aha moment I can flag here.” mid-reasoning and then reconsidering its approach, which the paper presents as evidence of self-evolution. The cause is disputed: later work found that DeepSeek-V3-Base already writes such self-reflective sentences before any reinforcement learning.
Alignment
#
The research and methods aimed at making a model's behavior match human intentions and values: helpful, honest and harmless.
Alignment tax
#
The loss of capability that alignment training can cause. InstructGPT found that optimizing human preferences directly with PPO made the model worse on public datasets such as SQuAD, DROP, HellaSwag and French-to-English translation; mixing pretraining gradients into PPO (PPO-ptx) largely reduces it.
All-gather
#
A collective primitive: n devices each hold one shard, and after the operation every device holds the full concatenated data. ZeRO-3 and FSDP use it right before the forward and backward pass to rebuild a layer's full weights, which are freed after use.
All-reduce
#
A collective operation that gives every device the sum of a value (such as gradients) over all devices. The ring version is a reduce-scatter followed by an all-gather; each device sends about 2(n−1)/n times the data size, which barely grows with the number of devices.
All-to-all
#
A collective primitive in which each device sends its j-th chunk to device j and receives one chunk from every other device, a transpose of data spread across devices. Expert parallelism in MoE uses it to send tokens to the devices holding their experts and bring results back, so the traffic depends on the routing.
AlphaZero
#
A general self-play reinforcement learning algorithm from DeepMind (2017). A neural network outputting move priors and a position value is combined with Monte Carlo tree search. From random play and knowing only the rules, one set of hyperparameters learns chess, shogi and Go. The network learns the search's move distribution and the game outcomes.
Annealing
#
At the end of pre-training, decay the learning rate linearly to 0 while shifting the data mix toward higher-quality sources such as code and math, and often average the checkpoints. Llama 3 did this on its last 40M tokens. The paper also uses it as a cheap test of data value: anneal a half-trained 8B model on 40B tokens with 30% new data and see whether metrics improve.
Arithmetic intensity
#
The number of floating-point operations performed per byte moved from memory, in FLOPs per byte. For matrix multiplication it rises with batch size; it stays low for elementwise operations and for the matrix–vector products of decoding, which is why those are limited by memory bandwidth.
Attention Residuals AttnRes
#
A residual-connection variant from the Kimi team (March 2026). Layer l no longer gets the embedding plus all earlier outputs with weight 1 but a softmax-weighted sum of them: keys are the RMS-normalized sources, the query is one learned pseudo-query vector per layer (zero-initialized, so training starts as an equal average), values are the sources. Attention runs over depth, not sequence.
Attention sink
#
In autoregressive models the first few tokens attract very high attention scores even when they carry little meaning. Keeping only their keys and values plus a recent window lets a finite-window model generate stably in a stream, as StreamingLLM does; whatever has left the window is gone and cannot be recalled.
Attribute inference
#
Inferring personal attributes the author never stated, such as location, income or sex, from a piece of text. Staab et al. (2023) found that LLMs reach up to 85% top-1 accuracy on real Reddit text at about 1/100 of the cost of humans. It does not depend on the record being in the training data, so neither deduplication nor goldfish loss stops it.
AUROC AUROC
#
Area under the ROC curve: the probability that a randomly chosen positive example gets a higher score than a randomly chosen negative one. 0.5 is guessing and 1.0 is perfect separation. It does not depend on a threshold, so it compares detectors fairly, but the false-positive and false-negative rates at a chosen threshold still have to be measured separately.
Autoregressive generation
#
Generating one token at a time and feeding it back as input for the next step. Outputs depend on each other, so inference cannot produce a whole passage in parallel.
AWQ
#
Activation-aware weight quantization: it identifies the few important channels from activation magnitudes and protects them during quantization, keeping accuracy loss small at 4 bits.
B
Backpropagation
#
Applying the chain rule backward through the computation graph, from the output, to get the gradient of the loss with respect to all parameters in one pass. It costs about twice a forward pass and requires the forward activations to be kept, which is why activation checkpointing trades recomputation for memory.
Base model
#
A model that has only been pretrained, without instruction tuning or alignment. It is good at continuing text but does not necessarily follow instructions.
Baseline (policy gradient)
#
A quantity that does not depend on the current action, subtracted from the reward in a policy gradient. Since E[b(s)·∇log π(a|s)] = 0, it leaves the expected gradient unchanged and cuts the variance. Examples: the batch mean reward, a value function V(s), the mean of the other responses in a group. If it includes the response's own reward, that fails: a group mean shrinks the gradient by (G−1)/G.
Beam search
#
Keeping the k best-scoring partial sequences at every step, extending each, and returning the best complete one. Common for translation and summarization; rarely used for open-ended chat.
Behavior cloning BC
#
The most direct form of imitation learning: train a policy on expert (observation, action) pairs to reproduce the expert's actions. It is the same recipe as supervised fine-tuning (SFT), with similar difficulties: one observation can have several valid actions (multimodality), and errors accumulate at deployment and drift away from the training distribution.
τ-bench
#
An agent benchmark by Yao et al. (2024): a language model plays the user while the agent follows domain rules and calls API tools over a multi-turn conversation, and success is judged by whether the final database state equals the annotated goal state. Two domains: retail (115 tasks) and airline (50 tasks).
Benchmark
#
A fixed set of questions with a scoring method, used to compare models on some ability, such as MMLU, GSM8K and HumanEval.
Benchmark contamination
#
Test questions or their answers leaking into the training data, which inflates scores and hides the model's real generalization. Besides verbatim copies there are paraphrases, translations and answers scattered over web pages and discussions, which exact matching misses; the more copies, the firmer the memory.
Benchmark saturation
#
The strongest models' scores approach the ceiling of an evaluation set, which then stops separating them. The ceiling is not 100% but 1−e, with e the label error rate: on a four-option set with 6.49% errors a perfect model scores 0.935. Beyond it, the remaining differences are mostly label errors rather than ability, so replace the items and ship a new version.
BERT
#
Google's 2018 pre-trained language model: a Transformer encoder trained on unlabeled text with masked language modeling and next-sentence prediction, giving bidirectional representations that one new output layer and fine-tuning turn into a classifier or tagger. BERT-BASE has 12 layers, hidden size 768 and 12 heads (about 110M parameters); BERT-LARGE has 24, 1024 and 16 (about 340M).
Best-of-N sampling
#
Generate N candidate answers for one prompt, score them with a reward model or verifier, and keep the highest-scoring one. It does not update the model and is the simplest way to trade inference compute for quality. It is also used to study how far a reward model is over-optimized. For a continuous reward distribution its KL to the base model is log N - (N-1)/N.
BF16
#
The 16-bit floating-point format bfloat16: the same 8 exponent bits as FP32 but only 7 mantissa bits. Its wide range makes it less prone to overflow than FP16 in training.
Bilingual Evaluation Understudy BLEU
#
An automatic metric for machine translation: the geometric mean of n-gram precisions (usually 1 to 4) between a translation and its references, times a brevity penalty for short outputs. It rewards surface overlap, not meaning, and scores from different tokenizations or implementations are not directly comparable. The Transformer paper reports WMT 2014 results in BLEU.
Bits per byte BPB
#
The language-model loss converted to bits per raw byte of text: the base-2 cross-entropy summed over tokens, divided by the number of bytes. The denominator is the text itself, independent of the tokenizer, so models with different vocabularies can be compared.
Block Attention Residuals
#
The memory-saving variant of AttnRes: the L sublayers form N blocks (the paper uses about 8). Inside a block, outputs are summed by a plain residual into one block representation; attention runs only over the embedding, earlier block representations and the current partial sum. Vectors to keep and ship drop from O(L) to O(N); the paper reports under 4% training and 2% inference overhead.
Block table
#
The per-sequence map in PagedAttention that records which physical block holds each logical block and how many positions of it are filled. Logically consecutive blocks need not be adjacent in GPU memory, a new block is allocated only when the previous one is full, and a finished request frees its blocks for others.
Blockwise causal mask
#
An attention mask that splits the sequence into blocks: bidirectional inside a block, causal between blocks, so later blocks see earlier ones but not the reverse. π0 uses three blocks (image and language, state, actions); the first two do not depend on the noisy actions, so their keys and values can be cached across the 10 flow-matching steps. A fully bidirectional mask would break that cache.
BM25 BM25
#
A classic lexical scoring function: a term scores higher the more often it occurs in a document and the rarer it is in the corpus, term frequency saturates, and long documents are mildly penalized (parameters k1 and b). It needs no training and is strong on identifiers, commands and rare terms, but cannot match paraphrases that share no words, so it is often mixed with vector search.
Bradley–Terry model
#
A model that gives each item a strength coefficient and predicts pairwise win probabilities by passing the coefficient difference through a sigmoid: i beats j with probability 1/(1+exp(−(ξi−ξj))). Reward-model preference losses and Chatbot Arena rankings are both built on it.
Broadcasting
#
Aligning shapes from their trailing axes for elementwise operations. Matching dimensions and singleton axes are compatible, as when adding one bias vector to many rows.
Budget forcing
#
A decoding control for reasoning length: append a wait prompt when the model stops early and force an answer at the budget, enabling test-time scaling.
Bus bandwidth
#
A metric in NCCL performance tests: the algorithm bandwidth (data size divided by time) multiplied by a factor that depends on the primitive and the number of devices, so results at different scales can be compared directly with the hardware link speed. For all-reduce the factor is 2(n−1)/n.
Byte-pair encoding BPE
#
A tokenizer algorithm that starts from single characters (or bytes) and repeatedly merges the most frequent adjacent pair of symbols into a new symbol until the vocabulary reaches the target size. Byte-level BPE, used since GPT-2, can encode any text without unknown words.
C
Calibration
#
Agreement between a model's confidence and its actual accuracy: among the answers where it says it is 80% sure, about 80% are right. A calibrated model's confidence can be used directly for decisions; language models commonly turn overconfident, and post-training often weakens calibration.
Canary release
#
A rollout that exposes a candidate to a small eligible group first, then uses predetermined quality and reliability gates to promote, hold, or roll back. Candidate responses affect real user tasks.
Canary string
#
A unique random string placed in a dataset together with a notice that the data should not appear in training corpora. If a model can complete it or gives it an unusually high probability, the training corpus included the data. BIG-bench puts one in every task file. It exposes only pipelines that scraped the original file, not paraphrased items or other copies of the questions.
Capacity factor
#
The multiple of the average load that sets how many tokens one expert of a mixture-of-experts model may take: capacity = ⌈capacity factor × tokens × k ÷ experts⌉. Tokens over the capacity are dropped and only pass through the residual connection in that layer.
Catastrophic forgetting
#
The sharp loss of a model's earlier abilities after it is fine-tuned on data from a new task or domain. A larger learning rate, longer training and more trainable parameters usually mean bigger changes and more forgetting. Common mitigations are a smaller learning rate, a lower rank, mixing in general data, and monitoring a general evaluation before and after fine-tuning.
Causal encoder-decoder CED
#
DeepSeek-V4.1-Flash splits its 40 layers into a causal encoder (first 20) and a decoder (last 20), inspired by YOCO. Decoder layers project their global KV from the encoder's last-layer states instead of their own, so prefill needs only the first half, which the paper says removes nearly half of prefill compute. Decoding runs all 40 layers: 8B active parameters in prefill, 16B in decode.
Causal mask
#
Setting the attention scores of future positions to negative infinity so that each token sees only itself and earlier tokens. Decoder models rely on it to predict the next word from the preceding ones.
Chain of thought CoT
#
Having the model write out intermediate reasoning steps before the answer, which clearly improves multi-step problems such as math and logic. Proposed by Wei et al. in 2022.
Chain-of-thought faithfulness
#
Whether a model's written reasoning reflects what actually drove its answer. The chain-of-thought paper concedes the chain imitates human thinking and proves nothing about the network. Turpin et al. (2023): a hint favoring one option sways the model while its chain never mentions it. Lanham et al. (2023): by truncating chains and inserting mistakes, reliance on the chain varies by task.
Chatbot Arena
#
A crowdsourced human-preference platform: users compare two anonymous models' answers and vote, and a Bradley–Terry model turns the votes into a leaderboard with confidence intervals. The paper reported about 240K votes at the time.
Checkpoint
#
A snapshot saved during training: model weights, optimizer state, the step counter and the data position. Weights alone are enough for inference but not for lossless resumption, because Adam's moment estimates would restart from zero and the learning rate and data order depend on the step.
Chinchilla-optimal training
#
DeepMind's 2022 finding that, for a given compute budget, parameters and training tokens should grow roughly in proportion, about 20 tokens per parameter. The Chinchilla model (70B parameters, 1.4T tokens) was trained this way.
Chunked prefill
#
Splitting a long prompt into chunks and processing one chunk per step while requests that are already decoding ride along, so that the prefill of one long prompt does not stall the output of every other request.
Chunking
#
Cutting long documents into pieces that are good for retrieval and fit in the context. Chunk size, overlap and split boundaries directly affect retrieval quality.
Circuit
#
A subgraph of a neural network, made of features or components (attention heads, MLP neurons) and the connections between them, that together carry out a describable computation. Examples are the induction head and the 26 attention heads in 7 classes that Wang et al. (2022) found for indirect object identification in GPT-2 small. Circuits are judged by faithfulness, completeness and minimality.
Classifier-free guidance CFG
#
Ho and Salimans (2022): drop the condition at random in training (say 10% of samples) so one network learns both conditional and unconditional predictions; at sampling time extrapolate to (1+w) times the conditional prediction minus w times the unconditional one. Larger w follows the condition more closely but is less diverse and drifts from the data; each step costs an extra forward pass.
CLIP
#
OpenAI's 2021 contrastive image-text model: an image encoder and a text encoder are trained on a large number of image-caption pairs so that matching pairs land close together in one vector space.
Clip-Higher
#
The first DAPO trick: decouple the PPO clipping bounds, raising the upper one from 0.2 to 0.28 and keeping the lower one at 0.2. The upper bound is multiplicative, so a low-probability token cannot rise much in one update (0.01 reaches 0.012 at most). A looser bound leaves room for such exploration tokens and eases entropy collapse; the lower bound stays so their probability is not pushed to 0.
Closed-book
#
Answering with no reference documents at all, relying only on what the model memorized in its parameters. It is the usual baseline for retrieval-augmented evaluation: if the score with documents falls below the closed-book score, the documents are getting in the way. The oracle setting, which gives only the document that holds the answer, approximates the upper bound.
Co-fine-tuning
#
When fine-tuning on new-task data, mixing the original pre-training data into the same training batches instead of using the new data alone. RT-2 raises the sampling weight of robot data so that each batch balances robot data and web image-text data (robot data is about 50% or 66% of the mixture), so that the model does not forget web-learned concepts while it learns to act.
Cohen's kappa
#
Agreement beyond chance: κ = (po − pe)/(1 − pe), where po is the observed agreement and pe is the agreement expected if both raters label at random with their own label frequencies. A judge that always guesses the majority class can score high agreement and κ = 0.
Cold-start data
#
A small set of high-quality long chain-of-thought examples used to fine-tune the base model before large-scale reinforcement learning. R1 used a few thousand: readable ones were selected by rules from R1-Zero's correct responses, then rewritten by DeepSeek-V3 and human annotators. The aim is a more readable, more stable starting point for RL, not to teach reasoning.
Common Crawl
#
Public web data crawled since 2007 by the non-profit Common Crawl and released as periodic snapshots (for example CC-MAIN-2024-10). C4, Pile-CC, RefinedWeb, the web part of Dolma and FineWeb all draw on it. The raw data comes as WARC (full HTML) or WET (extracted text); WET keeps much boilerplate, so FineWeb extracts text from WARC with Trafilatura, which trains a better model.
Compressed Sparse Attention 2 CSA2
#
The attention design of DeepSeek-V4.1-Flash. Each layer is statically Full (computes its own main KV and indexer K and picks a top-512), Reindex (reuses the latest Full layer's main KV and indexer K but rescores with its own indexer Q) or Reuse (reuses the main KV and the last selection, no indexer). Cache sharing is decoupled from selection reuse: only 4 of 40 layers generate global KV.
Compute-optimal test-time scaling
#
Choosing the test-time strategy separately for each problem (for example how to split between parallel sampling and revision) so a correct answer is most likely within a budget. Snell et al. (2024) bin problems into 5 difficulty levels by the model's pass rate, pick the best strategy per bin, and report up to about 4x less compute than best-of-N on MATH, excluding difficulty estimation.
Confidence interval
#
A plausible range around a measured number. For an accuracy p measured on n questions the standard error is sqrt(p(1−p)/n) and the 95% interval is about p ± 1.96 standard errors; for 80% on 164 questions that is about ±6.1 points.
Confused deputy
#
A security problem in which a privileged program (the deputy) is tricked by a party without privileges into using its own on that party's behalf. In MCP, when a proxy server uses a static client ID with a third-party authorization server, an attacker can exploit the user's existing consent cookie to get an authorization code; the defense is consent for each dynamically registered client.
Consistency model
#
A few-step generative model of Song et al. (2023): it learns a function that maps any point on an ODE trajectory directly to the trajectory's endpoint, the clean sample, so one step is enough to generate and a few more steps trade compute for quality. It can be distilled from a pretrained diffusion model or trained from scratch.
Constitutional AI
#
An alignment method from Anthropic: the model critiques and revises its own answers according to a written set of principles, and AI-generated preferences then drive reinforcement learning, reducing the need for human labels.
Constrained decoding
#
At each decoding step, compute the set of tokens that keep the output within a target format (a regex, grammar or JSON Schema), set the logits of all other tokens to negative infinity and then sample, so the output is always a legal prefix. Implementations typically compile the format into an automaton and index it against the vocabulary.
Context engineering
#
Assembling instructions, tool definitions, complete history, retrieval, and memory under a model call's token budget, with provenance and purpose for each item.
Context parallelism CP
#
Splitting one long sequence along its length across several devices, and gathering their keys and values before attention. Llama 3 cuts the sequence into 2×CP chunks and pairs a head chunk with a tail chunk on each device to balance the load under a causal mask.
Context window
#
The maximum number of tokens a model can handle at once, shared by the prompt and the output. Anything beyond it must be truncated or compressed by retrieval or summarization.
Continuous batching
#
Adding new requests and removing finished ones at every decoding iteration instead of waiting for the whole batch to end, which raises GPU utilization considerably. Also called iteration-level scheduling.
Continuous normalizing flow CNF
#
A generative model defined by an ODE dx/dt = v_t(x) whose vector field is a neural network: it transports a simple distribution such as a standard Gaussian into the data distribution and allows exact likelihoods. Maximum-likelihood training must solve the ODE during training, which is expensive; flow matching removes that step.
Contrastive learning
#
A representation-learning method that pulls matching samples together and pushes non-matching ones apart, such as CLIP's image-text contrastive loss.
Copy-on-write
#
When several sequences share a physical block, the system keeps a reference count for it; a sequence that must write to a block with a count above one first copies it into a private block, while the others keep the original. vLLM uses it to share KV cache across parallel samples, beam search candidates and shared prefixes, as an operating system does when forking a process.
Counterfactual robustness
#
One of the four RAG abilities: when retrieved documents contain known errors, the model should notice the risk and not be misled, even if the instruction warns that documents may be wrong. RGB picks questions the model can answer directly and corrupts the answers in the documents; models still tend to trust the retrieved content over their own knowledge.
Credit assignment
#
A basic problem in reinforcement learning: after a sequence of actions only one delayed reward arrives, and the learner must decide which actions deserve credit or blame. Process rewards refine the signal to each step and make credit assignment easier, while a reward that looks only at the final outcome is sparse and gets harder to learn from as solutions get longer.
Critical batch size
#
Up to this batch size, increasing the batch costs almost no compute efficiency and cuts the number of training steps; beyond it, returns diminish. Introduced by McCandlish et al. (2018); Kaplan et al. found that it depends only on the loss reached, not on model size, and roughly doubles for every 13% drop in the loss.
Critique and revision
#
The model first criticizes its own answer under a principle, then rewrites it in light of the critique; revisions can go through more rounds and finally serve as fine-tuning data. Constitutional AI's supervised stage runs 4 rounds per red-team prompt, each with a principle drawn at random from 16. Critiques helped small models, not large ones.
Cross-attention
#
Attention in which the queries come from one sequence and the keys and values from another. Encoder-decoder translation models and some multimodal models use it to let the decoder "look up" the input.
Cross-entropy
#
A loss that measures how far the model's predicted distribution q is from the true distribution p: H(p, q) = −Σ p log q. Language-model pretraining minimizes the cross-entropy of the true next token.
D
DAPO DAPO
#
A reasoning reinforcement learning algorithm open-sourced in 2025 by ByteDance Seed and partners. On top of GRPO it adds four tricks: Clip-Higher with decoupled bounds, dynamic sampling that filters all-right or all-wrong prompts, a loss averaged over tokens instead of answers, and reward shaping for overlong answers, and it drops the KL penalty. It scores 50 on AIME 2024 from a Qwen2.5-32B base.
Data ablation
#
Fix the model, budget and evaluation, change one data-processing step at a time, train a control model per version and compare downstream scores. FineWeb used a 1.71B Llama-style model, 28B tokens for filtering ablations and 350B for deduplication, two models per version averaged, and benchmarks with low seed variance and near-monotonic curves. Small-scale results may not transfer.
Data mixture
#
The share of each source (web text, code, math, multilingual data and so on) among the pretraining samples. The mixture changes the validation loss of every domain, so evaluate per domain; a single average hides the trade-offs.
Data parallelism
#
Every device holds a full copy of the model and processes a different batch; gradients are synchronized after the backward pass.
Data pyramid
#
How GR00T N1 organizes training data: web data and human video at the base, synthetic data (simulation and neural trajectories) in the middle, real teleoperated robot data at the top, each layer closer to the target robot. Layers without actions get latent-action or inverse-dynamics labels. By Table 7's hours it is not a quantity pyramid: real-robot data (3,288.8 hours) is the largest.
Data-constrained scaling
#
How much repeated data is worth when high-quality data runs out. Muennighoff et al. (2023) fitted an effective-data formula D′ = U + U·R*·(1−e^(−R/R*)), where U is the number of unique tokens, R the number of repeats and R* about 15. Up to roughly 4 epochs repeated data is almost as good as fresh data; after that returns decay quickly and the formula saturates at 1+R* copies of fresh data.
DCLM
#
DataComp-LM (Li et al., 2024): a benchmark that compares pretraining datasets by changing only the data under a fixed recipe, with a Common Crawl pool of about 240T tokens and 53 downstream evaluations. Its DCLM-Baseline dataset keeps the top 10% of documents under a fastText classifier trained on OpenHermes 2.5 and ELI5 positives; a 7B model trained on it for 2.6T tokens reaches 64% on MMLU.
De-tokenizer
#
Undoing pre-processing left in a dataset for older models: spaces before punctuation, placeholders such as @-@ for hyphens, split contractions. The GPT-2 paper used invertible de-tokenizers, so probabilities still map back to the original text, and reports gains of 2.5 to 5 perplexity from them. The heuristic one on this page is not shown to be invertible.
Dead latent
#
A dictionary entry of a sparse autoencoder that never (or almost never) fires, which wastes capacity. In the three SAEs that Templeton et al. (2024) trained on Claude 3 Sonnet, with about 1M, 4M and 34M features, roughly 2%, 35% and 65% of the features were dead; Gao et al. (2024) found modifications of the TopK SAE that leave few dead latents even at the largest scale they tried.
An offline RL method (Chen et al., 2021): trajectories become interleaved (return-to-go, state, action) tokens, and a causal GPT learns, with a supervised loss, to predict the action at each state token; no value function or policy gradient. A target return prompts it at test time. Later work found the return condition, not the Transformer, matters most, and that it fails in stochastic settings.
Decoder-only model
#
An architecture that keeps only a stack of decoder layers with a causal mask and generates autoregressively. GPT, Llama, Qwen and DeepSeek are all decoder-only.
Decontamination
#
Removing whatever overlaps with an evaluation set: deleting documents that share a long span with a benchmark item before training, or reporting scores only on the clean subset of items with no overlap. The usual tool is n-gram overlap, which handles verbatim copies only; paraphrased or translated leaks need model-based detection or items written after the training cutoff.
Decoupled RoPE
#
The way MLA stays compatible with low-rank key-value compression. RoPE depends on position, so applying it to the up-projected keys would stop the key up-projection from being absorbed into the query. A small extra slice (one query per head plus one key shared by all heads) carries RoPE and is concatenated with the position-free content part; the shared key is cached too.
Deduplication
#
Removing duplicate and near-duplicate documents from the training corpus (often with MinHash), which reduces memorization and benchmark leakage and improves training efficiency.
Deep Q-network DQN
#
Q-learning with a convolutional network approximating the action-value function Q(s, a): the input is the last 4 frames, the output is one Q value per action, and experience replay and reward clipping stabilize training. The 2013 DeepMind paper calls it the first deep model to learn control policies from high-dimensional input with reinforcement learning; the 2015 version added a target network.
DeepSeek Sparse Attention DSA
#
Sparse attention from DeepSeek-V3.2. A small lightning indexer scores every earlier token for each query, the top 2048 are kept, and core attention runs only on them, cutting its cost from O(L²) to O(Lk). Selection depends on content and can reach arbitrarily far back; the indexer stays O(L²) but is about 5.9% of core attention per token pair. Added to a dense model by continued training.
Delta rule
#
A write rule for fixed-size-state models: read the value currently stored under the key, then write back only the difference, S ← S + β k (v − Sᵀk)ᵀ. It is one gradient step on a linear model that predicts the value from the key, so rewriting the same key cleanly replaces the old value, whereas an additive write returns the sum of old and new. Used by DeltaNet and Gated DeltaNet.
Denoising Diffusion Implicit Models DDIM
#
A way of sampling from a diffusion model: it reuses the same trained noise-prediction network but skips diffusion steps, denoising deterministically (with eta = 0) from noise to data. Inference can therefore use far fewer steps than training (for example 100 steps of training and 10 of inference), at some cost in sample quality.
Denoising diffusion probabilistic model DDPM
#
The diffusion model of Ho et al. (2020): a forward process of T=1000 steps with variances rising linearly from 1e-4 to 0.02, a network that predicts the noise of each step, an unweighted mean squared error (L_simple) as the loss, and sampling that denoises step by step from Gaussian noise. It reaches FID 3.17 on unconditional CIFAR-10.
Device memory
#
Memory accessible by an accelerator for weights, intermediate tensors, and caches. Discrete GPUs often have dedicated memory, while a unified-memory system can share physical memory with the host.
Device-limited routing
#
An MoE routing constraint from DeepSeek-V2: first pick the M devices that hold the highest-affinity experts (M=3 in V2), then take the top-K only among the experts on those devices, so each token's experts live on at most M devices. This bounds cross-device communication under expert parallelism.
Differential attention
#
Two softmax attention maps are subtracted with a learned coefficient to cancel shared noise. Negative weights are possible, so the result is not an ordinary probability distribution.
Differential privacy
#
A privacy definition with a mathematical guarantee: adding or removing any one record changes the probability of any output by at most a factor of e^ε, plus δ. DP-SGD (Abadi et al., 2016) clips per-example gradients and adds noise. The unit of privacy (sentence, document, user) must be chosen first; it costs compute and utility, less when fine-tuning pretrained models (Yu et al., 2021).
Diffusion language model
#
Text generation with discrete diffusion: the forward process replaces tokens with a mask symbol at a random rate, and a bidirectional Transformer learns to recover them; generation starts from an all-mask sequence and fills in words over several steps, predicting many positions in parallel instead of left to right. LLaDA (Nie et al., 2025) trained an 8B-parameter model of this kind.
Diffusion model
#
A family of generative models: a fixed forward process gradually adds noise to data until only noise is left, and a neural network learns the reverse process; generation starts from pure noise and denoises step by step. Training usually reduces to predicting the noise added at each step, a simple regression problem; the cost is that sampling needs many sequential network evaluations.
Diffusion Policy
#
A robot visuomotor policy written as a conditional diffusion model: given the observation, it starts from Gaussian noise and iteratively denoises a sequence of future actions. It can represent several valid actions for one observation (multimodality) and trains by regressing noise, with no normalization constant to estimate as in energy-based models.
Peebles and Xie (2022) replaced the diffusion U-Net with a Transformer: the latent is cut into p×p patches, embedded into a token sequence with position encodings, and the timestep and class condition enter through adaptive layer norm (adaLN-Zero). More Gflops gave lower FID; DiT-XL/2 reaches FID 2.27 on ImageNet 256×256 with guidance. SD3's MM-DiT gives text and image tokens separate weights.
Direct preference optimization DPO
#
Rewrites the RLHF objective as a classification-style loss that can be minimized directly on preference pairs, with no explicit reward model and no online reinforcement learning loop. Proposed by Rafailov et al. in 2023.
Distillation
#
Training a small student model to imitate a large teacher's output distribution or the data it generates, gaining much of the teacher's ability at a fraction of the cost.
Document mask
#
Pre-training packs several short documents into one fixed-length sequence to avoid waste; a document mask lets attention act only within a document, so later documents cannot see earlier ones. Llama 3 uses it: the paper says it matters little in standard pre-training but a lot in continued pre-training on very long sequences, and it is easy to support in all-gather based context parallelism.
DoReMi
#
A way to choose pretraining data mixtures (Xie et al., 2023): a small proxy model trained with Group DRO against a reference model upweights domains with the largest excess loss, and the weights averaged over training define the mixture. A 280M proxy set the weights for an 8B model: average few-shot accuracy on The Pile rose 6.5 points, and the baseline was reached in 2.6 times fewer steps.
Double quantization
#
Quantizing the scaling constants produced by block-wise quantization to save memory. In QLoRA every 64 weights share one 32-bit constant (0.5 bits per weight on average); double quantization subtracts the mean and quantizes those constants to 8-bit floats in blocks of 256, cutting the overhead to about 0.127 bits per weight, roughly 3 GB for a 65B model.
Doubly stochastic matrix
#
A square matrix with non-negative entries whose rows and columns each sum to 1. Its spectral norm is at most 1, products of such matrices stay doubly stochastic, and by the Birkhoff-von Neumann theorem each is a convex combination of permutation matrices. mHC uses it to constrain the residual mixing matrix, so the forward gain of composed layers is exactly 1.
Draft model
#
The small, fast model that guesses first in speculative decoding (the paper calls it the approximation model). It proposes several candidate tokens and the target model verifies them in parallel. It can be a smaller model of the same family, an n-gram table or extra decoding heads attached to the target; it affects only the acceptance rate and the speed, never the output distribution.
Dual Chunk Attention DCA
#
A training-free context-extension method: it splits long-sequence attention into chunk-based modules that capture relative positions within and across chunks, and works with FlashAttention. Proposed by An et al. (2024), who report that Llama 2 70B can handle windows of over 100k tokens without further training; Qwen3 combines it with YaRN to quadruple its sequence-length capacity.
Dual LLM pattern
#
A structural defense: a privileged model that can call tools never reads untrusted content; a quarantined model reads it but has no tool access and returns only variable references, which ordinary code passes between the two. An injected quarantined model cannot use tools. Proposed by Simon Willison (2023); CaMeL (2025) develops it into explicit policy checks on data flow.
DualPipe
#
DeepSeek-V3's bidirectional pipeline-parallel schedule: each forward and backward chunk is split into attention, dispatch, MLP and combine parts and rearranged so that the computation and the all-to-all communication of expert parallelism of a forward-backward pair overlap, with micro-batches fed from both ends of the pipeline. The price is two copies of the parameters.
Dynamic resolution
#
Letting a vision-language model choose the number of patches and visual tokens from the image's own size (within a pixel budget) instead of resizing every image to a fixed square. Qwen2-VL rounds both sides to a multiple of the patch size times the merge factor, so the token count is roughly the pixel count divided by the square of that length.
Dynamic sampling
#
Oversampling and discarding prompts whose whole group of answers is all right or all wrong (such a group has zero advantage everywhere) until the batch is full, so that every prompt in a batch carries a gradient. The second DAPO trick; the price is extra sampling, so the sampling cost is dynamic. With G=16, a prompt with accuracy 5% or 95% has a 44% chance of a zero-advantage group.
E
Elo rating
#
A strength rating from chess: a 400-point gap means 10-to-1 odds, which is the Bradley–Terry coefficient times 400/ln 10, about 173.7. With a 100-point gap the stronger side wins about 64% of the time.
Embedding
#
A lookup table that maps discrete token ids to continuous vectors; more broadly, any dense vector representation of text or images in which similar meanings end up close together.
Embodiment
#
The concrete body of a robot: number of arms and degrees of freedom, gripper or dexterous hand, camera placement, and the dimensions and control mode of state and actions. Cross-embodiment training puts different robots' data into one model. GR00T N1 gives each embodiment its own encoder and decoder MLPs projecting to a shared width; the official code reserves 32 slots.
Emergent abilities
#
Abilities that sit near chance in small models and rise clearly above it only past some model scale. The chain-of-thought paper calls its finding that chain of thought pays off only from about 100B parameters emergence. Caveats: Schaeffer et al. (2023) argue that part of the sudden appearance comes from non-linear metrics, and the paper's Table 2 shows the threshold varies by model family.
Encoder-decoder model
#
An architecture in which an encoder reads the input bidirectionally and a decoder generates the output autoregressively, reading the encoding through cross-attention. The original Transformer and T5 are encoder-decoder models.
Encoder-only model
#
An architecture that keeps only the Transformer encoder and uses no causal mask: every position sees both sides of the whole sequence, and the output is a contextual representation rather than a next-token distribution. It suits classification, retrieval, tagging and reranking but cannot generate token by token. BERT and RoBERTa are encoder-only models.
Engram
#
A conditional-memory module that separates memorization from computation: hashed n-gram lookups into huge embedding tables, merged into the hidden state by context-aware gating. Addresses depend only on input tokens, so embeddings can be prefetched from host memory. DeepSeek-V4.1-Flash has one module at layer 1 and one at layer 14 (n-gram orders 2 to 4), 196B parameters in total, in FP8.
Evolution strategies ES
#
A family of gradient-free black-box optimizers: keep a distribution over parameters, repeatedly sample a population of candidates, rank them by return and move the distribution toward the best ones; CMA-ES also adapts the covariance. They need only the final cumulative return and parallelize easily, which suits policies with a modest number of parameters.
Expected calibration error ECE
#
Bin predictions by confidence, take in each bin the absolute difference between average confidence and actual accuracy, and average these differences weighted by bin size. Lower is better and 0 means every bin is calibrated; the value depends on the binning (10 to 15 bins is common) and is noisy with few samples.
Experience replay
#
Store each step of the agent's experience (state, action, reward, next state) in a fixed-size buffer and train on uniformly sampled minibatches from it. Each experience is reused many times, the strong correlation between consecutive samples is broken, and changes in the behavior distribution are averaged out. The price is that it only works with off-policy algorithms such as Q-learning.
Expert dropout
#
A regularization method for fine-tuning sparse models: keep dropout small (for example 0.1) in the non-expert layers and raise it only inside the experts' feed-forward layers (for example 0.4), which eases the overfitting caused by many expert parameters and little fine-tuning data. Introduced in the Switch Transformer.
Expert load balancing
#
Keeping the number of tokens each expert of a mixture-of-experts model receives roughly equal, which avoids routing collapse and keeps the busiest expert from slowing down a whole layer under expert parallelism. Common methods are an auxiliary balancing loss, capacity limits with dropping, and DeepSeek-V3's bias method.
Expert parallelism
#
A way of parallelizing a mixture-of-experts model by placing different experts on different GPUs. After routing, tokens are dispatched to the GPUs that hold their experts and combined back afterwards, which takes two all-to-all communications.
Exposure
#
A memorization metric from Carlini et al. (2018): insert a random secret (a canary) into the training set, rank all possible values by the model's score, and compute log2(number of candidates) minus log2(rank of the true secret). It ranges from 0 to log2(number of candidates); a model that knows nothing gets a bit or two, and each extra bit halves the candidates an attacker must check.
Definition of Carlini et al. (2022): a string s is extractable with k tokens of context if some length-k prefix p exists such that p followed by s occurs in the training data and greedy decoding from p writes s. It needs only generation, so it became the standard at scale, but it counts only fully correct outputs, misses partial memory and depends on the prompt and decoding.
F
Feature alignment
#
The first stage of multimodal training: freeze the vision encoder and the language model and train only the projector between them, so that visual features land in a word-embedding space the language model can read. LLaVA treats it as training a visual tokenizer for the frozen language model: 595K CC3M pairs, about 5.25 million trainable parameters (0.04%).
Feed-forward network FFN
#
The fully connected network applied to each token independently in every Transformer layer. It holds most of the model's parameters, and some research suggests it acts like a key-value memory.
Few-shot prompting
#
Putting a few input-output examples in the prompt so the model completes a new input in the same way.
Fine-tuning
#
Continuing to train a pretrained model on data from a specific task or domain so that it adapts to it.
FineWeb
#
An open English web pretraining corpus released by Hugging Face in 2024: 96 Common Crawl snapshots processed with datatrove, about 15T tokens under the GPT-2 tokenizer. FineWeb-Edu is a 1.3T-token subset picked by an educational-value classifier. Each step (extraction, deduplication, filtering) is backed by ablations on a 1.71B model; code, data and ablation models are all public.
FlashAttention
#
An exact attention algorithm that uses tiling and an online softmax so the n×n attention matrix is never written to GPU memory (HBM). It cuts memory traffic sharply, runs faster, and its memory use grows linearly with sequence length. Proposed by Dao et al. in 2022.
FLOPs
#
The number of floating-point operations, a measure of compute. Training a dense Transformer costs roughly 6·N·D, where N is the number of parameters that take part in matrix multiplications and D the number of training tokens.
Flow matching
#
A training method for generative models: fix a probability path from a noise distribution to the data distribution, regress the vector field that generates it, and sample by integrating an ODE. Training needs no ODE solves, because a per-sample conditional target (such as x1 − x0) has the same gradient as the intractable original objective; diffusion paths are one special case.
FP4 KV cache
#
DeepSeek-V4.1-Flash stores the main KV in 4-bit floating point (E2M1) with one E4M3 scale per 16 channels and no second-level global scale. QAT starts in post-training, quantization follows RoPE, and sliding-window KV stays FP8. Values are dequantized before attention, so it saves storage, not matmul time. Channel magnitudes stay below about 22.6, far under the 448×6=2688 the format reaches.
FP8 training
#
Training with 8-bit floating-point matrix multiplications, which in theory doubles the throughput of BF16. The range is narrow, so it needs fine-grained scaling: DeepSeek-V3 uses one scale per 1×128 tile of activations and per 128×128 block of weights, and promotes partial sums to FP32 while accumulating. Embeddings, the output head, MoE gating, normalization and attention stay in BF16/FP32.
Function calling
#
The model emits the name of a function and JSON arguments in an agreed format, the application actually runs it, and the result is handed back to the model.
G
Gated DeltaNet
#
Gated DeltaNet (Yang et al., 2024) adds an input-dependent decay gate α_t to the delta rule: S_t = α_t (I − β_t k_t k_tᵀ) S_{t−1} + β_t k_t v_tᵀ. The gate erases memory in bulk, while the delta rule updates a single association, and the two are complementary. Qwen3-Next interleaves it with attention layers at a ratio of 3 to 1.
Generalized advantage estimation GAE
#
An advantage estimator that trades bias against variance with one parameter λ: it sums the one-step temporal-difference errors δ_t = r_t + γV(s_(t+1)) − V(s_t) with geometric weights (γλ). λ=0 uses a single step (low variance, more bias) and λ=1 equals the Monte Carlo return minus the value baseline (high variance). The PPO paper uses λ=0.95 in all its experiments.
Generative adversarial network
#
An implicit generative model trained by a generator that synthesizes samples from noise and a discriminator that distinguishes them from data, ideally reaching matching distributions.
Generative Pre-trained Transformer GPT
#
OpenAI's line of decoder-only Transformer language models since 2018. GPT-1 has about 117 million parameters and is fine-tuned per task; the largest GPT-2 has about 1.56 billion and is used zero-shot; GPT-3 has 175 billion and gets its task and examples in the prompt, with no weight updates. The backbone barely changed; scale and the way a task enters the model did.
Generative pre-training
#
GPT-1's (2018) two-stage recipe: pre-train a 12-layer decoder Transformer on unlabeled text with a language-modeling loss, then fine-tune on each labeled task. Structured inputs are packed into one sequence with start, delimiter and extract tokens, a linear output layer is added, and the language-modeling loss stays as an auxiliary term (weight 0.5). State of the art on 9 of 12 tasks.
Goldfish loss
#
A training objective of Hans et al. (2024) that reduces memorization by leaving some tokens out of the loss: a position is dropped when a hash of the h preceding tokens falls in a 1/k share of the range (the paper uses k=4, h=13), so all copies of a passage drop the same positions. Long verbatim recitation becomes exponentially harder; a short secret gets limited protection.
Goodhart’s law
#
“When a measure becomes a target, it ceases to be a good measure.” In machine learning, the harder you optimize a learned proxy such as a reward model, the more the proxy’s relationship to the true objective tends to break. Manheim and Garrabrant (2018) split it into regressional (noise), extremal (outside the training distribution), causal and adversarial variants.
Goodput
#
The number of successful requests per unit time that meet all service-level objectives. Streaming LLM inference commonly checks both time to first token and mean inter-token latency per request.
GPTQ
#
A post-training weight quantization method that goes layer by layer and uses approximate second-order (Hessian) information to minimize quantization error, often down to 4 bits.
GPU tiling
#
Partitioning a tensor operation into blocks that fit on-chip storage so threads can load and reuse data cooperatively. Output tiles determine accumulator size and reuse, while reduction tiles determine the work per iteration.
Gradient accumulation
#
Splitting a large batch into micro-batches that are run forward and backward one after another, summing the gradients and updating the parameters only once enough have accumulated, which trades time for memory. When micro-batches have different numbers of valid tokens, normalize by the global token count, otherwise it is not equivalent to a true large batch.
Gradient check
#
The standard way to verify a backpropagation implementation: perturb each parameter slightly, estimate the gradient with the central difference (L(θ+ε)−L(θ−ε))/2ε, and compare it with the backpropagated one. N parameters cost 2N forward passes, so it is for checking implementations, not for training, and should be run in float64.
Gradient clipping
#
Scaling the gradient down when its norm exceeds a threshold, so an occasional huge gradient cannot make training diverge. A threshold of 1.0 is common in LLM training.
Greedy decoding
#
Picking the most probable token at every step. It is deterministic and fast, but tends to repeat itself and does not guarantee the most probable overall sequence.
Group relative policy optimization GRPO
#
Samples a group of responses to the same prompt and normalizes their rewards by the group mean and standard deviation to get advantages, which removes the value model PPO needs. Introduced in DeepSeekMath and used by DeepSeek-R1.
Group reward-Decoupled Normalization Policy Optimization GDPO
#
A multi-reward RL method from NVIDIA (2026). GRPO sums the rewards and normalizes the total inside the group, which can give different reward combinations the same advantage (reward collapse). GDPO normalizes each reward inside the group first, sums them with weights and normalizes once over the batch, so the advantage scale does not grow with the number of rewards.
Group sequence policy optimization GSPO
#
A reinforcement learning algorithm from the Qwen team (2025). Like GRPO it uses group-normalized advantages and no value model, but it changes the unit of the importance ratio: one ratio per response (the sequence likelihood ratio to the power 1/length), clipped as a whole, instead of one per token. The paper reports more stable training and no Routing Replay for MoE models.
Grouped-query attention GQA
#
Query heads are split into groups and each group shares one key/value head, a middle ground between multi-head and multi-query attention. Used by Llama 2 70B, Llama 3 and Mistral 7B, among others.
GSM8K
#
A dataset of grade-school math word problems by Cobbe et al.: about 8.5K problems, each needing 2 to 8 reasoning steps and ending in a number; the official repository has 7,473 training and 1,319 test problems.
Guardrail
#
A layer of input and output checks outside the model: rules or classifier models that filter disallowed requests, block harmful output and validate format. It lowers risk but can itself be bypassed, so it should be combined with structural measures such as least privilege.
H
Hallucination
#
Output that reads fluently but contradicts the facts or the supplied sources. Retrieval, citations and post-hoc verification reduce it, but none eliminates it.
Hardware FLOPs utilization HFU
#
The FLOPs the hardware actually executes divided by its theoretical peak, with recomputed operations counted. With activation recomputation, HFU is higher than MFU for the same run: PaLM 540B has an MFU of 46.2% and an HFU of 57.8%.
Heuristic filtering
#
Filtering low-quality pages with hand-designed statistical rules: drop lines without terminal punctuation, short documents, documents full of repeated lines. Rules are cheap and can be ablated one by one, but thresholds depend on the data and benchmarks. FineWeb found that C4's terminal-punctuation rule alone removes about 30% of tokens, and that dropping it and keeping the rest works better.
Hierarchical sparse indexer
#
The indexing scheme in the DeepSeek-V4.1-Flash decoder. The first Full layer scores every visible position and also keeps the 2,048 best blocks of 8 positions, a pool of 16,384 candidates; later Reindex layers score only inside that pool and pick their own top-512, so their cost no longer grows with context length. The linear term is confined to one layer, not removed.
High Bandwidth Memory HBM
#
Memory built from stacked DRAM dies placed next to the GPU in the same package. It offers bandwidth of several terabytes per second, far above ordinary GPU memory, but capacity is limited, from tens of gigabytes to nearly two hundred per device. Weights, KV cache and activations live there, so inference speed often depends on how fast data is read from it.
HumanEval
#
A code benchmark released with the Codex paper by Chen et al.: 164 hand-written Python problems, each giving a function signature and docstring, with unit tests that check the generated function; results are reported as pass@k.
Hybrid architecture
#
A model that interleaves a few attention layers with many recurrent layers (Mamba, linear attention, Gated DeltaNet). The recurrent layers mix information cheaply through a fixed-size state, the attention layers recall verbatim, and the cache grows only with the attention layers. Jamba has 1 attention layer in every 8, so its KV cache at 256K tokens is 1/8 of a same-shape full-attention model.
Hyper-connections HC
#
A residual connection with n parallel streams (an n×C hidden state) and three learned mappings: H_pre merges the streams into one sub-layer input, H_post spreads the output back, and H_res is an n×n matrix mixing the streams. It widens the residual stream without extra FLOPs, but the unconstrained mappings can make the gain over many layers unbounded, which mHC addresses (Zhu et al., 2024).
Hypothetical Document Embeddings HyDE
#
Ask an LLM to write a hypothetical answer document, then retrieve real documents with its embedding, so retrieval compares answer with answer instead of question with answer. Facts in the hypothetical document may be wrong, so it only produces a search vector; the cost is an extra generation, and model mistakes can leak into retrieval. Proposed by Gao et al. in 2022 (arXiv:2212.10496).
I
Implicit reward
#
The reward that DPO defines through the log-ratio of the policy and the reference model: r(x, y) = beta * log(pi(y|x) / pi_ref(y|x)). It is never trained as a separate model, yet under the Bradley-Terry model minimizing the DPO loss fits exactly this reward, which differs from the true reward only by a term that depends on the prompt alone (the partition function).
Importance sampling
#
Estimating an expectation under a target distribution from samples of another (behavior) distribution by weighting each sample by the ratio of the two probabilities. PPO-style algorithms weight old-policy samples by the new-to-old probability ratio and clip it. The weight corrects the mismatch only when averaged over many samples, which is GSPO's argument against per-token ratios.
In-context learning
#
The ability to pick up a new task from examples or instructions in the prompt alone, without updating any parameters. GPT-3 demonstrated it systematically.
Indirect object identification IOI
#
A task widely used in interpretability: given 'When Mary and John went to the store, John gave a drink to', the model should complete the indirect object Mary, not the repeated subject John. Wang et al. (2022) found its circuit in GPT-2 small by causal interventions: 26 attention heads in 7 classes, including name movers and S-inhibition heads. Metric: logit(IO) − logit(S).
Indirect prompt injection
#
The attacker plants instructions in external content the model will read, such as web pages, emails, documents or tool outputs, instead of speaking to the model directly; the model treats data as instructions and the user does not know. Greshake et al. (2023) named and studied it systematically for applications that integrate retrieval and tools.
Induction head
#
An attention circuit in Transformers: after [A][B] appeared earlier, a later [A] makes the model attend to the token that followed the previous [A] and copy it as the prediction. Olsson et al. (2022) tie induction heads to the emergence of in-context learning. The Mamba paper tests a synthetic version (trained at length 256, tested up to 1,048,576), and Mamba is perfect at every length.
Inference budget
#
The compute and memory cost a deployment can afford when serving requests. Each generated token costs about 2N floating-point operations, where N is the parameter count. The LLaMA paper points out that choosing a model only by training compute ignores this term: for a target quality, prefer the model that is cheapest at inference, which is a smaller model trained for longer.
Inference runtime
#
Software that loads model configuration and weights, allocates memory, executes inference operations, and emits tokens according to decoding rules. A surrounding service handles requests and responses.
InfoNCE loss
#
A loss widely used in contrastive learning: the pairwise similarities of the N matched pairs in a batch form an N×N matrix whose diagonal holds the positives and everything else the negatives, and a softmax cross-entropy is taken over every row (and column). CLIP uses its symmetric form, with the similarities divided by a temperature.
One of the four RAG abilities: answering complex questions that need several documents, for example when two facts sit in two documents and both must be found and merged. RGB builds questions that can only be answered from multiple documents, and finds models do clearly worse on them than on single-document questions.
Instruction hierarchy
#
Training a model to rank instructions by source: the system prompt over the user message, the user message over third-party content such as tool outputs and web pages; when they conflict it obeys the higher level and ignores privileged-looking instructions at a lower one. Introduced by OpenAI in 2024; it improves robustness but remains a probabilistic defense.
Instruction tuning
#
Supervised fine-tuning on instruction data covering many tasks, so the model can follow unseen instructions zero-shot. FLAN and InstructGPT are representative.
Inter-annotator agreement
#
How often several annotators give the same label to the same items, a measure of label quality. Common measures are raw agreement p_o and Cohen's kappa, but class imbalance inflates raw agreement and deflates kappa: two annotators who each err 5% of the time score kappa 0.811 with balanced classes and 0.144 with 99% positives. Report agreement, class balance and per-class agreement together.
Inverse dynamics model IDM
#
A model that infers which action was taken between two observations, such as the current and a future frame, the reverse of a forward model that predicts the next state. It can label videos without actions: the GR00T N1 IDM outputs the action chunk between two frames, using the System 1 DiT with SigLIP-2 embeddings, trained 30K or 60K steps per embodiment to label neural trajectories.
IsoFLOPs curve
#
Fix the training compute C, vary the parameter count (tokens follow as C / 6N) and plot the final loss; the curve's minimum is the compute-optimal model for that budget. Fit a parabola per budget, then a power law of optimal size against compute: Chinchilla's second approach, also used by Llama 3, which notes that the curves flatten near the optimum as compute grows.
Item discrimination
#
How well one item separates strong models from weak ones. In IRT it is the steepness a of the success-probability curve; an item's information is a²P(1−P), peaking at a²/4, so doubling a quadruples it. It is often estimated by the item–rest correlation, the item's correlation with the total on the other items: near 0 adds nothing to the ranking, negative usually means a wrong reference answer.
Item response theory IRT
#
A psychometric model of items and test-takers: each test-taker (here a model) has an ability θ, each item a difficulty b and a discrimination a, and the two-parameter model gives the chance of a correct answer as σ(a(θ−b)). On evaluation sets it finds informative items and items with negative discrimination, usually mislabeled; tinyBenchmarks uses it to shrink each benchmark to 100 items.
Iterative retrieval
#
Alternating retrieval and generation: the knowledge base is searched repeatedly using the initial query and the text generated so far, giving the model richer, more targeted context each round. The survey notes it can suffer from semantic discontinuity and accumulating irrelevant information. Example: ITER-RETGEN. Recursive retrieval refines the query or splits it into sub-questions (IRCoT).
L
Label noise
#
Wrong labels in the training data, or the overall share of them. Uniform noise replaces labels with a random other class; real annotation errors usually concentrate between neighboring classes. Neural networks can memorize wrong labels (Zhang et al., 2017), so noise is not averaged away on its own; it is found by spot checks or by flagging examples where a model disagrees with the label.
Label smoothing
#
Replacing the one-hot training target with a mixture: (1−ε) times the one-hot label plus ε times a uniform distribution, so the model is not pushed to put all probability on one class. The Transformer paper used ε=0.1 and notes that it hurts perplexity but improves accuracy and BLEU.
Language model
#
A model that estimates the probability of a piece of text. Modern LLMs use the chain rule to split the joint probability into per-token conditional probabilities P(x_t | x_<t).
Language-consistency reward
#
A reward term DeepSeek-R1 adds in its first RL stage: the share of target-language words in the chain of thought, which discourages mixing Chinese and English. The paper's own ablation shows it lowers performance slightly in exchange for output that reads better and matches human preference; it is applied to both reasoning and non-reasoning data.
Latent action
#
An action representation learned from video when no action labels exist. GR00T N1 trains a VQ-VAE whose encoder reads the current and a future frame and outputs a latent action; the decoder rebuilds the future frame from it. The encoder then acts as an inverse dynamics model, and its continuous embedding before quantization is the pretraining action label, for a virtual embodiment called LAPA.
Latent diffusion model LDM
#
Rombach et al. (2021): a pretrained autoencoder compresses images into low-dimensional latents, the diffusion model is trained only in that latent space, and a decoder maps the result back to pixels. The latent grid is smaller (a 256×256×3 image becomes 32×32×4), so each denoising step is far cheaper; Stable Diffusion works this way. Image quality is capped by the autoencoder's reconstruction.
Layer normalization
#
Normalizing each token's feature vector to zero mean and unit variance, then applying a learned scale and shift, to stabilize training. Modern LLMs usually apply it before each sublayer (Pre-LN).
Learning-rate schedule
#
How the learning rate changes over training steps. LLMs commonly use linear warmup followed by cosine decay: a rise to the peak over a few hundred to a few thousand steps, then a slow decline to about 10% of the peak.
Learning-rate warmup
#
Starting training with a very small learning rate that rises to a peak before the decay schedule begins. A common explanation is that Adam's early second-moment estimates are unreliable, so large steps can diverge; deep post-norm models depend on it most. The Transformer paper's schedule is d_model^-0.5 · min(step^-0.5, step · warmup^-1.5), with 4000 warmup steps.
The ability of a model to keep working on sequences longer than any seen in training. Learned absolute position embeddings have no trained vector for unseen positions and simply fail; sinusoidal encodings and RoPE can compute any position, but being computable is not the same as being usable, and position interpolation, YaRN or further training are usually needed.
Lethal trifecta
#
A summary due to Simon Willison (2025): an agent that can read private data, is exposed to untrusted content and can communicate externally can be steered by indirect prompt injection into sending the private data out. Remove any one of the three and the theft chain breaks.
Lightning indexer
#
The scoring module inside DSA: for a query token t and an earlier token s, I(t,s) = Σ_j w(t,j)·ReLU(q(t,j)·k(s)). In V3.2 it has 64 heads of 128 dimensions and can run in FP8. It uses ReLU and per-head weights instead of a softmax, which makes it fast; it is trained with a KL divergence to match the dense attention distribution, and at inference the top-k tokens are kept.
Likelihood displacement
#
In DPO training the probability of the chosen answer often falls too, because the loss drops whenever the gap between chosen and rejected probabilities widens. Mass can move to other answers, even ones of opposite meaning (Razin et al., 2024), most easily when a pair has a small edit distance (Pal et al., 2024). Remedies: an NLL term on the chosen answer (Llama 3 uses 0.2) or DPO-Positive.
Linear attention
#
Attention without the softmax. The history accumulates into a fixed-size state matrix, S_t = S_{t−1} + k_t v_tᵀ, and the output is o_t = S_tᵀ q_t, so the cost per step at inference does not depend on how much has been read, and training can use parallel or chunkwise matrix operations. The price is limited capacity, about the key dimension: items beyond it interfere with each other.
Linear probe
#
The standard way to evaluate a pre-trained representation: freeze the model, train only a linear classifier (often L2-regularized logistic regression) on the features it outputs, and read the test accuracy as a measure of the features themselves, so fine-tuning cannot paper over weak features. The CLIP paper uses it to compare 66 models on 27 datasets.
LLaVA-Bench
#
The multimodal chat benchmark from the LLaVA paper: a COCO subset (30 images, 90 questions) and an In-the-Wild subset (24 images, 60 questions). A text-only GPT-4 judge, given ground-truth descriptions, scores a candidate and a reference answer from 1 to 10; the benchmark reports the relative score, not accuracy. It is small: one model's overall score varies by 2.0 points (std) over three runs.
LLM workflow
#
An LLM application whose step order is fixed in code, with the model handling only some of the steps, such as “retrieve, then answer”. The counterpart of an agent, which decides its own next step in a loop; easier to predict, debug and evaluate.
LLM-as-a-judge
#
Using a strong model to score or compare another model's answers. It is far cheaper than human evaluation but suffers from position bias, length preference and self-preference; Zheng et al. analyzed these biases systematically in 2023.
Locality-sensitive hashing
#
A family of hashes that put similar objects in the same bucket with high probability, avoiding all-pairs comparison. In the banding scheme for MinHash, k values form b bands of r values and a pair is flagged when any band matches in full: probability 1−(1−s^r)^b at Jaccard similarity s, an S-curve steepest near (1/b)^(1/r). FineWeb's 14 bands of 8 rows flag pairs at 0.75 about 77% of the time.
Logit lens
#
A read-only method (nostalgebraist, 2020): decode an intermediate residual stream with the final norm and the unembedding matrix to see which token the model currently favours. On GPT-2 it approaches the final prediction roughly monotonically, but early layers read out badly; the tuned lens (Belrose et al., 2023) trains an affine map per layer. It only reads, so it cannot prove causation.
Logits
#
The unnormalized scores produced by the final layer, one per vocabulary entry. They become probabilities only after a softmax.
Long short-term memory LSTM
#
A gated recurrent network (Hochreiter and Schmidhuber, 1997): besides the hidden state it has a cell state, with gates (the common version has input, forget and output gates) controlling writing, keeping and reading, so gradients can flow through many steps along the cell state and long dependencies are handled better than in a plain RNN.
Lookahead search
#
A variant of beam search that scores a candidate step by rolling forward k more steps and taking the process reward model's score at the end of the rollout; k=0 is plain beam search. It is Monte Carlo tree search without random exploration and costs about N×(k+1) generations. Snell et al. (2024) find it usually does worse than beam search at equal budget and blame the extra rollout compute.
LoRA
#
Freezes the original weights W and trains only two low-rank matrices A and B, representing the update as ΔW = BA with rank r far smaller than the dimension. The trainable parameters are a tiny fraction of the model, and BA can be merged back into W at inference. Proposed by Hu et al. in 2021.
Loss masking
#
Computing the supervised fine-tuning loss only on the response tokens: the labels of the prompt are set to -100 (PyTorch's cross-entropy skips that value), so the gradient comes only from what the model has to learn to write. The end-of-sequence token after the response normally counts in the loss, because it is how the model learns where to stop.
Loss scaling
#
A fix for FP16 training: multiply the loss by a large factor before backpropagation so tiny gradients land inside the FP16 range instead of underflowing to zero, then divide the gradients back before the update. Dynamic loss scaling skips the step and lowers the factor on an inf or NaN, and raises it after a run of normal steps. BF16 has FP32's exponent range and usually does not need it.
Loss spike
#
A sudden jump in training loss that may recover or may diverge. Typical triggers are a learning rate that is too high, a bad batch of data and numerical overflow in low precision; common mitigations are gradient clipping, learning-rate warmup, and skipping the bad batch or rolling back to an earlier checkpoint.
Lost in the middle
#
A positional bias in how language models use a long context: information at the beginning or end is used best and information in the middle worst, so accuracy plotted against position forms a U. Liu et al. (2023) measured a 22.0-point gap between the best and worst position for GPT-3.5-Turbo in multi-document QA with 20 documents.
LTI SSM
#
A state space model whose parameters (Δ, A, B, C) are the same at every time step. Its output is the input convolved with one fixed kernel, so training can use convolution and inference a recurrence over a fixed-size state; S4, H3 and Hyena are of this kind. It treats inputs by position, not by content: one kernel acts everywhere, so it cannot choose what to remember or forget.
M
Majority voting
#
Sample k answers to the same question, take the most frequent final answer as the answer to that question, and report the accuracy; often written maj@k. Unlike pass@k (a question counts as solved if any one of k samples is right), it measures how stable the model's answers are. GSM8K and MATH scores often use majority voting and cannot be compared directly with single-sample scores.
Mamba
#
A selective state space model proposed by Gu and Dao in 2023: its parameters depend on the input, and sequence modeling cost grows linearly with length.
Manifold-constrained hyper-connections mHC
#
DeepSeek's late-2025 refinement of hyper-connections: it constrains the matrix that mixes the n residual streams to be doubly stochastic, using a Sinkhorn-Knopp projection, so the gain of composed layers stays bounded and the identity property returns. Kernel fusion, recomputation and communication overlap hold the extra training time to 6.7% at n=4 (as reported).
Many-shot jailbreaking
#
A jailbreak that exploits long context: stuffing the prompt with dozens to hundreds of fabricated dialogues in which an assistant complies with harmful requests, then asking the real one. Anthropic reported in 2024 that the success rate rises with the number of examples following a power law.
Masked language modeling MLM
#
BERT's pre-training objective: pick 15% of the tokens, replace 80% of them with [MASK], 10% with a random token and keep 10% unchanged, then recover the originals from both sides of the context, with the loss only at the chosen positions. It sees both directions, but only about 15% of positions give a training signal, and [MASK] never appears in fine-tuning.
Master weights
#
The FP32 copy of the weights that the optimizer keeps in mixed-precision training. Forward and backward passes use a low-precision (FP16 or BF16) copy, while updates accumulate in the FP32 master weights and are cast back down, so the small update of each step is not swallowed by low-precision rounding.
Mechanistic interpretability
#
The research program of reverse-engineering a trained neural network into an algorithm people can read: find the features it represents and the circuits of components that read and write them, then test that account with interventions such as patching and ablation. Wang et al. (2022) found a 26-head circuit for indirect object identification in GPT-2 small.
Membership inference
#
Deciding whether a specific example was in a model's training set, usually by comparing the model's loss or per-token probabilities on it with a reference: trained-on text tends to get a lower loss. Used to audit privacy and to detect benchmark contamination. Duan et al. (2024) found that in large-scale pre-training settings many methods beat guessing only slightly.
Memorization
#
A model storing specific pieces of its training data in its weights so that a suitable prompt makes it write them out verbatim. Some is harmless (facts, boilerplate), some a privacy or copyright risk (phone numbers, keys, copyrighted text). More copies, larger models, longer prompt context and stronger training make it more visible; an unchanged validation loss does not rule it out.
Memory-bound
#
Speed that is limited by how fast data (such as weights and the KV cache) can be read, rather than by arithmetic throughput. Small-batch decoding is the classic example.
Min-K% Prob
#
A membership-inference score that needs no reference model: take the K% lowest per-token log-probabilities of a text (for example the lowest 20%) and average them. Text seen in training rarely contains very unlikely tokens, so its average is higher. Shi et al. (2023) report a 7.4% improvement over earlier methods on their WikiMIA benchmark.
MinHash
#
A signature method for estimating the Jaccard similarity of two sets: apply several hash functions and keep, for each set, the minimum hash value under each function. The probability that two sets agree at one position of the signature equals their Jaccard similarity exactly. Combined with locality-sensitive hashing (LSH) buckets, it finds near-duplicate texts without comparing every pair.
Mixed-precision training
#
Running the forward and backward passes in BF16 or FP16 for speed and memory, while keeping FP32 master weights and optimizer states for numerical stability.
Mixture of Experts MoE
#
Replacing the FFN with several expert networks and a router, so each token activates only a few of them. The total parameter count is large while the compute per token stays small. Used by Mixtral, DeepSeek-V3 and others.
MMLU
#
A multitask multiple-choice benchmark by Hendrycks et al. covering 57 subjects, used to measure broad knowledge and problem solving.
Model averaging
#
Average the parameters of several checkpoints or runs to get the final model, which usually improves robustness at no inference cost; the models generally need to start from the same checkpoint. Llama 3 averages checkpoints in pre-training annealing and, at each post-training stage (reward model, SFT, DPO), models trained with different data versions or hyperparameters.
Model collapse
#
What happens when each generation of a model is trained on the previous generation's output: the tail of the distribution vanishes and the output grows uniform. The cause is finite-sample resampling: a symbol of probability p is missing from n samples with probability (1-p)^n, and once gone it stays gone. Accumulating real data, or mixing in fresh real data each generation, prevents it.
Model Context Protocol MCP
#
An open protocol released by Anthropic in November 2024 (donated in December 2025 to the Linux Foundation's Agentic AI Foundation) that standardizes how AI applications discover and call tools, read resources and use prompt templates from external systems, so a server works with any client. Built on JSON-RPC 2.0, it covers only context exchange; the 2026-07-28 revision made connections stateless.
Model FLOPs utilization MFU
#
The useful FLOPs implied by the measured training throughput divided by the hardware's theoretical peak. The numerator counts only the operations the model needs for forward and backward, not recomputation. Reported values for large runs are mostly 30% to 50%: 46.2% for PaLM 540B, 38% to 43% for Llama 3 405B.
Model-based filtering
#
Scoring documents with a model and keeping those above a threshold. A common recipe has a strong LLM label a sample, trains a cheap classifier on the labels (say, a frozen embedding model plus a linear head), then scores everything. FineWeb-Edu had Llama-3-70B-Instruct rate 460,000 pages for educational value (0 to 5); threshold 3 kept 1.3T tokens. The labeler's tastes reshape the topic mix.
Modular RAG
#
The third RAG paradigm in Gao et al.'s survey: RAG split into replaceable, re-orderable modules instead of a fixed retrieve-then-read chain. New modules include search, memory, routing, predict and task adapter (plus RAG-Fusion), and flows may loop iteratively, recursively or adaptively. It builds on the first two paradigms and combines more easily with fine-tuning and reinforcement learning.
Monte Carlo tree search MCTS
#
A family of decision-search algorithms built on repeated simulation. Each simulation starts at the root, follows a selection rule down to a leaf, evaluates the leaf and backs the result up the path, and the visit counts of the branches finally guide the decision. AlphaZero's selection rule favors moves with a high prior, a high value and few visits, and a neural network evaluates the leaves.
MT-Bench
#
A multi-turn conversation benchmark by Zheng et al.: 80 questions, 10 in each of 8 categories (writing, roleplay, extraction, reasoning, math, coding, STEM knowledge and humanities knowledge), two turns each, scored or compared by a judge model.
Multi-head attention MHA
#
Running attention in several subspaces in parallel, then concatenating the results and applying a linear projection. Different heads can attend to different kinds of relations.
Multi-head latent attention MLA
#
An attention variant introduced in DeepSeek-V2 that compresses keys and values into a low-dimensional latent vector before caching them, shrinking the KV cache substantially.
Multi-query attention MQA
#
All query heads share a single key/value head, which shrinks the KV cache to 1/h of multi-head attention at a small cost in quality. Proposed by Shazeer in 2019.
Multi-token prediction MTP
#
A training objective that predicts not only the next token but also the 2nd, 3rd, ... token after each position. DeepSeek-V3 implements it with sequential MTP modules that keep the full causal chain and uses one extra depth; at inference the modules can be dropped or reused as the draft of speculative decoding.
Multilayer perceptron MLP
#
A network of linear layers alternating with elementwise nonlinear activations. Without the nonlinearity, several linear layers collapse into one; the feed-forward network (FFN) in each Transformer block is a two-layer MLP.
Multimodal RoPE M-RoPE
#
The position encoding introduced with Qwen2-VL: the RoPE position is split into time, height and width components. A text token has identical components, which makes it equivalent to ordinary RoPE; an image token's height and width components follow its row and column, and video also varies the time component.
Muon
#
An optimizer for 2-D weight matrices (Jordan et al., 2024): average the gradient with momentum, approximately orthogonalize the momentum matrix with a few Newton-Schulz iterations, and use the result as the update. Other parameters, such as norm weights, usually stay on AdamW. Rescaling each update to a fixed RMS (0.18 in DeepSeek-V4.1-Flash) lets it reuse AdamW's learning rate.
MuZero
#
A reinforcement-learning system that learns planning-relevant latent dynamics, reward, value and policy without known environment rules, then plans with MCTS.
N
N-gram overlap
#
Flagging an evaluation item as contaminated when any run of N consecutive words (or characters) in it also appears in the training data. A small N flags nearly every item because templates share short spans; a large N misses leaks that were lightly rewritten. The GPT-3 paper chose N per benchmark as the 5th percentile of item length in words, clamped to the range 8 to 13.
Naive RAG
#
The first RAG paradigm in Gao et al.'s survey: documents are chunked, embedded and stored in a vector database (indexing); the query is embedded and the top-k most similar chunks are fetched (retrieval); query and chunks go into one prompt for the model (generation), in a single pass. Weaknesses: limited retrieval precision and recall, unsupported statements, redundant or disjointed assembly.
Native sparse attention
#
Attention whose sparse pattern participates in training. NSA combines global compression, selected blocks and a local window with hardware-aligned execution.
Needle in a haystack NIAH
#
A long-context test that hides a trivial fact (the needle) at some depth in a long stretch of distractor text (the haystack) and asks the model to retrieve it. It is cheap and intuitive, but it only tests retrieval and most models score near full marks inside their window, so it is usually paired with multi-task benchmarks such as RULER.
Negative rejection
#
One of the four RAG abilities: when the retrieved documents lack the knowledge needed, the model should decline instead of inventing an answer. RGB's test set contains only noise documents, and an instruction asks for a fixed rejection sentence; producing it counts as a rejection, and the share of successes is the rejection rate. Real search often fails to return a document with the answer.
Neural trajectory
#
A robot trajectory video synthesized by a video generation model: an image-to-video model is fine-tuned on real teleoperation data, prompted with new initial frames and instructions, and the filtered videos get latent-action or IDM labels. GR00T N1 stretches 88 hours of real data into 827 hours (about 300k clips); the paper ablates it only in post-training, adding 4.2 to 8.8 points on RoboCasa.
Next-sentence prediction NSP
#
BERT's second pre-training task: given spans A and B, half the time B truly follows A (IsNext) and half the time it is a random span (NotNext); the output at [CLS] makes a binary decision. RoBERTa and others found that dropping it does not hurt: a random span usually has another topic, so the task can be solved by matching topics, without learning sentence order.
Next-token prediction
#
Predicting the probability distribution of the next token given the preceding text. It is the core task of pretraining, and generating text means repeating this step until the end.
Noise robustness
#
One of four RAG abilities defined by the RGB benchmark: answering correctly when retrieved documents include noise, meaning documents related to the question but without the answer. RGB gives each question 5 documents and raises the noise ratio from 0 to 0.8; models confuse similar information, for example misled by reports on the 2021 Nobel Prize in Literature when asked about 2022.
Noise schedule
#
The sequence that sets how much noise each diffusion step adds, written as per-step variances β_t or the cumulative signal fraction ᾱ_t. DDPM uses T=1000 steps with β rising linearly from 1e-4 to 0.02, leaving ᾱ_T near 4e-5, so the data ends up almost pure noise. Improved DDPM noted that the tail of this linear schedule is nearly pure noise already and proposed a gentler cosine schedule.
Normalized latency
#
The end-to-end latency of a request divided by its number of output tokens, averaged over all requests. Serving papers plot it against the request rate: once the rate exceeds what the system can handle the queue grows without bound and the curve explodes, so the system that holds out to a higher rate has the higher throughput.
P
Paged optimizer
#
Allocates optimizer states in pageable memory using NVIDIA unified memory: when the GPU runs out of memory the states are evicted to CPU RAM automatically and paged back for the parameter update. QLoRA uses it to survive the memory spikes that long sequences cause during gradient checkpointing.
PagedAttention
#
vLLM's KV cache manager: the cache is cut into fixed-size blocks allocated on demand, like operating-system paging, which nearly eliminates fragmentation and allows prefix sharing.
Parallel sampling
#
Generating several random samples for one prompt so that the user can pick one. The samples share the KV cache of the prompt but not of what each of them generates; the block sharing of vLLM keeps a single copy of the prompt's cache.
Parallel scan
#
A way to evaluate a linear recurrence h_t = a_t h_{t−1} + b_t in parallel. Two consecutive steps merge into one step of the same kind, (a₂, b₂) ∘ (a₁, b₁) = (a₁a₂, a₂b₁ + b₂); the operation is associative, so T steps need about log₂T rounds of pairwise merging. Mamba uses it to train in parallel when its parameters depend on the input and a convolution is not possible.
Parameter-efficient fine-tuning PEFT
#
A family of fine-tuning methods that train only a small number of added or selected parameters and freeze the rest, including LoRA, adapters and prefix tuning.
pass@k
#
A code-generation metric: generate k solutions per problem, count the problem as solved if any one passes all unit tests, and report the fraction of problems solved. HumanEval (164 problems) uses it.
pass^k
#
A reliability metric for agents: run each task k times independently and count it as passed only if all k runs succeed, then average over tasks. The larger k, the stricter it is, the opposite of pass@k (any one success). Proposed by τ-bench.
PD disaggregation
#
Deploying prefill (compute-bound, sets the time to first token) and decoding (bandwidth-bound, sets the per-token latency) on separate instance pools, each provisioned for its own resource profile, with the KV cache shipped over the network in between. The gain is measured as goodput under both latency constraints; under light load or tight networks it may not pay off.
Per-word perplexity
#
Perplexity computed by dividing the total negative log-likelihood of a text by its number of words rather than subword tokens, then exponentiating. Tokenizers cut different numbers of tokens, so per-token perplexities cannot be compared across models and per-word ones can. The WikiText-2 test set has 241,211 words in 4,358 rows; the usual count of 245,569 units adds one end-of-line per row.
Perplexity
#
The exponential of the average negative log-likelihood per token: PPL = exp(−(1/N) Σ log P(x_t | x_<t)). Lower means the text is less surprising to the model; it is only comparable between models that share a tokenizer.
PF-day
#
A unit of training compute: running at 10^15 floating-point operations per second for one full day, i.e. 10^15 × 24 × 3600 = 8.64 × 10^19 FLOPs. The scaling-law paper by Kaplan et al. measures training compute in PF-days.
Pipeline bubble
#
The idle time in pipeline parallelism caused by dependencies between stages. With the GPipe schedule, p stages and m micro-batches leave a fraction (p−1)/(m+p−1) of the time idle, so more micro-batches mean a smaller bubble.
Pipeline parallelism
#
Splitting the model by layers into stages on different devices and feeding micro-batches through them so the stages work at the same time, which reduces idle "bubbles".
Policy gradient
#
Maximizing the expected reward J(θ) by following its gradient with respect to the policy parameters. The key identity is ∇J = E[R·∇log π_θ]: raise the log-probability of responses that scored well and lower it for those that did not. It needs only samples and scores, not a differentiable reward, but the sample estimate is very noisy, so a baseline is always subtracted.
Policy lag
#
The gap between the behavior policy that generated a trajectory and the learner's policy when it consumes it. Track version differences separately from probability ratios or other measures of policy drift.
Polysemanticity
#
A neuron that activates on several semantically unrelated inputs or features; the opposite is monosemanticity. Superposition is one explanation: features are directions in activation space spread across many neurons, so no single neuron matches one feature. Sparse autoencoders try to decompose polysemantic activations into monosemantic directions.
Position bias
#
A judge model's tendency to prefer the answer in a certain slot, most often the first. After swapping the order of two similar answers, GPT-4 gave a consistent verdict in only 65.0% of cases. The usual fix is to judge twice with the order swapped and count a win only if both agree.
Position interpolation PI
#
Divides every position index by the extension factor s (equivalently, every RoPE frequency by s), so a longer sequence falls back inside the range of angles seen in training, followed by a short fine-tune on long sequences. The price is lower local resolution on the high-frequency dimensions. Proposed by Chen et al. in 2023.
Positional encoding
#
A way to give the model information about token order, which attention alone does not have. Common schemes are sinusoidal, learned, relative and rotary (RoPE) encodings.
Post-norm
#
Placing layer normalization after the residual addition, LayerNorm(x + Sublayer(x)), as in the original Transformer. Deeper post-norm models depend more on learning-rate warmup to train stably; since GPT-2, mainstream models normalize before each sublayer instead (Pre-LN).
Post-training
#
All the stages after pretraining that make a model useful and controllable, including supervised fine-tuning, preference optimization and reinforcement learning.
Power law
#
A relation of the form y ∝ x^(-α): every time x grows by a fixed factor, y is multiplied by a fixed factor, which is a straight line on log-log axes. In scaling laws the loss follows power laws in parameters, data and compute; the exponents are small, so returns diminish but stay predictable.
PPO-ptx PPO-ptx
#
A PPO variant from InstructGPT that, while optimizing the reward, adds the gradient of the log-likelihood on the pretraining distribution, scaled by a coefficient γ (27.8 in the paper), to the same update to reduce the alignment tax. The paper found it more effective than simply raising the KL coefficient.
Prefill and decode
#
The two phases of inference: prefill processes the whole prompt in parallel and is compute-bound; decode generates tokens one by one and is limited by memory bandwidth.
Prefix caching
#
Keeping the KV cache of a prompt prefix that has already been computed, so that a later request whose first tokens are identical can reuse it and compute only what follows. The output is unchanged and the time to first token drops sharply.
PreNorm dilution
#
In a PreNorm network only each sublayer's input is normalized; the residual stream is not, and layer outputs are added with weight 1. The Attention Residuals paper argues the stream's magnitude grows with depth (it says O(L)), so later layers must learn ever larger outputs to matter, earlier contributions are diluted, and none can be recovered alone. It motivates weighted aggregation.
Pretraining
#
Training a model on massive amounts of unlabeled text with next-token prediction, producing a base model with broad language and knowledge abilities.
PRM800K
#
The process supervision dataset released by OpenAI with Let's Verify Step by Step: humans labeled each step of math solutions as positive, negative or neutral, and the training portion has about 800K step labels over 75K solutions to 12K problems. Solutions were picked by active learning, favoring cases the current best PRM rates highly although the final answer is wrong.
Process reward model PRM
#
A reward model that scores each step of a reasoning chain instead of only checking the final answer (outcome supervision). It gives reinforcement learning a finer signal but needs every step to be labeled or estimated, which costs more. DeepSeekMath plugs it into GRPO: a step's advantage is the sum of the normalized rewards of that step and all later steps.
Having the model write code that calls the tools, instead of emitting tool calls one by one: intermediate results stay in a sandbox and only the final result returns to the model's context. Anthropic's November 2025 post reports an example that dropped from 150,000 to 2,000 tokens (vendor-reported). The price is a safe execution environment and a larger attack surface than single calls.
A way to manage context when there are many tools: give the model a short catalog or a search tool first, and load a tool's full definition only when needed, instead of listing every definition up front. MCP client best practices suggest it once tool definitions exceed a share of the context window (examples: 1% to 5%); common implementations use BM25 keyword search, embedding search or subagents.
Projector
#
The small module that maps the vision encoder's output vectors to the language model's hidden size: LLaVA uses one linear layer, LLaVA-1.5 and the Qwen-VL models use a two-layer MLP (the latter also merge each 2×2 group of neighbouring patches first). It holds a fraction of a percent of the parameters, yet decides whether the language model can make use of the image.
Prompt engineering
#
Designing and iterating the instructions, examples and context given to a model so it reliably produces the desired result.
Prompt ensembling
#
A zero-shot trick: write several sentences for one class from different templates (for example "a photo of a big {}."), encode them, average the vectors in embedding space and renormalize to get the class vector. The class vectors are computed once, so inference costs the same as with one template. CLIP ensembles 80 templates on ImageNet, 3.5% above the single default prompt.
Prompt injection
#
An attack that smuggles instructions into content the model reads to make it act against the developer's intent. Direct injection comes from user input; indirect injection hides in untrusted content such as web pages, documents, emails or tool results, and was analyzed systematically by Greshake et al. in 2023.
Proximal policy optimization PPO
#
A reinforcement learning algorithm that limits each update by clipping the probability ratio between the new and old policy. Common in RLHF, where it needs a policy, a reference, a reward and a value model at the same time.
R
R1-Zero
#
The pure-RL model in the DeepSeek-R1 paper: it starts from DeepSeek-V3-Base, does no supervised fine-tuning at all in post-training, and uses only rule-based rewards (answer accuracy plus format) with GRPO. AIME 2024 pass@1 rises from 15.6% to 77.9% (arXiv v2) and responses keep growing, but readability is poor and Chinese and English mix, which led to R1's four-stage pipeline.
RAG quality scores
#
The three quality scores in Gao et al.'s survey: context relevance (is the retrieved content precise), answer faithfulness (does the answer stay true to the context, without contradiction) and answer relevance (does it address the question). RAGAS, ARES and TruLens use an LLM to score them; the survey admits such metrics are not yet mature or standardized.
ReAct
#
An agent pattern that interleaves reasoning and acting: the model writes a thought, calls a tool, reads the observation and continues. Proposed by Yao et al. in 2022.
Reasoning model
#
A model trained with reinforcement learning and similar methods to produce a long chain of thought and check itself before answering, such as OpenAI o1 and DeepSeek-R1.
Reasoning-effort control
#
A recipe that lets one model run at several reasoning budgets: a scalar b (1 to 100) goes into the system prompt, each prompt is sampled at several b, and rewards are centered only inside each (prompt, b) subgroup. Levels differ through a length penalty −min(C_max, k(b)·ℓ/L_norm) with k(b) decaying exponentially in b. DeepSeek-V4.1-Flash's API tiers max, high, low map to b=100, 75, 50.
Receding-horizon planning
#
Planning several actions ahead from the latest state, executing an initial action or short segment, then using new observations to plan again.
Rectified flow
#
Flow-matching formulation of Liu et al. (2022): take the straight line between noise and data, regress its velocity, and sample by integrating the ODE. Reflow is its iterative step: pair each noise vector with the ODE endpoint of the current model and retrain on those pairs, which straightens trajectories so very few steps suffice. Stable Diffusion 3 trains with this straight-path objective.
Recurrent neural network RNN
#
A network that reads a sequence one step at a time: the hidden state h_t = f(h_{t−1}, x_t) compresses the past into a vector of fixed size. It suits sequences naturally but cannot be parallelized over time, information from far back must pass through many steps, and training runs into vanishing gradients.
The world-model structure of the Dreamer family: a deterministic recurrent state h remembers the history and a stochastic discrete latent z represents the current observation. h predicts z as a prior, the observation yields a posterior, and a KL term pulls the two together; rewards, episode continuation and reconstructions come from h and z, so imagination runs purely in latent space.
Red teaming
#
Deliberately building inputs that try to elicit harmful output, to test a model and expose its weak points; the attackers can be crowdworkers, experts or another model. Constitutional AI used 182,831 red-team prompts: 42,496 written by people in human red-teaming runs and 140,335 generated by a pretrained model from a few examples.
Reduce-scatter
#
A collective primitive: n devices each hold N values; the values are summed elementwise and the result is cut into n shards, each device keeping one shard of size N/n. Followed by an all-gather it equals an all-reduce; ZeRO and FSDP use it to sum gradients and shard them in one step.
Reference model
#
The baseline model pi_ref in RLHF and DPO, usually the frozen SFT model. The KL penalty measures how far the new policy has moved from it, and the implicit reward is defined relative to it; a larger beta keeps the policy closer. Preference data should come from it or a close model; without an SFT model, DPO first maximizes the likelihood of the chosen answers to obtain one.
REINFORCE
#
The most basic policy-gradient algorithm (Williams, 1992): sample whole responses, weight the gradient of each one's log-probability by its score, and average. It needs no value model and is the simplest to implement, but without a baseline its variance is the largest. RLOO is REINFORCE with a leave-one-out baseline.
REINFORCE Leave-One-Out RLOO
#
Samples G responses to a prompt and uses the mean reward of the other G−1 as each response's baseline. The baseline does not depend on the response itself, so the gradient is unbiased and no value model is needed. Proposed by Kool et al. (2019) and applied to RLHF by Ahmadian et al. (2024). Subtracting the plain group mean gives exactly (G−1)/G of its expected gradient.
Reinforcement learning from human feedback RLHF
#
First train a reward model from human preference data, then optimize the language model with reinforcement learning (usually PPO) to earn higher reward, with a KL penalty keeping it close to a reference model. The standard recipe of InstructGPT.
Reinforcement learning with verifiable rewards RLVR
#
Reinforcement learning whose reward comes from rules that can check an answer automatically, such as whether a math answer is correct or code passes its tests, which avoids reward models being gamed. A key method for training reasoning models.
Rejection sampling fine-tuning
#
For each prompt, sample several answers from the best current model (10 to 30 in Llama 3), let a reward model pick the best, and fine-tune on it with SFT. Unlike best-of-N, which only selects at inference time, it trains the chosen answers into the model and can be iterated. Llama 3 made it a main source of SFT data; PagedAttention more than doubled sampling throughput.
Reliability diagram
#
A plot for checking calibration: confidence bins on the x axis, actual accuracy within each bin on the y axis. Points on the diagonal mean calibrated, points below it mean overconfident and points above it mean underconfident.
Reranking
#
Re-scoring the candidates from a first retrieval pass with a more precise (and usually slower) model, so the most relevant ones come first.
Residual connection
#
Adding a sublayer's input directly to its output: y = x + f(x). It lets gradients flow back more easily, which makes very deep networks trainable.
Residual learning
#
A block learns a correction F(x) and returns F(x)+x through a skip connection. Identity paths make very deep networks easier to optimize in ResNet and Transformer.
Residual stream
#
The view of a Transformer as one shared vector per position: each attention head and MLP reads the residual stream and adds its own output back, and the logits come from the final residual stream through the final norm and the unembedding. The output then splits into per-component contributions, and every layer boundary at every position is a point that can be read or overwritten.
Retention
#
RetNet's sequence-mixing mechanism uses multi-scale decay in equivalent parallel, recurrent and chunkwise forms, enabling decoding with fixed-size state.
Retrieval granularity
#
The unit returned by one retrieval. For text, fine to coarse: token, phrase, sentence, proposition, chunk, document; on a knowledge graph: entity, triplet, sub-graph. Coarse units hold more information but more redundancy that distracts retriever and model; fine units add retrieval burden and may lose semantic completeness. A compromise, Small2Big, retrieves sentences and passes their neighbors.
Retrieval-augmented generation RAG
#
First retrieve relevant passages from an external knowledge base, then give them to the model together with the question, so answers are grounded and can use fresh or private knowledge. Proposed by Lewis et al. in 2020.
Return normalization
#
DreamerV3's treatment of the actor's returns: scale them by S, the gap between the 95th and 5th percentiles of the return batch (smoothed by an exponential moving average), with the divisor max(1, S). Percentiles are insensitive to outlier returns and the floor of 1 leaves small sparse returns untouched, so one entropy coefficient suits tasks whose rewards differ in scale and sparsity.
Return-conditioned supervised learning RCSL
#
A family of offline RL methods: fit the distribution of actions given the state and a desired return with supervised learning, then act by asking for a high return; no value function. Decision Transformer belongs here. It needs stronger assumptions than dynamic programming to be optimal (Brandfonbrener et al., 2022) and can be misled by luck in stochastic environments (Paster et al., 2022).
Returns-to-go RTG
#
The sum of rewards from the current time step to the end of the trajectory. Decision Transformer feeds it to the model as a condition instead of the rewards themselves, since an action should depend on how much return is still wanted, not on how much was collected. At inference a target return is set and reduced by each reward received. Rewards 0, 1, 2 give returns-to-go of 3, 3, 2.
Reward hacking
#
When a model exploits loopholes in the reward function or reward model to score high without actually doing the task.
Reward model
#
A model that assigns a scalar score to a prompt and response pair, trained on human preference pairs (better versus worse); in RLHF it stands in for human preferences.
Reward model ensemble
#
Train several reward models and combine their scores into one reward to curb overoptimization. Common aggregations are the mean, the minimum (worst-case optimization, WCO) and the mean minus λ times the variance (uncertainty-weighted optimization, UWO; Coste et al., 2024). The mean is not conservative: if one member overestimates a response, the policy can still exploit it.
Reward overoptimization
#
The effect where optimizing harder against a reward model’s score keeps raising the score (the proxy reward) while independently measured true quality first rises and then falls. Gao et al. (2022) used a larger “gold” reward model as the truth and found the gold score under best-of-N follows R(d)=d(α−βd), with d the square root of the KL; extremal Goodhart effects mainly account for the β term.
RewardBench
#
A benchmark for reward models themselves (Lambert et al., 2024): prompt-chosen-rejected trios covering chat, hard chat, safety and reasoning (code and math), scored by how often the reward model ranks the chosen response above the rejected one; it can also score DPO’s implicit reward.
Ring all-reduce
#
Arrange n devices in a ring: n−1 steps of reduce-scatter, then n−1 steps of all-gather, each step talking only to a neighbor. Each device sends about 2(n−1)/n times the data size in total, which barely grows with n and is optimal for bandwidth; the drawback is latency growing linearly with n.
RLAIF
#
Reinforcement learning from AI feedback: the reward model's preference labels come from a language model, not people. In Constitutional AI the feedback model reads two answers as a multiple-choice question, picks the better one under a written principle, and the normalized option probability becomes a soft label. People supply the principles and, in that paper, the helpfulness labels.
RMSNorm
#
A simplified layer normalization that divides by the root mean square of the features and does not subtract the mean, which is cheaper to compute. Used by Llama and others.
Roofline model
#
A performance model for deciding what limits an operator: attainable throughput = min(peak compute, arithmetic intensity × memory bandwidth). Plotted against arithmetic intensity it looks like a roof: a sloped part where bandwidth limits and a flat part where compute limits, meeting at the ridge point, peak compute divided by bandwidth.
Rotary position embedding RoPE
#
Rotates each pair of dimensions of the query and key vectors by an angle proportional to the position, so that their dot product depends only on relative distance. Proposed by Su et al. in 2021 and widely used by Llama, Qwen and DeepSeek.
Router
#
The small network in a mixture-of-experts model that scores each token and picks its top-k experts. It usually needs a load-balancing loss or a similar mechanism to stop all tokens from piling onto a few experts.
Routing Replay
#
A way to stabilize reinforcement learning of MoE models: cache the experts the old policy activated and replay those routes when computing the new policy's importance ratios. The Qwen team reports that on Qwen3-30B-A3B-Base about 10% of the experts activated for a response change after each update, and GRPO does not converge without it. GSPO does not need it.
S
Scaled dot-product attention
#
The standard form of attention: divide the dot products of Q and K by √d_k, apply softmax, and use the result to weight V. If the components are independent with mean 0 and variance 1, a dot product has variance d_k; without scaling, softmax approaches one-hot at large d_k and gradients vanish. Introduced in the 2017 Transformer paper.
Scaling law
#
The empirical regularity that model loss falls smoothly as a power law in parameters, data and compute. Kaplan et al. described it systematically in 2020, and Hoffmann et al. (Chinchilla, 2022) revised the optimal balance between parameters and data.
Score function
#
The gradient of the log density with respect to the data, ∇ₓ log p(x), which points in the direction in which probability grows fastest. In a diffusion model, predicting the noise at noise level t is equivalent to estimating the score: the optimal noise prediction is ε* = −σ_t·∇ log p_t(x_t). Score matching and the DDPM noise-prediction loss are essentially the same regression problem.
Selection mechanism
#
Mamba's core change: the step size Δ, write matrix B and read matrix C of a state space model are computed from the current token instead of being fixed parameters. The model can then decide by content whether to write a token into the state or ignore it. The cost is that parameters vary with time, so the convolution form no longer applies and training needs a parallel scan.
Selective Copying
#
A synthetic task from the Mamba paper that tests content awareness: data tokens to remember are scattered among noise tokens at random positions, and the model must copy them in order. With fixed positions an LTI model solves it with a kernel of the right length; with random positions it must choose by content. In the paper's Table 1, S6 in a Mamba block gets 99.8% and LTI layers at most 57.0%.
Selective precision
#
Running only the numerically sensitive part of a computation in higher precision (such as float32) while the rest stays in bfloat16. The Switch Transformer runs the inside of its router in float32 and casts the results back to bfloat16, which avoids the divergence of pure bfloat16 training at nearly bfloat16 speed.
Self-attention
#
Each position in a sequence uses its query to match the keys of all positions and takes a weighted sum of their values, gathering context directly. Q, K and V all come from the same sequence.
Self-consistency
#
Sample several chains of thought for the same question at a higher temperature, read an answer off each, and return the most frequent answer (a majority vote). Proposed by Wang et al. in 2022; it needs no training but multiplies the inference cost. The ReAct paper uses CoT-SC with 21 samples as a baseline and lets ReAct and CoT-SC fall back on each other.
Self-training
#
Having a model answer unlabeled problems, filter its answers, and train on the result, over several rounds; STaR, ReST-EM and rejection-sampling fine-tuning are examples. Whether it improves depends on outside information in the filter: a reliable verifier lets it bootstrap new ability, while its own majority vote or no filter makes it learn its systematic errors as labels.
Sequence-to-sequence learning
#
An encoder-decoder paradigm for variable-length inputs and outputs. Early LSTM models used a fixed vector; attention later exposed every encoder state.
Sequence-to-sequence model
#
A framework in which an encoder reads the source sequence into a vector and a decoder generates the target sequence token by token (Sutskever et al., 2014; Cho et al., 2014), first built with RNNs. Squeezing a whole sentence into one fixed-length vector is its bottleneck, the problem attention was first introduced to solve.
Sequential revision
#
Letting the model rewrite its own earlier answer, which may be wrong, round after round, instead of sampling many answers independently in parallel. Off-the-shelf models rarely revise well from prompting alone, so it needs fine-tuning. Snell et al. (2024) find it slightly better than parallel sampling at equal budget, with the best sequential-to-parallel ratio depending on difficulty.
Shadow traffic
#
A deployment technique that duplicates real requests to a candidate while users receive the current version's responses. It exposes candidate latency, errors, and resource use, with writes or billing effects isolated.
Shared expert
#
An expert in DeepSeekMoE and DeepSeek-V3 that every token passes through without routing. It holds common knowledge and reduces redundancy among the routed experts; its output is simply added to the result.
Signal-to-noise ratio SNR
#
The ratio of signal power to noise power. In diffusion it measures the data relative to the noise in a noised sample: SNR(t) = ᾱ_t/(1−ᾱ_t), often in decibels; the linear DDPM schedule falls from 40 dB at t=1 to about −44 dB at t=1000. The noise-prediction loss equals the clean-sample loss weighted by the SNR, so parameterizations differ only in loss weighting.
Silent data corruption SDC
#
The hardware reports no error yet computes a wrong result, so data is silently altered in computation or transfer. In large-scale training it is harder to handle than a crash: the job keeps running and the error can slip into gradients and checkpoints. Llama 3's 54-day failure log lists 6 such interruptions, 1.4% of the unexpected ones, which the paper counts as suspected hardware issues.
Single-Pass mHC
#
DeepSeek-V4.1-Flash's rewrite of mHC that shifts the input-mixing coefficients by one block: block l mixes with the A predicted by block l-1, so mixing no longer waits for the current block's coefficients and each residual tile is read once. Activation traffic drops from (4n+4)d to the bound (2n+2)d in the Mega-mHC deployment kernel; pre-training keeps the multi-kernel code.
Singleton rate
#
The share of facts (or prompts) that appear exactly once in the training data, the quantity the Good–Turing method uses to estimate the probability mass of unseen facts. Kalai and Vempala showed that for arbitrary facts with no learnable pattern, a calibrated pretrained model must err on at least about this share.
Sink token
#
A dedicated learnable token at the start of every pre-training sample, so the model dumps surplus attention on it instead of on some content token. The StreamingLLM paper tested it at 160M parameters: this token plus a recent window gives a stable streaming perplexity (18.01), while the vanilla model needs 4 initial tokens to reach 18.05; 7 zero-shot benchmarks differ by at most 1 point.
Sinkhorn-balanced update
#
The optimizer DeepSeek-V4.1-Flash uses for its huge embedding, head and Engram matrices: after Nesterov momentum, the update matrix is normalized alternately along rows and columns in L2 for K steps (K=11 in the paper) and multiplied by √n, so its row and column RMS both end near 1. It needs one momentum buffer, where Adam would add a second-moment buffer.
Sinkhorn-Knopp algorithm
#
An algorithm that alternately normalizes the rows and columns of a positive matrix until it converges to a doubly stochastic matrix (Sinkhorn and Knopp, 1967). Stopped after finitely many iterations with row normalization last, it gives exact row sums and column sums with a residual that depends on the iteration count and the entry scale. mHC runs 20 iterations on exponentiated mixing logits.
Sinusoidal positional encoding
#
The fixed position encoding of the Transformer paper: dimension 2i is sin(pos / 10000^(2i/d_model)) and dimension 2i+1 is cos of the same angle, with wavelengths from 2π to about 10000·2π. Each sin-cos pair rotates with position, so PE(pos+k) is a linear function of PE(pos); the paper conjectured this helps learn relative positions and extrapolate to longer sequences.
Sliding-window attention
#
Each token attends only to the most recent w tokens, cutting attention cost from O(n²) to O(n·w); stacking layers still lets information travel further indirectly. Used by Mistral 7B.
Soft label
#
A training target that is a probability distribution rather than a hard 0 or 1. In distillation it is the teacher's output distribution; in Constitutional AI it is the feedback model's normalized probability for two options, used to train the preference model. The more extreme p is, the larger the reward gap ln(p/(1-p)) it demands, so near-0-or-1 chain-of-thought labels were clamped to 40-60%.
Softmax
#
The function that turns a vector of real numbers into positive numbers that sum to 1: softmax(z_i) = exp(z_i) / Σ_j exp(z_j). The larger the gaps between scores, the sharper the distribution.
SoftMax1
#
A softmax variant with an extra 1 in the denominator: SoftMax1(x)_i = exp(x_i) / (1 + sum_j exp(x_j)). It equals prepending a token whose key and value are all zero, so weights may sum to less than 1 and a head can attend to nothing rather than dump surplus weight on some token. Proposed by Evan Miller in 2023; StreamingLLM calls it Zero Sink. OpenAI's gpt-oss uses a learned denominator bias.
Span corruption
#
A denoising pre-training objective: about 15% of tokens are picked, each run of consecutive picked tokens is replaced by one unique sentinel, and the model outputs the dropped spans. T5 uses a mean span length of 3; the targets are shorter than with independent token corruption, so training is cheaper.
Sparse autoencoder SAE
#
An autoencoder that encodes a model's activation into a wider, sparser vector and rebuilds it with a linear decoder, to split a superposed activation into feature directions. Sparsity comes from an L1 penalty or a TopK cut keeping the k largest activations. Low reconstruction error does not mean the true features were found, and metrics can be fooled by random models (Heap et al., 2025).
The prediction of a test's reliability after lengthening it n times: ρ_n = nρ/(1+(n−1)ρ); inverted, reaching a target reliability ρ_t takes ρ_t(1−ρ)/(ρ(1−ρ_t)) times as many items. Reliability depends on how spread out the test-takers are: with the same 100 items, a pool of widely spread models has reliability 0.853 and a pool of close models only 0.334.
Speculative decoding
#
A cheap draft model proposes several tokens at once and the large model verifies them in parallel, accepting the correct prefix. The output distribution is identical to using the large model alone, but generation is faster.
State space model SSM
#
A sequence model that processes input through a recurrence over a fixed-size hidden state, so the cost per step at inference does not depend on sequence length. Mamba adds an input-dependent selection mechanism.
Stitching
#
An offline RL capability: combining good segments of several suboptimal trajectories into a policy better than any trajectory in the data. Q-learning has it because values propagate across states; methods that condition on whole-trajectory returns, such as Decision Transformer, usually lack it, and QDT adds it by relabeling returns with dynamic-programming results.
Streamable HTTP
#
The remote transport of MCP: the client sends JSON-RPC messages by HTTP POST and the server answers with JSON or an event stream; introduced in the 2025-03-26 revision to replace HTTP+SSE. The 2026-07-28 revision drops sessions, requires MCP-Protocol-Version, mirrors method and tool names into Mcp-Method and Mcp-Name headers that the server must check, and requires Origin validation.
StreamingLLM
#
A KV-cache policy that needs no fine-tuning: always keep the first few tokens (4 in the paper, the attention sinks) plus a sliding window of recent tokens, evict the rest, and assign positions inside the cache. The size is fixed, so the model does not break on unbounded text, but what left the window is gone: it neither extends the context nor strengthens memory. Xiao et al., ICLR 2024.
Strided perplexity
#
How to score a text longer than the context window: slide overlapping windows over it and count only the tokens that are new in each window, using the rest as context. A smaller stride gives every token more context and a lower perplexity at a higher compute cost. This page uses a 1024 window and a stride of 512, so apart from the start every token has at least 512 tokens of context.
Strong-to-weak distillation
#
Training small models from a large teacher's outputs instead of running the full post-training recipe on each. Qwen3 first fine-tunes on teacher outputs (off-policy), then lets the student write its own responses and minimises the KL divergence to the teacher's logits (on-policy). For an 8B model the paper reports 1,800 GPU hours against 17,920 for reinforcement learning.
Structured output
#
Constraining a model's output to a JSON Schema or grammar, usually by constrained decoding that masks tokens which would break the format at every step.
Suffix array
#
The sorted array of the starting positions of all suffixes of a sequence. Identical substrings end up adjacent, so one linear scan finds every repeated span of at least a given length. Lee et al. (2022) used it to find verbatim repeats of 50 or more tokens in C4 (ExactSubstr), removing 7.18% of its tokens and catching duplicates that whole-document methods miss.
Superficial Alignment Hypothesis SAH
#
The hypothesis from the LIMA paper (Zhou et al., 2023) that almost all of a model's knowledge and ability comes from pretraining, and alignment mostly teaches the style and format of answering users, so a few carefully chosen examples suffice. It is a hypothesis, not a theorem: for tasks that need a new mapping, such as sorting sentences into dozens of custom classes, data size still matters.
Superposition
#
A network stores more features than it has dimensions by placing them in non-orthogonal directions. When features are sparse and rarely co-occur, the ReLU and bias filter out the interference, so storing extra features beats dropping them (Elhage et al., 2022). Single neurons then respond to several unrelated features, so the unit to analyse is the direction, not the neuron.
Supervised fine-tuning SFT
#
Continuing training on instruction and ideal-response pairs with the same next-token loss as pretraining (usually computed only on the response), so the model learns to follow instructions and chat formats.
SWA Bounded Replay
#
How DeepSeek-V4.1-Flash rebuilds sliding-window KV on a cache miss. Exact reconstruction of L layers needs L×n_win replayed tokens (40×128=5,120 here); Bounded Replay replays only the last 128 and truncates the window to that segment, giving an approximate state that depends on where the cache hits. In return the sliding-window KV leaves the persistent cache. The paper gives no ablation.
SwiGLU
#
A gated FFN activation: SwiGLU(x) = (Swish(xW₁) ⊙ xW₃)W₂. It outperforms a plain ReLU or GELU FFN and is used by Llama, Qwen and others.
Switch layer
#
The mixture-of-experts layer of the Switch Transformer: the router picks exactly one expert per token (top-1), and the output is that expert's output times the probability the router gave it, so the router stays differentiable. It needs less routing computation and communication than top-2 routing.
symlog transform
#
symlog(x) = sign(x)·ln(|x|+1) is close to the identity near zero and compresses large values logarithmically while keeping the sign; its inverse is symexp(x) = sign(x)·(e^|x| − 1). DreamerV3 uses it on vector observations and regression targets so the network need not care about scale and large targets do not produce huge gradients.
Synthetic data
#
Data generated by a model or a program and then used to train a model: a stronger model's answers, problems a model sets and solves itself, programmatic problems with known answers, rewritten web pages. It adds information only through an outside filter (verifier, stronger teacher, human selection), fresh real data or inductive bias; otherwise it is a noisy copy of the model's own distribution.
T
T5
#
Google's family of encoder-decoder models (60M to 11B parameters): every NLP task is cast as text in, text out; the models are pre-trained on the C4 corpus with a span-corruption objective and then fine-tuned on each task.
Temperature
#
A sampling parameter T that divides the logits before the softmax. T below 1 sharpens the distribution and makes output more deterministic, T above 1 flattens it and adds variety, and T approaching 0 is greedy decoding.
Temperature scaling
#
The simplest post-hoc calibration method: fit a single scalar T on a validation set, divide the logits by T before the softmax, and minimize negative log-likelihood. It leaves the argmax unchanged, so accuracy is unaffected and only the confidence changes; Guo et al. (2017) used it to correct the overconfidence of modern neural networks.
Tensor Core
#
A hardware unit in NVIDIA GPUs dedicated to multiply-accumulate on small matrix tiles, supporting low-precision formats such as FP16, BF16 and FP8, with far higher throughput than the general FP32 units. Almost all matrix multiplications in LLM training and inference run on tensor cores, which is why low-precision formats buy speed.
Tensor parallelism
#
Splitting the large matrices inside a layer across several devices that compute together. Communication is frequent, so it is usually confined to devices with fast interconnect inside one machine.
Tensor shape
#
The lengths of a tensor along its axes. Shapes describe sizes, while axis meanings determine whether indexing or reduction is appropriate.
Test-time compute
#
Spending more computation at inference (longer chains of thought, repeated sampling with voting, search) to get better results, as opposed to scaling up training.
Thinking budget
#
A cap on the number of thinking tokens at inference time: when thinking reaches the threshold, the serving code stops it, inserts a fixed stop sentence and the end-of-thinking marker, and lets the model answer from its unfinished reasoning. The Qwen3 paper says this ability was not trained explicitly but emerged from thinking-mode fusion. It trades latency for accuracy.
Thinking mode
#
Letting one model decide whether to write a long chain of thought before it answers. In thinking mode it reasons inside a think block and then answers; in non-thinking mode the chat template opens the reply with an empty think block. Qwen3 switches with the template argument enable_thinking (hard) and /think or /no_think in the user message (soft, the last flag wins).
Throughput
#
The number of tokens generated (or requests handled) per unit of time. It usually trades off against the latency of an individual request.
Time per output token TPOT
#
The time between two consecutive output tokens, which decides how smoothly the text streams. End-to-end latency is the time to first token plus N−1 of these intervals. A larger batch makes every step slower and the interval longer.
Time to first token TTFT
#
The time from sending a request to receiving the first output token, determined mainly by queueing and prefill.
Token
#
The unit of text a model reads and writes: a piece produced by the tokenizer (a word, part of a word, a character or a byte), identified by an integer id in the vocabulary.
Token dropping
#
When an expert of a mixture-of-experts model receives more tokens than its capacity, the extra tokens skip every expert in that layer and pass unchanged through the residual connection. The Switch Transformer reports that typically under 1% of tokens are dropped in training.
Token passthrough
#
An MCP server accepting an access token from the client that was not issued to the server itself and forwarding it unchanged to a downstream API. It bypasses audience checks, rate limits and auditing, so the downstream cannot tell who is really calling. The specification forbids it: a server may accept only tokens explicitly issued to it.
Tokenizer
#
The component that splits text into tokens, maps them to integer ids and converts ids back to text. Common algorithms are BPE, WordPiece and Unigram.
A self-supervised tool-learning method from Meta AI and collaborators (2023): the 6.7B-parameter GPT-J writes API calls into ordinary text, the calls are executed, only those whose result clearly lowers the weighted cross entropy of the next tokens are kept, and the model is fine-tuned on the kept text. Tools: calculator, question answering, Wikipedia search, translation, calendar.
How Toolformer chooses which sampled API calls to keep: L+ is the weighted cross entropy of the next five tokens with the call and its result placed before the text; L- is the smaller of the losses with no call and with the call but no result. A call is kept only if L- minus L+ reaches a threshold. The rule is relative to the model being fine-tuned.
Top-k sampling
#
Keeping only the k most probable candidates, renormalizing and sampling from them, which cuts off the unreliable long tail.
Top-p (nucleus) sampling
#
Sampling from the smallest set of candidates whose cumulative probability reaches p, so the number of candidates adapts to how peaked the distribution is. Proposed by Holtzman et al. in 2019.
An attacker recovering passages of the training set by querying the model alone. Carlini et al. (2020) extracted hundreds of verbatim sequences from GPT-2, including phone numbers and emails, each present in one training document; the divergence attack of Nasr et al. (2023) made ChatGPT emit training data at a rate 150 times higher than normal.
A neural network architecture built around attention, stacked with residual connections and normalization. Introduced by Vaswani et al. in the 2017 paper "Attention Is All You Need", it underlies almost every modern LLM.
Trust region policy optimization TRPO
#
A policy optimization algorithm (Schulman et al., 2015) that requires the KL between the new and old policy to stay below a threshold δ at every update, so one step cannot overshoot and wreck performance. Solving the constraint takes an approximate second-order method (conjugate gradient); PPO replaced it with a clipped objective that needs only first-order optimization.
Twohot encoding
#
Encodes a continuous scalar as a soft label over bins: only the two nearest bins are non-zero, with weights linear in distance that sum to 1. DreamerV3's reward head and critic output a softmax over exponentially spaced bins, trained with cross-entropy and read out as the expectation, so gradient size does not depend on target magnitude and multimodal random targets fit.
Typographic attack
#
Writing a word on an image so that an image classifier switches to the class that word names. CLIP can read text inside images, and the text often outweighs the picture in its representation, so a note naming another class is enough to make it answer wrongly. OpenAI's 2021 article Multimodal Neurons in Artificial Neural Networks demonstrated and named the phenomenon.
V
Value function
#
V(s): the return expected from state s (the prompt plus the prefix generated so far) when the current policy keeps going. A neural network that fits it is the critic. PPO uses it as a baseline and for GAE, at the cost of one more model as large as the policy; GRPO and RLOO use the rewards of the other responses in the group instead.
Vanishing gradient
#
Backpropagation multiplies the Jacobians of many layers (or many time steps); if their norms are below 1 the gradient decays exponentially and early layers learn almost nothing, and if above 1 it explodes. Residual connections, gating, normalization and good initialization fight vanishing gradients; gradient clipping mainly handles explosion.
Variational autoencoder VAE
#
A generative model that encodes an input into the mean and variance of a Gaussian, samples a latent from it and decodes it back; the loss is the reconstruction error plus a KL term that keeps the posterior close to a prior. The resulting low-dimensional latent is smooth and continuous, and is often used as a compressed representation for other models.
Variational autoencoder
#
A latent-variable generative model trained with an approximate posterior encoder, a decoder and the ELBO. Reparameterization makes random sampling differentiable.
Vector database
#
A database that stores embedding vectors and supports approximate nearest-neighbor (ANN) search, a common retrieval backend for RAG.
Vision Transformer ViT
#
A model that cuts an image into fixed-size patches, flattens and linearly maps each patch to a vector, and feeds these as tokens to a Transformer. The number of patches is (H/P)(W/P), and the cost of self-attention grows with its square. Most vision-language models use a ViT as the vision encoder.
Vision-language model VLM
#
A model that understands images and text together, usually made of a vision encoder, a connector and a language model; LLaVA is a typical example.
Vision-language-action model VLA
#
A vision-language model that outputs robot actions directly: camera images and a text instruction go in, actions come out. RT-2 discretizes actions into tokens fine-tuned together with web image-text data; later models use continuous action heads (diffusion or flow matching). A VLA inherits the semantic knowledge of its vision-language model but gains no motions absent from its training data.
Visual instruction tuning
#
Fine-tuning a multimodal model on (image, instruction, response) triples so that it does what the user asks about an image instead of just describing it. LLaVA's recipe: write each COCO image as captions plus bounding boxes, have the text-only GPT-4 generate 158K conversation, detailed-description and complex-reasoning samples, and tune the language model together with the projector.
Visual token
#
The vectors that enter the language model after an image has passed through the vision encoder, merging and projection. Like text tokens they occupy the context window and the KV cache, and their number grows with the image resolution.
Vocabulary
#
The full set of tokens a tokenizer knows, with their ids. Its size sets the size of the embedding matrix and the output layer; modern models use tens of thousands to a few hundred thousand entries.