Training Stability

Training stability is whether optimization makes consistent progress without divergence, exploding gradients, collapsed representations, invalid outputs, or silent numerical failure. It connects Loss function, Optimizer, Learning rate schedule, Batch size, and Training run.

A simple stability signal is the gradient norm:

where is the gradient at step . Very large, very small, or highly erratic gradient norms often indicate an unstable setup.

Common Causes

  • Learning rate too high for the batch size or optimizer.
  • Missing warmup for large models, large batches, or mixed precision.
  • Loss scale mismatch across objectives or modalities.
  • Bad initialization, normalization, or residual path behavior.
  • Poor normalization placement in very deep residual or Transformer blocks.
  • Exploding gradients in sequence, recurrent, RL, or very deep models.
  • Data preprocessing mismatch between train and validation.
  • Incorrect model mode for dropout or normalization.
  • Checkpoint resume without optimizer, scheduler, scaler, or random state.

Stabilizers

Instability vs Generalization

Stable training is not the same as good generalization:

A run can be stable but overfit, or unstable but still occasionally produce a good validation checkpoint. Stability checks should be paired with validation metrics, leakage checks, and error analysis.

Checks

  • Are loss, learning rate, gradient norm, and validation metric logged together?
  • Does instability start at warmup, after schedule changes, after resume, or after data changes?
  • Is gradient clipping active often enough to change optimization dynamics?
  • Is effective batch size computed correctly across devices and accumulation?
  • Are optimizer state, scheduler state, scaler state, and random state restored on resume?
  • Are train, validation, and inference preprocessing contracts identical where required?
  • Is the failure a numerical issue, data issue, objective issue, architecture issue, or evaluation issue?