Manuscript Offprint
arXiv:2610.09591Scalable Logistic Gaussian Process Density Regression with Kinetic Langevin Sampling
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Conditional density estimation targets the full distribution of a response given covariates, as required, for example, for per-galaxy photometric redshifts. We develop a scalable Bayesian estimator based on the logistic Gaussian process. The log conditional density has a separable covariance: a Matérn kernel along the response, represented in a truncated Fourier basis on a circle, and a covariate kernel represented by Nyström features, which accommodate non-stationary kernels with input-dependent amplitudes and length scales. Instead of a Laplace or variational approximation, we sample the latent field of this finite-feature model. Given the hyperparameters, its posterior is strongly log-concave with a uniformly bounded Hessian, and we draw from it by simulating kinetic Langevin dynamics with symmetric mini-batch splitting in Kronecker-whitened coordinates. Marginal-likelihood gradients follow from Fisher's identity as posterior expectations. Under the conditions of our analysis their bias is controlled by the sampler's step size and run length, and the predictive averages over the non-Gaussian latent posterior instead of a Gaussian around its mode. On photometric-redshift benchmarks with up to 3.9 million training observations, trained on a single GPU, the estimator is competitive with state-of-the-art tabular foundation models on density and calibration metrics.
1 INTRODUCTION
A regression model that returns one number per input answers only part of the question. When the noise is heteroscedastic, skewed or multimodal, decisions depend on the shape of the conditional distribution . Photometric redshift estimation is the canonical example in astronomy: imaging surveys measure a handful of broad-band magnitudes per galaxy, galaxies of different types at different redshifts produce similar colours, and the redshift distribution given the photometry is often broad, skewed or bimodal. Cosmological analyses stack these per-galaxy distributions into the redshift distribution of a tomographic bin (Malz and Hogg, 2022), so the community scores estimators on distributional criteria: the log-likelihood of the true redshift, the uniformity of the probability integral transform (PIT), the conditional density estimation (CDE) loss of Izbicki and Lee (2017) and the continuous ranked probability score (Schmidt et al., 2020).
The logistic Gaussian process (LGP) is the classical Bayesian nonparametric model for this problem (Leonard, 1978; Lenk, 1988; Tokdar et al., 2010). Its log-density is a Gaussian process normalised over the response, which gives smooth, valid densities with posterior uncertainty. Riihimäki and Vehtari (2014) fit it by a Laplace approximation on a grid, with Markov chain Monte Carlo (Metropolis–Hastings on the latent values, NUTS on the hyperparameters) as the reference on small problems. Chen et al. (2026) scale a generalized-Bayes version, whose Hyvärinen-score posterior needs no normaliser, to more than 150,000 observations with inducing points and variational inference. Spatial logistic Gaussian processes (SLGPs) (Gautier and Ginsbourger, 2026) model covariate-indexed density fields, with a random Fourier feature implementation supporting MAP, Laplace and NUTS inference (Gautier, 2026); we compare with it in Appendix L. Tabular foundation models go the other way. TabPFN (Hollmann et al., 2025) is pre-trained on synthetic tasks and predicts a full density for every test input in one forward pass over the training set. In a recent benchmark it was the best off-the-shelf conditional density estimator on most of 39 datasets, and it beat every baseline in a photometric-redshift case study with ten times less data (Izbicki and Rodrigues,
2026).
We show that a finite-feature LGP can be fitted by sampling its likelihood-based latent posterior, without imposing a Gaussian approximation on it, at the scale of millions of observations, and competitively with these models. Our contributions are:
-
a representation of the LGP with a separable covariance whose response axis is a truncated Fourier series of a Matérn process on a circle and whose covariate axis is a finite feature map (Nyström features for non-stationary kernels), under which every observation enters the likelihood at its own response value, without binning (Section 2);
-
a proof that, given the hyperparameters, the latent posterior, strongly log-concave as for SLGPs (Gautier, 2026), has a uniformly bounded Hessian and third derivative, with constants independent of the number of features and of the number of modes (apart from a numerical floor on the spectrum, Appendix C), for every input-dependent extension we use, and a sampler, kinetic Langevin dynamics with symmetric minibatch splitting in Kronecker-whitened coordinates, whose Wasserstein bias is then (Section 3);
-
hyperparameter learning by Fisher-identity gradients from the warm-started chains, whose bias is bounded under Theorem 1's assumptions for fixed representation and hyperparameters, with a problem-dependent prefactor (Section 3.3);
-
a non-stationary extension, a deep Gibbs kernel with input-dependent amplitude, length scales and a per-object warp of the response (Section 5), and an evaluation on four photometric-redshift benchmarks with up to 3.9 million training galaxies (Section 6).
Code to reproduce all experiments is available at https://github.com/paulindani/LGP.
with a zero-mean Gaussian process with separable covariance . The response kernel acts as a smoothness prior on the shape of the density, and the covariate kernel lets that shape change with . Positivity and normalisation hold for every .
Response axis: a Fourier basis on a circle. A stationary kernel on has no fast transform. We place the prior on a circle of circumference 2 of which is one half, the circulant-embedding construction (Dietrich and Newsam, 1997). The covariance on the circle is the periodised Matérn kernel , , which is positive definite for every length scale. By Poisson summation its Fourier coefficients are the Matérn spectral density at . Truncated to K modes,
, with and the constant mode omitted since it cancels in (1). The weight of mode depends on alone, so is a smoothness budget, independent of the sample size and of any grid (Appendix C).
Covariate axis: a feature map. With a finite feature map , , the separable prior is reproduced exactly by a latent matrix with :
where , so the latent dimension is . We use Nyström features (Williams and Seeger, 2001): with anchors (the k-means centres of the training inputs) and a unit-variance kernel ,
where and . This is a regularised Nyström approximation. On the anchors it equals , whose eigenvalues differ from those of by at most . Each feature is a kernel evaluation, and . Unlike random Fourier features (Rahimi and Recht, 2007), which rescale a fixed draw of frequencies and make the likelihood rugged in the length scales, the features are smooth in every hyperparameter, and they apply to kernels without a shared spectral representation, such as the non-stationary kernels of Section 5. This parametrisation is non-centred: the prior of is free of hyperparameters, which enter only through and .
Unbinned likelihood. For observation with , the negative log-likelihood is
evaluated at itself, so no observation is assigned to a bin. The normaliser, the integral of the exponential of a trigonometric polynomial, is computed by composite Gauss–Legendre quadrature with cells of 4 nodes, a rule whose error is in the cell width ; as we check its accuracy numerically rather than rely on a rate (Appendix C). The same nodes give the predictive density, the CDF (by integrating a polynomial interpolant of the density within each cell) and every metric. The likelihood is thus evaluated with the quadrature normaliser in place of , and the per-object density integrates to , one up to the quadrature error. What we sample is therefore the posterior under this numerically normalised likelihood of the finite-feature model, not that of the unrestricted LGP. Appendix I audits against a finer rule at fitted posterior states.
The vanilla model. With a stationary kernel and the fixed transform, the hyperparameters are : one variance and one length scale per axis. We describe its inference next. Section 5 then replaces the stationary kernel by a deep, non-stationary one and learns the transform; none of the inference changes.
3 INFERENCE
3.1 The latent posterior is strongly log-concave
Fix . The latent posterior is , , with .
Proposition 1. With the feature matrix and ,
The first part holds because (1) is an exponential family in its natural parameter , linear in ; the second because the Hessian of is the covariance of the statistic , and for every (proof in Appendix A). For the Matérn spectrum is at most the prior variance of the response process, so it is bounded uniformly in . The numerical floor that we add to every mode (Appendix C) contributes , only at but growing with , so when we say uniform in we mean the spectrum without the floor. For Nyström features . The same cumulant argument bounds the third derivative in the norm that the minibatch sampler's analysis requires.
Lemma 1. For every and unit , . For a partition of the rows into batches, each component is -strongly convex and satisfies the upper bound of Proposition 1 and this bound with the sums restricted to .
is the “strongly Hessian Lipschitz” constant of Paulin et al. (2024), under which the Wasserstein bias of SMS–UBU is , , instead of the that an ordinary Hessian Lipschitz bound gives. The dimension does not disappear into the condition number, but the constants of Lemma 1 grow with N and not with J or K, and in our photometric-redshift experiments.
3.2 SMS–UBU in Kronecker-whitened coordinates
Whitening. The raw condition number grows with . The Gauss–Newton Hessian is , where is the covariance of under row 's density, a softmax covariance over the quadrature nodes. As in K-FAC (Martens and Grosse, 2015) we approximate the sum by one Kronecker product at the average chain position: and = the row-averaged , with eigendecompositions , , and run the chains in coordinates with , , in which is the identity. Because the latent prior is the identity both eigenproblems are ordinary, which keeps the scheme accurate in single precision. A rebuild costs one and one eigendecomposition. The factors are rebuilt every ten optimisation steps (more often early on SDSS and DESI, Appendix E) and never during a sampling phase.
The sampler. Kinetic Langevin dynamics , is discretised by the UBU splitting , which integrates the Ornstein–Uhlenbeck part exactly and is second-order accurate for the invariant measure. With symmetric minibatch splitting (SMS–UBU, Paulin et al., 2024) each sweep draws a random partition into batches and applies the batch impulses in the palindromic order , which cancels the leading minibatch bias, so 10 to 40 large batches suffice. We use friction , step with the largest eigenvalue of the whitened Hessian from a power iteration, and four chains in two antithetic pairs. All chains share the batch partition, so each batch's feature rows are built only once per impulse.
What is guaranteed. Let be the fixed linear map of the whitening, since , and define , the full-data curvature bound and the batch-uniform bound . Since the Gram matrix of any batch satisfies , every component of every partition the sampler can draw is -smooth in whitened coordinates, whereas bounds only their sum. All three constants have closed forms in terms of (Appendix A).
Theorem 1. Fix and , and run SMS-UBU on with batches, friction and step . After sweeps the law of the latent state satisfies
with depending on the initial law, independent of , and of up to the floor term in , and , which bounds the spread of the minibatch gradients at the posterior mode for every partition into equal batches.
Theorem 1 is Theorem 5 of Paulin et al. (2024) applied to , with the constants supplied by Lemma 1 and . That result assumes that the components share a minimiser, which ours do not, and dropping the assumption adds the dimension-free term in (Appendices A and B). Five aspects of what we run fall outside the theorem; we check the first, second and fourth empirically (Appendix I). First, our default is far below . bounds the curvature at every and for every batch, and on the controlled problem of Appendix I it exceeds the local whitened curvature by more than three orders of magnitude. Second, sets our step but is only an estimate at the chain mean, so it cannot stand in for in the theorem. Because the tilted covariances can collapse, we have no uniform bound on the whitened condition number better than . Third, is rebuilt during the optimisation, so the theorem applies at fixed and , not to the adaptive scheme as a whole. Fourth, it concerns the finite-feature, quadrature-based posterior and says nothing about the representation error of finite , and . Fifth, each sweep omits up to 112 random rows (a fraction below ), which the theorem does not cover. Against a -invariant reference on a controlled problem (Appendix I) the default step shows small but detectable biases (latent variances 0.4%, the gradient up to 13 standard errors),
Algorithm 1 One outer step of the fit
Require: chains , whitening , step
1: if step then 2: rebuild at ; power iteration for 3: end if 4: SMS-UBU sweeps of every chain 5: draw a gradient batch per chain; 6: for collection sweeps, every 5th impulse do 7: 8: end for 9: ; optimiser step on
substantially reduced at half the step with little effect on the predictive NLL.
3.3 Learning the hyperparameters
The marginal likelihood is intractable, but its gradient obeys Fisher's identity,
in the non-centred parametrisation, where no prior normaliser depends on . We estimate the expectation from the states of the warm-started chains and follow it by stochastic approximation (SOUL, De Bortoli et al., 2021); Algorithm 1 summarises one outer step. Per step, each chain draws a gradient batch of rows, independently of the sampler's partition, collects the cotangent of the batch negative log-likelihood with respect to its feature rows at positions of its collection sweeps, and pulls the sum back to by a single vector–Jacobian product. The estimate of the gradient of the negative log-posterior of is
Here includes the Jacobians of the transform and the response warp, and it is differentiated at fixed non-centred ; we do not differentiate through the sampler's trajectory.
Why sampling rather than Laplace. Besides Monte Carlo variance, the estimator of (6) has two sources of bias: the discretisation bias of the sampler and incomplete mixing of the warm-started chains. The integrand is not globally Lipschitz in , but it grows at most linearly in the sup norm of each row's field, whose posterior fluctuations depend on J and K only through feature norms, their derivatives and spectral sums (Appendix D). Under the conditions of Theorem 1 the gradient bias is therefore plus a term that decays geometrically in the number of sweeps, with a prefactor that depends on the posterior-mean field and the feature derivatives, which we do not bound uniformly in J and K. The Laplace approximation instead differentiates an approximate marginal likelihood, at the mode . Its gradient is exact for the approximation, but the approximation error depends on how non-Gaussian the posterior is, which varies with , and the gradient of that error does not shrink with more computation. It also needs the log-determinant of a d-dimensional Hessian and its third derivatives through , whereas (6) needs only first derivatives at sampled states. On a controlled problem (Appendix I) the two kinds of gradient lead to similar hyperparameters. The larger difference is in prediction. Under the reported budgets and at the same hyperparameters, the Gaussian predictive around the mode is 0.12 nats worse than the sampled one, a finite-run comparison rather than a converged-posterior gap. The main practical reason to sample is thus to integrate the predictive over the non-Gaussian latent posterior.
Optimisation. For the vanilla model we follow (6) with Adam on the log-hyperparameters. For the deep model of Section 5 we use Muon (Jordan et al., 2024) for the network's weight matrices and Adam for everything else, on a cosine schedule. The deep models hold out a small validation set from their training rows, track its log-likelihood alongside the predictive and keep the best state (early stopping). The vanilla fits use all training rows and run to the end of the schedule. We do not claim convergence of this outer procedure, whose target and preconditioner change. is an empirical-Bayes point estimate, and the predictive integrates over conditionally on it, not over the encoder, transform and kernel hyperparameters.
Predictive. The predictive is the posterior mean density , averaged over the last fifteen of twenty further sweeps of the trained chains. Each state contributes its density at the quadrature nodes and, at the observation, its density (normalised by ) and its CDF (from the within-cell interpolant), from which the log-likelihood, PIT, CRPS (in quantile form), CDE loss and point summaries are computed.
4 THE VANILLA MODEL ON A BIMODAL SINUSOID
The data are , , , with the sign drawn uniformly: an equal-weight Gaussian mixture whose modes cross wherever . We fit the vanilla model with RBF kernels on both axes, so that only are learned, on nested training sets of 400, 2,000 and 10,000 rows, and score all fits on the same 2,000 test rows. We repeat this over four seeds, each splitting one sample of 20,000 draws differently into training and test rows. Table 1 compares with TabPFN-3.5 (Prior Labs, 2026) given the same training rows as context. The three-parameter GP has the best NLL and CDE loss at every size. Averaged over the four seeds it is ahead of TabPFN-3.5 by 0.017, 0.009 and 0.016 nats at the three sizes. It wins nine of the twelve paired comparisons; in the other three (seed 2 at 400 rows, seeds 2 and 3 at 2,000) TabPFN-3.5 is ahead by 0.002–0.005 nats. Its excess over the true density on the same test rows is 0.238, 0.073 and 0.026 nats (standard deviations over seeds 0.031, 0.006 and 0.001, below those of the NLL). TabPFN-3.5 has a lower RMSE and CRPS at 400 and 2,000 rows, and the two tie at 10,000. The other baselines trail further. TabICL-2 (Qu et al., 2025) barely improves with N, Flow-Spline (Izbicki and Rodrigues, 2026) reaches -0.119 only at 10,000 rows, and at 400 rows Flow-Spline and the CRPS ensemble (Kelen et al., 2025) are far behind and unstable across seeds (standard deviations 0.30 and 0.38 nats). Both length scales shrink as N grows, in every seed. goes from 0.163 (s.d. 0.012) to 0.136 (0.004) and 0.119 (0.013), near the scale 0.15 of the sinusoid, and from 0.132 (0.010) to 0.109 (0.002) and 0.100 (0.001). Each fit takes 4–14 min on one GPU.
5 A DEEP, NON-STATIONARY KERNEL
Real covariates are high-dimensional and the conditional densities vary in scale, reach and shape across input space. We keep the structure of Section 2 and make every ingredient input-dependent through a small network.
Encoder. A pre-LayerNorm perceptron reads the covariates and returns, through a residual scale of 0.01 so that the model starts stationary, a warp , a log-amplitude , a log multiplier of the response length scale, local log length scales and the coefficients of a response warp. A learned full-matrix bandwidth is applied after the warp (deep kernel learning, Wilson et al., 2016).
Gibbs kernel. The covariate kernel is
(7)
Table 1: Bimodal sinusoid: test metrics on 2,000 test rows of the vanilla LGP (RBF kernels, Nyström features, three learned hyperparameters), TabPFN-3.5 and TabICL-2 with the training rows as context, Flow-Spline tuned by the protocol of Izbicki and Rodrigues (2026), the CRPS ensemble (batch 32, early stopping on 10% of the training rows with patience 200 epochs), and the true density. All rows are averaged over four seeds, each a different split of one sample into training and test rows (standard deviations in the rows below). A PIT-KS of about 0.02 is the sampling noise of 2,000 rows. Bold: best of the five models.
| model | NLL | RMSE | CRPS | CDE | PIT-KS |
|---|---|---|---|---|---|
| LGP (ours) | |||||
| s.d. | |||||
| TabPFN-3.5 | |||||
| s.d. | |||||
| TabICL-2 | |||||
| s.d. | |||||
| Flow-Spline | |||||
| s.d. | |||||
| CRPS ens. | |||||
| s.d. | |||||
| LGP (ours) | |||||
| s.d. | |||||
| TabPFN-3.5 | |||||
| s.d. | |||||
| TabICL-2 | |||||
| s.d. | |||||
| Flow-Spline | |||||
| s.d. | |||||
| CRPS ens. | |||||
| s.d. | |||||
| LGP (ours) | |||||
| s.d. | |||||
| TabPFN-3.5 | |||||
| s.d. | |||||
| TabICL-2 | |||||
| s.d. | |||||
| Flow-Spline | |||||
| s.d. | |||||
| CRPS ens. | |||||
| s.d. | |||||
| true density |
with , , , and . This is an amplitude-modulated Gibbs–Paciorek kernel (Gibbs, 1997; Paciorek and Schervish, 2004), positive definite in any dimension. The warp changes which objects are neighbours, the local length scales how far an object's influence reaches along each coordinate, and the amplitude how far its density may depart from uniform. Nyström features (4) represent it on the anchors up to the regularisation of Section 2, with the anchors passed through the same encoder. Since , we have .
Non-stationarity along the response. The prior is diagonal in the Fourier basis, so a per-object response length scale is a per-object damping of the modes, , and . A per-object monotone warp , , makes the process stationary in rather than , so that along its effective length scale is . One object's density can thus be sharp in one part of its range and smooth in another. The density becomes with of the form (1), so the observation moves to and the Jacobian joins the objective.
Learnable transform. We also learn the response transform . Its log-derivative at 400 knots forms a block of hyperparameters, initialised at the kernel density estimate and given a second-difference smoothness prior, and its Jacobian joins the objective.
Inference is unchanged. None of these changes touches the latent prior. The amplitude, the Gibbs length scales and the warp act on , and the damping rescales the coordinates of . The response warp and the transform only move the observation point and add terms free of . Hence:
Proposition 2. For the model of this section, Proposition 1 and Lemma 1 hold with and .
The sampler, the whitening (with the root-mean-square damping in ) and the Fisher gradients (now with respect to the encoder, bandwidth, transform and kernel hyperparameters) are those of Section 3.
6 PHOTOMETRIC-REDSHIFT EXPERIMENTS
Benchmarks. HAPPY and TEDDY (Beck et al., 2017) are SDSS catalogues released as samples A (training) and B (drawn from the same distribution). We train on A and test on B (75,000 galaxies each). The SDSS DR18 sample (Izbicki and Rodrigues, 2026) is split 450,000/50,000, and the DESI DR1 Bright Galaxy Survey (DESI Collaboration, 2025) 3.91 million/434,505. The covariates are one magnitude, four colours and their five per-object errors, prepared with training statistics only (Appendix F).
Table 2: Test metrics on the four photometric-redshift benchmarks (NLL and CDE loss: lower is better; RMSE and CRPS in redshift units; PIT-KS: Kolmogorov–Smirnov distance of the PIT from uniform). Bold: best of the five models (all tied values at the displayed precision). Rows followed by an s.d. row are means over four seeds (five runs for ‡), with the standard deviation (s.d.) in that row. The seeds change the validation rows and each model’s initialisation (and Flow-Spline’s search), and on SDSS and DESI also the train/test split; TabPFN-3.5 and TabICL-2 on HAPPY and TEDDY do not depend on the seed. TabICL-2 and Flow-Spline on DESI are single runs on the seed-0 split, on which the LGP’s NLL is -2.3795. ‡Mean over five runs with identical settings on that split, two of which diverge (Appendix I). *A context of 500,000 training rows. †Flow-Spline’s exact density on DESI has narrow spikes that dominate ; on the benchmark’s 200-point grid its CDE loss is -13.95.
| benchmark (train / test) | model | NLL | RMSE | CRPS | CDE | PIT-KS | NMAD | outliers |
|---|---|---|---|---|---|---|---|---|
| HAPPY A->B (74,950 / 74,900) | LGP (ours) | -2.1557 | 0.0506 | 0.0203 | -12.86 | 0.0054 | 0.0186 | 0.86% |
| s.d. | 0.0009 | 0.00008 | 0.00002 | 0.02 | 0.0003 | 0.00003 | 0.01% | |
| TabPFN-3.5 | -2.1632 | 0.0493 | 0.0200 | -12.90 | 0.0040 | 0.0185 | 0.81% | |
| TabICL-2 | -1.9958 | 0.0497 | 0.0201 | -8.79 | 0.0068 | 0.0185 | 0.83% | |
| Flow-Spline | -2.1093 | 0.0522 | 0.0208 | -12.04 | 0.0220 | 0.0191 | 0.91% | |
| s.d. | 0.0049 | 0.00015 | 0.00003 | 0.16 | 0.0101 | 0.00007 | 0.01% | |
| CRPS ensemble | -2.1081 | 0.0509 | 0.0206 | -12.09 | 0.0092 | 0.0192 | 0.89% | |
| s.d. | 0.0040 | 0.00011 | 0.00006 | 0.07 | 0.0034 | 0.00009 | 0.01% | |
| TEDDY A->B (74,309 / 74,557) | LGP (ours) | -2.3281 | 0.0322 | 0.0152 | -13.96 | 0.0042 | 0.0158 | 0.24% |
| s.d. | 0.0009 | 0.00002 | 0.00001 | 0.02 | 0.0011 | 0.00003 | 0.01% | |
| TabPFN-3.5 | -2.3356 | 0.0320 | 0.0151 | -14.05 | 0.0051 | 0.0158 | 0.25% | |
| TabICL-2 | -2.2566 | 0.0321 | 0.0152 | -10.38 | 0.0035 | 0.0158 | 0.25% | |
| Flow-Spline | -2.3086 | 0.0324 | 0.0154 | -13.77 | 0.0127 | 0.0160 | 0.25% | |
| s.d. | 0.0036 | 0.00015 | 0.00006 | 0.05 | 0.0076 | 0.00007 | 0.02% | |
| CRPS ensemble | -2.3158 | 0.0322 | 0.0153 | -13.85 | 0.0093 | 0.0159 | 0.23% | |
| s.d. | 0.0014 | 0.00002 | 0.00001 | 0.01 | 0.0031 | 0.00006 | 0.03% | |
| SDSS DR18 (450,000 / 50,000) | LGP (ours) | -2.1123 | 0.0518 | 0.0216 | -12.53 | 0.0041 | 0.0196 | 0.83% |
| s.d. | 0.0028 | 0.00028 | 0.00006 | 0.05 | 0.0006 | 0.00014 | 0.05% | |
| TabPFN-3.5 | -2.1012 | 0.0514 | 0.0215 | -12.21 | 0.0116 | 0.0196 | 0.80% | |
| s.d. | 0.0023 | 0.00015 | 0.00006 | 0.04 | 0.0023 | 0.00011 | 0.05% | |
| TabICL-2 | -1.8514 | 0.0520 | 0.0218 | -6.24 | 0.0129 | 0.0199 | 0.84% | |
| s.d. | 0.0051 | 0.00010 | 0.00004 | 0.11 | 0.0016 | 0.00012 | 0.04% | |
| Flow-Spline | -2.0062 | 0.0550 | 0.0229 | -10.77 | 0.0384 | 0.0212 | 0.95% | |
| s.d. | 0.0069 | 0.00044 | 0.00011 | 0.09 | 0.0230 | 0.00016 | 0.06% | |
| CRPS ensemble | -2.0309 | 0.0529 | 0.0223 | -11.15 | 0.0147 | 0.0206 | 0.85% | |
| s.d. | 0.0071 | 0.00038 | 0.00011 | 0.09 | 0.0067 | 0.00012 | 0.04% | |
| DESI DR1 BGS (3.91M / 434,505) | LGP (ours) | -2.3786 | 0.0520 | 0.0168 | -15.95 | 0.0013 | 0.0167 | 0.35% |
| s.d. | 0.0010 | 0.00027 | 0.00004 | 0.04 | 0.0004 | 0.00003 | 0.01% | |
| TabPFN-3.5* | -2.3564 | 0.0521 | 0.0169 | -15.28 | 0.0078 | 0.0169 | 0.36% | |
| s.d. | 0.0012 | 0.00025 | 0.00004 | 0.03 | 0.0011 | 0.00003 | 0.01% | |
| TabICL-2* | -2.1833 | 0.0530 | 0.0173 | -6.38 | 0.0145 | 0.0173 | 0.36% | |
| Flow-Spline | -2.2682 | 0.0534 | 0.0174 | 0.0107 | 0.0174 | 0.37% | ||
| CRPS ensemble | -2.2719 | 0.0530 | 0.0176 | -14.05 | 0.0155 | 0.0180 | 0.35% | |
| s.d. | 0.0143 | 0.00014 | 0.00014 | 0.25 | 0.0038 | 0.00020 | 0.01% |
Models. The GP uses anchors, modes, Matérn-3/2 kernels and Muon for at most 1,000 steps with early stopping on a held-out 5% (HAPPY, TEDDY), 2% (SDSS) or 0.5% (DESI) of the training rows. The network grows with the data, from to and (Table 3). TabPFN-3.5 (Prior Labs, 2026) takes the whole training set as context, except on DESI, where 500,000 rows is the most that fits in 32 GB. It is scored on its bar distribution, for which it maps the members' bin probabilities to shared bins by differencing a single-precision CDF; we floor them at that resolution (Appendices G and I). The CRPS ensemble (Kelen et al., 2025), a purpose-built conditional density estimator trained by a strictly proper scoring rule (Gneiting and Raftery, 2007), uses the same inputs and validation fractions. TabICL-2 (Qu et al., 2025) takes the same context as TabPFN-3.5 and is scored on its 999-quantile predictive distribution. Flow-Spline, the conditional neural spline flow (Durkan et al., 2019) of the benchmark of Izbicki and Rodrigues (2026), is tuned by that benchmark's random search and scored on its exact density. All models are scored on the same test rows by the same code.
Table 3: GP configuration and cost on one RTX 5090 (32 GB), scoring included.
| network | sweeps | batches | time | ||
|---|---|---|---|---|---|
| HAPPY, TEDDY | 3 × 32 | 6 | 2 + 4 | 10 | 6 min |
| SDSS | 6 × 64 | 6 | 1 + 2 | 20 | 16 min |
| DESI | 10 × 128 | 10 | 1 + 2 | 40 | 2.2–2.5 h |
Results. In Table 2 the comparison with TabPFN-3.5 divides along the training-set size. On HAPPY and TEDDY, with 75,000 training galaxies, TabPFN-3.5 is ahead by 0.008 nats on both, eight times the standard deviation of the LGP over seeds, with up to 3% lower RMSE. On TEDDY the LGP's PIT statistic is lower (0.0042 ± 0.0011 against 0.0051). On SDSS the ordering of the density metrics reverses: the LGP is ahead on all four splits, by 0.011 nats on average (standard deviation of the difference 0.0007) and 0.32 units of CDE loss, with a PIT statistic of 0.004 against 0.012, while TabPFN keeps an edge of under 1% in RMSE and CRPS. On DESI, where TabPFN-3.5 can use an eighth of the training set, the LGP leads on every metric and on all four splits, by 0.022 nats on average (standard deviation of the difference 0.0004) and 0.67 units of CDE loss, with a PIT statistic of 0.001 against 0.008, essentially uniform on 434,505 test galaxies. At equal data the two are close. Trained on TabPFN-3.5's 500,000 context rows, the GP with a 10 × 64 network is ahead by only 0.003 nats, so most of the lead comes from using the whole training set (Appendix I). Switching the latent field off costs 0.13–0.37 nats on the four benchmarks and most of the calibration, and on a controlled problem a Laplace fit's Gaussian predictive is 0.12 nats worse than the sampled one in finite runs. The CRPS ensemble, trained on a distributional score, is close to the LGP in RMSE and CRPS but 0.01 to 0.11 nats behind it in NLL and up to twelve times less well calibrated. TabICL-2 is close to the LGP and TabPFN-3.5 in RMSE and CRPS, but its quantile-based density is 0.07 to 0.26 nats behind the LGP with a much worse CDE loss, and Flow-Spline is 0.02 to 0.11 nats behind, close to the CRPS ensemble. Appendix L adds the closest model, the spatial logistic GP, run with its authors' package and tuned on held-out data. It is level with our model without the encoder on its own temperature application and, in an exploratory comparison, on the smallest sinusoid training sets, about 0.01 nats behind at larger ones, and 0.2–0.3 nats behind on photometric data.
What the fit looks like. On DESI the response warps stretch each object's redshift axis locally by up to a factor 2.9–3.7 (median over objects, range over the four seeds) and compress it elsewhere to 0.52–0.61, and the learned transform changes the log-density most at . The validation optimum is at the last steps in every DESI seed and the test NLL is still improving, so these fits are limited by the budget rather than the data (Appendix J).
Scale. At 3.9 million rows the feature matrix (17 GB) is not kept on the GPU. Features of a batch are rebuilt inside each impulse, once for all chains. The preconditioner statistics and the power iteration run over row chunks, the Gibbs kernel is evaluated in chunks with rematerialisation, and the validation and test predictive is formed chunk by chunk from stored latent states (Appendix H). A DESI step takes about 8 s.
7 DISCUSSION
A finite-feature logistic Gaussian process can be fitted at scale by sampling its latent posterior instead of replacing it by a Gaussian. In the spectral, feature-based representation, and for every input-dependent extension we use, the latent posterior is strongly log-concave, and its second and third derivatives are bounded by constants that do not depend on the numbers of features and modes (up to a numerical floor on the spectrum). Under the conditions of Theorem 1 a kinetic Langevin sampler in Kronecker-whitened coordinates then has an bias, and Fisher's identity turns its samples into hyperparameter gradients whose bias comes from the sampler rather than from a Gaussian approximation. The resulting estimator beats a tabular foundation model in NLL, CDE loss and calibration on the two larger benchmarks, and trails it by under 0.01 nats on the two smaller ones. The guarantee, however, covers a more conservative friction and step than our default, a fixed preconditioner and no omitted rows. The network and the Nyström basis add a non-convex outer problem, solved by stochastic optimisation with early stopping, for which we claim no convergence. The uncertainty is conditional on the learned hyperparameters. Under covariate shift the latent field shrinks away from the anchors, the LGP falls behind TabPFN-3.5 and fails on TEDDY A→D, and a few test redshifts fall outside its bounded response support, where its density is zero (Appendix I). All our large-scale evidence is from photometric redshifts.
AI Use Statement
In this work, we used generative AI tools (a large language model coding assistant) for writing, refactoring and debugging research code, for running and monitoring experiments on remote GPU machines, and for drafting and editing parts of the manuscript text. We did not use generative AI tools to generate data, to fabricate or select results, or as a subject of the study. All AI-assisted code was reviewed and its outputs were checked against independent implementations or numerical tests; all reported numbers come from logged runs. We have reviewed all AI-assisted work and take responsibility for the final content of this work, including text, claims and artifacts produced with the aid of generative AI.
References
Abramson, I. S. (1982). On bandwidth variation in kernel estimates – a square root law. The Annals of Statistics, 10(4):1217–1223.
Beck, R., Lin, C.-A., Ishida, E. E. O., Gieseke, F., de Souza, R. S., Costa-Duarte, M. V., Hattab, M. W., and Krone-Martins, A. (2017). On the realistic validation of photometric redshifts. Monthly Notices of the Royal Astronomical Society, 468(4):4323–4339.
Chen, Z., Kock, L., Lee, J. E., and Nott, D. J. (2026). Logistic Gaussian process density regression: a generalized Bayesian approach. arXiv preprint arXiv:2606.22915.
Chok, J., Lee, M. W., Paulin, D., and Vasil, G. M. (2025). Divide, interact, sample: The two-system paradigm. arXiv preprint arXiv:2509.09162.
De Bortoli, V., Durmus, A., Pereyra, M., and Vidal, A. F. (2021). Efficient stochastic optimisation by unadjusted Langevin Monte Carlo. Statistics and Computing, 31:29.
DESI Collaboration (2025). Data release 1 of the Dark Energy Spectroscopic Instrument. arXiv preprint arXiv:2503.14745.
Dietrich, C. R. and Newsam, G. N. (1997). Fast and exact simulation of stationary Gaussian processes through circulant embedding of the covariance matrix. SIAM Journal on Scientific Computing, 18(4):1088–1107.
Durkan, C., Bekasov, A., Murray, I., and Papamakarios, G. (2019). Neural spline flows. In Advances in Neural Information Processing Systems, volume 32, pages 7511–7522.
Gautier, A. (2026). SLGP: An R package for spatial conditional density estimation.
Gautier, A. and Ginsbourger, D. (2026). Continuous logistic Gaussian random measure fields for spatial distributional modelling. Annals of the Institute of Statistical Mathematics.
Gibbs, M. N. (1997). Bayesian Gaussian Processes for
Regression and Classification. PhD thesis, University of Cambridge.
Gneiting, T. and Raftery, A. E. (2007). Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378.
Hollmann, N., Müller, S., Purucker, L., Krishnakumar, A., Körfer, M., Hoo, S. B., Schirrmeister, R. T., and Hutter, F. (2025). Accurate predictions on small data with a tabular foundation model. Nature, 637:319–326.
Izbicki, R. and Lee, A. B. (2017). Converting high-dimensional regression to high-dimensional conditional density estimation. Electronic Journal of Statistics, 11(2):2800–2831.
Izbicki, R. and Rodrigues, P. L. C. (2026). Benchmarking tabular foundation models for conditional density estimation in regression. arXiv preprint arXiv:2603.26611.
Jordan, K., Jin, Y., Boza, V., You, J., Cesista, F., Newhouse, L., and Bernstein, J. (2024). Muon: An optimizer for hidden layers in neural networks. https://kellerjordan.github.io/posts/muon/.
Kelen, D. M., Jung, Á., Kersch, P., and Benczúr, A. A. (2025). Distribution-free data uncertainty for neural network regression. In The Thirteenth International Conference on Learning Representations.
Lenk, P. J. (1988). The logistic normal distribution for Bayesian, nonparametric, predictive densities. Journal of the American Statistical Association, 83(402):509–516.
Leonard, T. (1978). Density estimation, stochastic processes and prior information. Journal of the Royal Statistical Society: Series B, 40(2):113–132.
Malz, A. I. and Hogg, D. W. (2022). How to obtain the redshift distribution from probabilistic redshift estimates. The Astrophysical Journal, 928(2):127.
Martens, J. and Grosse, R. (2015). Optimizing neural networks with Kronecker-factored approximate curvature. In Proceedings of the 32nd International Conference on Machine Learning (ICML), volume 37 of PMLR, pages 2408–2417.
Paciorek, C. J. and Schervish, M. J. (2004). Non-stationary covariance functions for Gaussian process regression. In Advances in Neural Information Processing Systems, volume 16, pages 273–280.
Paulin, D. and Whalley, P. A. (2024). Correction to “Wasserstein distance estimates for the distributions of numerical approximations to ergodic stochastic differential equations”. arXiv preprint arXiv:2402.08711.
Paulin, D., Whalley, P. A., Chada, N. K., and Leimkuhler, B. (2024). Sampling from Bayesian neural network posteriors with symmetric mini-batch splitting Langevin dynamics. arXiv preprint arXiv:2410.19780.
Prior Labs (2026). TabPFN-3.5: model weights and package (version 9.0). https://huggingface.co/Prior-Labs/tabpfn_3_5. Regressor checkpoint tabpfn-v3.5-20260909.
Qu, J., Holzmüller, D., Varoquaux, G., and Le Morvan, M. (2025). TabICL: A tabular foundation model for in-context learning on large data. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of PMLR, pages 50817–50847. arXiv:2502.05564; regressor checkpoint v2 (2026) from the tabicl package.
Rahimi, A. and Recht, B. (2007). Random features for large-scale kernel machines. In Advances in Neural Information Processing Systems 20, pages 1177–1184.
Riihimäki, J. and Vehtari, A. (2014). Laplace approximation for logistic Gaussian process density estimation and regression. Bayesian Analysis, 9(2):425–448.
Sanz-Serna, J. M. and Zygalakis, K. C. (2021). Wasserstein distance estimates for the distributions of numerical approximations to ergodic stochastic differential equations. Journal of Machine Learning Research, 22(242):1–37.
Schmidt, S. J., Malz, A. I., Soo, J. Y. H., Almosallam, I. A., Brescia, M., Cavuoti, S., Cohen-Tanugi, J., Connolly, A. J., DeRose, J., Freeman, P. E., et al. (2020). Evaluation of probabilistic photometric redshift estimation approaches for The Rubin Observatory Legacy Survey of Space and Time (LSST). Monthly Notices of the Royal Astronomical Society, 499(2):1587–1606.
Silverman, B. W. (1986). Density Estimation for Statistics and Data Analysis. Chapman and Hall, London.
Tokdar, S. T., Zhu, Y. M., and Ghosh, J. K. (2010). Bayesian density regression with logistic Gaussian process and subspace projection. Bayesian Analysis, 5(2):319–344.
Vehtari, A., Gelman, A., Simpson, D., Carpenter, B., and Bürkner, P.-C. (2021). Rank-normalization, folding, and localization: An improved for assessing convergence of MCMC. Bayesian Analysis, 16(2):667–718.
Williams, C. K. I. and Seeger, M. (2001). Using the Nyström method to speed up kernel machines. In Advances in Neural Information Processing Systems 13, pages 682–688.
Wilson, A. G., Hu, Z., Salakhutdinov, R., and Xing, E. P. (2016). Deep kernel learning. In Proceedings of the 19th International Conference on Artificial Intelligence and Statistics (AISTATS), volume 51 of PMLR, pages 370–378.
A PROOFS
Proof of Proposition 1. is linear in and is linear in . The log-normaliser is the log-partition function of an exponential family with sufficient statistic , hence convex in (exactly so under the quadrature, which replaces the integral by a positive combination of exponentials of affine functions of ). Convexity survives the linear map and the sum over , and the prior adds , so .
For the upper bound, for every . The Hessian of in is the covariance of the sufficient statistic under the row density (the discrete law on the quadrature nodes with weights ). For a unit vector , , so . By the chain rule , and . Finally , the variance of the periodised process minus its constant mode, finite and free of .
Proof of Lemma 1. Since , row contributes with , the log-partition function of the discrete exponential family minus a linear term. Its third derivative is the third central moment of under : , . For a unit , , whose Frobenius norm is at most , because . The prior is quadratic, so the triangle inequality gives . For Nyström features (see below). A component carries the prior share and the rows of , and the same arguments apply to it.
Proof of Theorem 1 and the constants. The whitening is with , an orthogonal matrix times a diagonal with entries , so . For : with ; , which is diagonal in the basis, so its largest eigenvalue is ; and has Frobenius norm at most . Theorem 5 of Paulin et al. (2024) also asks each of the components to be -strongly convex, which the prior share gives, and -smooth. In whitened coordinates the Hessian of is at most with , hence at most , whose largest eigenvalue is with . This bound holds for every partition, so it covers the random partitions redrawn at each sweep. The implementation partitions a random of the rows into equal batches of rows and rescales the impulses by , omitting a remainder of rows ( and 112 on HAPPY, TEDDY, SDSS and DESI; 0 in Appendix I). For a uniformly sampled batch , satisfies at a fixed . This does not, however, make the omitted-remainder sampler the one the theorem analyses, and the omitted fraction of the rows is not by itself a bound on the resulting error. The full-data constant of the display above bounds only the sum of the components. Theorem 5 of Paulin et al. (2024) further assumes that the components share the minimiser of the sum. Ours do not, and Theorem 2 (Appendix B) proves the bound without this assumption, with replaced by , where is the spread of the whitened components , whose gradients are . Since , this is at most the spread of the , which Corollary 1 bounds by for every partition . The bound therefore holds uniformly over the partitions redrawn at each sweep. With these constants we obtain the stated bound. Since , Wasserstein distances in are at most those in . The dimension dependence of the related analysis of Sanz-Serna and Zygalakis (2021) requires the stronger assumption identified by Paulin and Whalley (2024); the strongly-Hessian-Lipschitz condition of Lemma 1 is of that kind.
Nyström feature norm. With , , , the last step because the Nyström approximation is the projection of onto the span of the anchors in the reproducing kernel Hilbert space. Hence .
Proof of Proposition 2. The per-object damping gives with diagonal and positive, still linear in . The response warp replaces by , which does not depend on , and the Jacobians , are constant in . The arguments above apply row by row with the statistic
, of squared norm , and the features of the Gibbs kernel, whose diagonal is . Since with , is bounded by the variance of the response process at length scale , again free of .
B SMS-UBU WITHOUT A COMMON MINIMISER
Theorem 5 of Paulin et al. (2024) assumes that the components of the potential share the minimiser of , which our minibatch components do not. We show that the assumption can be dropped at the cost of one dimension-free term.
Setting. on is -strongly convex and -Lipschitz with minimiser ; each is -strongly convex and Lipschitz; . SMS-UBU uses the stochastic gradient , uniform on , in a palindromic sweep, and . Only is assumed. The gradient spread at the mode,
is the variance of the stochastic gradient there. It vanishes exactly when the minimiser is common.
Lemma 2. If then .
Proof. Integration by parts gives ; strong convexity and give .
Lemma 3. For every and every square-integrable random vector , ; in particular for . If each index occurs at most times in , then .
Proof. ; take norms and use Lemma 2. For the sum, .
Lemma 4. For every , .
Proof. ; the bracket has norm at most for every , the last term has norm .
With a common minimiser, Lemma 4 is Assumption 2 of Paulin et al. (2024) with , and Lemma 3 is the form of their Lemma 9.
Theorem 2. Under the assumptions of Theorem 5 of Paulin et al. (2024) (, , -strongly Hessian Lipschitz) but without a common minimiser of the components, the law of SMS-UBU satisfies
with a constant of the same form as theirs, depending on , whose coefficients we do not track; under -Hessian Lipschitz continuity only, becomes .
Proof. Their proof combines the contraction of SMS-UBU between two copies driven by the same partitions and noise (their Proposition 7, applied step by step with the constants ) with the bias of SMS-UBU started at stationarity (their Theorem 14), which rests on the interpolation Lemma 13, the cycle estimate Proposition 12, Lemma 11 and Theorem 6 for the stochastic-gradient gap, Lemma 10 (sampling without replacement) and the full-gradient Proposition 8. The minimisers of the components enter in exactly three places, always through or ; the contraction, Lemmas 10 and 13, Proposition 8 and the Itô-Taylor terms of Proposition 12, which contain , or the full gradient , do not involve them.
(i) In Theorem 6 and Lemma 11 the stochastic-gradient gap over steps is controlled by , bounded there by . By Lemma 4 and Minkowski's inequality in it is at most this with plus . Since , Lemma 11 holds with its factor replaced by .
(ii) In Proposition 12 the terms of the velocity component and their analogue in the position component have integrands with , bounded there by through their Lemma 9. By Lemma 3 the factor becomes ; each component occurs once in the forward and once in the backward sweep of a cycle, so summing over the cycle gives in place of .
(iii) In Theorem 14, for the at most steps of an incomplete cycle, the one-step source of their Grönwall argument becomes , whose sum over the remaining steps is at most by Lemma 3 with , against there.
In each case becomes , i.e. becomes in the terms that come from moments of gradients; the other terms are unchanged, and bounding every term by the larger factor gives the result.
The additional term does not depend on the dimension. It is the variance of the stochastic gradient at the mode, which symmetric splitting does not cancel at first order. A centred (control-variate) gradient would remove it, but that would be a different algorithm.
Corollary 1. For the latent potential split into batches of equal size with components , for every partition, and for a uniformly random partition , where .
Proof. At the mode , so with equal batch sizes . Since and , , and centring does not increase . Cauchy–Schwarz gives , hence . For a uniformly random partition, each batch sum is a simple random sample without replacement of size from the centred , with ; multiplying by gives the formula.
C THE SPECTRAL RESPONSE AXIS
By Poisson summation, with the Fourier transform of , i.e. the Matérn spectral density. Since , the process (2) with has exactly this covariance (up to the omitted constant mode). A white-noise floor , , keeps every mode's variance positive. It adds to , a numerical stabilisation that lies outside the uniform-in-K statements of Section 3. Sampling the wrapped kernel on a grid instead gives a kink at the antipode and negative eigenvalues once is not small against the period. The exact spectrum is never negative. For , ; with the learned , keeps the last mode's amplitude below of the largest. The normaliser uses composite Gauss-Legendre quadrature with cells of four nodes ( nodes). Each cell's rule is exact for polynomials of degree seven, so the error is with . Because the derivatives of the integrand grow with , this bound does not shrink as grows, so we check the accuracy numerically. Against a rule four times finer, the log-normaliser agrees to at the learned length scales. This check uses the global . Under the per-object damping of Section 5 the effective length scale is longer or shorter by at most , and a shorter one makes the density locally sharper. That case is checked in Appendix I. The CDF at an observation is the cumulative mass of the cells below it plus the integral of the Lagrange interpolant within its cell.
D HYPERPARAMETER GRADIENTS: SAMPLING VERSUS LAPLACE
Let , so that the exact gradient is , and let be the law of the sampled states. We work coordinate by coordinate, a scalar component of . Row enters through its field , with the damped statistic of the proof of Proposition 2 (Appendix A), and plus terms free of , with the observation point (the integral is the quadrature sum in practice, with positive weights; nothing below changes). Hence
with , , and the row's density. We measure by the sup norms of these fields,
and use together with the spectral sums , and . For the Matérn spectrum with (and the squared exponential), , so all four are bounded uniformly in ; the floor of Appendix C adds to ( at ), and the corresponding term to when is the variance, which we keep explicit as for . Since , Cauchy–Schwarz gives, for all ,
with , and . Unlike the coefficient vectors , the fields thus change by amounts free of .
Lemma 5. With , for all ,
Proof. In (8) the first two terms change by at most and . For the third, ; the first part is at most . Along , , and , so the second part is at most by (9).
Lemma 6. Let , and . There is an absolute constant with .
Proof. The fields are linear in , so with and , both centred. Since , satisfies a logarithmic Sobolev inequality with constant one (Bakry-Émery), so every -Lipschitz function of is sub-Gaussian about its mean with variance proxy . is linear in with Lipschitz constant , so has sub-Gaussian increments for the metric on , whose covering numbers are at most . Dudley's entropy bound, in its form, gives , and is sub-Gaussian with proxy . Likewise for , with increments of Lipschitz constant and of proxy .
Proposition 3. For any coupling of and attaining ,
with by Lemma 6 and .
Proof. By Lemma 5 and Cauchy–Schwarz, , and . The bound for follows from (9): .
With , the law after sweeps from the previous step's states, Theorem 1 bounds by a term that decays geometrically in plus . The factors and in Proposition 3 depend on and only through , , and the spectral sums, the last free of for (up to the floor terms above). We have , but we do not bound the feature derivatives or , the sup norm of the posterior-mean field and its -derivative at , uniformly in and . Under the theorem's conditions the bias of the Fisher gradient is therefore plus a mixing term, for a fixed representation, with a prefactor that is explicit in these quantities. The comes from the Wasserstein bound itself. The gradient batch is drawn independently of the sampled states, so it adds variance but no bias. The four chains form two antithetic pairs and share the sampler's batch partition, so they are not independent replicates. They reduce variance but should not be treated as independent for Monte Carlo error estimates, and our validation runs use independent chains for that purpose (Appendix I). All of this concerns one outer step at fixed . We make no convergence claim for the outer procedure, which follows these gradients by stochastic approximation with a changing target, preconditioner rebuilds and early stopping.
The Laplace approximation replaces by with the posterior mode and the Hessian of there. Its gradient is exact for , but depends on the skewness and higher cumulants of the latent posterior, which change with , so is biased by an amount that more computation does not remove. Computing it requires of a -dimensional matrix and the third derivative of contracted with . Variational approximations likewise optimise a bound whose gap depends on . Whether this bias matters in practice is an empirical question, which Appendix I addresses on a controlled problem.
E THE NON-STATIONARY MODEL IN DETAIL
Heads and bounds. All encoder outputs pass through a residual scale of 0.01. The log-amplitude is clipped to , the response length-scale log multiplier to , the local log length scales are , and the response-warp coefficients are , with the network output and . The full-matrix bandwidth starts at zero and is trained by Adam rather than Muon, since it is not a weight matrix of the network. The input length scales are frozen, and the bandwidth carries the scale. The weight matrices carry a prior.
Response warp. is represented as a piecewise-linear function on 256 segments, so is its exact (piecewise-quadratic) integral and is consistent with it. The normaliser is computed in on the unchanged quadrature nodes, so the warp enters only through and the Jacobian.
Learnable transform. is the normalised piecewise-linear interpolant of on 400 equispaced knots spanning the training range plus six kernel bandwidths on each side (starting at 0 for a redshift), so that is exact and quadratic within a cell. is initialised at a Gaussian kernel density estimate of the training targets with Silverman's bandwidth, reflected at , and carries a Gaussian prior on its second differences whose standard deviation is the root-mean-square second difference of the initialisation.
Response support. Both transforms are tabulated on a bounded interval: the range of the training responses widened by six kernel bandwidths on each side or, for a redshift, from 0 (where the kernel estimate is reflected) to the largest training redshift plus six bandwidths. The fixed transform uses 4,000 points of this interval and the learned one its 400 knots, so the model's density is supported on the interval. The implementation does not extend it. A response outside the interval is mapped to or , and its is the value at the nearest end of the grid, so the score it receives is not that of a normalised density. The model itself assigns zero density outside its support, and its CDF is zero below the lower end and one above the upper end; the clipping convention is a numerical diagnostic and supplies no predictive tail mass. No test response falls outside the interval in Table 2, on the sinusoid, in the DESI training-size runs of Appendix I or in the HAPPY scaling runs of Appendix L; for the temperature runs of Appendix L this was not recorded; the covariate-shift runs of Appendix I have a few such galaxies, listed there.
Preconditioner with damping. With per-object damping, S is formed with the amplitudes multiplied by the root-mean-square damping of each mode over the rows. On SDSS and DESI the preconditioner is rebuilt at every one of the first ten steps, where the posterior moves fastest, and every ten steps afterwards. The chains keep their latent states and redraw their velocities.
F DATA, PREPROCESSING AND METRICS
Benchmarks. HAPPY and TEDDY (Beck et al., 2017) each comprise samples A to D of 60,000 to 98,000 SDSS galaxies (about 75,000 in A and B). A is the training set, B is drawn from the same distribution, and C and D move away from it. One TEDDY-B galaxy with two spectra appears twice and is matched to its photometry by identifier and redshift. The SDSS DR18 sample of Izbicki and Rodrigues (2026) has 500,000 galaxies. The DESI benchmark comprises the 4.35 million galaxies of the DR1 Bright Galaxy Survey bright sub-sample (, BGS_BRIGHT, ZWARN = 0, , spectral type galaxy) with positive fluxes, with the Legacy Surveys and WISE W1, W2 photometry of the redshift catalogue (DESI Collaboration, 2025). SDSS and DESI are split at random into 90% training and 10% test rows, a different split for each seed.
Preprocessing. The five features (one magnitude, four colours) are standardised by the training rows and each is multiplied by its median gap, the absolute difference of the median of the kernel-density CDF of the response over the training rows above and below the feature's median. The features are an exact linear map of the magnitudes, so the per-object feature error standard deviations are . These five columns are log-transformed, standardised and median-gap scaled in the same way. Finally every column is soft-clipped in its own standard-deviation units, the identity up to 3 and beyond, so that objects with failed photometry (4% of DESI training rows have some column beyond three standard deviations) do not dominate the kernel distances.
Metrics. NLL of the true response; CDE loss ; Kolmogorov–Smirnov distance of the PIT values from uniform; CRPS in the quantile form on 2,001 levels, identical for all models; RMSE of the predictive mean; and from the predictive median , with , the NMAD 1.4826 median and the outlier fraction .
G EXPERIMENTAL CONFIGURATION
GP. Matérn-3/2 kernels on both axes, , k-means anchors (twenty Lloyd iterations on the GPU), jitter ; four chains, friction 2; Muon at 0.02 on the weight matrices and Adam at 0.01 on all other parameters, cosine decay to zero over 1,000 steps; the validation log-likelihood is evaluated every ten steps, the best running mean of five values is kept, training stops after 500 steps without improvement, and a divergence of more than one nat restores the best state with fresh sampler random numbers. Each chain's gradient batch has observations. The sinusoid fits of Section 4 use RBF kernels, , k-means anchors ( at ), a fixed transform, a single batch with 2 burn-in and 4 collection sweeps per step, and 1,000 cosine steps on all training rows, with no validation set.
TabPFN-3.5. Cached-context mode with an int8 key-value cache. The bar probabilities of the eight members are mapped onto shared bin borders by differencing a single-precision CDF, so bins far in the tail can be exactly zero. We floor every bin probability at when evaluating the density, which on HAPPY, TEDDY and SDSS changes the NLL only on SDSS (one test galaxy, 0.014 nats) and TEDDY (two galaxies). On DESI its effect is contained in the stable re-scoring of Appendix I, which changes the mean NLL by at most .
TabICL-2. The v2 regressor checkpoint of the tabicl package with eight ensemble members and the same context as TabPFN-3.5 (on DESI the same random 500,000 rows), the context encoded once with cached row representations. Its 999 predicted quantiles define a monotone-spline quantile distribution with exponential tails, from which the NLL, PIT, CRPS and mean are exact; the CDE loss is integrated on a 400-point grid.
Flow-Spline. The conditional density flow of the benchmark of Izbicki and Rodrigues (2026), ported from its code. It applies monotone rational-quadratic spline layers with linear tails (Durkan et al., 2019) to the standardised response, on a Gaussian base, with each layer's parameters given by a two-hidden-layer ReLU network of , and is trained by Adam with weight decay and early stopping on 10% of the training rows. The benchmark's random search draws eight configurations of bins, layers, width, learning rate and weight decay and scores each by three-fold cross-validation of the CDE loss on a 200-point grid. We score the flow's own density exactly (NLL and PIT in closed form; mean, CRPS and by quadrature in the base space). The benchmark's renormalised 200-point grid gives NLLs within 0.011 nats of these, except on DESI (-2.3075 against -2.2682), where the fitted density has narrow spikes.
CRPS ensemble. Five networks, each a ReLU perceptron with 64 hidden units receiving a 16-dimensional Gaussian noise vector after its first layer and returning 100 weighted samples in training and 500 at test time, trained by AdamW on the weighted sample CRPS with early stopping (patience 40 epochs; on the sinusoid 200, with batch 32). The pooled test samples become a density by an adaptive Gaussian kernel estimate (Silverman, 1986; Abramson, 1982), weighted by the samples' weights. Samples outside the plausible range of the target (the training range extended by its width on each side) are given zero weight. Whether any fall there varies between runs. On DESI two of the five runs averaged in Table 2 placed 17% of their samples outside this range, at redshifts up to , which lowers the finite-sample training loss without improving the predictive, while the other three placed none (Appendix I).
H SCALE
On DESI (N = 3.89 million after the validation split) no array grows with N beyond the inputs. Feature rows are rebuilt inside the impulses (once per batch, shared by the four chains), and the preconditioner statistics and the 30 power iterations run over row chunks. The Gibbs kernel is evaluated in chunks of 8,192 rows with rematerialisation in the backward pass. Each chain's gradient batch is capped at 24,000 rows and its vector–Jacobian product is chunked, and the predictive of the 454,000 validation and test rows is formed after the sweeps from the stored latent states, 16,384 rows at a time. When the feature matrix fits in memory (HAPPY, TEDDY, SDSS) it is built once per outer step instead. Sharing the batch partition across chains alone made the large-scale step about 1.7 times faster. Scoring the 434,505 DESI test galaxies takes about a minute on the GPU.
I SAMPLER VALIDATION AND ABLATIONS
Fixed-target sampler validation. On the sinusoid with and a reduced representation (, , ), we freeze at the value learned by sampling (variance 77, , ). At this the whitened curvature estimate is , while the certified constants are (batch-uniform, ; ) and . The regime of Theorem 1 () is therefore far from anything that can be run. The uniform bound of Theorem 1 is , so its extra term is negligible next to . (For illustration, the spread of 20 random partitions at the mode is 446 in coordinates, against 454 expected from Corollary 1, and 28 in whitened coordinates.)
We validate the default sampler in two ways. The first is step-size halving. SMS-UBU with the default runs at (the runner's default, ), and , each for the same simulated time (2,000 burn-in and 20,000 collection sweeps at , scaled by 2 and 4), on 16 independent, non-antithetic chains with the Kronecker whitening fixed at the mode. For every latent component and for the field on a grid we compare posterior means and variances between neighbouring step sizes, in units of the posterior standard deviation, with Monte Carlo errors from the spread of the chains. The second is a reference that leaves invariant, generalised HMC (GHMC) with one BCSS-2 step per Metropolis decision and partial momentum refreshment (Chok et al., 2025), without adaptation, in the same whitened coordinates and with full-batch gradients. Its step is fixed before sampling by the rule of Chok et al. (2025) (acceptance at least ). We also restart both samplers from dispersed initial states (independent prior draws), report and effective sample sizes for every compared functional, and repeat the comparison on a problem small enough ( , ) for the reference to be run to high precision.
At the default step the latent means show no detectable bias and the variances a small one. Between h and h/2 the posterior means of the 9,800 latent components differ by 0.006 posterior standard deviations (root mean square), exactly their Monte Carlo error (5.3% of components beyond two standard errors, against 4.6% expected). The variances differ by 0.6%, of which 0.3% is resolved above the noise, and between h/2 and h/4 the corresponding biases are 0.002 standard deviations and 0.1%. The Fisher gradient, a sum over all 2,000 rows, is more sensitive.
Between and its components (for , , ) change by , and (, and ), and between and by , and (, and ). Its bias at is thus resolved and shrinks with the step at a rate consistent with or faster. (A ratio of four between successive differences would also require a non-zero leading coefficient, which this resolution cannot establish.) The effect on learning is small. With the sampler run at for the same simulated time throughout the optimisation, the learned is higher on average (less than its spread over seeds), the length scales change by less than , and the test NLL is unchanged ( against , per-seed differences within ). For the field on the grid, the versus differences of the posterior means exceed the chain-spread error ( of grid points beyond two standard errors). The retained-draw diagnostics below show that this error estimate cannot be relied on for the field, and they supersede these comparisons.
The reference confirms the findings for the latent components and the gradient. GHMC (32 chains, half started at the mode and half at prior draws, each 240,000 steps after 24,000 of burn-in; and 0.26, acceptance 0.996 and 0.985) agrees with SMS-UBU at the default h on the latent means (root-mean-square difference 0.005 posterior standard deviations, equal to the Monte Carlo error) and on the latent variances to 0.4%. The Fisher gradient at h differs from the reference by -3.5, +6.1 and +7.5 (z = -13, 3.1 and 10), much as between h and h/2, and at h/2 by -0.3, -0.1 and +1.5 (z = -1.1, -0.1 and 2.6). The discretisation bias of the gradient is therefore real, and halving the step removes most of it, although one component remains at z = 2.6. Learning at h/2 changes the fitted variance by 8% and the test NLL by 0.0002 nats (see above). Started from independent prior draws, both samplers agree with their mode-started runs within Monte Carlo error (gradient z at most 1.2). At h/4, however, the field variances differ from the reference beyond the chain-spread error.
To look into this we repeated all five runs (SMS-UBU at , and , and GHMC from the mode and from prior draws, with 16 chains each), this time keeping 2,000 draws per chain. From these we computed rank-normalised, folded split-, bulk and tail effective sample sizes and ESS-based Monte Carlo errors (Vehtari et al., 2021) for the Fisher gradient, 256 randomly chosen latent components, and the field and the normalised density on the grid. The gradient and the latent components are well resolved in every run (, bulk ESS at least 3,200, tail ESS at least 8,800). The field and density values are not. In every run, the references included, exceeds 1.01 at 40–85% of the grid points (up to 1.13), and bulk ESS falls to about 100. These diagnostics do not resolve the field and normalised-density functionals well enough to distinguish discretisation bias from finite-run error, so we exclude them from our claims of validated posterior accuracy; this includes the discrepancy above. With ESS-based errors the two GHMC runs agree with each other (gradient ). SMS-UBU at differs from them in the variance component of the gradient (), and at and by at most . For every step size, the fraction of the 256 latent means and variances that lie more than two errors from the reference (3–6%) is what chance would give, as it is for the two GHMC runs (2% and 8%).
On the small problem refitted by sampling), where the reference is precise, SMS-UBU at shows a resolved bias of 0.6% in the latent variances and of ( ) in the variance component of the gradient, and none at or . To summarise, the default step has small but detectable biases in the latent variances and the gradient. They shrink substantially at half the step and have little observed effect on the predictive NLL of the controlled problem. For the field and normalised-density values on the grid, these runs, the reference included, cannot tell discretisation bias from finite-run error.
Same-representation MAP and Laplace. On the same representation, is learned from the same starting value by three methods: our sampler with Fisher-identity gradients, the latent mode with plug-in gradients (MAP), and the Laplace approximation of the marginal likelihood with an exact log-determinant and the implicit derivative of the mode. Each is scored on the 2,000 test rows by its own predictive (posterior-mean density; plug-in density at the mode; Gaussian around the mode) and, to separate learning from prediction, by the sampled predictive at its learned (Table 4). All three start from and take 300 Adam steps with learning rate 0.03 and a flat prior on . MAP maximises the joint density in the non-centred parametrisation, with the mode refreshed by five Newton steps per outer step. The Laplace predictive averages the normalised densities of 200 independent draws from , and the sampled predictive those of 200 states of four fresh SMS-UBU chains, so the two entries of the sampling row are separate Monte Carlo estimates. MAP collapses on every seed to a large variance and length scales five to twelve times shorter than the others, which overfits the field. This reflects joint maximisation in this parametrisation and says nothing against deterministic latent fits in general. Laplace learns hyperparameters close to those of sampling, and at its the sampled predictive is as good as ours, but its own Gaussian predictive is 0.12 nats worse. This is an observed finite-run comparison under the reported budgets. Under these budgets the larger observed difference lies in the predictive evaluations rather than in the learned hyperparameters. The comparison does not separate the error of the Gaussian approximation from the remaining finite-run error of the sampled predictive.
Table 4: Learning on the sinusoid (, , ): mean (standard deviation) of the test NLL over four seeds, by each method's own predictive and by the sampled predictive at its learned , and the learned variance and length scales. The seed standard deviations are neither a convergence certificate nor an estimate of the predictive's Monte Carlo error.
| own predictive | sampled pred. | |||
|---|---|---|---|---|
| sampling | -0.192 (0.014) | -0.192 (0.016) | 59-78 | (0.13-0.15, 0.11-0.12) |
| MAP | +1.577 (0.225) | +1.308 (0.166) | 3983-5062 | (0.027, 0.010) |
| Laplace | -0.076 (0.013) | -0.192 (0.016) | 75-94 | (0.14-0.15, 0.11-0.12) |
Transform-only baseline. With the model is , a conditional density estimator in its own right. Trained with the same encoder, transform, schedule and validation split as the full model (seed 0), it reaches test NLLs of (HAPPY), (TEDDY), (SDSS) and (DESI), 0.13 to 0.37 nats behind the full model, with PIT statistics of 0.05–0.10 against 0.001–0.005. Removing the latent field thus materially degrades both density accuracy and calibration in this configuration (one seed per benchmark). Since the ablation removes capacity as well as posterior integration, it shows the value of the field but not, by itself, the value of sampling.
Matched data on DESI. Trained on the same 500,000 rows as TabPFN-3.5's context (validation rows removed from them), the GP with the network overfits (validation NLL , test ), 0.005 nats behind TabPFN-3.5 (). With a network it reaches , 0.003 nats ahead (paired bootstrap interval [0.002, 0.004]), with a PIT statistic of 0.004 against 0.006. With the network the test NLL is , , and at , , and rows. Between the two networks the validation rows also favour the smaller one ( against ), so the choice does not rest on the test rows. The bootstrap interval is conditional on the selected fit and includes neither selection nor training randomness, so this 0.003-nat lead is less certain than the full-data difference below. At equal data the two models are therefore close, and the GP's lead on the full benchmark comes mostly from using all of it.
Repeated runs and paired differences. Every GP entry of Tables 1 and 2, and every TabPFN-3.5 entry except on HAPPY and TEDDY (where it does not depend on the seed), is repeated over four seeds (the validation split on HAPPY and TEDDY, the train/test and validation splits on SDSS and DESI, the train/test split on the sinusoid). With the test rows fixed, the seed moves the GP's test NLL by 0.0009 nats (standard deviation) on HAPPY and TEDDY. With new test rows it moves it by 0.0028 on SDSS, 0.0010 on DESI and by 0.015–0.039 on the 2,000 sinusoid test rows, where the excess over the true density on the same rows varies far less (0.001 at 10,000 training rows). The paired GP minus TabPFN-3.5 NLL difference varies less than either model: -0.0111 (standard deviation 0.0007) on SDSS, -0.0222 (0.0004) on DESI, and -0.017 (0.016), -0.009 (0.013) and -0.016 (0.004) on the sinusoid at 400, 2,000 and 10,000 rows. Within the seed-0 split, paired bootstrap intervals over test objects are on HAPPY, on TEDDY, on SDSS and on DESI, so every difference between the two models in Table 2 is resolved. The two kinds of interval measure different things. The seed standard deviations include the split (where it varies), the validation split and training randomness, whereas the bootstrap intervals reflect only the finite test sample, conditionally on the fits. Neither includes the Monte Carlo error of the predictive, which is small. Re-scored from the same trained chains, the 20-sweep production predictive is within 0.00014 nats (HAPPY), 0.00002 nats (SDSS) and 0.00001 nats (DESI) of a 200-sweep one, two independent 200-sweep predictives differ by 0.00001, 0.00002 and 0.00001, and the PIT statistic does not change. The production predictive's per-object Monte Carlo error is about 0.003, 0.0013 and 0.0006 nats in (HAPPY, SDSS, DESI), against 0.0012, 0.0005 and 0.0003 at 200 sweeps.
Evaluation audit. The TabPFN-3.5 floor changes the aggregate SDSS test NLL (seed-0 split) from to , in TabPFN's favour. The floor is applied to the bar probabilities before taking logarithms, without renormalisation, and sits at one single-precision rounding step of the members' CDF. The CRPS ensemble's members diverge in some DESI runs and not in others. Our first run (−2.2564) placed 17% of its samples outside the plausible range (Appendix G), where they receive zero weight. A second run with identical settings placed none there and scored −2.2855, or −2.2848 without the range restriction, so the restriction itself does not matter when no sample leaves the range. Of five runs with identical settings, two diverge (17% of samples outside the range; −2.2564 and −2.2563) and three do not (−2.2855, −2.2819 and −2.2791, mean −2.282, standard deviation 0.003). Divergence costs about 0.03 nats, and even the runs that do not diverge remain at least 0.09 nats behind the LGP. Table 2 reports the mean and standard deviation over all five runs, so this baseline's DESI entry carries a between-run spread of about 0.014 nats that the other DESI entries do not show. Renormalising TabPFN-3.5's floored bar probabilities changes the per-object NLL by log S = log ∑b max(p_b, ε), at most 2.8·10⁻⁵ on every benchmark, and the renormalised mean NLL differs from the reported one by 1.5·10⁻⁵ (HAPPY), 1.0·10⁻⁵ (TEDDY) and 1.6·10⁻⁵ (SDSS). The float32 differencing of TabPFN-3.5's CDF limits how finely tail probabilities are resolved. The 13, 11 and 8 test galaxies whose bar probability at the observation is within 100 such steps of zero contribute 0.0014, 0.0012 and 0.0014 nats to the mean NLL. Since this contribution is not an error bound, we recomputed for every test galaxy the probability of the shared bar that holds its observation, starting from each ensemble member's own logits and working in double precision and in log space. Instead of differencing a single-precision CDF, this sums the exact overlaps of the member's bars with the shared bar; the other bars, which set the softmax normaliser, are left as they were. The stable score changes the mean test NLL by at most 4·10⁻⁵ nats on every benchmark and split (HAPPY, TEDDY, four SDSS and four DESI splits). Single galaxies at the resolution limit move by up to 1.9 nats in either direction, but there are few of them (2–13 per split on HAPPY, TEDDY and SDSS, 155–226 of 434,505 on DESI), and every paired GP minus TabPFN-3.5 difference of Section 6 changes by less than 10⁻⁴. Re-tuned with the exact CDE loss of its density in place of the 200-point grid, Flow-Spline selects the same configuration on SDSS and its scores are unchanged. We did not complete the same check on DESI (80 minutes per search configuration), which remains a limitation of that entry.
Conditional calibration. Within deciles of the magnitude column, the GP's PIT statistic stays at most 0.017 (HAPPY), 0.018 (TEDDY), 0.021 (SDSS) and 0.007 (DESI), and the coverage of its central 90% intervals between 0.890 and 0.906, consistent with the sampling noise of a decile. TabPFN-3.5 reaches 0.027, 0.025, 0.047 and 0.024. Its worst decile is the brightest one, where its mean PIT is 0.51–0.53, so it underpredicts the redshifts of bright galaxies. Calibration within the bins of one covariate is only a group-conditional check, not calibration given the full covariate vector. Predictive coverage also does not validate the posterior uncertainty about the density function itself.
Covariate shift. Trained on sample A and tested on the more distant samples C and D, the GP meets two limitations. First, every shifted test set contains redshifts above the support of its learned transform (Appendix E): 7 of 60,315 and 26 of 74,642 galaxies on HAPPY C and D, and 1 of 97,980 and 35 of 75,924 on TEDDY C and D. The model gives them zero density, so its full-test NLL on these four sets is infinite. The scorer's clipping convention gives them finite but poor scores (23–25 nats, against 4–10 for TabPFN-3.5), which add 0.0002 to 0.011 nats to the GP's mean score. We therefore compare log-likelihoods on the galaxies inside the support, the same rows for both models, computed from the saved per-galaxy scores. This subset is defined by the observed redshift and excludes galaxies on which the GP scores badly, so it favours the GP. Second, the GP falls further behind TabPFN-3.5 as the shift grows. On the in-support galaxies it is 0.021 and 0.033 nats behind on HAPPY A→C and A→D (paired bootstrap [0.018, 0.024] and [0.030, 0.036]; the clipped means give 0.022 and 0.038), against 0.008 on A→B, while its PIT is slightly closer to uniform (0.0085 and 0.019 against 0.0096 and 0.022). For a galaxy above the support the model's PIT is one, and the clipping convention returns at most less, which leaves these statistics unchanged at the reported precision. On TEDDY A→C the gap is 0.008, as on A→B. On TEDDY A→D, where 95% of the test galaxies have a magnitude or colour outside the central 99.8% of the training range (against 1–2% for B and C, and 11% for HAPPY D), the GP fails: on the in-support galaxies its NLL is -0.33 against -1.66 for TabPFN-3.5 (clipped means -0.32 and -1.66), with PIT statistics of 0.22 and 0.12. Far from the anchors the Nyström features vanish, so the latent field reverts to zero and the density to the learned transforms (the transform-only baseline above), whose predictions barely depend on the galaxy. To check this mechanism we measured the magnitude of the latent field , averaged over posterior states. On the in-distribution test samples (HAPPY B, TEDDY B, SDSS, DESI) its distribution matches that on the training galaxies (medians within 3%; 0.1% on DESI), while on TEDDY D its median is half the training median and its 5% quantile a fifth of the training one. So the mechanism is at work, but it does not explain everything. On HAPPY D the field shrinks almost as much (median about half the training median), yet the LGP is only 0.033 nats behind TabPFN-3.5 there on the in-support galaxies. Extrapolation beyond the training covariates is therefore a limitation of the present covariate representation, as is the response support fixed by the training range, and our claims mainly concern in-distribution conditional density estimation.
Representation checks. On HAPPY A→B the test NLL is -2.1543 and -2.1555 with K = 50 and 200 modes, -2.1558 with 200 quadrature cells, and -2.1543 and -2.1557 with J = 500 and 2,000 anchors, against -2.1557 (standard deviation 0.0009 over seeds) for the defaults (K = 100, 100 cells, J = 1,000). Halving any of them costs at most 0.0014 nats, and doubling gains nothing. On the small sinusoid model (K = 50), the log-normaliser of sampled states agrees with a rule four times finer to at the learned , but only to 0.47 at the shortest damped length scale , so the permitted range of the damping includes configurations the rule does not resolve. We check at fixed posterior states whether fitted models reach them. For 50,000 test objects and 16 posterior states of the fitted models we compare with a rule with four times the cells, and its gradient with respect to . The largest difference in is on HAPPY, on TEDDY and on SDSS (99.9% quantiles , and ), near single-precision rounding, and the largest relative error of the gradient is . The difference does not grow across deciles of the learned damping, whose log multiplier stays within , far from the bound of the stress test. On DESI the damping reaches further, to log multipliers of -1.3 and -1.5 in two fits, and at fixed states the rule no longer resolves every object. The 99.9% quantile of the difference is , as on SDSS, but the largest is (relative error of the gradient with respect to up to ), all in the decile of the shortest length scales. We therefore measured the effect on the score directly. Re-scoring the production predictive of a DESI fit (its 960 states, every fifth impulse of the last 15 of the 20 sweeps in four chains, all 434,505 test galaxies) with 4 and 16 times the cells changes the test NLL by nats and the per-object log-density by at most (31 galaxies above , 99.9% quantile ), and the two finer rules agree to , so the reference itself is resolved. This is the scoring error at fixed states. We did not measure how the rule changes the fitted posterior or the outer optimisation, and the gradient check concerns , not the hyperparameters. (Refitting HAPPY with 200 cells moves the test NLL by 0.0001, but a refit can adapt to the rule, so this is weaker evidence.)
J ADDITIONAL RESULTS
On HAPPY A→B the network's test log-likelihood is flat from step 500 to the early stop. On TEDDY the validation optimum is at step 310 and the test log-likelihood falls by 0.005 nats over the following 500 steps, which the early stop prevents. On SDSS (four seeds) the smoothed validation optimum is at steps 870–1,000, and in seed 0 the test NLL is -2.1111, -2.1110 and -2.1112 at steps 700, 800 and 900. On DESI it is at steps 990–1,000 in every seed, and in seed 0 the test NLL improves from -2.3686 at step 500 to -2.3748, -2.3779 and -2.3791 at steps 700, 800 and 900. The DESI response warps have a median largest stretch of 3.33, 2.89, 3.71 and 3.13 over the test objects in the four seeds (median smallest 0.61, 0.60, 0.57 and 0.52), and the learned transform changes the log-density by at most 2.9–3.2, at z = 0.
K ILLUSTRATION
Figure 1 illustrates the model described in Section 4.
L COMPARISON WITH SPATIAL LOGISTIC GAUSSIAN PROCESSES
Relation. The spatial logistic Gaussian process (SLGP) of Gautier and Ginsbourger (2026) is the model closest to ours. Its conditional density is the logistic transform (1) of a finite-rank Gaussian process on (covariate, response), built here from random Fourier features of a stationary kernel on , with the response confined to a fixed interval and the normaliser computed by quadrature. The R package (Gautier, 2026) fits the coefficients by MAP, a Laplace approximation or NUTS (Stan), and the accompanying paper proves that the coefficient likelihood is log-concave (Gautier, 2026, Theorem 3.2). With the Gaussian prior the posterior is therefore strongly log-concave, the property behind our Proposition 1; we claim neither this property nor latent posterior sampling as new. The two methods differ in four ways. Our representation is a Fourier basis on the response

Figure 1: The vanilla logistic GP on the bimodal sinusoid with N = 400 training samples (orange points). The floor heatmap shows the posterior predictive density; purple profiles show the predictive at x = -0.7, 0, 0.7. Gray basis curves on the x = -1 boundary illustrate and for k = 1, 2, 4, 8, 16, evaluated using the fixed training-only KDE-CDF transform T. Each sine/cosine pair shares a display baseline. The basis curves are scaled and vertically offset for readability, and their heights are not on the density axis.
times Nyström features of the covariates, where SLGP uses random features of the joint kernel. Our sampler is SMS–UBU in Kronecker-whitened coordinates, theirs is NUTS. We learn the hyperparameters by Fisher-identity gradients of the marginal likelihood, whereas SLGP searches a grid of length scales on the posterior at the MAP, with the variance fixed by a heuristic. Finally, our response axis is mapped by a transform estimated from the training responses (fixed or learned; its support is given in Appendix E), theirs is a fixed interval chosen in advance. Because the two outer objectives differ, they need not select the same hyperparameters even with unlimited computation. Gautier and Ginsbourger (2026, Section 5) list quantitative predictive evaluation, comparisons across kernel settings and baselines, and a more efficient implementation for more observations and higher-dimensional inputs as further work. This section compares the two methods on held-out data, in their application and in two of ours.
Protocol. We run SLGP with the authors' code, CRAN SLGP 2.0.0, and for the saved models of Gautier and Ginsbourger (2026) with the package build their experiments ran. Both methods see the same training rows and are scored on the same test rows. Test rows play no part in preprocessing, in the selection of hyperparameters within a search space, in stopping or in the choice of SLGP's response interval. They did inform the design of the sinusoid search space, as described below. Densities are in the response's original units, Jacobians included, and the predictive averages densities over posterior draws before taking the logarithm. We score SLGP from its fitted coefficients. The package's basis functions are evaluated directly, and each draw's normaliser numerically by the trapezoid rule on a 1,401-point response grid per test input (refined below), because in the configurations we examined the package's own prediction routine fails off its quadrature grid in 2.0.0 and overstates densities by about 1% in the paper's build (both checks are in our code repository, https://github.com/paulindani/LGP). We compare SLGP with the package defaults (length scale 0.15 on every coordinate scaled to [0,1], by the package heuristic, 500 basis functions) and SLGP tuned on held-out training rows (below), each fitted by MAP, Laplace and NUTS (2 chains of 1,000 iterations, the paper's setting) where the budget allows. Our model is run in its stationary form (the vanilla model of Section 2 with ARD covariate length scales, no encoder, no validation set) and in its full form (Section 5, with early stopping). In the temperature and HAPPY comparisons each fit had a declared wall-clock limit (SLGP MAP and Laplace 1 h, the SLGP search 1.5–2 h, NUTS 2.5 h, our model 1 h). The sinusoid comparison and the HAPPY repeat search and checks were run to completion. A run that exceeded its limit is reported as such, which bounds the budget, not the method. For the temperature and HAPPY comparisons SLGP ran on two CPU cores per fit (AMD EPYC 7F72) and our model on one NVIDIA A100 (40 GB). The sinusoid comparison and the HAPPY repeat search and checks ran on two Intel Xeon Gold 6530 cores per SLGP fit and one RTX 5090. The timings therefore compare two systems rather than two algorithms.
SLGP's heuristic sets the prior variance so that the expected prior range of the latent field is about 5 (Gautier, 2026). This is a choice of prior, not a constraint on the fitted field. On the sinusoid below (seed 42, N = 400), the best NLL on held-out training rows over the length scales is +0.47 with the heuristic , +0.00 with ten times it and -0.13 with a hundred times it, so the default prior regularises this problem too strongly. We therefore select jointly with the length scales by held-out NLL on training rows, which targets the accuracy of the predictive density. We hold out 20% of the training rows, fit the MAP on the rest at every point of a grid (response length scale, one covariate length scale, and as a multiple of the heuristic; grids below), select the point with the lowest held-out NLL and refit on all training rows. A selection on the boundary of its grid is repeated on an extended grid. Preliminary fits on seed 42 of the sinusoid (four probe fits at N = 400), scored on its test rows, informed the decision to include in the search. Within the resulting search spaces, the final hyperparameters were selected by held-out NLL on training rows. The sinusoid comparison therefore includes test-informed protocol development and is not an entirely test-independent evaluation, and we regard it as exploratory. The probe fits used seed 42 only.
Swiss temperatures. The application of Gautier and Ginsbourger (2026, Section 4.3) models the daily mean temperatures of 2019 at MeteoSwiss stations given latitude, longitude and altitude. Its split trains on the 26 stations outside the canton of Bern (9,490 days, but only 26 distinct inputs) and tests on the 3 Bern stations (1,095 days). We take the paper's data and saved models from its repository. Refitting with its code and package build reproduces the saved model ( identical, random frequencies to , MAP coefficients to ). Its length scales (7.5% of the temperature range, 40% of the latitude and longitude ranges, 15% of the altitude range) were chosen on a 1,100-point grid whose saved objective follows the training posterior at the MAP (Spearman correlation 0.96 when we re-evaluate it), not the test stations. We add SLGP with length scales selected on the same grid by station-grouped six-fold cross-validation on the 26 training stations (5% / 50% / 50% / 25%). Our stationary model uses ARD Matérn-5/2 kernels on both axes (SLGP's smoothness) on the standardised inputs and is fitted on all 26 stations without a validation set, with five seeds. The full model has the SDSS configuration of Table 3 ( encoder, ) with early stopping on three held-out training stations, using five splits (each holding out three different stations) and three seeds. Table 5 gives the scores and Figure 2 the predictive densities.

observed days (2019) SLGP, paper's model … SLGP, station-CV length scales LGP, stationary (5-seed mixture) LGP, full model (15-run mixture)
Figure 2: Predictive densities at the three Bern test stations over a histogram of the 365 observed daily means of 2019, with each model's NLL at the station. Each model predicts one density per station, from its coordinates.
The stationary LGP has the lowest NLL, CRPS and RMSE, but the differences are not resolved. It is
Table 5: Swiss temperatures, the 3 Bern test stations (1,095 days, °C). NLL and CRPS: mean over the test days; NLL per station; : paired NLL difference to SLGP with the paper’s length scales (MAP) and to SLGP with station-CV length scales (MAP), the standard error of a block bootstrap over the 52 weeks of the year (the days of a week at the three stations form a block, since daily temperatures are autocorrelated). Rows over several runs: mean over the runs, standard deviation in parentheses. SLGP: 500 basis functions, Matérn-5/2; paper’s : the saved fits of Gautier and Ginsbourger (2026) (its package build); CV : fitted with CRAN SLGP 2.0.0; LGP: our model. Bold: the lowest value in each column except the NLL columns.
| model | NLL | CRPS | RMSE | NLL per station | NLL vs SLGP | |||
|---|---|---|---|---|---|---|---|---|
| Bern | Grimsel | Meiringen | paper | CV | ||||
| SLGP, paper's , MAP | 3.4000 | 4.251 | 7.39 | 3.371 | 3.361 | 3.469 | — | |
| SLGP, paper's , NUTS | 3.4007 | 4.251 | 7.39 | 3.371 | 3.361 | 3.470 | ||
| SLGP, CV , MAP | 3.3838 | 4.216 | 7.34 | 3.366 | 3.355 | 3.431 | — | |
| SLGP, CV , NUTS | 3.3841 | 4.217 | 7.34 | 3.366 | 3.356 | 3.431 | ||
| LGP, stationary (5 seeds) | 3.3812 (0.0001) | 4.200 | 7.32 | 3.360 | 3.347 | 3.436 | ||
| LGP, full, early stopping (15 runs) | 3.3949 (0.0154) | 4.241 | 7.38 | 3.361 | 3.390 | 3.433 | ||
| mixture of the 15 runs | 3.3826 | 4.219 | 7.35 | 3.360 | 3.359 | 3.429 | ||
| LGP, full, no early stopping | 3.4128 | 4.363 | 7.55 | 3.357 | 3.464 | 3.417 | ||
nats below the paper's SLGP and level with SLGP at cross-validated length scales (), with ARD length scales learned by Fisher-identity gradients instead of a grid search and its five seeds within nats of each other. Refitted by NUTS with CRAN SLGP 2.0.0 and the package's settings (2 chains of 500 warm-up and 500 retained iterations) at either set of length scales, SLGP shows no divergent transitions or maximal trees, E-BFMI of at least 0.89, rank-normalised of at most 1.035 for every coefficient (bulk ESS at least 268) and of at most 1.007 for the per-draw mean test log-density (ESS at least 595). In these refits the two chains' test NLLs differ by at most 0.0004 nats, and the NUTS predictive differs from the MAP of the same build by at most 0.0003. The paper- rows of Table 5 are instead the saved fits of Gautier and Ginsbourger (2026) from its own package build, in which NUTS is nats behind the MAP. Neither difference between NUTS and MAP is resolved. The full model gains nothing here. Its single runs are nats behind SLGP at cross-validated length scales, and they depend on which three of the only 26 distinct inputs are held out for stopping (the split holding out Säntis, at 2,501 m one of the three training stations above 1,900 m, gives 3.386–3.428). Their mixture closes the gap (). Without early stopping the encoder overfits the 26 inputs (test NLL 3.385 after 100 steps, 3.413 after 1,000). It is then the best model at the two stations below 600 m and the worst at Grimsel (1,980 m). The median-gap scaling of the full model's preprocessing (Appendix F) shrinks the scale of longitude here to 0–0.03, against 0.07–0.12 for latitude and 0.29–0.32 for altitude, because the median temperature on either side of the median longitude is equal or nearly so. Computationally this is SLGP's most favourable setting. With 26 distinct inputs the normaliser is evaluated once per station, and a MAP fit takes 1–2 s and NUTS 3–12 min. Our model takes 10–13 min per fit on the GPU, of which 4–6 min are compilation and chain burn-in, followed by at most 1,000 optimisation steps. Selecting the length scales costs SLGP about 33 CPU-minutes for the paper's grid (1,100 MAP fits) and 114 CPU-minutes for the station cross-validation.
Bimodal sinusoid. The problem of Section 4 has a known conditional density, so each fit can be compared with the truth, which is the criterion of the consistency study of Gautier and Ginsbourger (2026). We draw it anew for four seeds of the generating process, each with its own training and test rows (seed 42 is the sample split by Table 1, and its split is that table's seed-0 split; the other three samples are new, so the LGP rows here differ from the means of Table 1). On each we refit our stationary model with the recipe of Section 4. SLGP uses the Gaussian kernel, as our model does, the exact basis scheme (so that the model that is fitted is the model that is scored) and the response interval . This interval contains the data with probability , and no test point falls outside it. Its search covers 252 grid points (response length scales 0.03–0.3, covariate length scales 0.025–0.15, from 1 to times the heuristic) on the training rows of and 2,000, at 1–2 and 9–12 hours of two-core fits per training set, and reuses the selection. Two selections on the boundary were repeated on extended grids, on which they are interior. These are seed 45 at on response length scales up to 0.75 and up to times the heuristic, and seed 44 at at 3 and 10 times its selected on the neighbourhood of its selected length scales. Besides NLL, CRPS and PIT, Table 6 gives the excess NLL over the true density on the same test rows, all of which lie inside the supports of both fitted models. It is a finite-sample difference and not an estimate of a population Kullback–Leibler divergence from the Gaussian-mixture truth, which is infinite for both models, since both have bounded support (Appendix E for ours). The table also gives the binned squared Hellinger distance to the true density, over the bins of a shared grid of about 1,000 response values plus the two tails (the convention ), averaged over the test inputs. Binning can only lower it, and on every second or fourth grid point it changes by at most .
Table 6: Bimodal sinusoid, four seeds of 2,000 test rows each: mean over the seeds of the NLL, the excess NLL over the true density on the same rows, the binned squared Hellinger distance to it, CRPS and PIT-KS; : paired NLL difference to our model, mean standard deviation over the seeds (positive: worse than ours); time per fit, SLGP without its search; seeds: the number of seeds averaged. Every SLGP fit uses the exact basis scheme; tuned: length scales and selected on held-out training rows, in a search space designed after test-scored probe fits on seed 42 (see Protocol), so the comparison is exploratory. *Seeds 42–44; on seed 45 NUTS did not converge (see text).
| model | NLL | excess | CRPS | PIT-KS | ΔNLL vs LGP | time | seeds | |
|---|---|---|---|---|---|---|---|---|
| N = 400 | ||||||||
| LGP, stationary | -0.020 | 0.233 | 0.0621 | 0.3608 | 0.045 | — | 6 min | 4 |
| SLGP, package defaults, MAP | +0.619 | 0.873 | 0.2903 | 0.3771 | 0.087 | +0.640 ± 0.081 | 8 s | 4 |
| SLGP, tuned, MAP | -0.037 | 0.217 | 0.0485 | 0.3658 | 0.039 | -0.016 ± 0.040 | 40 s | 4 |
| SLGP, tuned, Laplace | +0.632 | 0.886 | 0.3187 | 0.6367 | 0.144 | +0.652 ± 0.195 | 40 s | 4 |
| SLGP, tuned, NUTS* | -0.021 | 0.232 | 0.0524 | 0.3712 | 0.043 | -0.008 ± 0.041 | 6.9 h | 3 |
| N = 2,000 | ||||||||
| LGP, stationary | -0.185 | 0.069 | 0.0183 | 0.3442 | 0.027 | — | 8 min | 4 |
| SLGP, package defaults, MAP | +0.340 | 0.593 | 0.1969 | 0.3575 | 0.066 | +0.525 ± 0.115 | 50 s | 4 |
| SLGP, tuned, MAP | -0.177 | 0.076 | 0.0190 | 0.3457 | 0.021 | +0.008 ± 0.009 | 4 min | 4 |
| SLGP, tuned, Laplace | +0.352 | 0.606 | 0.2376 | 0.5595 | 0.104 | +0.537 ± 0.302 | 4 min | 4 |
| N = 10,000 | ||||||||
| LGP, stationary | -0.226 | 0.027 | 0.0065 | 0.3388 | 0.021 | — | 11 min | 4 |
| SLGP, package defaults, MAP | +0.132 | 0.386 | 0.1260 | 0.3489 | 0.055 | +0.359 ± 0.110 | 5 min | 4 |
| SLGP, tuned, MAP | -0.218 | 0.035 | 0.0091 | 0.3391 | 0.022 | +0.008 ± 0.001 | 30 min | 4 |
| SLGP, tuned, Laplace | +0.075 | 0.329 | 0.1378 | 0.4683 | 0.072 | +0.301 ± 0.194 | 28 min | 4 |
With the package defaults SLGP scores far below the true density at every size (excess NLL 0.87, 0.59 and 0.39 against 0.23, 0.07 and 0.03 for our model). The default prior regularises these sharp densities too strongly, and the searches select at 100 to times the heuristic. Tuned, SLGP by MAP is level with our model at ( nats, and closer to the truth in , 0.049 against 0.062) and behind it at 2,000 and 10,000 ( and nats; 0.019 and 0.009 against 0.018 and 0.0065). Refining SLGP's response grid from 1,401 to 2,801 and 5,601 points changes the per-object log-density of any fit by at most and its test NLL by at most . NUTS with the package's settings (2 chains of 500 warm-up and 500 retained iterations) took 5–8 h per fit at . On three seeds it shows no divergent transitions, rank-normalised of at most 1.023 for every coefficient (bulk ESS at least 299) and of at most 1.004 for the per-draw mean test log-density, although in two of them nearly every tree reaches the maximal depth. There its predictive equals the MAP's within the resolution of three seeds (paired difference nats). On the fourth seed, with the weakest selected prior (), it did not converge in these iterations (coefficient up to 1.14, bulk ESS 12), although its predictive is stable across the two chains ( 1.007; against for the MAP). We exclude it from the table. The package's Laplace approximation at the same hyperparameters is far worse (, and nats against our model), although it is implemented correctly. In all twelve Laplace fits the package's Hessian at the mode agrees with an independent analytic Hessian of the negative log posterior to (itself confirmed by central differences of the gradient), and its draws, whitened by it, are standard normal. The smallest eigenvalue of that Hessian equals the prior precision in every fit. Along directions that the data do not constrain at the mode, the Gaussian therefore keeps the prior variance, which the selected (65 to ) makes large, whereas the likelihood does constrain those directions away from the mode. The poor score comes from the Gaussian approximation at this weak prior and not from an implementation error. Our model learns its three hyperparameters by Fisher-identity gradients in 4–13 min per fit on the GPU, while SLGP needs 40 s to 30 min per MAP fit after a search of 1–12 hours of two-core fits per training set.
Scaling on HAPPY. The third comparison uses the HAPPY A→B benchmark of Table 2 (ten inputs) on nested training subsets of sample A, with 1,000, 5,000 and 10,000 galaxies for both methods and 25,000 and all 74,950 for our model. Both are scored on the same 10,000 random galaxies of sample B (SLGP's exact scorer evaluates a 1,401-point density for every distinct test input). SLGP uses the exact basis scheme (the package's grid schemes cover every input and do not extend to ten), 500 basis functions and the response interval [0, 1.62], which is 1.1 times the largest redshift of sample A. It is run with the package defaults (MAP and Laplace) and tuned on 1,000 training galaxies (Matérn-3/2 like ours, one length scale shared by the ten inputs). The search that produced the reported fits covered 64 grid points in 26 min of two-core fits on the first system. A repeat on the second system over a wider 96-point grid (response length scales up to 0.32, up to 1,000 times the heuristic) took 48 min and selected the same values, all interior (response length scale 0.08). The selection is reused at 5,000 and 10,000, so that part of the curve is conditional on it. Our stationary model uses ARD Matérn-3/2 kernels and no validation set; the full model is the HAPPY configuration of Table 3 with early stopping on 5% of the training rows. Every fit is a single run.

Figure 3: HAPPY A→B: test NLL on 10,000 galaxies of sample B against the number of training galaxies (left) and against the fit time (right; along each line n increases; our model on one A100 including compilation, SLGP on two CPU cores, excluding the 26-minute search that selected its hyperparameters). “Tuned” SLGP uses the length scales and selected on 1,000 galaxies.
Our model has the lower NLL at every size (Figure 3). At 10,000 galaxies the full model reaches -2.109 and the stationary one -2.058, against -1.821 for tuned SLGP by MAP, -1.839 by Laplace and -1.32 with the package defaults. These are single runs, so their own variability is not measured. The gap of 0.2–0.3 nats is large compared with the seed-to-seed variation of the full-data fits of Table 2, although that variation does not quantify this curve's. SLGP improves by 0.12 nats from 1,000 to 10,000 galaxies and our full model by 0.19, and it continues to -2.161 when trained on all of sample A (-2.1557 on all of sample B, matching the four-seed mean of Table 2). The PIT statistic is 0.03–0.05 for tuned SLGP by MAP and 0.009–0.037 for the full model. Doubling SLGP's basis to 1,000 functions at the same, not retuned, hyperparameters gains 0.03–0.04 nats, so the random-feature representation of an eleven-dimensional density may be one limit. The representation, ARD against shared length scales, the tuning budget and the inference all differ between the two systems, and these runs do not separate their effects. The costs scale differently. SLGP's exact scheme evaluates the basis at 101 quadrature nodes for every training input, so a MAP fit takes 0.5, 3 and 7 min at 1,000, 5,000 and 10,000 galaxies with 2.5, 12 and 22 GB of memory (24 min and 44 GB with 1,000 basis functions), whereas ours takes 10–19 min per fit, nearly independent of the training size up to 75,000 galaxies, with 4–5 GB of GPU and about 4 GB of host memory at both 10,000 and 75,000. NUTS for tuned SLGP at 1,000 galaxies did not finish within the 2.5 h limit (900 of 1,000 iterations). At 1,000 galaxies, re-scoring the tuned MAP on 2,801 and 5,601 response points changes its test NLL by less than and the per-object log-density by at most , and the package's Laplace Hessian agrees with an independent analytic one to , with its draws, whitened by it, standard normal.
Summary. On SLGP's own application our stationary model is level with SLGP at cross-validated length scales and ahead of the published configuration by (a difference the block bootstrap does not resolve decisively), and it learns its length scales by gradient instead of on a grid. On the sinusoid, an exploratory comparison whose search space was informed by test-scored probe fits, SLGP needs its variance added to the search to compete. Tuned, it is level with our model at 400 rows and 0.008 nats behind at 2,000 and 10,000, whereas the package's Laplace approximation, though implemented correctly, fails at these weak priors. On ten-dimensional photometric data our full model is 0.2–0.3 nats ahead at every training size, and SLGP's exact scheme grows to 22–44 GB at 10,000 galaxies. These results hold for the stated budgets and implementations (R and Stan on two CPU cores against JAX on one GPU). They do not establish limits of the SLGP model itself.