LLMs glossary
154 key terms, each in one sentence, with the lesson that teaches it.
A
- Adversarial evaluation
- testing a model's safety specifically against strategies designed to defeat its guardrails, not just ordinary inputs.
- Adversarial and Jailbreak Evaluation
- All-or-nothing metric
- a scoring method that only counts a fully correct result, which can sharpen a smooth underlying improvement into an apparently sudden one.
- Emergent Abilities and Capability Jumps
- Attack success rate
- the fraction of adversarial attempts using a given strategy that successfully bypass guardrails.
- Adversarial and Jailbreak Evaluation
B
- Baseline
- the expected reward under the current policy, subtracted so updates reflect relative, not absolute, reward.
- Reinforcement Learning from Human Feedback (RLHF)
- Beam width
- how many candidate branches are kept alive at each step of the search.
- Tree-of-Thought and Search-Based Reasoning
- Benchmark suite
- a large, standardized set of test questions used to measure and compare model capability.
- Benchmark Suites (MMLU, HELM, BIG-bench)
- Best-of-N selection
- sampling several candidates and keeping only the highest-scoring one.
- Rejection Sampling and Best-of-N Fine-Tuning
- Bradley-Terry model
- a model of pairwise comparison outcomes as a function of two latent scalar scores.
- Reward Modeling
- Branch
- one candidate continuation at a given reasoning step.
- Tree-of-Thought and Search-Based Reasoning
C
- Cache invalidation
- when a change in the prefix makes a previously cached KV-state no longer valid to reuse.
- KV-Cache Reuse Across Sessions
- Canceling errors
- multiple mistakes in a reasoning chain that happen to offset each other, producing a correct final answer despite flawed steps.
- Process Reward vs. Outcome Reward
- Capability evaluation
- measuring whether a model can perform a task well.
- Capability Evaluation vs. Safety Evaluation
- Capability jump
- the sharp rise in accuracy across a comparatively narrow band of scale.
- Emergent Abilities and Capability Jumps
- Capability threshold
- the specific measured-capability value at which a model's required safety tier changes.
- Responsible Scaling Policies and Frontier Safety
- Capability-safety trade-off
- the tendency for alignment training strength to move these two scores in opposite directions.
- Capability Evaluation vs. Safety Evaluation
- Catastrophic forgetting
- the loss of a model's prior capability caused by further training on a new task.
- Catastrophic Forgetting in Fine-Tuning
- Catch rate
- the fraction of genuinely unsafe content a filter successfully blocks.
- Guardrails and Deployment-Time Safety Filters
- Category breakdown
- per-category scores that reveal strengths and weaknesses an overall average can hide.
- Benchmark Suites (MMLU, HELM, BIG-bench)
- Category weighting
- the relative importance assigned to each evaluation category when combining them into one score.
- Leaderboards and Their Limits
- Causal language modeling
- training a model to predict each token from only the tokens before it.
- Causal Language Modeling as a Pretraining Objective
- Chain-of-thought (CoT)
- prompting a model to produce intermediate reasoning steps before a final answer.
- Chain-of-Thought Prompting
- Closed model
- a model accessible only through a provider-controlled API, with the weights never released.
- Open-Weight vs. Closed Models
- Completeness score
- the fraction of a model card's expected sections that are actually filled in.
- Model Cards and Responsible Release
- Compounding reliability
- the overall chance of a multi-step chain succeeding, found by multiplying each step's success probability.
- Chain-of-Thought Prompting
- Compute-optimal scaling
- the split of a fixed compute budget between model size and training data that minimizes loss.
- Compute-Optimal Scaling (Chinchilla)
- Constitution
- the written principles an AI judge uses to rank or critique responses.
- Constitutional AI and RLAIF
- Constitutional AI
- aligning a model using a written set of principles applied by an AI judge, rather than direct human preference labels.
- Constitutional AI and RLAIF
- Contamination
- when benchmark test material (or close variants) appears in a model's training data.
- Benchmark Contamination and Leakage
- Continued pretraining
- further training an already-pretrained model with the same objective, on domain-specific data.
- Continued Pretraining and Domain Adaptation
- Critique-revise cycle
- one round of a model generating feedback on its own draft and then producing a revised version.
- Self-Refinement and Iterative Critique
- Cross-entropy loss
- the negative log-probability assigned to the correct outcome, averaged across positions.
- Causal Language Modeling as a Pretraining Objective
- Cross-session KV-cache reuse
- reusing a previously computed key-value cache for an unchanged conversation prefix, rather than recomputing it.
- KV-Cache Reuse Across Sessions
- Crossover point
- the compute level at which a scaled-generic method's performance overtakes a hand-engineered method's.
- The Bitter Lesson: Scale vs. Hand-Engineering
- Curated training set
- a dataset filtered to disproportionately contain high-quality examples, rather than a raw, unfiltered sample.
- Rejection Sampling and Best-of-N Fine-Tuning
- Curation
- filtering and weighting raw data sources before training, based on quality signals.
- Pretraining Corpora and Data Curation
D
- Data-constrained regime
- training where available high-quality data, not compute, is the limiting factor.
- Scaling Laws Beyond Chinchilla: Data-Constrained and Overtrained Regimes
- Decode
- generating a request's output tokens one at a time, each depending on all previous ones, so comparatively slow per token.
- Cost and Latency of LLM APIs
- Deduplication
- removing exact or near-duplicate documents from a training corpus.
- Data Deduplication and Quality Filtering
- Delayed generalization
- the gap between memorizing training data and developing a solution that generalizes to new examples.
- Grokking and Delayed Generalization
- Deployment-time cost
- the per-request cost and latency incurred once a model is serving live traffic, separate from however it was trained.
- Capstone: Pretraining to Aligned Assistant, Traced End to End
- Diminishing returns
- steadily shrinking improvement per additional unit of the variable being increased.
- Scaling Laws Beyond Chinchilla: Data-Constrained and Overtrained Regimes
- each additional round producing a smaller improvement than the round before it.
- Self-Refinement and Iterative Critique
- Direct Preference Optimization (DPO)
- a method for aligning a policy directly from preference pairs, without a separate reward model or RL loop.
- Direct Preference Optimization (DPO)
- Domain adaptation
- specializing a general model's behavior for a particular subject area or style.
- Continued Pretraining and Domain Adaptation
- Domain weighting
- sampling training tokens from different domains in different proportions than their raw availability.
- Data Mixture and Domain Weighting
E
- Emergent ability
- a capability near chance performance below a scale threshold and markedly higher above it.
- Emergent Abilities and Capability Jumps
- End-to-end pipeline
- the full sequence a model goes through from raw pretraining to a deployed, usable assistant.
- Capstone: Pretraining to Aligned Assistant, Traced End to End
- Extrapolation
- using position indices beyond what a model was trained on, without rescaling.
- Context Window Extension Techniques
F
- False positive rate (in this context)
- the fraction of safe content incorrectly blocked by a filter.
- Guardrails and Deployment-Time Safety Filters
- Fertility
- the number of tokens a tokenizer produces per word, used to measure tokenization efficiency.
- Multilingual Tokenization and Vocabulary Fairness
- Fine-tuning trade-off
- the relationship between how much a model improves on a new task and how much it degrades on tasks it previously performed well.
- Catastrophic Forgetting in Fine-Tuning
- FLOPs
- floating-point operations, the unit used to measure and budget training compute.
- Compute-Optimal Scaling (Chinchilla)
- floating-point operations, the unit used to measure attention's computational cost.
- Long-Context Transformers
- Full fine-tune
- updating every parameter of the base model during fine-tuning.
- Fine-Tuning for a Specific Task
- Full replay
- resending a conversation's entire history with every new turn.
- Multi-Turn Conversation State and Memory
G
- Grammar-constrained decoding
- masking decoding so that only schema-valid tokens can ever be produced, removing parse failures by construction.
- Structured Output and Tool-Calling APIs
- Grokking
- training accuracy saturating early while test accuracy stays flat, then suddenly rising much later in training.
- Grokking and Delayed Generalization
- Guardrail
- a deployment-time filter that checks inputs or outputs against a threshold, separate from the model's own training.
- Guardrails and Deployment-Time Safety Filters
I
- Imitation
- learning to reproduce the pattern of given examples, without an explicit signal about why they were chosen.
- Supervised Fine-Tuning (SFT)
- Imitation (in distillation)
- a smaller model learning to reproduce demonstrated reasoning patterns, rather than independently deriving them.
- Distilling Reasoning into Smaller Models
- Instruction-response pair
- one training example consisting of a user instruction and an ideal assistant response.
- Supervised Fine-Tuning (SFT)
J
- Jailbreak
- a successful attempt to bypass a model's safety guardrails.
- Adversarial and Jailbreak Evaluation
K
- Known biases section
- the part of a model card documenting measured or suspected systematic biases in the model's outputs.
- Model Cards and Responsible Release
L
- Landmark model
- a model whose release marked a significant architectural or capability turning point.
- A History of LLM Families (GPT, BERT, T5, Llama)
- Leaderboard
- a ranking of models by a combined score across evaluation categories.
- Leaderboards and Their Limits
- Leakage
- another term for the same phenomenon — evaluation material unintentionally present in training data.
- Benchmark Contamination and Leakage
- LLM-as-judge
- using an LLM to evaluate the quality of generated outputs, often by comparison.
- LLM-as-Judge Evaluation
- Log-probability ratio
- the policy's log-probability for a response divided by the reference's, used as DPO's implicit reward signal.
- Direct Preference Optimization (DPO)
- Long-context transformer
- a model engineered to handle much longer sequences than ordinary quadratic attention would make practical.
- Long-Context Transformers
- Lost-in-the-middle
- the tendency for retrieval accuracy to be lower for information near the middle of a long context than near its edges.
- Context Rot and Lost-in-the-Middle Effects
- Low-rank update
- adding a small number of new parameters (two low-rank matrices) on top of a frozen base model, as in LoRA.
- Fine-Tuning for a Specific Task
M
- Memorization vs. generalization
- perfectly reproducing seen examples versus correctly handling genuinely new ones.
- Grokking and Delayed Generalization
- Model card
- a document accompanying a model release stating its intended use, limitations, training data and evaluation results.
- Model Cards and Responsible Release
- Model collapse
- the progressive narrowing of a distribution's diversity across generations of recursive training on model-generated data.
- Synthetic Data for Pretraining
- Model family
- a lineage of models sharing a common architectural approach and naming convention.
- A History of LLM Families (GPT, BERT, T5, Llama)
- Model governance
- the combination of license terms, access mode and release policy that determines who may do what with a model.
- Licensing and Model Governance
- Model merging
- combining two or more models' weights, usually by averaging, without further training.
- Model Merging and Weight Averaging
- Model selection
- choosing which available model to deploy for a task, based on how well it matches that task's specific requirements.
- Choosing a Model for a Task
N
- N-gram Jaccard similarity
- the fraction of two documents' combined short token sequences that they share.
- Data Deduplication and Quality Filtering
- Near-duplicate
- a document that is substantially, but not exactly, the same as another.
- Data Deduplication and Quality Filtering
- Needle in a haystack test
- a method for measuring position-dependent retrieval accuracy by placing a specific fact at a controlled position.
- Context Rot and Lost-in-the-Middle Effects
O
- Observation
- the actual result returned by a tool call, used to inform subsequent reasoning.
- Tool-Augmented Reasoning (ReAct-Style)
- Open-weight model
- a model whose trained parameters are published for anyone to download and run.
- Open-Weight vs. Closed Models
- Order randomization
- swapping response order across evaluations to cancel out position bias.
- LLM-as-Judge Evaluation
- Outcome reward
- a reward signal based only on whether a chain's final answer is correct.
- Process Reward vs. Outcome Reward
- Overall average
- a single score computed by averaging performance across all benchmark categories.
- Benchmark Suites (MMLU, HELM, BIG-bench)
- Overlap check
- using n-gram similarity to detect suspicious overlap between a benchmark question and training text.
- Benchmark Contamination and Leakage
- Overtraining
- deliberately training a smaller model on more tokens than compute-optimal scaling would allocate, to reduce inference cost.
- Scaling Laws Beyond Chinchilla: Data-Constrained and Overtrained Regimes
P
- Pairwise preference
- a judgment that one response is better than another, without an absolute quality value.
- Reward Modeling
- Per-request overhead
- the token cost incurred repeatedly on every single request, regardless of how short the user's own message is.
- System Prompts and Prompt Templates
- Per-step reliability
- the probability that one individual reasoning step is correct.
- Chain-of-Thought Prompting
- Per-token pricing
- charging separately, and usually at different rates, for input and output tokens.
- Cost and Latency of LLM APIs
- Permissive license
- terms allowing commercial use, modification and redistribution with no usage-based restriction.
- Licensing and Model Governance
- Perplexity gap
- the difference in perplexity on domain text before and after adaptation, used to measure its effect.
- Continued Pretraining and Domain Adaptation
- Plateau
- a performance ceiling set by a fixed set of built-in assumptions or tricks, which more compute alone can't push past.
- The Bitter Lesson: Scale vs. Hand-Engineering
- Policy gradient
- an update rule that shifts a policy's probabilities in proportion to how much a candidate's reward exceeds a baseline.
- Reinforcement Learning from Human Feedback (RLHF)
- Position bias
- a judge's tendency to favor whichever response is shown in a particular position, independent of content.
- LLM-as-Judge Evaluation
- Position interpolation
- rescaling a longer sequence's positions to fit within a model's originally trained range.
- Context Window Extension Techniques
- Prefill
- processing a request's input tokens, done largely in parallel and so relatively fast per token.
- Cost and Latency of LLM APIs
- Prefix
- the earlier, unchanged portion of a conversation or document whose computation can potentially be cached.
- KV-Cache Reuse Across Sessions
- Process reward
- a reward signal that checks the validity of each intermediate reasoning step.
- Process Reward vs. Outcome Reward
- Prompt template
- the specific arrangement of roles, turns and special tokens that converts a conversation into the token sequence the model expects.
- System Prompts and Prompt Templates
Q
- Quadratic attention cost
- the FLOPs cost of self-attention growing with the square of sequence length.
- Long-Context Transformers
- Quality signal
- a heuristic or score (length, language, repetition, toxicity, …) used to decide whether a document is worth including.
- Pretraining Corpora and Data Curation
R
- Ranking flip
- a change in which model ranks highest, caused purely by a change in weighting rather than in underlying scores.
- Leaderboards and Their Limits
- ReAct
- a pattern interleaving reasoning (Thought), tool calls (Action), and tool results (Observation) before a final answer.
- Tool-Augmented Reasoning (ReAct-Style)
- Reasoning distillation
- training a smaller model on a larger model's full reasoning traces, not just its final answers.
- Distilling Reasoning into Smaller Models
- Reasoning trace
- the intermediate steps a model produces en route to a final answer.
- Distilling Reasoning into Smaller Models
- Recursive training
- training a new model on data generated by a previous model, repeated across generations.
- Synthetic Data for Pretraining
- Reference policy
- a frozen copy of the policy (typically right after SFT) that anchors the DPO loss's comparison.
- Direct Preference Optimization (DPO)
- Rejection sampling fine-tuning (RAFT)
- fine-tuning on a dataset built by keeping only the best-of-N reward-model-scored samples per prompt.
- Rejection Sampling and Best-of-N Fine-Tuning
- Responsible scaling policy (RSP)
- a framework tying required safety commitments to a model's measured capability via defined thresholds.
- Responsible Scaling Policies and Frontier Safety
- Reward gap
- the difference between a reward model's score and a response's true quality.
- Reward Hacking and Sycophancy
- Reward hacking
- a policy achieving high reward-model scores through means that don't reflect genuinely better behavior.
- Reward Hacking and Sycophancy
- RLAIF
- reinforcement learning from AI feedback — feeding AI-generated preferences into the same RLHF/DPO training pipeline.
- Constitutional AI and RLAIF
- RLHF
- using a reward model's scores to update a language model's behavior via reinforcement learning.
- Reinforcement Learning from Human Feedback (RLHF)
S
- Safety evaluation
- measuring whether a model behaves appropriately, including refusing harmful requests.
- Capability Evaluation vs. Safety Evaluation
- Safety tier
- a bundle of required commitments (evaluation rigor, deployment safeguards, access controls) that applies once a capability threshold is crossed.
- Responsible Scaling Policies and Frontier Safety
- Scaling law
- an empirical power-law relationship between loss and model size, data, or compute.
- Compute-Optimal Scaling (Chinchilla)
- Scaling philosophy
- the deliberate choices about how much to invest in parameter count versus training data for a given compute budget.
- A History of LLM Families (GPT, BERT, T5, Llama)
- Seed instructions
- a small, carefully written starting set of instructions.
- Instruction Dataset Construction
- Self-instruct
- using a model to generate new instructions from a seed set, rather than fixed templates.
- Instruction Dataset Construction
- Self-refinement
- having a model critique and revise its own answer, repeated across several rounds.
- Self-Refinement and Iterative Critique
- Shared weights
- the single set of parameters that every task's gradient update moves, with no separation between what's "for" one task and what's "for" another.
- Catastrophic Forgetting in Fine-Tuning
- Specialist model
- a model fine-tuned for strong performance on one specific task, typically at the cost of weaker performance elsewhere.
- Model Merging and Weight Averaging
- Stage-specific objective
- the particular loss or update rule that defines what a given training stage is actually optimizing for.
- Capstone: Pretraining to Aligned Assistant, Traced End to End
- Structured output
- a model's response in a specific, machine-parseable shape (JSON, a function call) rather than free-form prose.
- Structured Output and Tool-Calling APIs
- Summarization-based memory
- compressing older turns into a bounded summary, keeping only recent turns in full.
- Multi-Turn Conversation State and Memory
- Summary budget
- the fixed token allowance set aside for a conversation's compressed history.
- Multi-Turn Conversation State and Memory
- Supervised fine-tuning (SFT)
- continuing a pretrained model's training on curated instruction-response examples, using the same objective as pretraining.
- Supervised Fine-Tuning (SFT)
- Sycophancy
- a specific form of reward hacking where agreeable, flattering, or confident-sounding responses are favored independent of accuracy.
- Reward Hacking and Sycophancy
- Synthetic data
- text or other content generated by a model, used as training data for another model.
- Synthetic Data for Pretraining
- System prompt
- instructions prepended to every conversation, setting the assistant's persona, rules or output format.
- System Prompts and Prompt Templates
T
- Task-specific fine-tuning
- further training a pretrained, aligned model on a narrower dataset to specialize it for one job.
- Fine-Tuning for a Specific Task
- Task-specific weighting
- assigning importance to each evaluation dimension (quality, speed, cost) according to what a particular task actually needs.
- Choosing a Model for a Task
- Teacher forcing
- training on the true preceding tokens rather than the model's own previous predictions.
- Causal Language Modeling as a Pretraining Objective
- Template expansion
- generating more instructions by applying varied phrasings or framings to each seed.
- Instruction Dataset Construction
- Test-time compute scaling
- trading more inference-time computation for higher accuracy, without changing the model's weights.
- Test-Time Compute Scaling
- The Bitter Lesson
- the observed historical pattern of general, scalable methods eventually outperforming hand-engineered, domain-specific ones as compute grows.
- The Bitter Lesson: Scale vs. Hand-Engineering
- Tokenizer fairness
- the concern that a shared tokenizer can impose systematically unequal costs across languages.
- Multilingual Tokenization and Vocabulary Fairness
- Tool-augmented reasoning
- reasoning that delegates specific sub-steps to external tools rather than attempting them directly.
- Tool-Augmented Reasoning (ReAct-Style)
- Tool-calling API
- an interface where a model's output specifies a function name and typed arguments for the application to execute.
- Structured Output and Tool-Calling APIs
- Trained range
- the span of positions (and corresponding rotation angles, under RoPE) a model actually encountered during training.
- Context Window Extension Techniques
- Training budget
- the fixed number of tokens a model will be trained on, allocated across domains by their weighted proportions.
- Data Mixture and Domain Weighting
- Tree-of-thought reasoning
- exploring multiple candidate reasoning paths rather than committing to a single chain.
- Tree-of-Thought and Search-Based Reasoning
U
- U-shaped accuracy curve
- the characteristic high-low-high pattern of accuracy across context position.
- Context Rot and Lost-in-the-Middle Effects
- Underrepresented language
- a language with little presence in a tokenizer's training corpus, leading to high fertility and inefficient tokenization.
- Multilingual Tokenization and Vocabulary Fairness
- Upweighting
- increasing a domain's sampling frequency relative to its raw share of the corpus.
- Data Mixture and Domain Weighting
- Usage cap
- a license condition requiring a separate commercial agreement once usage (such as user count) crosses a threshold.
- Licensing and Model Governance
V
- Verifier
- a model or rule that scores a candidate answer's likely correctness, used to select among several samples.
- Test-Time Compute Scaling
- Verifier-scored best-of-N
- sampling N candidates and keeping the one the verifier scores highest.
- Test-Time Compute Scaling
- Version permanence
- the guarantee that a downloaded model's behavior will not change later, which only open-weight release provides.
- Open-Weight vs. Closed Models
W
- Weight averaging
- taking the parameter-by-parameter mean of two models' weights to produce a single combined model.
- Model Merging and Weight Averaging
- Weighted score
- a single number combining a model's scores across several dimensions, according to a chosen set of weights.
- Choosing a Model for a Task
No term matches that filter.