AI Base

Generative AI glossary

125 key terms, each in one sentence, with the lesson that teaches it.

ABCDEFGHIJKLMNOPQRSTUVWXYZ

A

Acoustic frame
one time-slice of the intermediate representation a vocoder converts into sound.
Text-to-Speech Pipelines
Additive synthesis
producing a waveform by summing individual sine tones at specified frequencies and amplitudes.
Vocoders and Neural Audio Synthesis
Amortization
spreading a large one-time cost (like training) across all the future uses (like inference requests) that benefit from it.
Compute and Environmental Costs of Generative AI
Any-to-any model
a system that can take input from any supported modality and generate output in any other, through one shared representation.
Any-to-Any Generative Models
Attention map
the per-position attention weights over a conditioning input, often visualized to see which words or regions influenced which output.
Cross-Attention Conditioning for Generation
Average pairwise distance
the average distance between every pair of samples in a generated set, used as a direct diversity measure.
Diversity and Mode Collapse in Generation

B

Beam search
keeping the k highest-scoring candidate sequences alive at every step, for beam width k.
Greedy and Beam Search Decoding
Best-of-N sampling
generating N candidates and keeping the one with the highest score under some rule.
Self-Consistency and Best-of-N Sampling
Bilinear upsampling
filling a larger grid by linearly blending between each position's four nearest original pixels.
Super-Resolution and Upscaling
BLEU
a precision-based n-gram overlap metric, commonly used for machine translation.
n-gram Overlap Metrics (BLEU and ROUGE)

C

Cache hit rate
the fraction of requests served from a previously generated response rather than freshly generated.
Building a Generative Product
Calibration
how well a model's stated confidence matches its actual correctness — hallucination is a specific, severe failure of calibration.
Hallucination and Factuality
Carbon intensity
how much CO₂ is emitted per unit of energy drawn from a given power grid.
Compute and Environmental Costs of Generative AI
Classifier guidance
adding a scaled classifier gradient to a diffusion model's score at sampling time, to steer generation toward a chosen class.
Classifier Guidance
Classifier-free guidance (CFG)
steering a single model's generation by extrapolating past its conditional score, away from its unconditional score.
Classifier-Free Guidance
CLIP score
the cosine similarity between a generated image's embedding and its prompt's embedding in a shared space.
Distributional Metrics (FID, Inception Score and CLIP Score)
Codebook
a fixed set of representative vectors used to quantize continuous inputs into discrete tokens.
Unified Multimodal Generation
Condition dropping
randomly training without the condition some fraction of the time, so one model learns both the conditional and unconditional distributions.
Classifier-Free Guidance
Constrained decoding
generation that guarantees structural validity by restricting which tokens can ever be chosen.
Constrained and Structured Generation
Content loss
a position-by-position comparison between generated and content features, preserving layout.
Image-to-Image Translation and Style Transfer
Control signal
the structural input being enforced exactly — an edge map, depth map, or pose skeleton, for example.
ControlNet-Style Structural Conditioning
Cosine similarity
a measure of how closely two vectors point in the same direction, used to compare embeddings across modalities.
Any-to-Any Generative Models
Cross-attention conditioning
using a condition's embeddings as the keys and values that generated positions attend over.
Cross-Attention Conditioning for Generation
Cross-entropy
the average negative log-probability itself, before exponentiating; perplexity is literally e raised to this value.
Perplexity as a Generation Metric
Cumulative log-probability
the sum of the log-probabilities of every token in a sequence, used to rank candidate sequences.
Greedy and Beam Search Decoding

D

Damping factor
how much of a frame's proposed change from the previous frame is suppressed to maintain consistency.
Video Generation and Temporal Consistency
Data provenance
tracing what a model's training data consisted of and how it was obtained.
Copyright and Training Data Provenance
Deduplication
removing near-duplicate content from a training corpus, often using overlap-based detection.
Copyright and Training Data Provenance
Denoising step
one iteration of the diffusion process, informed by the conditioning at every step.
Text-to-Image Pipelines
Detection
checking a piece of text for an implausibly high fraction of green-list tokens under the known seeding rule.
Watermarking and Synthetic Media Provenance
Differential association
the gap between two groups' mean association with the same target concept.
Bias and Representational Harm in Generation
Diminishing returns
each additional example improving performance by less than the one before it.
Few-Shot and Zero-Shot Generation
Distributional metric
a score comparing the statistics of a set of generated samples to a set of real samples, rather than comparing individual outputs.
Distributional Metrics (FID, Inception Score and CLIP Score)
Diversity
how varied a generative model's outputs are, as distinct from how individually plausible any one output is.
Diversity and Mode Collapse in Generation

E

Edit strength
how much a given patch is shifted toward the target of an edit, proportional to its attention weight.
Instruction-Based Image Editing
Elo rating
a system that converts a stream of pairwise win/loss outcomes into a consistent relative ranking.
Human Evaluation of Generated Content
End-to-end
covering every stage from raw prompt to final decoded output, with no stage skipped or special-cased.
Capstone: A Tiny Multimodal Generator with Decoding and Guidance
Evasion
a modification to content designed to avoid detection while preserving its original meaning or intent.
Content Safety and Red-Teaming
Execution-based checking
verifying a candidate's correctness by actually running it and comparing its output to a target.
Code Generation and Program Synthesis
Extraction attack
deliberately prompting a model to reproduce specific memorized training content.
Memorization and Training Data Leakage

F

Few-shot
including a small number of worked examples of a task directly in the prompt.
Few-Shot and Zero-Shot Generation
Few-shot cloning
adapting a voice from only a small number of reference samples, rather than extensive training data.
Voice Cloning and Speaker Adaptation
FLOPs
floating-point operations, the basic unit of computational cost used to estimate energy use.
Compute and Environmental Costs of Generative AI
Frame interpolation
generating frames between two known frames, analogous to inpainting across time instead of space.
Video Editing and Interpolation
Frame-rate upconversion
increasing a video's frame rate by interpolating new frames between existing ones.
Video Editing and Interpolation
Frame-to-frame motion
the total distance moved between consecutive frames across a sequence.
Video Generation and Temporal Consistency
Fréchet distance
a measure of how far apart two distributions' means and (co)variances are.
Distributional Metrics (FID, Inception Score and CLIP Score)

G

Gram matrix
the matrix of correlations between feature channels, summed across every spatial position.
Image-to-Image Translation and Style Transfer
Grammar (or schema) mask
setting the logits of every token invalid at the current position to −∞ before sampling.
Constrained and Structured Generation
Greedy decoding
always choosing the single highest-probability next token.
Greedy and Beam Search Decoding
Green list
the pseudorandomly selected subset of the vocabulary favored at a given generation step.
Watermarking and Synthetic Media Provenance
Grounding
connecting a model's output to retrieved or verified external sources, to reduce hallucination.
Hallucination and Factuality
Guidance scale
the strength with which a guidance signal is blended into the denoising step.
Classifier Guidance
how far past the conditional score to extrapolate; g=1 is no extrapolation, g=0 is no guidance at all.
Classifier-Free Guidance

H

Hallucination
fluent, often confidently stated generated content that doesn't match fact.
Hallucination and Factuality
Held-out text
text not used during training, used to measure how well a model generalizes.
Perplexity as a Generation Metric
Human evaluation
collecting direct human judgments of generated content, used where automatic metrics fall short.
Human Evaluation of Generated Content

I

In-context learning
a model performing a task demonstrated by examples placed directly in its input, without any training step.
Prompting and In-Context Learning
Induction head
a simplified name for an attention mechanism that copies whatever token followed an earlier occurrence of the current token.
Prompting and In-Context Learning
Inpainting
generating a masked region surrounded by known pixels on multiple sides.
Inpainting and Outpainting
Instruction-based editing
editing an image by describing the desired change in natural language, with the edit's location determined implicitly by attention rather than a drawn mask.
Instruction-Based Image Editing

K

Keyword classifier
a safety check that flags content containing specific literal blocked words or phrases.
Content Safety and Red-Teaming

L

Latent space walk
a sequence of decoded outputs along an interpolated path between two (or more) latent points.
Latent Space Interpolation and Manipulation
Length bias
a direct adjustment to the end-of-sequence token's logit, used to encourage stopping earlier or later.
Repetition and Length Control
Linear interpolation (lerp)
a straight-line blend between two points, parameterized by t ∈ [0, 1].
Latent Space Interpolation and Manipulation
LoRA (low-rank adaptation)
adapting a model by learning a low-rank correction to a frozen weight matrix, instead of updating the matrix directly.
Parameter-Efficient Adaptation for Generation

M

Majority vote
keeping whichever sampled answer occurs most often among the generated candidates.
Self-Consistency and Best-of-N Sampling
Membership inference
determining whether a specific example was part of a model's training data, based on the model's own behavior.
Memorization and Training Data Leakage
Memorization
a model reproducing or being unusually confident about specific training examples, rather than generalizing from them.
Memorization and Training Data Leakage
Mode collapse
a generative model producing a narrow range of outputs instead of covering its training distribution's real diversity.
Diversity and Mode Collapse in Generation

N

N-gram
a sequence of n consecutive tokens, the basic unit both metrics compare.
n-gram Overlap Metrics (BLEU and ROUGE)
N-gram overlap detection
comparing generated text's word sequences against a reference corpus to measure verbatim reproduction.
Copyright and Training Data Provenance
Nearest-neighbor upsampling
filling a larger grid by repeating each original pixel's value across a block.
Super-Resolution and Upscaling
Nucleus (top-p) sampling
restricting sampling to the smallest set of highest-probability tokens whose combined probability reaches a threshold p.
Temperature and Nucleus (Top-p) Sampling

O

One-way constraint
the locked part of the output influences the free part, but never the reverse.
ControlNet-Style Structural Conditioning
Outpainting
extending an image past its original border, with known pixels only on one side of the generated region.
Inpainting and Outpainting

P

Pairwise comparison
judging which of two outputs is better, rather than rating either one on an absolute scale.
Human Evaluation of Generated Content
Parameter-efficient fine-tuning
any adaptation method that updates far fewer parameters than the full model, of which LoRA is the most common example.
Parameter-Efficient Adaptation for Generation
Parser state
the tracked position within a grammar, used to determine which tokens are currently allowed.
Constrained and Structured Generation
Perplexity
the exponentiated average negative log-probability a model assigns to a sequence; lower means less surprised.
Perplexity as a Generation Metric
Phase continuity
ensuring a waveform's phase carries forward correctly across chunk boundaries, avoiding audible clicks.
Vocoders and Neural Audio Synthesis
Phoneme
a discrete unit of sound that makes up spoken language.
Text-to-Speech Pipelines
Pipeline
the ordered sequence of stages — conditioning, guided denoising, decoding — that turns a prompt into a generated, interpretable result.
Capstone: A Tiny Multimodal Generator with Decoding and Guidance
Pitch-shift ratio
the factor by which a generic voice's pitch is rescaled to match a target speaker's measured mean pitch.
Voice Cloning and Speaker Adaptation
Postfix (reverse Polish) notation
writing an expression with operators after their operands, avoiding the need for parentheses.
Code Generation and Program Synthesis
Prior mean
the generic value a one-sided generation process drifts toward as it moves away from known evidence.
Inpainting and Outpainting
Product-level cost lever
a decision (caching, filtering, batching) that changes total cost without changing the underlying model.
Building a Generative Product
Program synthesis
generating a program that satisfies a target behavior, not just valid syntax.
Code Generation and Program Synthesis
Prompting
choosing the input text given to a model to shape its output, with no change to its weights.
Prompting and In-Context Learning
Prosody
the duration, pitch and amplitude pattern of speech — how long, how high, and how loud each sound is.
Text-to-Speech Pipelines

Q

Quantization
replacing a continuous value with the nearest entry from a fixed codebook.
Unified Multimodal Generation
Query, key, value
the three attention roles — here, generated positions supply queries, and the condition supplies keys and values.
Cross-Attention Conditioning for Generation

R

Rank
the size of the bottleneck dimension in a low-rank update, controlling how expressive (and how parameter-efficient) the adaptation is.
Parameter-Efficient Adaptation for Generation
Ray marching
rendering an SDF-defined shape by stepping along a ray until the function reports a point on the surface.
3D Asset and Scene Generation
Recovered concept
the concept a generated latent decodes to, checked against the concept originally named by the prompt.
Capstone: A Tiny Multimodal Generator with Decoding and Guidance
Red-teaming
deliberately testing a system's defenses the way an adversary would, to find exploitable weaknesses.
Content Safety and Red-Teaming
Repetition penalty
a logit adjustment that makes an already-generated token progressively less likely to be generated again.
Repetition and Length Control
Representational harm
harm arising from how a group is represented (stereotyped, underrepresented, or misrepresented) rather than from a specific denied outcome.
Bias and Representational Harm in Generation
ROUGE
a recall-based n-gram overlap metric, commonly used for summarization.
n-gram Overlap Metrics (BLEU and ROUGE)

S

Safety-check blocking
rejecting a request before generation, avoiding its generation cost entirely.
Building a Generative Product
Sampling
drawing the next token randomly according to its probability, rather than always taking the most likely one.
Temperature and Nucleus (Top-p) Sampling
Scale
a fixed subset of notes (here, 7 of 12) that a piece of music is considered to be "in."
Music Generation
Scale masking
forcing generated notes to belong to a chosen scale by masking out every note that doesn't.
Music Generation
Score
the gradient of log-density, ∇x log p(x) — the direction a diffusion model nudges a sample toward higher data density.
Classifier Guidance
Self-consistency
best-of-N with a majority (or plurality) vote over final answers, used for tasks with a discrete answer.
Self-Consistency and Best-of-N Sampling
Shared embedding space
a common representation that different modalities' encoders all map into, so semantically related content lands close together regardless of modality.
Any-to-Any Generative Models
Signed distance function (SDF)
a function of position that returns distance to a shape's surface, negative inside and positive outside.
3D Asset and Scene Generation
Smooth minimum
a blending operation that rounds the join between two combined shapes instead of leaving a sharp seam.
3D Asset and Scene Generation
Soft cap
a length past which generation is nudged (but not forced) to stop, as opposed to a hard limit that cuts generation off outright.
Repetition and Length Control
Soft localization
concentrating an effect on the most relevant regions by degree (via attention weight), rather than with a hard included/excluded boundary.
Instruction-Based Image Editing
Speaker adaptation
adjusting a generic synthetic voice to resemble a specific target speaker.
Voice Cloning and Speaker Adaptation
Spherical interpolation (slerp)
an interpolation that follows the arc between two vectors, keeping their norm roughly constant along the path.
Latent Space Interpolation and Manipulation
Structural conditioning
pinning part of a generated output to an exact control signal throughout generation, while the rest is generated normally.
ControlNet-Style Structural Conditioning
Style loss
a comparison between generated and style Gram matrices, preserving texture and color statistics without regard to position.
Image-to-Image Translation and Style Transfer
Super-resolution
producing a higher-resolution version of an image, ranging from simple interpolation to learned detail hallucination.
Super-Resolution and Upscaling
Symbolic music generation
generating discrete musical events (notes, chords) rather than a raw audio waveform directly.
Music Generation

T

Temperature
a scaling factor applied to logits before softmax that sharpens (T<1) or flattens (T>1) the resulting distribution.
Temperature and Nucleus (Top-p) Sampling
Temporal consistency
keeping successive frames of a generated sequence correlated with each other, rather than independently sampled.
Video Generation and Temporal Consistency
Text encoder
the component that turns a text prompt into conditioning embeddings for the rest of the pipeline.
Text-to-Image Pipelines
Text-to-image pipeline
a text encoder, cross-attention conditioning, and classifier-free guidance combined to turn a prompt into an image.
Text-to-Image Pipelines

U

Unified vocabulary
a single combined set of token ids spanning more than one modality, letting one model generate across all of them with one mechanism.
Unified Multimodal Generation

V

Vocoder
a component that converts an acoustic representation (like a spectrogram) into a raw audio waveform.
Vocoders and Neural Audio Synthesis

W

Watermark (green-list)
a deliberate, invisible bias toward a pseudorandomly chosen subset of tokens, detectable by recomputing the same rule.
Watermarking and Synthetic Media Provenance
WEAT (word embedding association test)
a method for measuring systematic association gaps between attribute-coded groups and target concepts in embeddings.
Bias and Representational Harm in Generation
Well-constrained
having evidence on both sides of a gap, as opposed to only one side.
Video Editing and Interpolation

Z

Zero-shot
prompting a model to perform a task with no worked examples, instruction only.
Few-Shot and Zero-Shot Generation