Get the 2026 ML Training Cookbook | 52 recipes — GRPO, Flow Matching, World Models, and everything in between Download Now →

Reference

Glossary

A comprehensive reference for machine learning and AI terminology — from training algorithms and model architectures to optimization, deployment, and inference techniques. Each entry includes precise definitions, key points, and related concepts.

Training

20 terms

On-Policy Distillation

A knowledge distillation technique where the student model generates its own predictions and the teacher provides corrections on those predictions, reducing train-serve distribution mismatch.

Group Relative Policy Optimization (GRPO)

A reinforcement learning algorithm that simplifies PPO by eliminating the critic network, computing advantages relative to a group of sampled outputs per prompt.

LoRA (Low-Rank Adaptation)

A parameter-efficient fine-tuning method that freezes the pre-trained model and injects trainable low-rank decomposition matrices into each layer.

Fine-Tuning

The process of adapting a pre-trained model to a specific task or domain by continuing training on task-specific data.

Knowledge Distillation

A model compression technique where a smaller student model learns to mimic the behavior of a larger, more capable teacher model.

RLHF (Reinforcement Learning from Human Feedback)

A technique that aligns language models with human preferences by training a reward model on human feedback and optimizing the policy via reinforcement learning.

DPO (Direct Preference Optimization)

A preference optimization method that directly optimizes the policy from preference data without training a separate reward model.

PPO (Proximal Policy Optimization)

A policy gradient RL algorithm that uses clipped surrogate objectives to ensure stable, conservative policy updates.

PEFT (Parameter-Efficient Fine-Tuning)

A family of techniques that fine-tunes a small subset of model parameters while freezing the rest, drastically reducing compute and memory requirements.

Supervised Fine-Tuning (SFT)

Fine-tuning a pre-trained model on labeled input-output pairs for a specific task, forming the first stage of alignment pipelines like RLHF.

Instruction Tuning

A form of fine-tuning that trains models to follow natural language instructions across diverse tasks, improving generalization and zero-shot capability.

Batch Size

The number of training examples processed in a single forward and backward pass, directly affecting memory usage, gradient quality, and training speed.

Learning Rate

A hyperparameter controlling the step size of weight updates during training, critically affecting convergence speed and final model quality.

Gradient Accumulation

A technique that simulates larger batch sizes by accumulating gradients across multiple forward passes before applying a weight update.

Regularization

A set of techniques that constrain or penalize model complexity to prevent overfitting and improve generalization to unseen data.

Dropout

A regularization technique that randomly deactivates a fraction of neurons during training, preventing co-adaptation and improving generalization.

Cross-Entropy Loss

A loss function measuring the difference between predicted probability distributions and true labels, standard for classification and language modeling.

Backpropagation

The algorithm used to compute gradients of the loss with respect to all model weights by applying the chain rule backward through the network.

Early Stopping

A regularization technique that halts training when validation performance stops improving, preventing overfitting.

Weight Decay

An L2 regularization technique that penalizes large weights by adding their squared magnitude to the loss, encouraging simpler models.