Repository navigation
Glossary
Anurag Prasad edited this page Nov 9, 2026
·
4 revisions
92 key terms with the module where each is developed.
| Term | Meaning | Module |
|---|---|---|
| Activation function | Nonlinear function applied to a unit's pre-activation; without it stacked layers collapse into one linear map. | 05 |
| Adam / AdamW | Optimizers using bias-corrected moving averages of the gradient and squared gradient; AdamW decouples weight decay from the gradient. | 08 |
| Adversarial example | An input perturbed slightly (often imperceptibly) so that a model's prediction changes. | 24 |
| Attention | Differentiable soft lookup: output is a weight-averaged sum of values, with weights from query–key similarity. | 13 |
| Autoencoder | Network trained to reconstruct its input through a constrained code. | 16 |
| Autoregressive model | Models a sequence as a product of next-element conditionals |
23 |
| Backpropagation | Reverse-mode automatic differentiation applied to a layered network. | 07 |
| Batch normalization | Normalizes each feature using mini-batch statistics, then applies a learned scale and shift. | 09 |
| Bayes' theorem |
|
03 |
| Beam search | Decoding that keeps the |
13 |
| Bias–variance trade-off | Expected error splits into squared bias, variance and irreducible noise; flexibility lowers bias but raises variance. | 10 |
| Byte-pair encoding (BPE) | Sub-word tokenization that repeatedly merges the most frequent adjacent symbol pair. | 23 |
| Calibration | Agreement between predicted confidence and empirical accuracy. | 24 |
| Catastrophic forgetting | Loss of earlier skills when a network is trained on a new task. | 22 |
| Causal mask | Attention mask that blocks access to future positions. | 14 |
| Chain rule | Derivative of a composition is the product of local derivatives (matrix product of Jacobians). | 02 |
| Classifier-free guidance | Diffusion sampling that extrapolates from unconditional toward conditional noise predictions. | 20 |
| Condition number |
|
01 |
| Contrastive learning | Learning embeddings that pull positive pairs together and push negatives apart. | 17 |
| Convolution | Local, weight-shared linear operation sliding a filter across a grid (implemented as cross-correlation). | 11 |
| Cosine similarity | Dot product of two vectors divided by their norms; the cosine of the angle between them. | 01 |
| Cross-attention | Attention with queries from one sequence and keys/values from another. | 14 |
| Cross-entropy |
|
03 |
| Data augmentation | Label-preserving transformations that enlarge the effective training set. | 10 |
| Data leakage | Information from validation/test data (or the future) influencing training. | 10 |
| Dead ReLU | A ReLU unit that outputs zero for all inputs and therefore receives no gradient. | 05 |
| Diffusion model | Generative model that learns to reverse a gradual noising process. | 20 |
| Distillation | Training a small student on a larger teacher's softened outputs. | 24 |
| Double descent | Test error rising near the interpolation threshold and falling again as capacity grows. | 10 |
| Dropout | Randomly zeroing activations in training (scaling survivors) as regularization. | 10 |
| ELBO | Evidence lower bound: reconstruction term minus KL between approximate posterior and prior. | 18 |
| Embedding | Learned dense vector representing a discrete item or an input. | 14 |
| Empirical risk | Average loss on the training sample; ERM minimizes it. | 06 |
| Entropy |
|
03 |
| Epoch | One pass through the training set. | 06 |
| Equivariance | Transforming the input transforms the output in the same way (e.g. convolution and translation). | 11 |
| Exploding gradient | Gradient norms growing exponentially with depth or time steps. | 12 |
| Feature map | Output of one filter applied across spatial positions. | 11 |
| Fine-tuning | Continuing training of a pretrained model on a target task. | 22 |
| FlashAttention | IO-aware exact attention that avoids materializing the full |
23 |
| GAN | Generator and discriminator trained adversarially; the generator learns to fool the discriminator. | 19 |
| GELU | Activation |
05 |
| Generalization gap | Difference between population and training risk. | 06 |
| Gradient | Vector of partial derivatives; points to steepest ascent. | 02 |
| Gradient clipping | Rescaling the gradient when its norm exceeds a threshold. | 08 |
| GRU | Gated recurrent unit with update and reset gates. | 12 |
| He initialization | Weight variance |
09 |
| Hessian | Matrix of second derivatives; describes curvature. | 02 |
| Integrated gradients | Attribution method integrating gradients along a path from a baseline to the input. | 24 |
| Jacobian | Matrix of partial derivatives of a vector function. | 02 |
| KL divergence |
|
03 |
| KV cache | Stored keys and values of past tokens that avoid recomputation during generation. | 23 |
| Label smoothing | Replacing one-hot targets by softened targets to reduce over-confidence. | 10 |
| Layer normalization | Normalizes across the features of each example; independent of batch size. | 09 |
| Learning rate | Step size of a gradient-based update. | 06 |
| Logit | Pre-softmax (or pre-sigmoid) score. | 05 |
| LoRA | Low-rank adaptation: learn |
22 |
| LSTM | Recurrent cell with an additively updated cell state and input/forget/output gates. | 12 |
| Maximum likelihood | Choosing parameters that maximise the probability of the observed data. | 03 |
| Message passing | Graph-network update: aggregate neighbour messages, then update the node state. | 21 |
| Mixup | Training on convex combinations of example pairs and their labels. | 10 |
| Mode collapse | A generator covering only a few modes of the data distribution. | 19 |
| Momentum | Accumulating an exponential average of past gradients to smooth and accelerate updates. | 08 |
| Multi-head attention | Several attention operations in parallel with separate projections, concatenated. | 14 |
| Mutual information | KL divergence between a joint distribution and the product of its marginals. | 03 |
| Overfitting | Fitting noise in the training data so that held-out performance degrades. | 10 |
| Perceptron | Linear threshold unit trained by a mistake-driven update. | 04 |
| Perplexity |
|
23 |
| Pooling | Downsampling by summarising local windows (max, average). | 11 |
| Positional encoding | Injection of token order information into permutation-equivariant attention. | 15 |
| Positive semidefinite (PSD) | Symmetric matrix with |
01 |
| Rank | Dimension of the column space of a matrix. | 01 |
| Receptive field | Input region that can influence a given unit. | 11 |
| Reparameterization trick | Writing |
18 |
| Residual connection | Adding a layer's input to its output, giving an identity gradient path. | 09 |
| RLHF | Reinforcement learning from human feedback: reward model plus KL-regularised policy optimisation. | 23 |
| RoPE | Rotary position embedding: rotates queries and keys so attention depends on relative offset. | 15 |
| Self-attention | Attention where queries, keys and values all come from the same sequence. | 14 |
| Singular value decomposition |
|
01 |
| Softmax | Maps logits to a probability vector via |
05 |
| Stride | Step with which a filter moves across the input. | 11 |
| Teacher forcing | Feeding ground-truth previous tokens during training of a sequence model. | 12 |
| Temperature | Scalar dividing logits to sharpen or flatten a softmax. | 23 |
| Transformer | Architecture built from self-attention, feed-forward blocks, residuals and normalisation. | 14 |
| Universal approximation theorem | A one-hidden-layer network with a suitable activation can approximate any continuous function on a compact set. | 05 |
| VAE | Latent-variable generative model trained by maximising the ELBO with an amortised posterior. | 18 |
| Vanishing gradient | Gradient norms shrinking exponentially with depth or time steps. | 09 |
| Warm-up | Gradually increasing the learning rate at the start of training. | 08 |
| Wasserstein distance | Earth-mover distance between distributions; smooth even for disjoint supports. | 19 |
| Weight decay | Shrinking weights each step, equivalent to L2 regularisation for plain SGD. | 10 |
| Weisfeiler–Lehman test | Colour-refinement graph isomorphism heuristic bounding message-passing GNN expressivity. | 21 |
| Xavier (Glorot) initialization | Weight variance |
09 |
🏠 Home · 🗺️ Curriculum · 🧭 Learning paths · ❓ Question bank · 📖 Glossary · 📚 References · ✏️ Contributing
🏠 Home · 🗺️ Curriculum · 🧭 Learning paths
❓ Question bank · 📖 Glossary · 📚 References
Jump to module:
01 02 03 04 05 06 07 08 09 10 11 12
13 14 15 16 17 18 19 20 21 22 23 24