AI State of the Art
Resources/Resources/21 min
Section 306

AI Glossary: 200+ Terms Defined (A-Z)

Listen as a podcast →

Why This Glossary?

AI has its own language. And when you read a paper or a technical blog, you often hit a wall of jargon. This glossary is your Rosetta Stone: the essential terms, explained simply, with links to resources to go deeper.

A: The Terms That Start the Journey

  • Activation Function: non-linear function applied to a neuron's output (ReLU, GELU, SiLU, Sigmoid, Tanh). Without it, a neural network would just be one big linear computation, you might as well use regression. PyTorch activations
  • Adam (Adaptive Moment Estimation): optimizer combining momentum and adaptive learning rate. The standard for training Transformers. Original paper
  • AdaFactor: Adam variant with reduced memory footprint, used for very large models. For when you don't have enough VRAM (Video RAM) for Adam.
  • Alignment: the process of making an AI model conform to human intentions and values. Includes RLHF, DPO, Constitutional AI. The great challenge of modern AI.
  • Attention: mechanism allowing each token to weigh the importance of other tokens. The heart of the Transformer. Paper "Attention Is All You Need"
  • Autoencoder: network that compresses (encodes) then reconstructs (decodes) its inputs. Used for dimensionality reduction and learning representations.
  • Autoregressive: model that generates sequences token by token, each token conditioned on the previous ones. It's like writing a sentence word by word without being able to go back. GPT, LLaMA, Mistral = all autoregressive.
  • AGI (Artificial General Intelligence): artificial intelligence capable of performing any intellectual task a human can. The holy grail. Nobody really knows when (or if) we'll get there.

B

  • Backpropagation: algorithm for computing gradients by propagating error backward. The foundation of all neural network training. Without backprop, no deep learning. Visual explanation by 3Blue1Brown
  • Batch Size: number of examples processed simultaneously during a training step. Bigger means more stable but requires more GPU memory.
  • BERT (Bidirectional Encoder Representations from Transformers): bidirectional encoder model pre-trained with Masked Language Modeling (Google, 2018). The model that democratized transfer learning in NLP. Paper
  • Bias (parameter): additive term in a linear layer. Often removed in modern LLMs for simplicity.
  • Bias (fairness): systematic tendency of a model to produce unfair or incorrect results for certain groups. A major ethical issue.
  • BPE (Byte Pair Encoding): tokenization algorithm that iteratively merges the most frequent token pairs. Used by GPT, LLaMA, and the majority of LLMs. Explained by Hugging Face
  • BFloat16: 16-bit numerical format with the same range as float32 but less precision. The de facto standard for LLM training.

C

  • Chain-of-Thought (CoT): prompting technique where the model reasons step by step before giving its answer. One of the most powerful prompt engineering hacks. Original paper
  • Checkpoint: saved state of a model during training. Your safety net when a training run crashes at 3 AM.
  • CLIP (Contrastive Language-Image Pre-training): contrastive learning model aligning images and text in a shared space (OpenAI). The foundation of text-guided image generation. Paper, GitHub
  • Compute: computational power, measured in FLOPS or GPU-hours. Key (and expensive) resource for LLM training.
  • Constitutional AI: alignment method using written principles to guide model behavior. Invented by Anthropic. Paper
  • Contrastive Learning: learning by comparing similar and dissimilar pairs. The engine behind CLIP, SimCLR, and much of self-supervised learning.
  • Cross-Attention: attention where queries come from one sequence and keys/values from another. Used in encoder-decoders and multimodal models.
  • Cross-Entropy: standard loss function for classification and language modeling. The loss you see in 90% of training runs.
  • CUDA (Compute Unified Device Architecture): NVIDIA's parallel GPU computing platform (NVIDIA). The foundation of the entire deep learning ecosystem. No CUDA, no deep learning (well, almost).
Most important terms

The fundamental terms to master for understanding modern LLMs are: Transformer, Attention, Tokenization, Embedding, Fine-tuning, RLHF, Scaling Laws, and MoE. These concepts form the core foundation for understanding generative AI.

D

  • Data Augmentation: techniques to artificially increase dataset size (rotations, paraphrases, etc.). When you don't have enough data, you invent variations.
  • Decoder: Transformer component that generates text autoregressively. Modern LLMs are "decoder-only" (GPT, LLaMA, Mistral).
  • Deep Learning: ML subdomain using multi-layer neural networks. That's the "deep" in deep learning: lots of stacked layers.
  • Diffusion Model: generative model that learns to progressively denoise data. Stable Diffusion, DALL-E, Flux = all diffusion models. DDPM paper
  • Distillation: knowledge transfer from a large model (teacher) to a small model (student). How to get 80% of the performance at 10% of the size. Original paper (Hinton)
  • DPO (Direct Preference Optimization): alternative to RLHF that optimizes directly on preferences without a separate reward model. Simpler, often just as effective. Paper
  • Dropout: regularization that randomly deactivates neurons during training. Prevents the network from "memorizing" the data.

E

  • Embedding: dense vector representation of a token, word, or concept in a high-dimensional space. The brilliant idea that allows models to "understand" semantics. PyTorch tutorial
  • Encoder: Transformer component that produces contextual representations. BERT is an encoder. Useful for classification, semantic search.
  • Epoch: one complete pass through the entire training dataset.
  • Equivariance: property of a model whose output transforms predictably when the input is transformed (rotations, translations).

F

  • Few-Shot Learning: learning from very few examples, typically via the prompt. You give the LLM 3 examples and it "understands" the task. GPT-3 paper
  • Fine-Tuning: adapting a pre-trained model to a specific task by continuing training on targeted data. The most common way to specialize an LLM. Hugging Face guide
  • Flash Attention: optimized implementation of attention exploiting GPU memory hierarchy. Tri Dao revolutionized inference and training with this trick. Paper, GitHub
  • FLOPS: Floating Point Operations Per Second, a measure of computational power. It's like horsepower for engines, but for GPUs.
  • Foundation Model: large pre-trained model serving as a base for multiple tasks (GPT, BERT, CLIP). The key concept of the modern AI era.

G

  • GAN (Generative Adversarial Network): generative model based on competition between a generator and a discriminator. Revolutionary in 2014, largely superseded by diffusion models for image generation. Original paper (Goodfellow)
  • Gradient: vector of partial derivatives indicating the direction of greatest loss increase. You go in the opposite direction to minimize.
  • Gradient Descent: optimization algorithm that adjusts parameters in the direction opposite to the gradient. The fundamental algorithm of all deep learning.
  • GQA (Grouped Query Attention): attention variant where multiple query heads share key/value heads, reducing the KV-cache. Used in LLaMA 2/3, Mistral. Paper
  • GNN (Graph Neural Network): neural network operating on graph-structured data. For molecules, social networks, etc.
Common notation

In deep learning: N = number of parameters, D = number of tokens/data, C = compute (FLOPS), L = loss, d_model = model dimension, n_layers = number of layers, n_heads = number of attention heads.

H

  • Hallucination: generation of factually incorrect content stated confidently by an LLM. The number one problem with LLMs in production. The model doesn't "know" that it doesn't know.
  • HBM (High Bandwidth Memory): high-bandwidth GPU memory used in AI accelerators (H100, A100). The bottleneck of LLM inference.
  • Hidden State: internal representation vector of a neural network layer.
  • Hyperparameter: configuration parameter that is not learned (learning rate, batch size, number of layers). What YOU choose, not what the model learns.

I-K

  • In-Context Learning (ICL): ability of LLMs to learn from new examples provided in the prompt without updating weights. One of the most surprising properties of large models. Analysis paper
  • Inference: using a trained model to make predictions (as opposed to training). It's the "production" side of ML.
  • Instruction Tuning: fine-tuning an LLM on instruction/response pairs to make it more useful and obedient. That's how GPT-3 became ChatGPT. FLAN paper
  • KV-Cache: cache of Key and Value matrices to speed up autoregressive generation by avoiding recomputation. Essential for fast LLM inference, but memory-hungry.
  • Knowledge Distillation: see Distillation.

L

  • Layer Normalization: normalization of activations within each layer. Alternative to batch norm, standard in Transformers. Paper
  • Learning Rate: hyperparameter controlling the step size for weight updates. Too large = training explodes. Too small = it never converges. The art of ML is often finding the right learning rate.
  • LLM (Large Language Model): large language model pre-trained on text at scale. GPT-4, Claude, LLaMA, Mistral = all LLMs.
  • LoRA (Low-Rank Adaptation): efficient fine-tuning method adding low-rank matrices to frozen weights. Allows fine-tuning a 70B model with a single GPU. Paper, PEFT library
  • Loss Function: function measuring the gap between prediction and ground truth, minimized during training.

M

  • Masked Language Modeling (MLM): pre-training task where the model predicts masked tokens. It's like a giant fill-in-the-blank exercise. Used by BERT.
  • MoE (Mixture of Experts): architecture where a router selects a subset of experts for each token. Allows having a huge model without every token activating all parameters. Mixtral, GPT-4 = MoE. Switch Transformer paper
  • Multi-Head Attention (MHA): mechanism with multiple attention heads in parallel. Each head can focus on a different aspect of the information.
  • Multimodal: model capable of processing multiple data types (text, image, audio, video). GPT-4o, Gemini, Claude = multimodal.

N-O

  • NER (Named Entity Recognition): identification of named entities in text (people, places, organizations). A classic NLP task.
  • Next Token Prediction: training task for autoregressive LLMs: predict the next token. That's it. Incredibly simple as an objective, incredibly powerful in practice.
  • NLP (Natural Language Processing): automatic processing of natural language. The AI domain that deals with text.
  • Normalization: techniques to stabilize training (LayerNorm, RMSNorm, BatchNorm).
  • Overfitting: when the model memorizes the training data instead of generalizing. It's like a student who memorizes answers by heart instead of understanding the course material.

P-Q

  • Parameter: learned weight of the neural network, adjusted during training. When we say "LLaMA 70B," we're talking about 70 billion parameters.
  • Perplexity: measure of language model quality (exponential of cross-entropy). Lower is better.
  • Pre-training: initial training of a model on a large unannotated corpus. The most expensive step (millions of dollars for large models).
  • Prompt: input text provided to the model to guide its generation.
  • Prompt Engineering: designing effective prompts to get desired results. An art and a science. OpenAI guide
  • Quantization: reducing the numerical precision of weights (FP32 -> INT8, INT4) to reduce size and speed up inference. It's like compressing an MP3: you lose a bit of quality but save enormously on size. GPTQ guide
  • QLoRA: combination of 4-bit quantization and LoRA for efficient fine-tuning. Fine-tune a 65B model on a single 48GB GPU. Paper

R

  • RAG (Retrieval-Augmented Generation): technique combining information retrieval and generation to ground responses in documents. The solution to the hallucination problem. Original paper
  • Reinforcement Learning (RL): learning through interaction with an environment and reward maximization.
  • RLHF (RL from Human Feedback): aligning LLMs via a reward model trained on human preferences. The technique that made ChatGPT "helpful and harmless." InstructGPT paper
  • RMSNorm: simplified normalization using root mean square. Standard in modern LLMs (LLaMA, Mistral). Faster than LayerNorm.
  • RoPE (Rotary Positional Embedding): rotary positional encoding, standard in LLaMA, Mistral, and most recent LLMs. Paper

S

  • Scaling Laws: mathematical relationships between performance and model size/data/compute. The discovery that guides billions in investment: if you double the compute, you know exactly how much performance will improve. Kaplan paper, Chinchilla paper
  • Self-Attention: mechanism where the sequence attends to itself (Q, K, V come from the same sequence). The heart of the Transformer decoder.
  • Self-Supervised Learning: learning without explicit labels, the supervisory signal comes from the data itself. LLM pre-training is self-supervised.
  • SFT (Supervised Fine-Tuning): supervised fine-tuning on annotated input/output pairs. The step between pre-training and RLHF.
  • Softmax: function that converts a vector of scores into a probability distribution. Everywhere in deep learning.
  • SSM (State Space Model): sequential model with linear complexity, an alternative to the Transformer. Mamba is the best-known SSM. Potentially the future for very long sequences.
  • SwiGLU: activation function combining Swish and GLU, standard in modern LLMs. More performant than ReLU for large models. Paper

T

  • Temperature: hyperparameter controlling the randomness of generation. T=0 = deterministic (always the same answer). High T = creative (but potentially incoherent).
  • Tensor: multidimensional array, the fundamental data structure of deep learning. A scalar is a 0D tensor, a vector is 1D, a matrix is 2D, etc.
  • Tokenization: splitting text into units (tokens) processed by the model. "Hello" might become ["Hel", "lo"]. Interactive visualizer
  • Top-k / Top-p: sampling strategies limiting candidate tokens during generation. Top-p (nucleus sampling) is generally preferred.
  • Transfer Learning: using knowledge learned on one task for another task. The founding concept of the entire foundation model era.
  • Transformer: neural architecture based on attention, the foundation of all modern LLMs. Paper "Attention Is All You Need" (Vaswani et al., 2017). The most cited paper of the last decade.
Constantly evolving vocabulary

AI vocabulary evolves rapidly. New terms appear regularly (VLA, flow matching, test-time compute, reasoning models, etc.). This glossary covers the fundamental and most common terms. For emerging terms, Papers with Code is an excellent reference.

U-V

  • Underfitting: when the model is too simple to capture the patterns in the data. The opposite of overfitting.
  • VAE (Variational Autoencoder): generative autoencoder with a probabilistic latent space. Used in the Stable Diffusion pipeline to compress images. Original paper
  • ViT (Vision Transformer): application of the Transformer to vision by splitting images into patches. Revolutionary: no need for CNNs for vision. Paper
  • VLM (Vision-Language Model): multimodal model combining image and text understanding. GPT-4V, Gemini, LLaVA = VLMs.

W-Z

  • Weight Decay: regularization penalizing overly large weights (L2 regularization). Prevents the model from becoming "too confident" in certain features.
  • Word2Vec: word embedding method learned through contextual prediction (Mikolov, 2013). The beginning of the embedding revolution. Paper
  • World Model: internal model predicting how the environment evolves based on actions. A key concept for robotics and autonomous AI agents.
  • Zero-Shot: ability to perform a task without any prior examples. You ask the LLM to translate without ever showing it a translation, and it does it. The magic of large models.