Transformer
A neural-network architecture built around attention-based processing of representations. Transformer variants differ in how they attend to inputs and generate outputs.
A reference for all 120 terms in the Advanced AI Vocabulary syllabus. Learn the meaning, then practice making the distinction.
Open the specialist study guide →120 of 120 terms
A neural-network architecture built around attention-based processing of representations. Transformer variants differ in how they attend to inputs and generate outputs.
Attention in which queries, keys, and values come from the same sequence, allowing positions to use information from other positions.
Attention whose queries come from one representation and whose keys and values come from another, such as a decoder attending to encoder outputs.
Information added or applied to representations so a model can distinguish positions or ordering in a sequence.
A positional method that rotates query and key vector components according to token position, allowing attention to incorporate relative-position information.
An architecture with multiple expert subnetworks and a routing mechanism that selects or weights experts for an input.
Using only a subset of available units or components for a particular input. In sparse MoE systems, only selected experts are evaluated.
An attention design where several query heads share a smaller set of key and value heads, reducing key-value storage compared with full multi-head attention.
A learned representation space in which coordinates encode features of data rather than necessarily matching human-readable attributes.
Modeling a sequence by predicting each element conditioned on earlier elements. Language generation commonly predicts the next token this way.
A generative model trained to reverse a progressive corruption process, commonly producing samples through repeated denoising steps.
A mechanism that computes input-dependent weights over representations so information relevant to a query contributes more strongly.
The initial broad training phase that learns reusable patterns from data before narrower adaptation or deployment.
Training a model on labeled examples of desired inputs and outputs to adapt its behavior to a task or instruction style.
Adaptation methods that train a limited number of additional or selected parameters instead of updating every model parameter.
A PEFT method that learns low-rank update matrices for selected weights while typically freezing the original weights.
A fine-tuning approach that combines a quantized frozen base model with trainable low-rank adapters to reduce memory requirements.
Training a student model to reproduce useful behavior or outputs of a teacher model, often to create a smaller or cheaper system.
Loss of previously learned capabilities when a model is trained on new tasks or data.
Saving fewer intermediate activations during training and recomputing them during backpropagation to trade additional computation for lower memory use.
Accumulating gradients over several microbatches before an optimizer update, enabling a larger effective batch without holding it all at once.
Reinforcement learning from human feedback: using human preference or quality feedback to shape a reward signal for model optimization.
Reinforcement learning from AI feedback: using feedback from AI systems to help form a reward signal for optimization. The feedback still needs validation.
A preference-optimization method that trains directly on preferred and dispreferred response pairs without the separate reward-model-and-RL loop of a conventional RLHF pipeline.
A unit processed by a model’s tokenizer. It may represent a word fragment, punctuation, bytes, or another encoded element.
Converting input into the token sequence or identifiers a model processes; the segmentation depends on the tokenizer.
The amount of context a model can handle in a request or sequence, measured in tokens. Capacity does not guarantee effective use of every part.
Stored attention keys and values from previous tokens, reused during autoregressive generation to avoid repeatedly computing them.
The inference stage that processes the input prompt before generating subsequent tokens, commonly creating its attention cache.
Producing output from a model’s predicted distribution; in language models this commonly means selecting successive tokens.
Representing weights or other numerical values with lower precision, usually reducing memory or compute costs with possible quality tradeoffs.
An inference method in which a faster draft process proposes tokens and a target model verifies them. Proper acceptance procedures can preserve the target distribution.
A parameter that rescales logits before sampling. Lower values concentrate probability; it is not a direct factuality control.
Sampling from a subset of tokens whose cumulative probability reaches a chosen threshold, also called nucleus sampling.
A decoding search that retains several high-scoring partial sequences at each step, trading more computation for a broader search.
Additional computation spent at inference time, such as generating, checking, searching, or revising candidate solutions.
A numerical representation of an item in a vector space, designed to capture useful features or relationships.
Searching with learned dense vector representations, often comparing query and document embeddings.
Retrieval with sparse feature representations, often based on terms. Sparse methods may be lexical or learned.
Combining retrieval signals such as lexical and dense similarity, usually by merging or weighting their results.
A lexical ranking function based on term occurrence, term rarity, and document-length normalization.
Searching efficiently for vectors near a query by allowing approximation instead of guaranteeing the exact nearest neighbors.
Reordering a retrieved candidate set with a scoring method that may be more costly or task-specific than the first retrieval stage.
A model that processes a query and candidate together to estimate relevance or another pairwise relationship.
A model that encodes the two sides separately, enabling reusable document embeddings and efficient similarity search.
A system pattern that retrieves external information and supplies it to generation. Retrieval alone does not guarantee a correct answer.
Dividing source material into units for processing or retrieval while deciding how much structure and context each unit retains.
Augmenting or reformulating a query with additional terms or representations to broaden useful retrieval; it may also introduce irrelevant matches.
A model producing a structured request for an application to invoke a tool. The application controls actual execution and authorization.
Coordinating model calls, tools, state, routing, and recovery across a task or system.
A process with control flow primarily specified in advance, even if individual steps use models.
A system that can use a model to choose actions or next steps toward a goal within the permissions and controls supplied by its application.
The surrounding runtime that provides an agent with tools, state, instructions, execution limits, and other operational controls.
A protocol for connecting AI applications with external capabilities and context through clients and servers. It does not itself grant unlimited access.
A machine-readable description of a tool and its expected parameters. Matching a schema does not establish permission to execute.
Output constrained to a defined structure, such as a JSON schema. Structural correctness does not guarantee factual or business correctness.
An isolated environment intended to restrict the effects of executed code or actions. Its protection depends on enforced boundaries and configuration.
A property whereby repeating the same operation has the same intended effect as performing it once, useful for safe retries.
A design in which a person participates in review, approval, correction, or another decision in the process. The role and timing must be explicit.
Tying authorization or approval to the specific action, destination, and payload that will be executed, so changes cannot silently reuse prior consent.
Among predicted positive cases, the fraction that are truly positive: true positives divided by true positives plus false positives.
Among actual positive cases, the fraction successfully identified: true positives divided by true positives plus false negatives.
The harmonic mean of precision and recall. It balances those measures but does not encode every business cost or error preference.
Agreement between stated confidence or predicted probabilities and observed frequencies of correctness or outcomes across cases.
An exponentiated average negative log likelihood of a sequence under a model. Comparisons require compatible tokenization and evaluation conditions.
Overlap or leakage between evaluation material and training or tuning data that undermines the independence of a benchmark result.
An experiment that removes or changes a component to investigate its contribution while keeping comparison conditions as controlled as practical.
A change between the data distribution used for development or evaluation and the distribution encountered later.
Inputs or conditions outside the distribution a system was trained or evaluated to handle. Detecting them reliably can itself be difficult.
A measure related to whether at least one of k generated candidates succeeds on a task. Its interpretation depends on sampling and scoring procedures.
Using a language model to score or compare outputs. Judge bias, consistency, rubric quality, and agreement with suitable human review require evaluation.
The observation that aggressively optimizing a measure can make it a poor stand-in for the real objective it was intended to represent.
An attempt to make a model follow attacker-controlled instructions that conflict with the intended task or trust boundaries.
Prompt injection delivered through external material such as a retrieved document, web page, or tool result.
An attempt to circumvent a model’s behavioral safeguards. It overlaps with some attacks but is not identical to every prompt injection.
Granting only the permissions necessary for a task, for the appropriate resources and duration.
Giving an AI system more capabilities, access, or autonomy than the task safely requires, increasing the possible impact of errors or attacks.
A situation where a more privileged component is tricked into using its authority on behalf of a less privileged party.
Manipulation of training or other learning data to influence a model’s behavior or quality. Poisoned retrieved content is also a concern at the system level.
Hidden behavior that is activated by a particular trigger or condition, often introduced through tampering with data or a model.
Attempts to reproduce or recover aspects of a model through access to its outputs or other exposed information.
Inferring whether a particular record was included in a model’s training data.
A mathematical privacy framework limiting how much an output distribution can change when one person’s data is added or removed, under specified assumptions and parameters.
Replacing direct identifiers with pseudonyms while retaining some means of linkage. It does not by itself make data anonymous.
Elapsed time until the first generated token is delivered. It differs from the time required to finish the entire response.
The time between successive delivered tokens during generation, which influences perceived streaming speed.
The amount of useful work completed per unit time, such as tokens or requests per second under specified conditions.
Serving requests in batches that can change as sequences finish and new requests join, improving utilization under variable workloads.
Reusing previously computed state for matching input prefixes. Cache correctness, privacy, and scope still need explicit controls.
An attention-memory management approach that stores key-value cache blocks non-contiguously to reduce waste and support efficient serving.
Splitting individual tensor operations or layer computations across multiple devices.
Splitting groups of model layers or stages across devices and passing intermediate activations between them.
Processing different data batches on replicated model copies and coordinating updates during training.
A family of distributed training techniques that partition optimizer states, gradients, and optionally parameters across workers to reduce redundant memory use.
A saved representation of model or training state that can support loading, resuming, or reproducing a particular point in development.
Changes in a deployed model system’s behavior or performance over time, often associated with changing data or conditions. Terminology varies by context.
Learning from examples paired with target labels or outputs.
Learning with targets constructed from the data itself, such as predicting masked or subsequent elements.
Learning patterns or structure from data without explicit target labels for the task, such as clustering.
Learning a policy through interaction and a reward signal, with choices affecting outcomes over time.
Using knowledge learned on one task or dataset to improve learning on another related setting.
A learning process that selects which examples should receive labels or additional feedback to use a labeling budget effectively.
Organizing training examples or tasks in a deliberate sequence, such as increasing difficulty, to influence learning.
Artificially generated data used for development, training, or testing. It can inherit biases and errors from its generation process.
Learning from imperfect labels or signals, such as heuristic rules, noisy annotations, or indirect supervision.
Learning from more than one data modality, such as text, images, audio, or video.
Learning representations by comparing related and unrelated examples, encouraging useful similarity and separation.
Training across distributed participants that share updates rather than centralizing all raw data. Updates can still present privacy risks.
A broadly trained model that can be adapted or used for multiple downstream tasks.
A label for models near the leading edge of capability; the boundary changes and is not a single universal technical threshold.
A contested term for broadly general artificial intelligence. There is no single universally accepted operational definition or test.
Work to make system behavior consistent with intended goals, values, and constraints; whose goals and which context need to be specified.
Connecting an output to relevant evidence or context and ensuring claims are supported by it.
Generated content that is unsupported, invented, or incorrect relative to the task or evidence. Fluency does not distinguish it from a supported answer.
Methods or explanations intended to make a model’s output or behavior understandable to people. An explanation may be plausible without being faithful.
The ability to investigate and understand a system’s internal representations or mechanisms; usage overlaps with explainability across communities.
The record of data’s origin, transformations, ownership, and lineage, used to assess trust, permissions, and reproducibility.
Documentation describing a model’s intended uses, evaluation, limitations, and other relevant characteristics. It is evidence to review, not a safety guarantee.
The amount and kinds of risk an organization is willing to accept in pursuing its objectives, translated into decision thresholds and controls.
Model weights made available for download or use under specified terms. This does not necessarily include training data, full source code, or unrestricted licensing.