The Danger of Double Precision: Working Precision as a Hidden Constraint in Gaussian Process Maximum Likelihood

Thomas A. ScottarXiv 2026

TL;DR

In scientific computing, IEEE 64-bit "double precision" is usually treated as exact ground truth. This paper reveals that when fitting Gaussian processes to smooth, noiseless data, double precision silently acts as a hidden mathematical wall—forcing your optimizer into a completely different, inferior model and distorting your uncertainty estimates unless you step up to higher-precision arithmetic.

What Problem Does This Paper Address?

Gaussian processes (GPs) are the gold-standard surrogate models for expensive computer simulations and Bayesian optimization (BO). Fitting a GP involves tuning hyperparameters (like length scales and noise) by maximizing the marginal likelihood. At every step of this optimization, the computer must perform a Cholesky factorization—essentially taking the matrix square root—of a covariance matrix that measures how similar data points are to one another.

When modeling noiseless data with smooth kernels, or when an optimizer clusters points tightly around a minimum, rows of this covariance matrix become nearly identical. In linear algebra terms, the matrix becomes severely ill-conditioned (measured by its condition number, $\kappa_2$, the ratio of its largest to smallest eigenvalues). In standard IEEE double precision (which allocates 53 bits of significand accuracy), rounding errors easily overwhelm tiny eigenvalues, causing Cholesky factorization to break down. Practitioners routinely slap a tiny diagonal "jitter" (artificial noise) onto the matrix to stop crashes, assuming double precision is otherwise fine. Author Thomas A. Scott asks a foundational question: Has double precision actually converged to the true maximum-likelihood hyperparameters, or is arithmetic rounding quietly hijacking our models?

Methods

To isolate the pure effect of numerical precision, the author ported optimization and linear algebra pipelines into mpmath, simulating arbitrary floating-point significand widths from $b = 11$ bits (half precision) up to $256$ bits, judged against a $384$-bit ground-truth reference.

Instead of just observing fits, the study introduces:

  • An implicit-constraint theory: Modeling Cholesky breakdown as a hard mathematical constraint that confines the optimizer to matrices where $\kappa_2 \lesssim 2^b$, backed by a proved local mathematical expansion.
  • Precision-split experiments: Separating the rounding of the initial kernel matrix entries from the rounding inside the Cholesky algorithm itself.
  • Optimizer controls: Testing derivative-free (Powell) vs. gradient-based (L-BFGS, Newton) optimizers, alongside how they handle Cholesky failures.

Datasets

Because this is a study of deterministic function emulation, the datasets are synthetic benchmarks rather than massive empirical corpora:

  • Primary testbed: The classic 2D Branin function evaluated on $n=30$ points—20 space-filling Sobol points plus 10 tightly clustered points mimicking a converging Bayesian optimization run.
  • Generality benchmark: A newly structured 43-case suite varying kernels (Squared-Exponential, Matérn 3/2, Matérn 5/2), point geometries, dimensions ($d=1$ to $4$), and noise levels—including well-conditioned "negative controls" that double precision easily resolves.
  • Active learning: Closed-loop sequential design tests on Branin, a rotated quadratic bowl, and the 1D-active Forrester function.

Key Insights and Ideas

  • Cholesky failure is an invisible fence: When the true optimal model has a condition number requiring more bits than your hardware has, Cholesky failures act as a hidden wall. To survive, the optimizer either invents an "implicit nugget" (artificially inflating the noise parameter) or retreats along weakly identified parameter ridges.
  • The matrix is ruined before the Cholesky step: Surprisingly, factorization arithmetic isn't the main culprit. Simply rounding the kernel entries to $b$ bits when forming the matrix makes it mathematically indefinite before a single step of Cholesky begins. Consequently, mixed-precision tricks that only upgrade the linear solver cannot fix the problem!
Figure 1. (a) Fraction of trials whose b-bit Cholesky factorization succeeds, against x = log2(λmin(Rθ)/u) binned over −6 ≤x < 8: per precision for b ≤64 (every point factors from 68 bits) and pooled over b = 40–72 (black). Dashed: largest x with a failure in the calibration subset (0.97), which sets the offsets of Figure 3; red dash-dotted: over all trials (1.19, a held-out 48-bit point); dotted: logistic 50% point of the calibration subset (−1.42). (b) The same fraction for the arithmetic splits of section B; gray: entries formed and factored at 384 bits, which succeeds at every point.
  • Failure handling beats optimizer choice: Below the precision threshold, how your code reacts to a Cholesky crash matters more than the algorithm class. For instance, scikit-learn returns a zero gradient upon failure, tricking its L-BFGS-B optimizer into thinking it found a flat optimum and stopping immediately. Simply rejecting failed steps in a line search performs vastly better.
  • Jitter isn't a free lunch: Adding a fixed diagonal jitter stops crashes, but in high-accuracy noiseless regimes, it trades numerical failures for posterior bias—degrading how well the GP recovers the true function.

Key Results

On the 30-point clustered Branin problem, the true covariance condition number is roughly $2^{70}$. Standard double precision ($b=53$) doesn't just return a slightly noisy answer; it returns a completely different model, losing 13.3 nats of log-likelihood. Even 80-bit x87 extended precision ($b=64$ significand bits) falls short. Fits only converge once the significand exceeds $\log_2 \kappa_2 \approx 70$ bits.

Precision sweep showing convergence only above 70 bits

Across the 43 benchmark cases, the required bit-width reliably tracks $\log_2 \kappa_2$ at the true optimum plus a small tolerance offset: double precision suffices for rougher Matérn 3/2 kernels, but routinely fails for smooth Squared-Exponential kernels on clustered designs.

The downstream consequences are stark:

  • Inflated uncertainty: Near the Branin design cluster, double-precision hyperparameters overstate the posterior standard deviation by an average factor of 8.4x.
  • Stalled active learning: On a quadratic objective, double-precision active learning stalls mid-run, ending with a function recovery error 214x worse than a 200-bit reference.
  • The 80-bit cure: Promoting the entire likelihood evaluation (kernel entries included) to 80 significand bits completely eliminates Cholesky failures and recovers reference accuracy across every fixed design tested.

Limitations and Future Work

The author notes that arithmetic was simulated via mpmath significand rounding—ignoring hardware exponent limits, subnormals, fused multiply-add operations, and real-world wall-clock speed. Furthermore, remedies were tested on fixed designs rather than inside live active-learning loops, and actual Bayesian optimization regret was not measured. Future directions include building a stochastic model of the "fuzzy" rounding boundary, testing high-precision remedies inside closed-loop optimization, and studying how precision-induced uncertainty inflation impacts BO exploration.

Summary updated

BibTeX
@misc{scott2026danger,
  author = {Thomas A. Scott},
  title = {{The Danger of Double Precision: Working Precision as a Hidden Constraint in Gaussian Process Maximum Likelihood}},
  year = {2026},
  eprint = {2611.33647},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33647},
}
Figure