Numerical instability occurs when computational errors make a calculation unreliable or invalid. In machine-learning optimization, an unstable loss can jump erratically instead of decreasing, so gradient descent follows misleading directions and may end at a suboptimal model. section 12.1.3
Unstable Gaussian-process training
Training a regular Gaussian process on many data points can make marginal log-likelihood computation unstable. The resulting loss curve becomes jagged, may increase over iterations, and prevents gradient descent from reliably minimizing the objective. The mountain-descent analogy becomes descending while blindfolded: each step uses an incorrect estimate of the terrain. section 12.1.3
Numerical instability can also appear when drawing samples from a Gaussian-process posterior. A large candidate set may produce a covariance matrix that is not positive definite when it should be. BoTorch automatically adds 1e−6 of jitter to the diagonal to make the matrix positive definite; warning suppression only cleans the output and does not replace the numerical fix. section 5.3.2
Figure 12.5 Progressive loss of a regular GP during gradient descent. Due to numerical instability, the loss curve is jagged and not effectively minimized.
Inspect the jagged loss trajectory to see how numerical instability disrupts gradient-based optimization. section 12.1.3
