PART 10 · REFERENCE
Glossary
285 terms. In lessons, dotted-underlined words show these definitions on hover.
- [CLS] token
- A learned extra token placed at the start of a sequence. After the Transformer layers, its output vector serves as a summary of the whole input, e.g. for classification.Learn it in: Vision Transformers: images as tokens →
- Abstention
- Declining to answer (saying "I don't know") when confidence is too low. Worth it when a wrong answer costs more than no answer.Learn it in: Hallucination: why models make things up →
- Activation function
- A nonlinear function (ReLU, GELU, sigmoid…) applied after a weighted sum. Without it, stacked layers would collapse into one linear map.Learn it in: Neurons, layers & activation functions →
- Activation steering
- Changing a model's behavior at inference time by adding a chosen direction (for example, a feature vector) to its internal activations.Learn it in: Interpretability: features, superposition & probing →
- Active parameters
- In an MoE model, the parameters actually used for a given token. Usually a small fraction of the total.Learn it in: Mixture of Experts →
- adaLN-Zero
- DiT's conditioning: the timestep and class embedding predict per-block scale, shift and gate values for layer norm, with gates initialized to zero.Learn it in: Diffusion Transformers & flow matching →
- Adam / AdamW
- An optimizer that combines momentum with a per-parameter adaptive step size. AdamW decouples weight decay from the update.Learn it in: Optimizers: SGD → Adam/AdamW → Muon →
- Advantage
- How much better an action or answer turned out than expected. Policy-gradient methods push up the probability of positive-advantage actions and push down negative ones.Learn it in: PPO vs DPO vs GRPO →
- Agent
- An LLM running in a loop that plans, calls tools, observes the results and continues until a goal is reached.Learn it in: Tool use, function calling & agents →
- AI winter
- A period of disappointment and reduced funding for AI research after hype outran results, notably the mid-1970s and the late 1980s to early 1990s.Learn it in: A short history: from perceptrons to ChatGPT →
- ALiBi
- Attention with Linear Biases: instead of adding position vectors, it subtracts a penalty proportional to the distance between query and key from each attention score, with a different slope per head.Learn it in: Positional encoding: sinusoids to RoPE →
- Alignment
- Making AI systems pursue the goals and values their designers and users intend.Learn it in: Bias & alignment →
- Annealing / mid-training
- A late phase of pretraining where the learning rate decays while the mixture shifts toward the highest-quality data (math, code, curated text, long documents).Learn it in: Pretraining data: collect, clean, dedup, mix →
- Approximate nearest neighbor (ANN) search
- Finding vectors that are very probably among the closest to a query without comparing against every stored vector, trading a little recall for a large speedup.Learn it in: Embeddings & vector search →
- Artificial intelligence (AI)
- The broad field of building systems that perform tasks we associate with intelligence: perceiving, reasoning, learning, using language.Learn it in: What are AI, ML, deep learning and LLMs? →
- Attention
- A mechanism that lets each position build its output as a weighted mix of other positions, with weights based on query–key similarity.Learn it in: Self-attention step by step →
- Attention sink
- A position (often the first token) that many attention heads dump most of their weight on when they have nothing useful to attend to. Softmax weights must sum to 1, so the excess has to go somewhere.Learn it in: Multi-head attention →
- Attention weights
- The softmax-normalized scores saying how much each token draws from every other token. Each row sums to 1.Learn it in: Self-attention step by step →
- Autoencoder
- A network trained to reproduce its input after squeezing it through a narrow bottleneck: an encoder compresses, a decoder reconstructs.Learn it in: Autoencoders, VAEs & latent space →
- Automatic differentiation (autodiff)
- Computing exact derivatives of a program by applying the chain rule to each elementary operation. Reverse mode, which gives the gradient of one output with respect to all inputs in one backward pass, is what backpropagation uses.Learn it in: Backpropagation & the chain rule →
- Autoregressive generation
- Generating one token at a time, appending each output to the input before predicting the next.Learn it in: Next-token prediction: the core idea →
- Auxiliary-loss-free load balancing
- DeepSeek-V3's way of keeping experts evenly used: a per-expert bias added to routing scores is nudged up for under-used experts and down for over-used ones, instead of adding a balancing term to the loss.Learn it in: DeepSeek: V3, R1 and beyond →
- AWQ (Activation-aware Weight Quantization)
- A post-training quantization method that uses activation statistics to find the small fraction of salient weight channels and scales them up before quantizing so they lose less precision.Learn it in: Quantization →
- Backpropagation
- An algorithm that computes the gradient of the loss with respect to every parameter by applying the chain rule backward through the network.Learn it in: Backpropagation & the chain rule →
- Base model
- A language model after pretraining only: it continues text rather than following instructions. Chat models are base models with further post-training.Learn it in: Next-token prediction: the core idea →
- Beam search
- A decoding method that keeps the k most probable partial sequences at each step and returns the best complete one. Common in translation; rarely used for chat models.Learn it in: Sampling: temperature, top-k, top-p →
- Benchmark
- A standardized test set used to compare models, such as MMLU, GPQA or SWE-bench.Learn it in: Evaluation, benchmarks & their pitfalls →
- BF16 (bfloat16)
- A 16-bit floating-point format with the same exponent range as FP32 but less precision, widely used for training.Learn it in: Mixed precision: FP32, BF16, FP8 →
- BM25
- A classic keyword-ranking formula that scores documents by how often they contain the query's terms, weighting rare terms more and damping long documents.Learn it in: Embeddings & vector search →
- Bradley–Terry model
- A model of pairwise comparisons in which the probability that A beats B is the sigmoid of the difference of their scores. Reward models are trained with it.Learn it in: Post-training II: RLHF & reward models →
- Byte-level BPE
- BPE whose base vocabulary is the 256 possible UTF-8 byte values, so any text can be encoded and there is never an unknown token.Learn it in: Tokenization & BPE →
- Byte-pair encoding (BPE)
- A tokenization algorithm that starts from characters or bytes and repeatedly merges the most frequent adjacent pair into a new token.Learn it in: Tokenization & BPE →
- Calibration
- How well a model's stated confidence matches its actual accuracy: a calibrated model is right about 80% of the time when it says it is 80% confident.Learn it in: Hallucination: why models make things up →
- Causal mask
- A mask that stops each token from attending to later tokens, so the model can't peek at the future during training.Learn it in: Self-attention step by step →
- Chain rule
- The calculus rule for derivatives of composed functions: d/dx f(g(x)) = f′(g(x))·g′(x).Learn it in: Backpropagation & the chain rule →
- Chain-of-thought (CoT)
- Having a model write out intermediate reasoning steps before its final answer.Learn it in: Reasoning models: CoT, RLVR & test-time compute →
- Chat template
- The exact text format, with role markers and special tokens, that turns a list of conversation messages into the single token sequence a chat model is trained and run on.Learn it in: Post-training I: SFT & instruction tuning →
- Chinchilla scaling
- The 2022 finding that, for compute-optimal training, parameters and training tokens should grow together, at roughly 20 tokens per parameter.Learn it in: Scaling laws: Kaplan & Chinchilla →
- Chunking
- Splitting documents into smaller passages before embedding them, so retrieval can return just the relevant piece rather than a whole document.Learn it in: Retrieval-augmented generation (RAG) →
- Classifier-free guidance (CFG)
- At sampling time, the conditional and unconditional predictions are mixed and pushed further toward the conditional one to follow the prompt more closely.Learn it in: Stable Diffusion & classifier-free guidance →
- CLIP
- OpenAI's 2021 model that learns a shared embedding space for images and text by contrasting matching and non-matching pairs.Learn it in: CLIP & contrastive learning →
- Common Crawl
- A nonprofit that has crawled the public web since 2008 and releases the raw pages for free. Most LLM pretraining corpora start from its snapshots.Learn it in: Pretraining data: collect, clean, dedup, mix →
- Computational graph
- A computation written as a graph of elementary operations (add, multiply, sigmoid…) with arrows showing which values feed into which. Backpropagation walks it backward.Learn it in: Backpropagation & the chain rule →
- Compute-optimal training
- Choosing model size and token count to reach the lowest loss for a fixed training compute budget. Inference costs are ignored by this definition.Learn it in: Scaling laws: Kaplan & Chinchilla →
- Constitutional AI
- Anthropic's method of using a written list of principles and AI-generated critiques and preference labels, instead of human labels, for parts of alignment training. An example of RLAIF.Learn it in: Post-training II: RLHF & reward models →
- Context window
- The maximum number of tokens a model can take into account at once, covering both prompt and output.Learn it in: Next-token prediction: the core idea →
- Continuous batching
- Adding and removing requests from a running batch at every generation step, instead of waiting for the whole batch to finish.Learn it in: Serving: batching & PagedAttention →
- Contrastive learning
- Learning representations by pulling matching pairs together and pushing non-matching pairs apart.Learn it in: CLIP & contrastive learning →
- ControlNet
- A trainable copy of a diffusion model's encoder, attached through zero-initialized convolutions, that conditions generation on edges, pose, depth and similar maps.Learn it in: ControlNet, LoRA, img2img & inpainting →
- Cosine similarity
- The dot product of two vectors divided by the product of their lengths: the cosine of the angle between them, from −1 to 1.Learn it in: Vectors & dot products →
- Critic (value model)
- A network that predicts expected future reward from a state. PPO uses it as a baseline to compute advantages; GRPO drops it in favor of group statistics.Learn it in: PPO vs DPO vs GRPO →
- Cross-attention
- Attention where queries come from one sequence (e.g. image latents) and keys/values from another (e.g. text tokens).Learn it in: Stable Diffusion & classifier-free guidance →
- Cross-entropy loss
- The negative log-probability the model assigned to the correct answer. It is low when the model is confidently right.Learn it in: Probability, softmax & cross-entropy →
- CTC (connectionist temporal classification)
- A loss for speech recognition that lets a model emit one label or a blank per audio frame and sums over all alignments that collapse to the correct transcript.Learn it in: Audio: speech recognition, TTS & audio tokens →
- Dark knowledge
- The information hidden in a teacher's small probabilities for wrong answers, such as a cat image being judged more tiger-like than truck-like. Soft targets transfer it to a student.Learn it in: Distillation →
- Data contamination
- When benchmark questions leak into training data, which inflates scores.Learn it in: Evaluation, benchmarks & their pitfalls →
- Data mixture
- The proportions of each data source (web, code, math, books, multilingual…) in a training run. Mixtures are tuned with small proxy models.Learn it in: Pretraining data: collect, clean, dedup, mix →
- Data parallelism
- Every GPU holds the whole model and processes a different slice of the batch; gradients are averaged with an all-reduce.Learn it in: Distributed training: data, tensor, pipeline & expert parallelism →
- DDIM
- Denoising Diffusion Implicit Models: a deterministic sampler for DDPM-trained models that can skip timesteps, so it needs far fewer steps.Learn it in: Diffusion: noising & denoising →
- DDPM
- Denoising Diffusion Probabilistic Models (Ho et al., 2020): train a network to predict the added noise, then sample by denoising step by step.Learn it in: Diffusion: noising & denoising →
- Decode phase
- The token-by-token phase of generation after prefill. Each step processes one new token per sequence and reads the whole KV cache and all weights, so it is usually memory-bandwidth-bound.Learn it in: The KV cache →
- Decoder-only Transformer
- A Transformer made of a single stack of causally masked blocks that predicts the next token. GPT, Llama, Qwen and DeepSeek are decoder-only; the original Transformer and T5 are encoder-decoder.Learn it in: The full Transformer: follow one token →
- Deduplication
- Removing repeated documents (exact copies or near-copies) from a training corpus so the model doesn't over-learn or memorize them.Learn it in: Pretraining data: collect, clean, dedup, mix →
- Deep learning
- Machine learning with neural networks that have many layers, learning increasingly abstract features at each layer.Learn it in: What are AI, ML, deep learning and LLMs? →
- DeepSeek Sparse Attention (DSA)
- A fine-grained sparse attention introduced in DeepSeek-V3.2-Exp: a lightweight indexer scores past tokens and each query attends only to the top-scoring ones, cutting long-context cost.Learn it in: DeepSeek: V3, R1 and beyond →
- Determinant
- A single number computed from a square matrix: the factor by which the transformation scales areas (or volumes). Negative means orientation flips; zero means space is flattened.Learn it in: Matrices as transformations →
- Diffusion model
- A generative model trained to reverse a gradual noising process, so it can generate data by denoising pure noise step by step.Learn it in: Diffusion: noising & denoising →
- Diffusion Transformer (DiT)
- A diffusion denoiser built from Transformer blocks over latent patches instead of a U-Net.Learn it in: Diffusion Transformers & flow matching →
- Discriminator
- In a GAN, the classifier that tries to tell real data from the generator's fakes; its feedback is the generator's training signal.Learn it in: GANs (a brief history) →
- Distillation
- Training a smaller 'student' model to imitate a larger 'teacher' model's outputs.Learn it in: Distillation →
- Dot product
- Multiply two vectors element by element and add up the results. It is large when the vectors point in similar directions.Learn it in: Vectors & dot products →
- Double descent
- The observation that test error can rise near the point where a model can exactly fit its training data, then fall again as capacity keeps growing. Real but not universal.Learn it in: Overfitting, regularization & data splits →
- DPO
- Direct Preference Optimization: learns from preference pairs directly with a classification-style loss, with no separate reward model or RL loop.Learn it in: PPO vs DPO vs GRPO →
- Dropout
- A regularization technique that randomly switches off a fraction of a network's units on each training step, so the network can't rely on fragile co-adapted features. It is turned off at test time.Learn it in: Overfitting, regularization & data splits →
- Early fusion
- Combining modalities at the input, so a single model processes image, audio and text tokens in one sequence from the first layer on. Late fusion joins separately processed modalities later.Learn it in: Native any-to-any (omni) models →
- Early stopping
- Stopping training (and keeping the best checkpoint) once validation loss stops improving, before the model starts memorizing its training data.Learn it in: Overfitting, regularization & data splits →
- Embedding
- A learned vector representing a token, word, image or document, arranged so that similar meanings get nearby vectors.Learn it in: Embeddings & semantic space →
- Embedding matrix
- A learned table with one row per vocabulary entry. Looking up a token id returns that row: the token's embedding vector.Learn it in: Embeddings & semantic space →
- Evidence lower bound (ELBO)
- The VAE training objective: reconstruction quality minus a KL penalty. It is a lower bound on the log-likelihood of the data.Learn it in: Autoencoders, VAEs & latent space →
- Expert parallelism
- Placing different experts of a Mixture-of-Experts layer on different GPUs and sending each token to the GPU holding its chosen expert (an all-to-all exchange).Learn it in: Distributed training: data, tensor, pipeline & expert parallelism →
- Feature (interpretability)
- A property of the input that a network represents internally, such as "this text is in French". The working hypothesis is that each feature corresponds to a direction in activation space.Learn it in: Interpretability: features, superposition & probing →
- Few-shot prompting
- Including a few worked examples in the prompt so the model infers the pattern (in-context learning).Learn it in: Prompting, system prompts & few-shot →
- Fine-tuning
- Continuing to train a pretrained model on a narrower dataset to specialize it.Learn it in: Fine-tuning: LoRA & QLoRA →
- FlashAttention
- An exact attention algorithm that processes attention in tiles held in fast on-chip memory, avoiding materializing the full attention matrix.Learn it in: Long context & FlashAttention →
- FLOPs
- Floating-point operations, the standard measure of compute. Training a dense Transformer costs about 6 × parameters × tokens FLOPs.Learn it in: Scaling laws: Kaplan & Chinchilla →
- Flow matching / rectified flow
- Training a model to predict a velocity field that carries noise to data along (ideally straight) paths. Used in SD3 and FLUX.Learn it in: Diffusion Transformers & flow matching →
- FP8
- 8-bit floating-point formats (E4M3, E5M2) used to speed up training and inference on recent GPUs.Learn it in: Mixed precision: FP32, BF16, FP8 →
- Generalized Advantage Estimation (GAE)
- A way to compute advantages from a critic's value estimates that blends short and long horizons with a parameter λ, trading bias for variance.Learn it in: PPO vs DPO vs GRPO →
- Generative adversarial network (GAN)
- A generator and a discriminator trained against each other: the generator tries to fool the discriminator.Learn it in: GANs (a brief history) →
- Generative AI
- Models that create new content such as text, images, audio or video by learning the patterns of their training data and sampling from them.Learn it in: What are AI, ML, deep learning and LLMs? →
- Goodhart's law
- When a measure becomes a target, it ceases to be a good measure: optimizing hard for a benchmark tends to inflate the score more than the underlying skill.Learn it in: Evaluation, benchmarks & their pitfalls →
- GPTQ
- A post-training quantization method that rounds weights one column at a time and uses approximate second-order (Hessian) information to adjust the remaining weights, compensating for each rounding error.Learn it in: Quantization →
- GPU (graphics processing unit)
- A chip with thousands of simple cores built for graphics. It turned out to be ideal for the huge matrix multiplications inside neural networks.Learn it in: A short history: from perceptrons to ChatGPT →
- Gradient
- The vector of partial derivatives of the loss with respect to each parameter. It points in the direction of steepest increase.Learn it in: Loss functions & gradient descent →
- Gradient descent
- Repeatedly nudging the parameters a small step opposite the gradient, so the loss goes downhill.Learn it in: Loss functions & gradient descent →
- Greedy decoding
- Always picking the single most probable next token. Deterministic, equivalent to temperature 0, and prone to repetitive loops in open-ended text.Learn it in: Sampling: temperature, top-k, top-p →
- Grouped-query attention (GQA)
- Attention in which groups of query heads share one key/value head, shrinking the KV cache. MQA is the extreme case of one shared KV head.Learn it in: MHA vs MQA vs GQA vs MLA →
- GRPO
- Group Relative Policy Optimization: samples a group of answers per prompt and uses each answer's reward relative to the group average as its advantage. No value network is needed.Learn it in: PPO vs DPO vs GRPO →
- Hallucination
- When a model produces fluent but false or unsupported content.Learn it in: Hallucination: why models make things up →
- HBM (high-bandwidth memory)
- The large main memory stacked next to a GPU (tens of GB, a few TB/s). It is much bigger but much slower than the on-chip SRAM inside each streaming multiprocessor.Learn it in: Long context & FlashAttention →
- HNSW
- Hierarchical Navigable Small World graph: an ANN index that links each vector to nearby vectors in several layers and finds neighbors by greedily walking the graph from a coarse top layer down.Learn it in: Embeddings & vector search →
- Hybrid search
- Combining keyword search (such as BM25) with vector search and merging the two ranked lists, so exact terms and paraphrases are both found.Learn it in: Embeddings & vector search →
- Hybrid thinking mode
- One model that can either reason step by step before answering (thinking) or answer directly (non-thinking), switched per request, e.g. Qwen3's /think and /no_think.Learn it in: Qwen (Alibaba): Qwen2.5, Qwen3 and beyond →
- ImageNet
- A large dataset of labeled photos released in 2009. Its yearly competition (1,000 classes, about 1.2 million training images) was where deep learning's 2012 breakthrough happened.Learn it in: A short history: from perceptrons to ChatGPT →
- img2img
- Image-to-image diffusion: noise an existing image part-way, then denoise it with a new prompt. 'Strength' sets how far into the noise you start.Learn it in: ControlNet, LoRA, img2img & inpainting →
- Indirect prompt injection
- An attack where instructions are planted in content an LLM later reads (web pages, emails, documents, tool outputs), so the model acts for the attacker instead of the user.Learn it in: Jailbreaks & prompt injection (conceptual) →
- Inductive bias
- Assumptions built into a model's architecture, such as a CNN's locality and translation equivariance. Strong biases help with little data; weak ones need more data but can learn more general patterns.Learn it in: Vision Transformers: images as tokens →
- Inference
- Running a trained model to produce outputs, as opposed to training it.Learn it in: The KV cache →
- InfoNCE loss
- A contrastive loss: a softmax cross-entropy that asks each item to pick its true partner out of a batch of candidates. CLIP averages it over both directions (image→text and text→image).Learn it in: CLIP & contrastive learning →
- Inpainting
- Regenerating only a masked region of an image while keeping the rest, so the new content blends with its surroundings.Learn it in: ControlNet, LoRA, img2img & inpainting →
- Interpretability
- Research into understanding what computations happen inside a neural network.Learn it in: Interpretability: features, superposition & probing →
- Jailbreak
- A prompt crafted to get a model to bypass its safety training.Learn it in: Jailbreaks & prompt injection (conceptual) →
- JSON-RPC 2.0
- A lightweight remote-procedure-call format in which requests, responses and notifications are small JSON objects with a method name, parameters and an id. MCP is built on it.Learn it in: The Model Context Protocol (MCP) →
- KL divergence
- A measure of how different one probability distribution is from another. Zero when they are identical; not symmetric.Learn it in: Autoencoders, VAEs & latent space →
- KL penalty
- A term in RLHF-style objectives that charges the policy for drifting away from a frozen reference model, measured by KL divergence. It keeps outputs fluent and limits reward hacking.Learn it in: Post-training II: RLHF & reward models →
- KV cache
- Stored keys and values from earlier tokens, reused during generation so they aren't recomputed at every step.Learn it in: The KV cache →
- Large language model (LLM)
- A very large neural network, usually a Transformer, trained to predict the next token of text. Chat assistants are post-trained LLMs.Learn it in: What are AI, ML, deep learning and LLMs? →
- Latent diffusion
- Running diffusion in a VAE's compressed latent space instead of pixel space. Stable Diffusion works this way.Learn it in: Stable Diffusion & classifier-free guidance →
- Latent space
- A compressed internal representation space learned by a model, where nearby points represent similar things.Learn it in: Autoencoders, VAEs & latent space →
- Layer normalization
- Rescales each token's vector to zero mean and unit variance, with learned scale and shift. RMSNorm is a simpler variant.Learn it in: LayerNorm, RMSNorm & residual connections →
- Learning rate
- The step size in gradient descent. Too small is slow; too large overshoots or diverges.Learn it in: Loss functions & gradient descent →
- Learning-rate schedule
- How the learning rate changes during training, typically a short linear warmup followed by cosine or linear decay (or a warmup-stable-decay shape).Learn it in: Optimizers: SGD → Adam/AdamW → Muon →
- Least squares
- Fitting a model by choosing the parameters that minimize the sum of squared residuals. For linear models it has an exact solution, the normal equations.Learn it in: Functions & learning from data →
- Linear attention
- Attention variants (e.g. Gated DeltaNet, Kimi Delta Attention, lightning attention) that keep a fixed-size recurrent state instead of a growing KV cache, so cost grows linearly with sequence length. Usually mixed with a few full-attention layers.Learn it in: Kimi (Moonshot AI): K2 and beyond →
- Linear probe
- A simple linear classifier trained on a model's internal activations to test whether some property (like sentiment or truth) can be read off them.Learn it in: Interpretability: features, superposition & probing →
- Linear transformation
- A function on vectors that keeps grid lines straight, parallel and evenly spaced and keeps the origin fixed. Every one can be written as multiplication by a matrix.Learn it in: Matrices as transformations →
- LLM-as-a-judge
- Using a language model to grade or compare other models' outputs, which scales cheaply but brings biases such as favoring the first or the longer answer.Learn it in: Evaluation, benchmarks & their pitfalls →
- Load-balancing loss
- An auxiliary training loss for Mixture-of-Experts models that penalizes uneven routing, pushing the router to spread tokens evenly across experts.Learn it in: Mixture of Experts →
- Logits
- Raw, unnormalized scores a model outputs, one per class or token. Softmax turns them into probabilities.Learn it in: Probability, softmax & cross-entropy →
- Long short-term memory (LSTM)
- An RNN variant (Hochreiter & Schmidhuber, 1997) with gated memory cells that let information and gradients survive over longer spans.Learn it in: From RNNs to attention →
- LoRA
- Low-Rank Adaptation: freeze the original weights and learn a small low-rank update ΔW = B·A, which has far fewer parameters to train.Learn it in: Fine-tuning: LoRA & QLoRA →
- Loss function
- A number measuring how wrong a model's predictions are. Training tries to make it small.Learn it in: Loss functions & gradient descent →
- Loss masking
- Excluding some tokens (typically the system and user turns) from the training loss, so the model learns to produce assistant replies without being trained to imitate the user.Learn it in: Post-training I: SFT & instruction tuning →
- Loss scaling
- Multiplying the loss by a large factor before backpropagation so tiny FP16 gradients don't underflow to zero, then dividing the gradients back before the update.Learn it in: Mixed precision: FP32, BF16, FP8 →
- Low-rank matrix
- A matrix that can be written as the product of a tall thin matrix and a short wide one, so it carries far fewer independent numbers than its size suggests.Learn it in: Fine-tuning: LoRA & QLoRA →
- Machine learning (ML)
- A branch of AI in which behavior is learned from data rather than written out as explicit rules.Learn it in: What are AI, ML, deep learning and LLMs? →
- Matrix
- A rectangular grid of numbers. Multiplying a vector by a matrix applies a linear transformation such as a rotation, scaling or projection.Learn it in: Matrices as transformations →
- Mean squared error (MSE)
- The average of the squared differences between predictions and true values. The standard loss for predicting numbers.Learn it in: Functions & learning from data →
- Mel scale
- A perceptual frequency scale that is roughly linear below 1 kHz and logarithmic above, matching how humans hear pitch differences.Learn it in: Audio: speech recognition, TTS & audio tokens →
- Memory-bound (vs compute-bound)
- A workload is memory-bound when its speed is limited by how fast data can be moved from memory, not by arithmetic. The deciding ratio is arithmetic intensity: FLOPs performed per byte moved.Learn it in: The KV cache →
- Min-p sampling
- A truncation rule that keeps only tokens whose probability is at least a fraction p of the top token's probability, so the cutoff adapts to how confident the model is.Learn it in: Sampling: temperature, top-k, top-p →
- MinHash (and LSH)
- A technique that compresses a document's set of word n-grams into a short signature whose agreement rate estimates Jaccard similarity. Locality-sensitive hashing (LSH) then finds likely near-duplicate pairs without comparing every pair.Learn it in: Pretraining data: collect, clean, dedup, mix →
- Mixed-precision training
- Doing most math in a low-precision format (FP16, BF16 or FP8) while keeping a high-precision (FP32) master copy of the weights and sensitive operations.Learn it in: Mixed precision: FP32, BF16, FP8 →
- Mixture of Experts (MoE)
- An architecture in which each token is routed to a few of many 'expert' sub-networks, so total parameters can be huge while compute per token stays small.Learn it in: Mixture of Experts →
- MLP (feed-forward network)
- A multi-layer perceptron: linear layers with nonlinear activations between them. Each Transformer block contains one.Learn it in: Neurons, layers & activation functions →
- MMDiT
- Multimodal Diffusion Transformer (SD3): text and image tokens keep separate weights but attend to each other in one joint attention.Learn it in: Diffusion Transformers & flow matching →
- Modality gap
- The observation that in CLIP-like models, image embeddings and text embeddings occupy separate regions of the shared space even when matching pairs align well.Learn it in: CLIP & contrastive learning →
- Mode collapse
- A GAN failure where the generator produces only a few kinds of output (one 'mode' of the data) instead of the full variety.Learn it in: GANs (a brief history) →
- Model
- A function with adjustable parameters that maps inputs to outputs. Training sets the parameters so the outputs are useful.Learn it in: Functions & learning from data →
- Model card
- The documentation page shipped with a model (usually on Hugging Face): architecture, parameter counts, context length, training data, license, intended use, recommended sampling settings and benchmark results.Learn it in: The open-weight landscape →
- Model Context Protocol (MCP)
- An open protocol for connecting AI applications to tools and data sources through a standard client–server interface.Learn it in: The Model Context Protocol (MCP) →
- Model-as-a-Service (MaaS)
- Selling access to a model as a hosted API. Several 2026 open-weight licenses require a separate agreement for MaaS providers above a revenue threshold.Learn it in: The open-weight landscape →
- Multi-head attention (MHA)
- Running several attention operations (heads) in parallel, each with its own projections, then combining their outputs.Learn it in: Multi-head attention →
- Multi-head latent attention (MLA)
- DeepSeek's attention variant that compresses keys and values into a small latent vector per token, greatly reducing KV-cache size.Learn it in: MHA vs MQA vs GQA vs MLA →
- Multi-query attention (MQA)
- An attention variant in which all query heads share a single key head and a single value head, shrinking the KV cache by a factor equal to the number of heads.Learn it in: MHA vs MQA vs GQA vs MLA →
- Multi-token prediction (MTP)
- Training a model to predict several future tokens at each position, which densifies the training signal and enables speculative decoding.Learn it in: Speculative decoding & multi-token prediction →
- Multimodal
- Handling more than one type of data, such as text, images, audio and video.Learn it in: Native any-to-any (omni) models →
- Muon
- An optimizer that orthogonalizes the momentum update of each weight matrix (via Newton–Schulz iterations) before applying it.Learn it in: Optimizers: SGD → Adam/AdamW → Muon →
- MuonClip
- The optimizer used to train Kimi K2: Muon plus QK-clip, which rescales query and key weights whenever an attention head's maximum logit exceeds a threshold.Learn it in: Kimi (Moonshot AI): K2 and beyond →
- MXFP4
- A 4-bit floating-point microscaling format: small blocks of FP4 values share one scale factor. gpt-oss ships its MoE weights in MXFP4.Learn it in: Llama, Mistral, Gemma, GLM, gpt-oss & more →
- N-gram model
- A language model that predicts the next token from only the previous n−1 tokens, using counts from a corpus.Learn it in: Next-token prediction: the core idea →
- Naive Bayes
- A simple, classic classifier that scores an input by multiplying how likely each of its features (for example each word) is under each class, assuming the features are independent.Learn it in: What are AI, ML, deep learning and LLMs? →
- Negative prompt
- In CFG sampling, text whose prediction replaces the unconditional one, so guidance pushes the image away from it.Learn it in: Stable Diffusion & classifier-free guidance →
- Neural audio codec
- A learned encoder-quantizer-decoder (e.g. SoundStream, EnCodec) that compresses audio into discrete tokens and reconstructs the waveform from them.Learn it in: Audio: speech recognition, TTS & audio tokens →
- Neural network
- A model made of layers of neurons, each layer transforming the previous layer's output.Learn it in: Neurons, layers & activation functions →
- Neuron
- The basic unit of a neural network: a weighted sum of inputs plus a bias, passed through an activation function.Learn it in: Neurons, layers & activation functions →
- Newton–Schulz iteration
- A few matrix multiplications that push all singular values of a matrix toward 1, approximately orthogonalizing it. Muon uses it on each update.Learn it in: Optimizers: SGD → Adam/AdamW → Muon →
- Next-token prediction
- The training objective of LLMs: given the text so far, output a probability distribution over the next token.Learn it in: Next-token prediction: the core idea →
- NF4 (4-bit NormalFloat)
- The 4-bit data type introduced by QLoRA, whose 16 levels are placed at quantiles of a normal distribution to suit normally distributed weights.Learn it in: Fine-tuning: LoRA & QLoRA →
- Noise schedule
- The recipe that sets how much noise a diffusion model adds at each timestep, e.g. linear or cosine schedules for ᾱ_t.Learn it in: Diffusion: noising & denoising →
- One-hot vector
- A vector of all zeros except a single 1 marking the correct class or token. It is the target distribution in classification.Learn it in: Probability, softmax & cross-entropy →
- Online softmax
- Computing a softmax in one streaming pass by keeping a running maximum and running sum, and rescaling earlier partial results whenever the maximum grows. It is the trick that lets FlashAttention work tile by tile.Learn it in: Long context & FlashAttention →
- Open Source AI Definition (OSAID)
- The Open Source Initiative's definition of open-source AI (version 1.0). Besides freely licensed weights, it requires the complete training and inference code and sufficiently detailed information about the training data.Learn it in: The open-weight landscape →
- Open-weight model
- A model whose trained parameters are publicly downloadable. This is not necessarily 'open source': training data and code may not be released.Learn it in: The open-weight landscape →
- Output projection (W_O)
- The d_model × d_model matrix applied after the attention heads' outputs are concatenated. It mixes information from all heads back into the residual stream.Learn it in: Multi-head attention →
- Overfitting
- When a model memorizes quirks of its training data and performs worse on new data.Learn it in: Overfitting, regularization & data splits →
- PagedAttention
- vLLM's technique of storing the KV cache in fixed-size blocks, like virtual-memory pages, to avoid fragmentation and enable sharing.Learn it in: Serving: batching & PagedAttention →
- Parameter (weight)
- A number inside a model that is adjusted during training. Modern LLMs have billions to trillions of them.Learn it in: Functions & learning from data →
- pass@k
- The probability that at least one of k sampled answers is correct. It measures what a model can reach with a perfect verifier, not what it answers by default.Learn it in: Reasoning models: CoT, RLVR & test-time compute →
- Patch embedding
- The first layer of a Vision Transformer: each P×P image patch is flattened into P·P·3 numbers and mapped by one shared linear layer to a vector of the model's width.Learn it in: Vision Transformers: images as tokens →
- Perceptron
- Frank Rosenblatt's 1958 learning machine: a single artificial neuron that adjusts its weights whenever it misclassifies an example. A single-layer perceptron can only separate classes with a straight line.Learn it in: A short history: from perceptrons to ChatGPT →
- Perplexity
- The exponential of the average cross-entropy per token. Roughly, how many equally likely options the model is choosing between at each step; lower is better.Learn it in: Next-token prediction: the core idea →
- Pipeline parallelism
- Giving each GPU a contiguous block of layers and streaming micro-batches through them like an assembly line.Learn it in: Distributed training: data, tensor, pipeline & expert parallelism →
- Polysemantic neuron
- A neuron that fires for several unrelated concepts, so it can't be read as representing one thing. Often a symptom of superposition.Learn it in: Interpretability: features, superposition & probing →
- Positional encoding
- Information added to token representations so the model knows word order. Examples: sinusoidal, learned, RoPE.Learn it in: Positional encoding: sinusoids to RoPE →
- Post-training quantization (PTQ)
- Quantizing an already-trained model's weights (and sometimes activations) without retraining it, typically using a small calibration set. GPTQ and AWQ are PTQ methods.Learn it in: Quantization →
- PPO
- Proximal Policy Optimization: an RL algorithm that limits how far each update moves the policy. It was the classic RLHF workhorse.Learn it in: PPO vs DPO vs GRPO →
- Pre-norm vs post-norm
- Where normalization sits in a Transformer block. Post-norm (original Transformer) normalizes after each residual add; pre-norm (GPT-2 onward) normalizes the input of each sublayer and leaves the residual path untouched, which trains more stably when deep.Learn it in: LayerNorm, RMSNorm & residual connections →
- Pre-tokenization
- The step before BPE that cuts text into rough word-like chunks with a regular expression, so merges never cross word boundaries.Learn it in: Tokenization & BPE →
- Prefill
- The first phase of generation: the whole prompt is processed in one parallel forward pass, filling the KV cache and producing the first output token. It is usually compute-bound.Learn it in: The KV cache →
- Prefix caching
- Reusing the KV cache of a shared prompt prefix (like a system prompt) across requests, so the shared part is stored once and never recomputed.Learn it in: Serving: batching & PagedAttention →
- Pretraining
- The first and largest training phase: next-token prediction on trillions of tokens of general text.Learn it in: Pretraining data: collect, clean, dedup, mix →
- Privilege separation (LLM agents)
- Designing an agent so the component that reads untrusted content cannot call tools, and the component that calls tools never sees untrusted content.Learn it in: Jailbreaks & prompt injection (conceptual) →
- Probability distribution
- An assignment of probabilities to possible outcomes, summing to 1.Learn it in: Probability, softmax & cross-entropy →
- Product quantization (PQ)
- Compressing vectors by splitting each into sub-vectors and replacing every sub-vector with the id of its nearest centroid from a small learned codebook.Learn it in: Embeddings & vector search →
- Projection
- The shadow of one vector on the direction of another: the part of b that points along a. Its signed length is a·b / |a|.Learn it in: Vectors & dot products →
- Projector (vision-language connector)
- The module that turns vision-encoder outputs into vectors the LLM can consume: a linear layer or MLP, a Q-Former/resampler, or cross-attention layers.Learn it in: Vision-language models →
- Prompt
- The input text (and other content) given to a model to condition its output.Learn it in: Prompting, system prompts & few-shot →
- Prompt injection
- Malicious instructions hidden in content a model processes, such as a web page or document, that try to hijack its behavior.Learn it in: Jailbreaks & prompt injection (conceptual) →
- QK-clip
- A weight-clipping step from Kimi K2: if a head's maximum attention logit exceeds a threshold τ, its query and key projection weights are scaled down so that logit returns to τ.Learn it in: Kimi (Moonshot AI): K2 and beyond →
- Quality classifier
- A small model that scores each web document for usefulness (e.g. 'educational value'); documents below a threshold are dropped. FineWeb-Edu is a well-known example.Learn it in: Pretraining data: collect, clean, dedup, mix →
- Quantization
- Storing or computing with fewer bits per number (for example INT8 or INT4 instead of 16-bit) to save memory and time, at some cost in precision.Learn it in: Quantization →
- Quantization-aware training (QAT)
- Training or fine-tuning with simulated low-precision arithmetic in the forward pass, so the model learns weights that survive quantization.Learn it in: Quantization →
- Query, key, value (Q/K/V)
- Three learned projections of each token. A query is compared with keys to get attention weights, which then mix the values.Learn it in: Self-attention step by step →
- R1-Zero
- DeepSeek's experiment of training reasoning with reinforcement learning (GRPO) directly on the base model, with no supervised fine-tuning first. Reasoning emerged, but outputs were hard to read and mixed languages.Learn it in: DeepSeek: V3, R1 and beyond →
- ReAct
- Reason + Act: an agent pattern where the model alternates between writing a thought, taking an action such as a tool call, and reading the observation that comes back.Learn it in: Tool use, function calling & agents →
- Recurrent neural network (RNN)
- A network that reads a sequence one step at a time, carrying a hidden state forward. LSTMs and GRUs are improved RNNs.Learn it in: From RNNs to attention →
- Regularization
- Techniques such as weight decay, dropout and early stopping that discourage overfitting.Learn it in: Overfitting, regularization & data splits →
- ReLU (rectified linear unit)
- The activation function max(0, z): zero for negative inputs, the identity for positive ones. Cheap, with gradient 1 when active, so it helps deep networks train.Learn it in: Neurons, layers & activation functions →
- Reparameterization trick
- Writing a random sample as z = μ + σ·ε with ε ~ N(0, 1), so gradients can flow through μ and σ while the randomness lives in ε.Learn it in: Autoencoders, VAEs & latent space →
- Repetition penalty
- A decoding-time adjustment that lowers the logits of tokens that already appeared in the text (as in frequency and presence penalties) to discourage loops.Learn it in: Sampling: temperature, top-k, top-p →
- Reranker
- A slower, more accurate model (often a cross-encoder) that rescores a short list of retrieved candidates by reading the query and each document together.Learn it in: Embeddings & vector search →
- Residual
- The difference between a true value and the model's prediction for one data point: the error the model still has to explain.Learn it in: Functions & learning from data →
- Residual connection
- Adding a layer's input to its output (x + f(x)). This creates a 'residual stream' and makes very deep networks trainable.Learn it in: LayerNorm, RMSNorm & residual connections →
- Residual stream
- The running vector for each token that flows through a Transformer: every attention and MLP sublayer reads from it and adds its output back into it, like a shared communication bus.Learn it in: LayerNorm, RMSNorm & residual connections →
- Residual vector quantization (RVQ)
- Quantizing a vector with a chain of codebooks, where each codebook encodes the error left by the previous ones. Neural audio codecs use it to turn sound into a few discrete tokens per frame.Learn it in: Audio: speech recognition, TTS & audio tokens →
- Retrieval-augmented generation (RAG)
- Retrieving relevant documents at query time and placing them in the prompt so the model can answer from them.Learn it in: Retrieval-augmented generation (RAG) →
- Reward hacking
- When a policy finds ways to score highly on an imperfect reward signal without doing what the designers actually wanted, such as padding answers because the reward model likes length.Learn it in: Post-training II: RLHF & reward models →
- Reward model
- A model trained to score responses so that preferred responses get higher scores.Learn it in: Post-training II: RLHF & reward models →
- RL with verifiable rewards (RLVR)
- Reinforcement learning where the reward comes from an automatic checker, such as a correct math answer or passing unit tests.Learn it in: Reasoning models: CoT, RLVR & test-time compute →
- RLHF
- Reinforcement learning from human feedback: train a reward model on human preference comparisons, then optimize the LLM against it.Learn it in: Post-training II: RLHF & reward models →
- RMSNorm
- A simpler LayerNorm that only divides a vector by its root-mean-square and multiplies by a learned gain, skipping the mean subtraction and bias. Used by most modern LLMs.Learn it in: LayerNorm, RMSNorm & residual connections →
- RoPE scaling (context extension)
- Techniques such as position interpolation, NTK-aware scaling and YaRN that adjust RoPE's rotation frequencies so a model trained on short contexts can handle longer ones, usually with some extra fine-tuning.Learn it in: Positional encoding: sinusoids to RoPE →
- Rotary position embedding (RoPE)
- Encodes position by rotating query and key vectors by angles proportional to their position, so attention depends on relative distance.Learn it in: Positional encoding: sinusoids to RoPE →
- Router (gating network)
- The small learned layer in a Mixture-of-Experts block that scores every expert for each token and picks the top-k experts that will process it.Learn it in: Mixture of Experts →
- Rule-based system (expert system)
- An AI program whose behavior is a set of hand-written if-then rules, usually written down from human experts. Nothing is learned from data.Learn it in: What are AI, ML, deep learning and LLMs? →
- Scaled dot-product attention
- Attention(Q, K, V) = softmax(QKᵀ/√d_k)·V: compare queries with keys, normalize, and take a weighted average of values.Learn it in: Self-attention step by step →
- Scaling laws
- Empirical power-law relationships between loss and model size, data and compute.Learn it in: Scaling laws: Kaplan & Chinchilla →
- Score function
- The gradient of the log-density, ∇ₓ log p(x): an arrow at every point that points toward more likely data. Denoisers estimate it.Learn it in: Diffusion: noising & denoising →
- Self-attention
- Attention in which the queries, keys and values all come from the same sequence.Learn it in: Self-attention step by step →
- Self-consistency
- Sampling several independent chains of thought for the same question and returning the most common final answer (majority vote).Learn it in: Reasoning models: CoT, RLVR & test-time compute →
- Sequence-to-sequence (seq2seq)
- An encoder-decoder architecture that reads an input sequence and generates an output sequence, originally for machine translation.Learn it in: From RNNs to attention →
- Short-time Fourier transform (STFT)
- Slicing a signal into short overlapping windows and taking the Fourier transform of each, which shows how its frequency content changes over time.Learn it in: Audio: speech recognition, TTS & audio tokens →
- SigLIP
- A CLIP-style image-text model trained with a pairwise sigmoid loss instead of a batch-wide softmax. Its image encoders are widely reused in vision-language models.Learn it in: CLIP & contrastive learning →
- Sigmoid
- The S-shaped function σ(z) = 1/(1 + e^(−z)), which squashes any number into the range 0 to 1. Used to turn a score into a probability; it saturates (flattens) for large |z|.Learn it in: Neurons, layers & activation functions →
- Sinusoidal positional encoding
- The fixed position code from the original Transformer: each dimension pair holds sin and cos of the position at a different frequency, from fast to very slow.Learn it in: Positional encoding: sinusoids to RoPE →
- Sliding-window attention
- Attention in which each token only attends to the most recent W tokens, so cost and KV cache grow linearly rather than quadratically with context length.Learn it in: Long context & FlashAttention →
- Soft targets
- A teacher model's full probability distribution over outputs, often softened with a temperature above 1, used as the training target for a student instead of a one-hot label.Learn it in: Distillation →
- Softmax
- A function that turns a vector of scores into probabilities by exponentiating each score and dividing by the total.Learn it in: Probability, softmax & cross-entropy →
- Spacetime patch
- A small block of video covering a few pixels (or latents) in height and width and a few frames in time, used as one token.Learn it in: Video generation basics →
- Sparse autoencoder (SAE)
- A small network trained to rewrite a model's activations as a sparse combination of many learned directions, used to pull apart features stored in superposition.Learn it in: Interpretability: features, superposition & probing →
- Special token
- A reserved vocabulary entry, such as a turn delimiter or end-of-sequence marker, that ordinary text never produces and that the model learns to treat as structure.Learn it in: Post-training I: SFT & instruction tuning →
- Spectrogram
- A picture of sound showing how much energy each frequency has over time. Speech models often take log-mel spectrograms as input.Learn it in: Audio: speech recognition, TTS & audio tokens →
- Speculative decoding
- A small draft model proposes several tokens and the large model verifies them in one pass. This speeds up generation without changing the output distribution.Learn it in: Speculative decoding & multi-token prediction →
- Spotlighting (data marking)
- A prompt-injection defense that delimits, marks or encodes untrusted content so the model can tell it apart from instructions. Reduces attack success but gives no guarantee.Learn it in: Jailbreaks & prompt injection (conceptual) →
- Stochastic gradient descent (SGD)
- Gradient descent that estimates the gradient on a small random batch of examples instead of the full dataset.Learn it in: Loss functions & gradient descent →
- Structured output
- Making a model's answer follow a machine-readable format such as JSON matching a schema, either by instruction or by constraining decoding so only valid tokens can be generated.Learn it in: Prompting, system prompts & few-shot →
- Superposition
- A network representing more features than it has dimensions by packing them into nearly orthogonal directions.Learn it in: Interpretability: features, superposition & probing →
- Supervised fine-tuning (SFT)
- Training a pretrained model on curated (prompt, ideal response) examples to teach it to follow instructions.Learn it in: Post-training I: SFT & instruction tuning →
- Supervised learning
- Learning from examples that come with the correct answer (a label), such as emails marked spam or not spam. The model learns to map inputs to labels.Learn it in: What are AI, ML, deep learning and LLMs? →
- Sycophancy
- A model's tendency to tell users what they want to hear: agreeing with stated opinions, flattering, or abandoning correct answers under pushback. Often reinforced by preference training.Learn it in: Bias & alignment →
- System prompt
- Instructions placed before the conversation that set the model's role, rules and context.Learn it in: Prompting, system prompts & few-shot →
- Temperature
- A sampling knob that divides logits before softmax. Low values make output more deterministic; high values make it more random.Learn it in: Sampling: temperature, top-k, top-p →
- Temporal attention
- Attention along the time axis only: each spatial position attends to itself in other frames. Cheaper than full spacetime attention.Learn it in: Video generation basics →
- Tensor parallelism
- Splitting individual weight matrices across GPUs so each computes part of every layer; requires very fast interconnects.Learn it in: Distributed training: data, tensor, pipeline & expert parallelism →
- Test-time compute
- Spending more computation at inference, through longer reasoning or more samples, to get better answers.Learn it in: Reasoning models: CoT, RLVR & test-time compute →
- Thinker–Talker architecture
- An omni-model design (Qwen2.5-Omni, Qwen3-Omni) where a Thinker Transformer understands all inputs and writes text, and a Talker reads its hidden states to stream speech tokens.Learn it in: Native any-to-any (omni) models →
- Time to first token (TTFT)
- Latency from sending a request until the first output token arrives. It is dominated by queueing and prefill. Its companion metric TPOT (time per output token) measures decode speed.Learn it in: Serving: batching & PagedAttention →
- Token
- A chunk of text (a word, part of a word, or a character) that a language model reads and writes as a single unit.Learn it in: Tokenization & BPE →
- Token id
- The integer a tokenizer assigns to each token in its vocabulary. The model only ever sees these ids, never the underlying letters.Learn it in: Tokenization & BPE →
- Tokenizer
- The component that splits text into tokens and maps them to integer IDs (and back).Learn it in: Tokenization & BPE →
- Tool use / function calling
- A model emits a structured call (name + arguments) that software executes, then the result is fed back to the model.Learn it in: Tool use, function calling & agents →
- Top-k sampling
- Sample only from the k most likely next tokens.Learn it in: Sampling: temperature, top-k, top-p →
- Top-p (nucleus) sampling
- Sample from the smallest set of tokens whose probabilities add up to at least p.Learn it in: Sampling: temperature, top-k, top-p →
- Training
- The process of adjusting a model's parameters to reduce its loss on example data.Learn it in: Functions & learning from data →
- Transformer
- The neural network architecture behind modern LLMs: stacked blocks of self-attention and feed-forward layers with residual connections.Learn it in: The full Transformer: follow one token →
- U-Net
- A convolutional encoder-decoder with skip connections, the classic denoiser backbone in diffusion models.Learn it in: Stable Diffusion & classifier-free guidance →
- Unembedding (LM head)
- The final matrix that turns a token's d_model-dimensional vector into one logit per vocabulary entry. Often tied to (shared with) the input embedding matrix.Learn it in: The full Transformer: follow one token →
- Universal approximation theorem
- The result that a network with one hidden layer, a suitable nonlinear activation and enough neurons can approximate any continuous function on a bounded region arbitrarily well. It guarantees existence, not trainability.Learn it in: Neurons, layers & activation functions →
- Validation set
- Held-out data used to tune choices and detect overfitting during development. It is separate from the final test set.Learn it in: Overfitting, regularization & data splits →
- Vanishing gradients
- When gradients shrink exponentially as they flow backward through many layers (a product of many factors below 1), so early layers barely learn. The opposite failure is exploding gradients.Learn it in: Backpropagation & the chain rule →
- Variational autoencoder (VAE)
- An autoencoder whose latent space is regularized to be smooth and samplable, so new data can be generated by decoding random latents.Learn it in: Autoencoders, VAEs & latent space →
- Vector
- An ordered list of numbers. It can be read as an arrow in space or as a point with coordinates.Learn it in: Vectors & dot products →
- Vector database
- A store optimized for finding the vectors nearest to a query vector, usually with approximate nearest-neighbor indexes.Learn it in: Embeddings & vector search →
- Vision Transformer (ViT)
- A Transformer that treats an image as a sequence of patch tokens.Learn it in: Vision Transformers: images as tokens →
- Vision-language model (VLM)
- A model that takes images (and text) as input, typically an image encoder connected through a projector to an LLM.Learn it in: Vision-language models →
- Visual instruction tuning
- Fine-tuning a vision-language model on image+instruction→answer examples so it follows requests about images, introduced by LLaVA.Learn it in: Vision-language models →
- Vocabulary
- The fixed set of tokens a model knows, typically 32k–260k entries for modern LLMs.Learn it in: Tokenization & BPE →
- Weight decay (L2 regularization)
- A penalty on the squared size of the weights that shrinks every weight slightly toward zero on each training step, favoring smoother functions that generalize better.Learn it in: Overfitting, regularization & data splits →
- Weight tying
- Reusing the input embedding matrix as the output (unembedding) matrix, which saves vocab × d_model parameters. GPT-2 does this.Learn it in: The full Transformer: follow one token →
- Word analogy (vector arithmetic)
- The observation that in good embedding spaces relations become directions, so king − man + woman lands near queen.Learn it in: Embeddings & semantic space →
- ZeRO / FSDP
- Data parallelism that shards optimizer states, gradients and (at stage 3) the weights themselves across GPUs, gathering them only when needed.Learn it in: Distributed training: data, tensor, pipeline & expert parallelism →
- Zero-shot classification
- Classifying into labels the model was never explicitly trained on, e.g. by comparing an image embedding with text embeddings of prompts like "a photo of a {label}".Learn it in: CLIP & contrastive learning →
[
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
Z