Why

A surrogate is a cheap statistical model that stands in for an expensive simulation or experiment. A Gaussian process is a standard way to build one, and it also says how uncertain each of its predictions is.

Once fitted, a Gaussian process is a set of stored numbers: a few fitted parameters, the training inputs, a list of weights that gives each prediction, and one large table of numbers that gives its uncertainty. This article calls that table the uncertainty factor; its technical name is the Cholesky factor. Every number is normally kept at 64 bits.

The uncertainty factor has one entry for every pair of training points, so it soon outweighs everything else. A model fitted to 1024 points takes about 4 MB.

In deep learning, storing each part of a model at fewer bits is an established technique [1]. This study asks whether the same pays for a Gaussian process, and whether an automatic method can choose the number of bits for each part.

A Gaussian process (GP) is a standard way to build a surrogate: a cheap statistical model that stands in for an expensive simulation or experiment and says how uncertain each of its predictions is. A fitted GP is a set of stored numbers: a few fitted parameters, the training inputs, a vector of weights that gives the predicted value, and a triangular matrix, the Cholesky factor, that gives the uncertainty band. All are normally kept at 64 bits per number. The factor has one entry per pair of training points, so above a few hundred points it is almost the whole model, and a model with 1024 points takes about 4 MB (Table 1). In deep learning, storing each part of a model at its own reduced width is an established technique [1]. The study asks whether the same pays for a GP, and whether an automatic method can find the best size–accuracy trade-off part by part.

What a model stores and what is rounded

For each output, the dense GP stores the length scales (one per input), the signal variance s², the noise variance σ², a constant mean, the weights α and the Cholesky factor L of the noisy training covariance K + σ²I. The predicted mean is the constant plus k∗ᵀα, a weighted sum of kernel values. The predicted variance is s² − ‖L⁻¹k∗‖² + σ². Near the data its first two terms nearly cancel, so the variance is the output most exposed to rounding [2]. The sparse GP replaces the n training points with m inducing points, a smaller set of summary points placed by the fit [3]. The stored numbers fall into six groups: the hyperparameters, the training (or inducing) inputs, the weights, the factor, the output scaling and the input scaling. Each group is rounded to the nearest value in float32, bfloat16, float16, float8, int8 (three ways of scaling) or int4. The prediction is then computed in float64, so only storage is tested. The hyperparameters and the inputs can also be rounded in a consistent mode, where α and L are recomputed in float64 when the model is loaded.

What was done

The study fitted Gaussian processes to five standard test functions: formulas with one to eight inputs whose true values are known exactly. Across the five, training sets ranged from 32 to 4096 points.

Each stored part was then rounded to 32, 16, 8 or 4 bits per number. The calculations still ran at 64 bits, so only storage was tested.

A rounded model passed only if three things stayed almost the same on new test points: its predictions, the uncertainty it reports, and how often the true value falls inside its stated range. The last two matter: rounding can leave every prediction in place and still destroy the uncertainty.

The automatic method first tests rounding each part on its own. It uses those results to choose promising combinations, then measures those combinations.

Five standard test functions with one to eight inputs were fitted at 32 to 4096 training points, each setting with three random designs. Each stored part was rounded to 32, 16, 8 or 4 bits per number and the model was run as it would be served: the rounded numbers are loaded and the arithmetic stays at 64 bits, so only storage is tested. A rounded model passes three tests on held-out points: its predicted value moves by less than a tenth of the model's own error against the truth, its predicted uncertainty by less than 10% at the median test point, and the share of true values inside its 95% band by less than one percentage point. The band is tested because rounding can leave the predicted value intact and still destroy the band, as the factor at 32 bits does in Figure 3. The automatic method measures the effect of rounding each part alone, predicts from those the effect of every combination of formats, and then measures every point of the predicted front, the combinations that get smaller without getting worse, and for comparison the whole model rounded to each single format; the point that matters is the cheapest one that passes.

How a rounded model is judged

A rounded model passes when three tests hold on 2048 held-out test points (1024 for forrester):

  • the predicted mean moves by less than a tenth of the float64 model's own error against the truth;
  • the predicted standard deviation moves by less than 10% (median over the test points);
  • the coverage of the 95% band, meaning the fraction of test points whose true value falls inside it, moves by less than one percentage point.

The first test uses the model's own error as the yardstick. The other two catch bands that shrink or grow, which a study of the mean alone would miss. The thresholds were set before the first sweep ran (Definitions).

How the front is found

The method has three steps. Measure: each group is rounded alone to each format, and the three test values are recorded. Predict: every assignment of one format per group is enumerated, its bytes are counted exactly, and its effect is predicted by adding the groups' measured effects. The assignments that get cheaper without getting worse form the predicted front. Verify: each point of the predicted front is applied by rounding every group at once and judged by the three tests, and so is every uniform cast of the whole model. The prediction uses all three tests, because a front built on the mean alone would round the factor first, which leaves the mean intact and destroys the band (Figure 3a). The explicit inverse K⁻¹, an alternative to the factor, is left out, because it fails even in float64 on 30 of the 33 ill-conditioned models. Every measurement runs twice, in fresh processes, and the two runs agree bit for bit.

The problems

Five standard test functions are used, all noise-free on their published domains. forrester has one input [4]. branin (two inputs) and hartmann6 (six) follow Dixon and Szegő [5]. ishigami has three inputs [6], and borehole has eight [7]. Each function is fitted at 64, 256 and 1024 training points (forrester at 32 and 256), and hartmann6 and borehole also at 4096 points with a sparse model. Each setting is fitted with three random designs (seeds 7, 19 and 43). Designs, splits and noise settings are under Problems and designs.

What was found

Some models were much more sensitive to rounding than others, and the models fell into two groups with nothing in between (Figure 1). The less sensitive ones could be stored 4 to 8.3 times smaller and still pass. For the sensitive ones, from 256 training points on, the saving was at most 3.1%.

Choosing a different number of bits for each part helped some of the less sensitive models and not the others (Figure 2).

The method's predictions were good enough to guide the search: they called pass or fail correctly for 96% of 541 measured points, and every model it reports was measured to pass.

One number largely decides the outcome: κ, the condition number of the training covariance matrix, which measures how much the model amplifies a small change in its stored numbers; it rises with the number of training points. The models of these five functions fall into two groups, with nothing between (Figure 1). Well-conditioned models, κ up to 7.0 × 10⁴, shrink 4 to 8.3 times and still pass: about 4 where the factor needs 16 bits, more where it tolerates 8 or fewer. Ill-conditioned models, κ from 1.25 × 10⁹, must keep the factor at 64 bits, because at 32 bits it fails at least one of the two uncertainty tests in every one; the saving then comes from the small parts, is at most 3.1% at 256 points or more, and mostly requires recomputing the factor when the model is loaded. On the well-conditioned models at 1024 points the simplest option, every number at 16 bits, did as well as the method. The method beat the best single format by a large margin, 1.7 to 4 times, only where the parts tolerate different widths: at 256 points or fewer and on the sparse model, except one 64-point model that gained almost nothing. Elsewhere it gained at most 19%, and at most 3.1% from 256 points on. Its predictions were good enough to steer the search: they called pass or fail right for 96% of 541 measured points, and every model it reports was measured to pass.

A scatter plot of 52 models of the five test functions, and two from an earlier sweep. The models fall into two groups with a wide gap between them: with κ up to 7.0 × 10⁴ they are stored 4 to 8.3 times smaller; with κ from 1.25 × 10⁹, at most 1.19 times smaller.

Figure 1. Why the front bends where it does. Each mark is one model. Models farther right are more sensitive to rounding; higher marks are stored smaller. This study's models on the left shrink 4 to 8.3 times; those on the right, at most 1.19 times. Squares are sparse models; hollow marks and the shaded bands come from an earlier sweep on other problems.

Data · Code

Figure 1. Why the front bends where it does. Each dot is one fitted model: how many times smaller its cheapest passing version is than the 64-bit model (vertical), against κ, the conditioning of its training covariance (horizontal; both axes log scale). Filled dots are this study's five functions. With κ up to 7.0 × 10⁴ they shrink 4 to 8.3 times, from 1.25 × 10⁹ at most 1.19 times, and none lies between. The two hollow dots, from an earlier sweep on other problems, fall in the same two groups; the shaded bands are where that sweep found the weights (left band) and the factor (right band) begin to fail at 32 bits. Circles mark a dense model, which keeps all its training points, and squares a sparse one, which summarizes them by 256 representative points.

Data 3 files · Code figures.py fig_kappa · Drawing draw.py

Forrester has one mark: fronts were measured only for its 256-point model with seed 7.

Six panels, one per model. Forrester, 1 input, n = 256: the cheapest passing allocation stores 266 kB, the same size as the best single format (float64) to within 1%. Branin, 2 inputs, n = 1024: the cheapest passing allocation stores 4.21 MB, the same size as the best single format (float64) to within 1%. Ishigami, 3 inputs, n = 1024: the cheapest passing allocation stores 4.22 MB, the same size as the best single format (float64) to within 1%. Hartmann 6, 6 inputs, n = 1024: the cheapest passing allocation stores 1.06 MB, the same size as the best single format (float16) to within 1%. Hartmann 6, 6 inputs, n = 4096 sparse: the cheapest passing allocation stores 67.9 kB, 3.98 times smaller than the best single format (float32). Borehole, 8 inputs, n = 1024: the cheapest passing allocation stores 4.24 MB, 1.01 times smaller than the best single format (float64).

Figure 2. What quantization buys. Each panel is one model, placed by its size in bytes (across) and by the worst of its three tests, relative to the limit (up); both scales are logarithmic, and a point passes below the dashed line. Hollow circles store every number at one width. Filled dots are the automatic method's choices, part by part, with a ring on the smallest that passes. On four models no single width below the full one passes, and the method saves under 1%. On the sparse model it goes 4 times below the best single width.

Data · Code

Figure 2. What quantization buys. Each panel is one fitted model (seed 7): forrester at 256 training points; branin, ishigami, hartmann6 and borehole at 1024; and hartmann6 sparse at 4096. Hollow circles joined by a line show the whole model cast to one format, from float64 to float8. Filled dots show the automatic method's front, each point measured, with a ring on the cheapest point that passes. A point passes below the dashed line. On four models no uniform format below float64 passes, and the method saves under 1%. On dense hartmann6 uniform float16 passes and the method matches it, and on the sparse model the method goes 4 times below the best uniform format.

Data figure-2-data.json · Code figures.py fig_front · Drawing draw.py

Table 1. How big a model is. Bytes the prediction reads (first of the three random designs): at 64 bits (f64), at the best single format that passes (best uniform), and at the method's cheapest passing point (alloc.); gain is best uniform ÷ alloc. The last four columns give the memory a serving process adds through its first prediction, measured on synthetic models of the same size with one output and six inputs. Resident memory is larger than the stored bytes, for the dense models because the software holds the factor as a full square.

Data 2 files · Code figures.py table_size

modelnf64best uniformalloc.gainres. f64 CPUres. f64 GPUres. f32 CPUres. f32 GPU
Forrester256267 kBfloat64, 267 kB266 kB1×8.2 MB3.19 MB7.28 MB1.6 MB
Branin10244.22 MBfloat64, 4.22 MB4.21 MB1×43.3 MB50.5 MB10.1 MB25.2 MB
Ishigami10244.23 MBfloat64, 4.23 MB4.22 MB1×43.3 MB50.5 MB10.1 MB25.2 MB
Hartmann 610244.26 MBfloat16, 1.06 MB1.06 MB1×43.3 MB50.5 MB10.1 MB25.2 MB
borehole10244.27 MBfloat64, 4.27 MB4.24 MB1.01×43.3 MB50.5 MB10.1 MB25.2 MB
Hartmann 6, sparse4096541 kBfloat32, 270 kB67.9 kB3.98×7.73 MB1.23 MB8.09 MB618 kB
borehole, sparse4096545 kBfloat64, 545 kB545 kB1×7.73 MB1.23 MB8.09 MB618 kB

Where the bits go

The weights and the factor fail in two different ways (Figure 3a). With α in float32 the curve moves away from the truth. With L in float32 the mean stays put, but the variance turns negative and the band vanishes. Both depend on κ. On the five functions, α and L pass float32 in every model with κ ≤ 7.0 × 10⁴, and L fails float32 in every dense model with κ ≥ 1.25 × 10⁹. An earlier sweep on other problems places the boundary between those values: between 2.73 × 10⁷ and 1.26 × 10⁸ for α, and between 1.40 × 10⁸ and 3.28 × 10⁸ for L. Rounding the inputs or the hyperparameters and then recomputing α and L at load lowers their bits (Figure 3b). Stored as it is, the signal variance needs float64 on every ill-conditioned model, because it moves the band.

a

Figure 3, panel a: Where the bits go (the study's own image; opens at full size)

b

Panel (b), horizontal bars: hyperparameters: 64 bits stored as fitted, 16 bits recomputed after rounding; training inputs: 64 bits stored as fitted, 32 bits recomputed after rounding; weights α: 64 bits stored as fitted; uncertainty factor L: 64 bits stored as fitted; output scaling: 32 bits stored as fitted.

Figure 3. Where the bits go. (a) A one-input model (32 noise-free points, seed 7) against the truth, with its 95% band. With α in float32 the error grows 6.4 times. With L in float32 the variance turns negative at 88% of test points, and the band vanishes. (b) A six-input model at 256 points from the earlier sweep: the fewest bits per stored number that pass on every output and seed, stored as fitted and with α and L recomputed after rounding.

Data 5 files · Code figures.py fig1 · Drawing draw.py

Panel (a) is the study's own image: the model file it was drawn from is not in the repository, so it is not redrawn here.

What quantization buys

Figure 2 shows one front per function. On the ill-conditioned models no uniform format below float64 passes. From 256 points on, the method saves 0.014 to 3.1% (0.19 to 3.1% on the dense models; the 0.014% is the sparse borehole model). Almost all of that comes from storing the inputs in float32 and refactorizing in float64 at load, a load-time cost that the bytes do not count. At 64 points, where the factor is a smaller share of the model, it saves 3% on branin and 10 to 16% on borehole; one borehole seed also stores the weights in float32, the one high-κ model that does. On the well-conditioned hartmann6 models, the model shrinks 4.0 times at 1024 points, 7.9 times at 256, and 8.0 times at 4096 points (sparse). At 1024 points the method beats the best uniform format by at most 0.8% (saving_vs_uniform 1.0020 on branin, 1.0029 on ishigami and 1.0078 on borehole, all against uniform float64). On hartmann6 it matches uniform float16: its cheapest point is 12 bytes smaller (seed 7; 12 to 21 bytes over the three seeds). The method gains beyond uniform casting only where the groups need different formats. On hartmann6 at 256 points it is 2.0 times below uniform bfloat16, with the factor at 8 bits. On the sparse model it is 2.0 times below uniform float16 in two seeds, and 4.0 times below uniform float32 in the third. The seeds agree on the saving to within 0.3% from 256 points on, but not at 64 points (Results in full). The models that tolerate 8 bits are the least accurate: their float64 test errors are 0.23 to 1.4 standard deviations of the output. The mean test scales with that error, so part of their tolerance is a loose yardstick.

What gets quantized along the front

The factor sets the size. At float64 it holds 93 to 99% of the bytes of every dense model with 256 points or more. So the large steps of a front are the factor's formats, and the other groups only fine-tune between them (Figure 4). The prediction steers the search well. Over 51 fronts, the predicted pass or fail held for 517 of 541 measured points (96%), and the predicted order matched the measured order (median Kendall's τ 0.97). The misses sit at the margin, mostly on coverage within a point of its limit. The method always reports a point it has measured as passing. Adding the groups' effects works because each group's mean shift is close to first order. The corresponding first-order formula for the variance is not a bound, which is why the method predicts from measurements rather than from formulas.

Horizontal bars of bytes per group, two models. Hartmann 6, 6 inputs: 4 passing points from 4.26 MB to 1.06 MB; the factor's format along them: float64 → float32 → float16 → float16. Branin, 2 inputs: 4 passing points from 4.22 MB to 4.21 MB; the factor's format along them: float64 → float64 → float64 → float64.

Figure 4. What gets quantized along the front. Two fronts of Figure 2, hartmann6 and branin at 1024 points (seed 7). Each bar is one passing point, from all float64 (top) to the cheapest passing point (bottom), split into the factor, the weights, the inputs and the rest. The formats of every group are listed under each bar.

Data figure-4-data.json · Code figures.py fig_composition · Drawing draw.py

Four of each front's passing points are drawn, as in the study's figure: all float64, the cheapest, and two between.

Why the front bends where it does

The saving follows κ (Figure 1). Every model of the five functions with κ ≤ 7.0 × 10⁴ shrinks at least four times, and every one with κ ≥ 1.25 × 10⁹ at most 1.19 times. No model of the five functions lies between, so they neither confirm nor narrow the earlier sweep's boundary. κ rises with the number of training points on every function. So more data can close the door: ishigami saves 4.0 to 7.9 times at 64 points and 1.01 times at 256. A noise floor changes the saving only where it changes κ. On hartmann6 at 256 points κ is set by short length scales, and raising the floor from 10⁻⁶ to 10⁻² changes neither κ nor the saving. On the earlier sweep's six-input problem, the same change lowered κ by four orders of magnitude and moved the weights and the factor from float64 to float32.

What to do with it

Test a rounded model before using it: some models saved a great deal of storage and others almost none. Check its uncertainty as well as its predictions.

Compute κ when a model is exported. Up to about 7 × 10⁴, run the automatic method; the model shrinks four times or more. From about 1.25 × 10⁹ on, keep the factor and the weights at 64 bits and expect at most 3.1% from 256 points on (one ill-conditioned 64-point model tolerated 32-bit weights; no other ill-conditioned model did). Between those values these functions gave no model; the gray bands in Figure 1 show where an earlier sweep on other problems found the boundary. Never store the explicit inverse of the covariance in place of the factor: it failed even at 64 bits on 30 of the 33 ill-conditioned models. Two caveats: the models that tolerated 8-bit factors were the least accurate ones, and since the test of the predicted value is relative to the model's own error, part of their tolerance comes from a loose yardstick; and the five functions are smooth and noise-free, while noisy data were tested only in the earlier sweep.

When quantization helps

  • Compute κ of the noisy training covariance when the model is exported.
  • Up to κ ≈ 7.0 × 10⁴, run the allocation. The factor tolerated float16 in every such model, and the model shrinks four times or more. Treat 8-bit factors with care: they passed only on inaccurate models.
  • From κ ≈ 1.25 × 10⁹ on, keep the factor and the weights in float64. Then only the inputs (with recomputation at load) and the hyperparameters were rounded, which saves at most 3.1% from 256 points on; the one exception is a 64-point borehole seed that also took the weights to float32.
  • Between those values these functions have no model. The earlier sweep puts the float32 boundary for the factor between 1.40 × 10⁸ and 3.28 × 10⁸.
  • Never store the explicit inverse. Keep the signal variance in float64 unless the posterior is recomputed at load.

Limits

The five test functions are smooth and free of noise. Real data with noise were tested only in an earlier sweep.

The models that tolerated 8 bits in the uncertainty factor were the least accurate. Their prediction test is measured against their own error, so part of their tolerance comes from a loose yardstick.

The method assumes that the effects of rounding each part add up. Every model it reports was measured; the combinations between those were not.

Only storage was tested, and the calculations ran at 64 bits. Speed was measured but is not reported here.

  • The five functions are smooth and noise-free. Real data with noise appear only in the earlier sweep.
  • The method assumes that the groups' effects add. Every front point it reports is measured, but the assignments between front points are not.
  • Only storage is tested, and the arithmetic runs in float64. Latency was measured, but it is not read here.
  • What was not run is listed under Not run and not read.

Technical record

Definitions

Groups and bytes. The bytes are those the predictive reads (quantize.stored_bytes), per output r.

  • Factor: n(n + 1)/2 numbers (a triangle), or for a sparse model the two m(m + 1)/2 triangles L and LB.
  • Weights α: n numbers (m for a sparse model).
  • Inputs: n × d numbers (the inducing inputs m × d for a sparse model).
  • Hyperparameters: d + 3 numbers (length scales, signal variance, noise, constant).
  • Output transform: its float parameters.
  • Input transform: offset and divisor, 2d numbers.

A float format stores each number at its width. int8 adds one float32 scale per tensor (int8), per output (int8_mode) or per row (int8_row). int4_g stores half a byte per number plus a scale and a zero point per group of 32. float8 is E4M3, simulated.

Modes. Stored rounds a group and serves it with everything else as fitted. Consistent rounds the inputs or a hyperparameter, then recomputes α and the factors in float64 from the rounded values (sensitivity.recompute_posterior). The consistent mode runs only when a control passes: the float64 recomputation from the unrounded values must reproduce the stored prediction within min(max(1e-8, 100 κ ε), 1e-6), with ε the float64 machine epsilon, 2.2 × 10⁻¹⁶.

Tests (metrics.tolerance, per output, test split). A rounded model passes when all three hold:

  • Mean: the RMS over test points of the shift of the predicted mean, in units of the output's training standard deviation, divided by the float64 model's standardized RMS error against the truth, is below 0.1. This ratio is mean_worst_ratio.
  • Standard deviation: the median over test points of |sd − sd₆₄| / sd₆₄ is below 0.10. This is std_worst_median.
  • Coverage: the 95% coverage of the analytic Gaussian band changes by less than 0.01 in absolute value. This is coverage95_worst_change.

Score. The score is max(mean ratio / 0.1, std / 0.1, |coverage change| / 0.01), so a score below 1 is a pass.

Prediction. A group-format option is admissible when its one-at-a-time records are all ok. An assignment's predicted effect combines its groups' measured records: the per-output mean shifts as a root sum of squares, and the median std errors and the absolute coverage changes as sums. Options that fail alone, and options dominated within their group, are dropped. The predicted front keeps the assignments whose score falls strictly as the bytes rise.

κ. κ is the 2-norm condition number of K + σ²I for a dense model, or of Kuu for a sparse one, the worst over outputs. It is read from first_order.kappa of the stored float32 L record. Where that record has none, as in the sparse cells, it is read from consistent_control.kappa.

Savings. saving_vs_f64 is the bytes at float64 divided by the bytes of the cheapest measured front point that passes. saving_vs_uniform is the bytes of the cheapest passing uniform cast divided by the same.

When the thresholds were set. The three thresholds are stated in the study protocol (commit 5452131, 8 November 2026, 12:39) and coded (commit d430937, the same day, 13:25). The first sweep cell, forrester_n32_s7_dense, finished later that day, at 14:39.

Rounding of κ bounds. A stated bound is rounded outward, so that every measured cell it summarizes lies inside it.

Problems and designs

The functions and their domains:

  • branin: x₁ in [−5, 10], x₂ in [0, 15].
  • ishigami: a = 7, b = 0.1, every input in [−π, π].
  • hartmann6: [0, 1]⁶.
  • borehole: rw [0.05, 0.15] m, r [100, 50 000] m, Tu [63 070, 115 600] m²/yr, Hu [990, 1110] m, Tl [63.1, 116] m²/yr, Hl [700, 820] m, L [1120, 1680] m, Kw [9855, 12 045] m/yr.
  • forrester: on [0, 1], from the earlier sweep's generator.

The GP sees the unit cube, mapped affinely to each domain.

The designs are Latin hypercubes [8] (scipy.stats.qmc.LatinHypercube). The training points use seed s, 64 validation points use seed s + 1000, and 2048 test points use seed s + 2000. forrester has 1024 test points.

The sizes are as follows:

  • Dense: n = 64, 256 and 1024, and forrester at n = 32 and 256.
  • Sparse: hartmann6 and borehole at n = 4096, with m = 256 inducing points.

The noise lower bound is 10⁻⁶ of the output variance. On hartmann6 dense at n = 256 it is also 10⁻⁴, 10⁻³ and 10⁻².

Every setting uses seeds 7, 19 and 43. The fits are float64 at the default budget: 10 restarts × 200 iterations.

Results in full

Two κ clusters. The low cluster, κ ≤ 7.0 × 10⁴, holds 21 dense cell-seeds and the 3 sparse hartmann6 cells (Kuu κ ≤ 2.6 × 10⁴). The dense ones are hartmann6 at n = 64, 256 (all four floors) and 1024, and ishigami at n = 64. The high cluster, κ ≥ 1.25 × 10⁹, holds 30 dense cell-seeds and the 3 sparse borehole cells (Kuu κ 1.0 × 10¹⁵ to 2.2 × 10¹⁵). The dense ones are branin at every n, ishigami at n = 256 and 1024, borehole at every n, and forrester. No cell lies between. In the low cluster α and L pass float32 in every cell, and L passes float16. In the high cluster L fails float32 in all 30 dense cell-seeds. α fails float32 in 29 of them; the exception is borehole_n64_s7_dense, with a ratio of 0.072.

κ by function and size (n = 64 → 256 → 1024, range over seeds, rounded outward):

  • branin: 8.4 × 10¹⁰ to 2.0 × 10¹³.
  • ishigami: 1.6 × 10² to 1.7 × 10¹².
  • hartmann6: 45 to 7.0 × 10⁴.
  • borehole: 1.25 × 10⁹ to 5.3 × 10¹¹.

The earlier sweep's bounds (rounded outward):

  • α passes float32 up to κ = 2.73 × 10⁷ (15 cell-seeds) and fails from 1.26 × 10⁸ (24).
  • L passes up to 1.40 × 10⁸ (17) and fails from 3.28 × 10⁸ (22).

Savings (per seed):

  • High cluster, n ≥ 256: 1.0001 to 1.031 times. The 1.0001 is sparse borehole.
  • High cluster, n = 64: branin 1.032 and borehole 1.116 to 1.187. The 1.187 (borehole_n64_s7_dense) also stores α in float32 (256 bytes), the only high-cluster cell whose α leaves float64.
  • hartmann6: 6.80 to 8.28 times at n = 64, 7.92 to 7.94 at n = 256 (every floor), 4.000 at n = 1024, and 7.968 sparse.
  • ishigami at n = 64: 4.00 to 7.94 times.
  • Against the best passing uniform cast, the low-cluster gains are 1.70 to 2.07 (hartmann6 n = 64), 1.98 to 1.99 (n = 256), 1.00 (n = 1024), 1.99 to 3.98 (sparse) and 1.00 to 1.98 (ishigami n = 64).
  • Seeds agree to within 0.3% at n ≥ 256. At n = 64 they spread as listed.

Pass/fail and order (51 cells, forrester excluded):

  • The predicted pass or fail held for 517 of 541 measured front points.
  • 16 misses are predicted failures that passed. They are in hartmann6 n = 256 seed 19 (two in each of its four floor cells), seed 43 floors 10⁻³ (two) and 10⁻² (one), borehole_n64 seeds 7 (two) and 43 (one), hartmann6_n64_s19 and ishigami_n64_s19 (one each).
  • 8 misses are predicted passes that failed. Six fail on coverage alone, with changes of −0.011 to −0.019: borehole_n64_s7, hartmann6_n256_s43 and its floor-10⁻⁴ cell, hartmann6_n64_s7 and _s43, and ishigami_n64_s43. One fails on the mean alone (ratio 0.12, ishigami_n64_s19), and one on the mean and coverage (ratio 0.17, coverage −0.016, borehole_n64_s7).
  • None of the 8 is a reported point.
  • Kendall's τ over each front's points has a median of 0.97 and ranges from 0.55 to 1.00. It is at least 0.9 in 41 of 51 cells. The lowest are borehole_n64_s7 (0.55) and borehole_n4096_s19 (0.67).

Accuracy caveat. The float64 test sRMSE of the 8-bit-tolerant models is 0.23 to 1.4: hartmann6 0.70 to 1.4 (n = 64), 0.39 to 0.46 (n = 256) and 0.23 to 0.26 (sparse), and ishigami 0.51 to 0.78 (n = 64). hartmann6 at n = 1024 (0.14 to 0.19) tolerates 16 bits.

Noise floor. On hartmann6 n = 256, κ stays within 7.3 × 10² to 2.4 × 10³ at every floor, and every tolerated group format is unchanged.

Consistent-mode gap. For sparse borehole at n = 4096 the control fails in all three seeds, at the 10⁻⁶ cap, with 81 records each marked control_failed. Its stored mode stands; its consistent mode is not measured.

First-order rule. The RMS mean-shift estimate is within a factor of two of the measurement in 69 to 80% of the records. √κ·u is not a bound on the std error under a rounded L: its median ratio at float32 is 0.26.

Reproduction record

  • Every sweep cell and every front was run twice in fresh processes, and the two runs agree bit for bit.
  • Size cells measure every quantity twice, and five cells disagree between their two measurements, all in resident memory (peak_private_agree or rss_end_agree false) and none in bytes: ref_het_tanh_n1024_s7_dense_cpu, ref_heterogeneous_n256_s7_dense_cuda, dense_n64_r1_d6_float32_cpu, sparse_n4096_m64_r1_d6_float32_cpu and dense_n1024_r1_d6_float32_cuda. Only the last is used by Table 1; it was rerun at 15:27 and agrees. One cell, dense_n4096_r8_d6_float64_cpu, was skipped over the memory cap.
  • Figures, summaries and this report rebuild byte for byte.
  • Fits ran on 10 November 2026, 10:50–11:19 (51 cells and 4 check refits).
  • The sweep ran 11:18–11:43 (51 cells).
  • The fronts ran 11:50–11:56 (51 cells).
  • The size grid ran 10:24–11:11, with the one rerun at 15:27.
  • Latency ran on CUDA 11:42–13:22 and on the CPU at 12 threads 11:46–15:25, each with a partial start (12 cells 11:42–11:46 on CUDA; 10 cells 11:46–11:49 on the CPU) before the grid ran whole from 11:56 and 13:22. Each device has 103 cells, each measured once (the cells' started fields).
  • One CPU cell's driver process was terminated about two seconds after the cell had written its complete record (rc=15, cpu12__dense__n256_q1024_r50); the record is used as it is.

These commands document how the study produced its figures. They require study modules, result files and saved models that are not included here. The published figure data and drawing modules are provided separately; one panel of the bit-allocation figure is supplied as an image.

The data and the figure script come from the research repository at commit 3338d2da1bfb7490d462529495dbc717573c5d92; the results ran on this machine: Ryzen 5 3600X, 24 GB memory without error correction, RTX 2060 SUPER 8 GB, Windows 10. The data files below are published beside this page, each with the SHA-256 of its bytes.

Commands that wrote each figure's data, in the study:

  • Figure 1 (the study's figure 4): python -X utf8 figures.py --fig 4
  • Figure 2 (the study's figure 2): python -X utf8 figures.py --fig 2
  • Table 1 (the study's table 1): python -X utf8 figures.py --table size
  • Figure 3 (the study's figure 1): python -X utf8 figures.py --fig 1
  • Figure 4 (the study's figure 3): python -X utf8 figures.py --fig 3
FileUsed bySHA-256
figures/why-the-front-bends/figure-1-data.json
study file: fig4_data.json
data: Figure 1a2e12ef87e373f3b4832d0d87c51129a81a12edad1b1b44d79147cd1a11b1157
figures/why-the-front-bends/figure-1-fronts.json
study file: fronts.json
data: Figure 1 (each model's cheapest passing point, for the reading line (written by allocate.py --summary))d0d79da6467f63eda971ac0d9d41ed1a2bff88fc765916f7c8c046475ddfddde
code/figures.pycode: Figure 1, Figure 2, Table 1, Figure 3, Figure 4730281c0e119322b2bcf0cfa7175b1f8f6128facd21073e37a916848f3bdd6e8
figures/why-the-front-bends/draw.pydrawing: Figure 1f3ee7730b029ca7db8c982168a2954614a459f502827948f6ba188ad63136007
figures/why-the-front-bends/figure-1-models.jsondata: Figure 1 (derived by draw.py)c7a452613fe0fa9c28e02f8021edf8a7d82cd1329b92b4ddf20aa6beb0abc78f
code/figlib.pydrawing: Figure 1, Figure 2, Figure 3, Figure 401a70ef8bbf60c6d9d3f2ee9119c3ff0193ac74d132503278ae6aa32e138195c
figures/what-quantization-buys/figure-2-data.json
study file: fig2_data.json
data: Figure 245ff994584794c38dd2ceea2597a65a3132579b4012b1f28cf4d97a048915d3b
figures/what-quantization-buys/draw.pydrawing: Figure 21e65e483a0805583234ee5171a9834171b3b4f2303b8774883bb0d28a3f456f1
figures/how-big-a-model-is/table-1-size.json
study file: table1_size.json
data: Table 112cb6f27677b5befe3e9e5e6676672976115168f6aa7024352f09ada186ec818
figures/how-big-a-model-is/table-1-size.csv
study file: table1_size.csv
data: Table 1f9df27ce70dd1af4ffeb979dab1242c31e567c2e1b43202d32147821f0b41f2c
figures/how-big-a-model-is/table-1-size.md
study file: table1_size.md
static: Table 1d89bf57ae27f456340892e3fbb513738c2118a8927c03b5aa136f3ec70e94b50
figures/where-the-bits-go/forrester_n32_s7_dense.jsondata: Figure 3 (panel (a): the numbers in the caption)748a8251fa600bc45391c3947b0bcd90d874ba84c670fa0c78f7fc4f7f6d97cc
figures/where-the-bits-go/heterogeneous_n256_s7_dense.jsondata: Figure 3 (panel (b))1d68ad2e3cfe479cdc397c4f9504d1e8ffab1698caa6a03c4dbfda5065e61f8a
figures/where-the-bits-go/heterogeneous_n256_s19_dense.jsondata: Figure 3 (panel (b))815c8cf76d816151894e66b48a02e37ea87053f18d3c4801bd2c48183af10db4
figures/where-the-bits-go/heterogeneous_n256_s43_dense.jsondata: Figure 3 (panel (b))c31a3d16ce5ed4fe4d8ce48d0a02d50a4301233f45a1fb86fb5f59b131841510
figures/where-the-bits-go/draw.pydrawing: Figure 399a68f0b0409e9654f53215910f00d33b34a891994ddd16d33a17b59eaa4d08f
figures/where-the-bits-go/figure-3-panel-a.png
study file: fig1_where_the_bits_go.png
still: Figure 3 (panel (a))577b1841f10eb69920f457b35dd4d0d9784147b08ae8c93a5b9b1c553eb3a4a4
figures/where-the-bits-go/figure-3-panel-b.jsondata: Figure 3 (derived by draw.py)8fffb96b9799867fc55649e4e8c255fc1f3c128e64950f17b9a4f10b7fd32c60
figures/what-gets-quantized/figure-4-data.json
study file: fig3_data.json
data: Figure 47e86a46bc5b7049595822f4c7b69c4e5845f1aa0fd462a04e79bca1dbfe0b004
figures/what-gets-quantized/draw.pydrawing: Figure 4585e6bc0282a2845a17de6eab5e79fc1a0368c3d4610588049a5eb82b7d8fcbc

Not run and not read

  • Not run: het_tanh at 8192 points, the capsule sweep (a capsule aeroheating dataset from a public panel-method code), the training-precision arm, the single-thread CPU latency grid and the table-lookup baseline.
  • Latency was measured on CUDA and on the CPU at 12 threads for the uniform casts of synthetic shapes. This report does not read it. Its claims are about stored size and accuracy only.

Relation to published work

Mixed-precision quantization in deep learning stores each tensor at its own bit width and searches for the cheapest allocation that keeps the accuracy, guided by a sensitivity measure [1]. The method here follows the same idea for the stored parts of a GP, with measured rather than Hessian-based sensitivities. Maddox, Potapczynski and Wilson train exact GPs with half-precision kernel products and conjugate gradients, and convert back to full precision to predict [9]. They report error and likelihood, not the predictive variance or its coverage. Abdulah and colleagues (ExaGeoStat) factor the covariance of a spatial GP in tiles, keeping the tiles near the diagonal in float64 [10]. Both of these works concern fitting, not the stored model. Tolerance-driven storage types with a memory–error front exist for lookup tables [11]. Here the front is for a stochastic model whose band is judged as well as its mean.

References

  1. Z. Dong, Z. Yao, A. Gholami, M. W. Mahoney and K. Keutzer. HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 293–302, 2019.
  2. N. J. Higham. Accuracy and Stability of Numerical Algorithms. 2nd edition, SIAM, Philadelphia, 2002.
  3. M. K. Titsias. Variational Learning of Inducing Variables in Sparse Gaussian Processes. Proceedings of the 12th International Conference on Artificial Intelligence and Statistics (AISTATS), Proceedings of Machine Learning Research 5, pp. 567–574, 2009.
  4. Alexander I. J. Forrester, András Sóbester and Andy J. Keane. Engineering Design via Surrogate Modelling: A Practical Guide. Wiley, 2008.
  5. L. C. W. Dixon and G. P. Szegő. The Global Optimization Problem: An Introduction. Towards Global Optimisation 2, North-Holland, pp. 1–15, 1978.
  6. T. Ishigami and T. Homma. An Importance Quantification Technique in Uncertainty Analysis for Computer Models. Proceedings of the First International Symposium on Uncertainty Modeling and Analysis (ISUMA), IEEE, pp. 398–403, 1990. https://doi.org/10.1109/ISUMA.1990.151285
  7. M. D. Morris, T. J. Mitchell and D. Ylvisaker. Bayesian Design and Analysis of Computer Experiments: Use of Derivatives in Surface Prediction. Technometrics 35(3):243–255, 1993. https://doi.org/10.1080/00401706.1993.10485320
  8. Michael D. McKay, Richard J. Beckman and William J. Conover. A Comparison of Three Methods for Selecting Values of Input Variables in the Analysis of Output from a Computer Code. Technometrics 21(2):239–245, 1979.
  9. W. J. Maddox, A. Potapczynski and A. G. Wilson. Low-Precision Arithmetic for Fast Gaussian Processes. Proceedings of the 38th Conference on Uncertainty in Artificial Intelligence (UAI), Proceedings of Machine Learning Research 180, pp. 1306–1316, 2022. https://proceedings.mlr.press/v180/maddox22a.html
  10. S. Abdulah, Q. Cao, Y. Pei, G. Bosilca, J. Dongarra, M. G. Genton, D. E. Keyes, H. Ltaief and Y. Sun. Accelerating Geostatistical Modeling and Prediction With Mixed-Precision Computations: A High-Productivity Approach With PaRSEC. IEEE Transactions on Parallel and Distributed Systems 33(4):964–976, 2022.
  11. The MathWorks, Inc. Optimize Lookup Tables for Memory-Efficiency (Fixed-Point Designer documentation). Accessed 2026-11-08. https://www.mathworks.com/help/fixedpoint/ug/optimize-lookup-tables-for-memory-efficiency.html