LLM glossary

An alphabetical glossary with one or two self-contained sentences per term, linking to the in-depth lessons in the wiki.

476 terms

4

4-bit NormalFloat NF4

The 4-bit data type used by QLoRA: 16 values taken from the quantiles of a standard normal distribution, rescaled to [-1, 1] and including an exact zero, which suits weights that are roughly normally distributed. Each block of 64 weights shares one scale; QLoRA also quantizes those scales a second time (double quantization) to cut the overhead further.

4D parallelism

Sharding training along four dimensions at once: tensor (TP), context (CP), pipeline (PP) and data parallelism (DP, usually FSDP). Llama 3 orders them [TP, CP, PP, DP]: the dimension needing the most bandwidth and lowest latency sits innermost, within one server, and the most latency-tolerant, data parallelism, outermost. The 405B on 16,384 H100s used TP=8, CP=1, PP=16, DP=128 at 41% MFU.

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 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).

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 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 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 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.

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.

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.

B

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.

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.

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.

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.

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.

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.

C

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.

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.

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.

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-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.

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.

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.

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.

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.

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.

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 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.

Decision Transformer DT

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.

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-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 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.

Diffusion Transformer DiT

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.

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

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-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.

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 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.

Extractable memorization

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%).

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.

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.

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 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.

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.

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.

H

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.

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.

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.

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.

Information integration

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.

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).

J

Jaccard similarity

The size of the intersection of two sets divided by the size of their union, between 0 and 1. For documents it is computed on word n-gram sets, and the chance that a MinHash signature agrees at one position equals it exactly. It is sensitive to size: a short text pasted into a long document scores low, so catching that needs containment (intersection over the smaller set) or substring matching.

Jailbreak

An input crafted by the user to make a safety-trained model violate its own policy and produce content it should refuse. The adversary is the user; in prompt injection the instructions hide in third-party data the model reads and the victim is another user or the system, so the defenses differ.

JSON-RPC

A lightweight remote-call protocol encoded in JSON: a request carries method, params and id, a response carries result or error, and a message without an id is a notification that needs no reply. Errors use integer codes, for example -32602 for invalid params. MCP and the Language Server Protocol (LSP) are both built on it.

K

K3 estimator

A single-sample KL estimate: with r = π_ref/π_θ it is r − 1 − log r, non-negative and low-variance; GRPO uses it as the KL penalty. It is biased for samples from an old policy, so DeepSeek-V3.2 multiplies it by the importance ratio π_θ/π_old. Exact enumeration in the V3.2 post: the corrected gradient equals that of KL(π_θ‖π_ref), the uncorrected K3 gradient that of the reverse KL.

Kernel fusion

Merging several adjacent GPU operations into one kernel so intermediate results stay in on-chip registers and shared memory instead of being written to memory and read back. For bandwidth-bound elementwise operations the saving is memory traffic, and time falls with it. FlashAttention fuses attention into a single kernel.

KL estimators k1, k2, k3

Three per-token estimators of KL(π_θ‖π_ref) from tokens sampled under π_θ (Schulman, 2020). With r = π_ref/π_θ: k1 = −log r is unbiased but noisy, k2 = ½(log r)² is slightly biased and low-variance, k3 = r − 1 − log r is unbiased and non-negative. GRPO adds k3 to the loss; differentiating an estimator used as a loss need not give the gradient of the sequence-level KL.

KV cache fragmentation

The three kinds of waste when contiguous memory is reserved for each request at its maximum length: slots held in advance for tokens not yet generated, internal fragmentation (the real length is shorter than the reservation) and external fragmentation left by the allocator. The vLLM paper measured only 20.4%-38.2% of the KV cache in existing systems holding actual token states.

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.

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.

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.

Length extrapolation

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.

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.

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.

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.

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.

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.

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).

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.

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.

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.

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.

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-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.

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.

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.

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.

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.

O

Offline RL

Reinforcement learning from a fixed trajectory dataset, without interacting with the environment. The core difficulty is distribution shift: once the policy takes actions absent from the data, value estimates have nothing to stand on. Remedies include value learning with conservatism (CQL), behavior cloning, and return-conditioned supervised learning as in Decision Transformer.

On-policy distillation OPD

A scheme where the student samples its own sequences, teachers score every position, and the student learns to match them (often with a reverse-KL-type divergence). Because samples come from the student's own distribution, it avoids the mismatch of offline distillation. DeepSeek-V4.1-Flash ends post-training with full-vocabulary OPD from over 40 teachers; the paper does not spell out the loss.

One-shot prompting

Giving exactly one input-output example in the prompt before the new input. The GPT-3 paper separates three settings: zero-shot gives only an instruction in natural language, one-shot adds one demonstration, few-shot adds as many as fit in the context window (typically 10 to 100). None of them updates the weights.

Open X-Embodiment OpenX

A community-built collection that pools several dozen robot datasets from many institutions into one format; the OpenVLA paper says it now holds more than 70 datasets and over 2M robot trajectories across many embodiments, tasks and scenes. OpenVLA keeps only single-arm, end-effector-controlled data with a third-person camera, mixes it with Octo's weights and trains on 970k trajectories.

Outcome reward model ORM

A reward model trained only on the final outcome of a whole solution, such as whether the answer is right. Labels are cheap and can be obtained automatically, but the signal is sparse for multi-step reasoning because the model has to work out which step went wrong. The counterpart of the process reward model (PRM), which is trained on step-level labels.

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.

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.

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.

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.

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.

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.

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).

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.

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.

Programmatic tool calling

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.

Progressive tool discovery

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 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.

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.

Q

QK-Norm

Normalising each head's query and key vectors before the dot product. It bounds the scale of the attention scores and stops the logits from growing during training. Qwen3 implements it as an RMSNorm over the head dimension and drops Qwen2's QKV bias; the paper cites Dehghani et al. (2023), who used it in a 22-billion-parameter vision Transformer, for training stability.

Query rewriting

Reshaping the user's question before retrieval, since it is often vague, abbreviated or several questions in one. Forms: have a model rewrite it (Rewrite-Retrieve-Read); expand it into several parallel searches (Multi-Query) or sub-questions (Sub-Query); retrieve with a hypothetical answer (HyDE) or a more abstract question (Step-back). The cost is an extra model call.

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.

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.

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.

Recurrent State-Space Model RSSM

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.

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 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.

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.

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.

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.

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 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.

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.

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.

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.

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%.

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 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.

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%.

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.

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).

Spearman–Brown formula

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.

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.

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.

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.

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

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).

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.

Toolformer

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.

Toolformer filter

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.

Training data extraction

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.

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.

U

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.

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-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.

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.

W

WebText

GPT-2's training corpus: pages linked from Reddit posts that received at least 3 karma (about 45 million links), with text extracted, de-duplicated, heuristically cleaned, and all Wikipedia documents removed. The preliminary version used in the paper has no links created after December 2017 and holds slightly over 8 million documents, 40 GB of text. Karma stands in for human curation of quality.

WordPiece

A subword segmentation algorithm that grows the vocabulary from characters, at each step merging the pair that raises the language-model likelihood of the training corpus the most (BPE merges by frequency instead). Pieces that do not start a word carry a ## prefix, so playing becomes play and ##ing. BERT uses a WordPiece vocabulary of about 30,000 entries.

World model

A learned predictive model of how an environment evolves under actions: given the current observation (often compressed into a latent) and an action, it predicts the next observation, reward or termination. An agent can plan or train a policy in imagination with fewer real interactions; the risk is that the policy exploits the model's errors and scores well in imagination but fails in reality.

X

Xavier initialization

Setting the initial weight variance from a layer's input and output sizes (2/(fan_in+fan_out)) so that activation and gradient variance stay roughly constant across layers and a deep network does not start with vanishing or exploding gradients. Proposed by Glorot and Bengio (2010); He initialization for ReLU uses 2/fan_in.

Y

YaRN

A RoPE context-extension method that splits the dimension pairs by how many turns they make within the training length: fast pairs are kept, pairs with less than one turn are divided by the scale s, and those in between are blended linearly. It also scales the attention logits by 0.1·ln s + 1. Proposed by Peng et al. in 2023 and used by DeepSeek-V3 to reach a 128K window.

Z

Zero-order hold discretization

A rule that turns the continuous-time state space parameters (Δ, A, B) into discrete recurrence parameters by assuming the input stays constant during each step Δ: Ā = exp(ΔA) and B̄ = (ΔA)⁻¹(exp(ΔA) − I)·ΔB. Theorem 1 of the Mamba paper holds exactly under this rule (a selective SSM equals a gated RNN); the official code actually uses the simpler B̄ = ΔB, a first-order Euler approximation.

Zero-shot chain of thought

Adding just "Let's think step by step" after the question, with no exemplars, to trigger step-by-step reasoning (Kojima et al., 2022). The original recipe has two steps: first let the model write its reasoning, then use a second prompt to extract the final answer from it. It is usually weaker than a handwritten few-shot chain of thought, but it saves the cost of writing exemplars.