AI Engineering Tools

Generative AI Engineering

AI Model Training Terms

Understand training data, objectives, batches, epochs, loss, gradients, optimizers, learning rates, validation, overfitting, checkpoints, distributed training, and reproducibility.

61 matching terms

Training foundations

Model training

Model training

Meaning

The process of adjusting model parameters from data so the model can perform a target behavior or task.

When to use it

Use the term for the overall optimization process, including data preparation, training runs, validation, and checkpoint selection.

Practical example

Define the training objective, approved dataset, validation plan, compute budget, and stopping criteria before the run.

Training foundations

Pre-training

Pre-training

Meaning

Large-scale training that teaches a model broad patterns before it is adapted to a narrower task or domain.

When to use it

Use it when distinguishing the creation of a base model from later fine-tuning or alignment.

Practical example

Pre-train the base model on an authorized multilingual corpus, then evaluate language coverage.

Training foundations

Foundation model

Foundation model

Meaning

A broadly pre-trained model designed to support many downstream tasks and adaptations.

When to use it

Use it when identifying the general model that later prompting, retrieval, adapters, or fine-tuning build upon.

Practical example

Record the approved foundation-model family, version, license, and intended adaptation path.

Training foundations

Base model

Base model

Meaning

The specific pre-trained checkpoint used as the starting point for inference or additional adaptation.

When to use it

Use the exact model and revision identifier so training and deployment can be reproduced.

Practical example

Base model: approved model ID and immutable revision digest.

Training foundations

Model parameter

Model parameter

Meaning

A numerical value inside a model that may be learned during training or held fixed by the chosen method.

When to use it

Use it when comparing total, frozen, and trainable portions of a model.

Practical example

Report total parameters and the subset updated by the training method.

Training foundations

Transfer learning

Transfer learning

Meaning

Reusing knowledge learned for one setting as the starting point for another related task or domain.

When to use it

Use it when adapting a pre-trained representation instead of training a new model from random initialization.

Practical example

Start from the approved language model and adapt it to intent classification.

Training foundations

Training objective

Training objective

Meaning

The mathematical or behavioral goal that a training run attempts to optimize.

When to use it

Define it before choosing data, labels, loss functions, and evaluation metrics.

Practical example

Objective: predict the next token while minimizing validation loss on the approved domain corpus.

Training foundations

Supervised learning

Supervised learning

Meaning

Training from examples that pair inputs with expected labels or outputs.

When to use it

Use it when reliable target answers, classes, or values are available.

Practical example

Train on support questions paired with reviewed intent labels.

Training foundations

Self-supervised learning

Self-supervised learning

Meaning

Training that derives prediction targets from the structure of unlabeled data itself.

When to use it

Use it for large-scale representation or language-model learning where manual labeling is impractical.

Practical example

Hide or shift part of each sequence and train the model to predict the missing or next content.

Training data

Training dataset

Training dataset

Meaning

The examples used to calculate gradients and update model parameters.

When to use it

Build it from relevant, licensed, representative, and quality-controlled data.

Caution

Do not assume that publicly accessible data is automatically authorized for model training.

Practical example

Create a versioned training dataset with source, license, consent, language, and quality metadata.

Training data

Validation dataset

Validation dataset

Meaning

A held-out dataset used during development to compare settings and monitor generalization.

When to use it

Use it for checkpoint selection, early stopping, and hyperparameter decisions without updating weights from its examples.

Practical example

Evaluate validation loss at each epoch and keep the best approved checkpoint.

Training data

Test dataset

Test dataset

Meaning

A separately held-out dataset used for a final, less-biased estimate after development choices are complete.

When to use it

Use it only after model and hyperparameter selection to avoid tuning to the final test.

Practical example

Lock the test set before experimentation and report its version with the final result.

Training data

Training corpus

Training corpus

Meaning

A collected body of text, code, images, audio, or other material prepared for model learning.

When to use it

Use the term when discussing source coverage, provenance, filtering, and rights at collection scale.

Practical example

Document corpus sources, collection dates, exclusions, rights basis, and removal procedures.

Training data

Training sample or example

Training sample or example

Meaning

One unit presented to the training pipeline, such as a labeled row, sequence, image, conversation, or preference pair.

When to use it

Use it when defining schema, sampling weight, quality checks, and what counts toward dataset size.

Practical example

One example contains input, target, source ID, rights metadata, and quality status.

Training data

Label

Label

Meaning

A target class, value, span, response, or judgment associated with a supervised training example.

When to use it

Define labels with a documented rubric and measure reviewer agreement for ambiguous tasks.

Practical example

Label each ticket with one approved intent and record uncertain cases for adjudication.

Training data

Data augmentation

Data augmentation

Meaning

Creating additional training examples by applying controlled transformations that preserve the intended label or behavior.

When to use it

Use it to improve coverage while verifying that transformations remain realistic and do not change the target meaning.

Practical example

Create paraphrase variants, then review that each variant preserves the original intent label.

Training data

Data contamination

Data contamination

Meaning

The presence of evaluation examples or close variants in training data, causing evaluation to overstate generalization.

When to use it

Check exact and semantic overlap before training and quarantine protected evaluation sets.

Practical example

Compare hashes and near-duplicate embeddings across training and evaluation splits.

Training data

Training tokenization

Training tokenization

Meaning

The conversion of raw content into model input units and identifiers used during training.

When to use it

Keep tokenizer choice, vocabulary, normalization, and special tokens compatible with the model and serving pipeline.

Practical example

Record tokenizer version, vocabulary size, special tokens, truncation, and maximum sequence length.

Training data

Data split

Data split

Meaning

The separation of examples into training, validation, and test subsets.

When to use it

Split by user, time, document, or group when random rows could leak near-duplicates across subsets.

Practical example

Split by customer account so conversations from one customer do not appear in both training and test data.

Training data

Data deduplication

Data deduplication

Meaning

The detection and removal or grouping of identical and near-duplicate training examples.

When to use it

Use it to reduce memorization, source imbalance, wasted compute, and train-test contamination.

Practical example

Deduplicate exact hashes, normalized text, and high-similarity document segments before splitting.

Training data

Synthetic training data

Synthetic training data

Meaning

Examples generated or transformed by software or models rather than directly collected from real events.

When to use it

Use it to cover rare cases, formats, or privacy-preserving simulations, then validate realism and bias.

Caution

Synthetic data can reproduce source bias, errors, or protected expression and still requires provenance and quality checks.

Practical example

Generate edge-case support dialogs, label them as synthetic, and review them before training.

Training data

Confidential training data

Confidential training data

Meaning

Customer records, trade secrets, internal documents, credentials, or other restricted information considered for training.

When to use it

Exclude it by default unless there is explicit authority, a documented purpose, strict access control, and an approved retention and deletion plan.

Caution

Never place credentials, customer secrets, or trade secrets in a training service without approved authority and provider-policy review.

Practical example

Block credentials and trade secrets during ingestion and route uncertain records to an authorized reviewer.

Training data

Data leakage

Data leakage

Meaning

The unintended use of information during training that would not be available in the intended real-world prediction setting.

When to use it

Check features, labels, timestamps, and preprocessing to prevent unrealistically high evaluation scores.

Practical example

Remove post-resolution fields before training a model that predicts ticket escalation at intake.

Training loop

Batch

Batch

Meaning

A group of training examples processed together in one forward and backward computation.

When to use it

Use batches to balance computational efficiency, memory use, and gradient stability.

Practical example

Assemble each batch with padded sequences and an attention mask.

Training loop

Mini-batch

Mini-batch

Meaning

A smaller subset of the training data used for one gradient calculation rather than processing the full dataset at once.

When to use it

Use it as the standard practical unit for stochastic optimization on large datasets.

Practical example

Shuffle the training set and construct mini-batches of similar sequence length.

Training loop

Batch size

Batch size

Meaning

The number of examples or sequences included in a batch.

When to use it

Tune it according to sequence length, memory, optimization behavior, and effective batch size.

Practical example

Start with per-device batch size 4 and use gradient accumulation only if required by memory.

Training loop

Training step / iteration

Training step / iteration

Meaning

One optimizer-update cycle, which may consume one or several micro-batches.

When to use it

Use it for logging, scheduling, saving checkpoints, and comparing run duration.

Practical example

Log training loss and learning rate every 20 optimizer steps.

Training loop

Epoch

Epoch

Meaning

One complete pass through the training dataset under the configured sampling process.

When to use it

Use epoch counts with validation curves rather than treating more epochs as automatically better.

Practical example

For 1,000 examples and batch size 50, one epoch contains about 20 batches.

Training loop

Forward pass

Forward pass

Meaning

The computation that sends model inputs through the network to produce predictions and a loss value.

When to use it

Use it when explaining the first half of each training iteration before gradients are calculated.

Practical example

Run the forward pass on token IDs and compare predicted tokens with the target labels.

Training loop

Loss function

Loss function

Meaning

A function that measures how far model predictions are from the training objective.

When to use it

Choose it to match the task, label format, class balance, and desired behavior.

Practical example

Track token-level training loss and sequence-level task metrics separately.

Training loop

Backpropagation

Backpropagation

Meaning

The process of propagating loss derivatives backward through the model to compute gradients.

When to use it

Use it to explain how an error signal reaches trainable parameters.

Practical example

Backpropagate the scaled loss, clip gradients, and then update the optimizer.

Training loop

Gradient

Gradient

Meaning

A set of derivatives indicating how parameter changes would affect the loss.

When to use it

Monitor gradient norms to detect instability, vanishing updates, or exploding gradients.

Practical example

Alert when the gradient norm becomes non-finite before an optimizer step.

Training loop

Optimizer

Optimizer

Meaning

An algorithm that updates trainable parameters using gradients and configured state.

When to use it

Select and configure it together with learning rate, weight decay, and precision settings.

Practical example

Use AdamW with explicitly recorded learning rate, weight decay, and optimizer version.

Training loop

Stochastic gradient descent (SGD)

Stochastic gradient descent (SGD)

Meaning

An optimization method that updates parameters from gradients estimated on individual examples or mini-batches.

When to use it

Use it as a foundational optimizer concept and compare momentum or scheduling choices for the task.

Practical example

Run SGD with a recorded learning rate, momentum, scheduler, and batch configuration.

Training loop

AdamW

AdamW

Meaning

An adaptive optimizer that decouples weight decay from the gradient-based parameter update.

When to use it

Use it when supported by the training recipe and record all optimizer hyperparameters for reproducibility.

Practical example

Record AdamW learning rate, betas, epsilon, weight decay, and implementation version.

Training loop

Learning rate

Learning rate

Meaning

A hyperparameter controlling the scale of parameter updates during optimization.

When to use it

Tune it carefully because values that are too high can destabilize training and values that are too low can stall progress.

Caution

There is no universally correct learning rate; appropriate values depend on model, method, data, batch size, and optimizer.

Practical example

Compare candidate learning rates using the same data split, seed, and evaluation schedule.

Training loop

Learning-rate scheduler

Learning-rate scheduler

Meaning

A rule that changes the learning rate over training steps.

When to use it

Use it to warm up training, decay updates, or react to a plateau according to the experiment plan.

Practical example

Warm up for the planned fraction of steps, then use cosine decay to the final rate.

Training loop

Warmup

Warmup

Meaning

An initial period that gradually raises the learning rate from a small value.

When to use it

Use it to reduce unstable updates near the start of training, especially in large-model optimization.

Practical example

Record warmup steps as part of the reproducible training configuration.

Generalization and quality

Training loss

Training loss

Meaning

Loss calculated on batches used to update model parameters.

When to use it

Use it to monitor optimization progress, but do not treat a low value as proof of generalization.

Practical example

Plot smoothed training loss by optimizer step and investigate sudden spikes or non-finite values.

Generalization and quality

Validation loss

Validation loss

Meaning

Loss measured on held-out validation examples without updating parameters from those examples.

When to use it

Compare it with training loss to detect overfitting and select candidate checkpoints.

Practical example

Keep the checkpoint with the best approved validation behavior, not necessarily the final epoch.

Generalization and quality

Convergence

Convergence

Meaning

The state in which training updates produce progressively smaller or more stable improvement.

When to use it

Judge it from training and validation curves together with task metrics, not from training loss alone.

Practical example

Treat the run as converged only after validation metrics stabilize across checkpoints.

Generalization and quality

Generalization

Generalization

Meaning

The ability of a trained model to perform well on relevant examples it did not train on.

When to use it

Measure it on representative held-out and real-world cases.

Practical example

Compare performance across unseen users, time periods, languages, and difficult edge cases.

Generalization and quality

Overfitting

Overfitting

Meaning

A condition where a model fits training data closely but performs worse on unseen data.

When to use it

Look for a widening gap between training and validation behavior and respond with data, regularization, or earlier stopping.

Practical example

Stop when validation loss worsens while training loss continues to decrease.

Generalization and quality

Underfitting

Underfitting

Meaning

A condition where a model fails to learn enough structure to perform well even on training data.

When to use it

Check model capacity, feature or data quality, optimization settings, and training duration.

Practical example

Investigate underfitting when both training and validation metrics remain poor.

Generalization and quality

Regularization

Regularization

Meaning

Techniques that limit or shape learning to reduce overfitting and improve behavior on unseen data.

When to use it

Choose regularization together with model capacity, data volume, augmentation, and early stopping.

Practical example

Compare validation behavior with documented weight decay and dropout settings.

Generalization and quality

Weight decay

Weight decay

Meaning

A regularization setting that discourages parameter values from growing excessively during optimization.

When to use it

Tune it with the optimizer and verify which parameters are excluded from decay.

Practical example

Record weight decay and the parameter groups to which it applies.

Generalization and quality

Dropout

Dropout

Meaning

A regularization technique that randomly disables selected activations during training.

When to use it

Use only where the architecture and training method support it, and disable training behavior during evaluation.

Practical example

Set and record the supported dropout rate, then compare validation performance.

Generalization and quality

Gradient clipping

Gradient clipping

Meaning

Limiting gradient magnitude or norm before an optimizer update to reduce unstable steps.

When to use it

Use it when gradient spikes are possible and monitor how often clipping occurs.

Practical example

Clip the global gradient norm at the documented threshold and log clipped steps.

Generalization and quality

Early stopping

Early stopping

Meaning

Stopping a training run when a monitored validation metric no longer improves under defined rules.

When to use it

Use patience and minimum-improvement thresholds to avoid reacting to one noisy evaluation.

Practical example

Stop after three validation checks without meaningful improvement and restore the best checkpoint.

Generalization and quality

Training checkpoint

Training checkpoint

Meaning

A saved training state containing model parameters and often optimizer, scheduler, and progress information.

When to use it

Use checkpoints for recovery, comparison, evaluation, and controlled promotion.

Practical example

Save versioned checkpoints with dataset, code, tokenizer, and configuration identifiers.

Compute and reproducibility

AI accelerator (GPU, TPU, NPU)

AI accelerator (GPU, TPU, NPU)

Meaning

Specialized compute hardware used to accelerate tensor operations for model training and inference.

When to use it

Choose hardware according to framework support, numerical formats, memory, interconnect, availability, and cost.

Practical example

Record accelerator type, count, memory, runtime, driver, and estimated training cost.

Compute and reproducibility

Video memory (VRAM)

Video memory (VRAM)

Meaning

Memory on an accelerator used for model weights, optimizer states, activations, gradients, and batches.

When to use it

Estimate it before training and adjust batch size, precision, sharding, or checkpointing when necessary.

Practical example

Measure peak allocated VRAM for the longest supported sequence and effective batch configuration.

Compute and reproducibility

FP16 and BF16

FP16 and BF16

Meaning

Reduced-precision numerical formats commonly used to lower training memory and increase accelerator throughput.

When to use it

Use only formats supported by the hardware and framework, with finite-value and quality checks.

Practical example

Compare BF16 or FP16 training stability and output quality with the approved baseline.

Compute and reproducibility

Gradient accumulation

Gradient accumulation

Meaning

Combining gradients from several micro-batches before one optimizer update.

When to use it

Use it to reach a larger effective batch size when device memory is limited.

Practical example

Effective batch size = per-device batch × accumulation steps × number of data-parallel devices.

Compute and reproducibility

Mixed-precision training

Mixed-precision training

Meaning

Training that uses more than one numerical precision to improve speed or memory efficiency while preserving necessary stability.

When to use it

Use supported FP16 or BF16 workflows with loss and finite-value monitoring.

Practical example

Enable BF16 on compatible hardware and verify loss parity against the baseline run.

Compute and reproducibility

Gradient checkpointing

Gradient checkpointing

Meaning

A memory-saving technique that recomputes selected activations during backpropagation instead of storing all of them.

When to use it

Use it when memory is the constraint and additional computation is acceptable.

Practical example

Enable gradient checkpointing to fit longer sequences, then measure the training slowdown.

Compute and reproducibility

Distributed training

Distributed training

Meaning

Training that coordinates computation or model state across multiple accelerators or machines.

When to use it

Use it when one device cannot meet model-size or training-time requirements.

Practical example

Record data-parallel strategy, world size, sharding policy, network setup, and recovery procedure.

Compute and reproducibility

Data parallelism

Data parallelism

Meaning

Replicating a model across workers that process different data batches and synchronize updates.

When to use it

Use it when the model fits on each worker and more batch throughput is needed.

Practical example

Record worker count, global batch size, gradient synchronization, and failure recovery behavior.

Compute and reproducibility

Model parallelism

Model parallelism

Meaning

Splitting model computation or parameters across multiple devices because one device cannot hold or process the entire model efficiently.

When to use it

Use tensor, pipeline, or sharded approaches according to architecture and framework support.

Practical example

Document the partition strategy, communication cost, checkpoint format, and serving compatibility.

Compute and reproducibility

Random seed

Random seed

Meaning

A value used to initialize pseudo-random operations such as shuffling, sampling, dropout, and parameter initialization.

When to use it

Record it for repeatability while recognizing that distributed hardware and some kernels may remain nondeterministic.

Practical example

Compare important results across several recorded seeds instead of relying on one favorable run.

Compute and reproducibility

Training reproducibility

Training reproducibility

Meaning

The ability to repeat a run closely enough to explain and compare its results.

When to use it

Version data, code, model, tokenizer, dependencies, seeds, configuration, and hardware details.

Practical example

Store a run manifest containing commit ID, dataset hash, seed, package lock, and checkpoint URI.

Batch, mini-batch, step, and epoch

These units describe different parts of a training run and should not be used interchangeably.

TermMeaning
BatchA group processed together in one forward/backward computation.
Mini-batchA practical smaller subset used instead of the entire dataset.
Training stepOne optimizer update, possibly after several accumulated micro-batches.
EpochOne pass through the training set; 1,000 examples with batch size 50 is about 20 batches per epoch.

Frequently asked questions

Why must training, validation, and test data be separated?

Training data updates parameters, validation data guides development choices, and test data estimates final performance. Mixing the same or near-duplicate examples across them can inflate results and hide poor generalization.

How are batch size, training steps, and epochs related?

An epoch processes the training set once. Without gradient accumulation, the approximate batches per epoch are dataset size divided by batch size. With accumulation and multiple workers, distinguish per-device, effective, and global batch size.

What does it mean when training loss falls but validation loss rises?

It is a common overfitting signal. Review data overlap and quality, then consider earlier stopping, regularization, augmentation, model capacity, and multiple task metrics rather than one loss curve alone.

Is a GPU always required for model training?

No. Small models and experiments can run on CPUs, while larger neural models commonly benefit from GPUs, TPUs, or NPUs. The choice depends on framework support, model size, sequence length, time, and budget.

Can publicly accessible data be used for training?

Public accessibility alone does not establish training rights. Check copyright, license, contract, privacy, consent, confidentiality, collection rules, and provider terms, and retain provenance and removal procedures.

Official references