Manuscript Offprint
arXiv:2610.13656Scalable Sparse Autoregressive Variational Inference for Non-Gaussian Spatial Fields
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Paul F.V. Wiemann and Matthias Katzfuss
Department of Statistics, The Ohio State University, Columbus OH 43210, USA
Department of Statistics, University of Wisconsin–Madison, Madison WI 53706, USA
Latent field models are essential for spatial statistics, but the posterior distribution of the latent field, even with a Gaussian process (GP) prior, is analytically intractable whenever the likelihood is non-Gaussian. Existing approximations are either too slow or too restrictive for large non-Gaussian datasets. We present a scalable variational inference framework that mirrors the sparse nearest-neighbor autoregressive structure of the prior in the variational family, uses normalizing-flow conditionals for expressiveness, and amortizes all variational parameters via a single shared neural conditioner. Doubly stochastic optimization with reduced ancestor sets achieves polylogarithmic complexity per iteration.
1 Introduction
Latent probabilistic fields appear throughout spatial statistics, for example as generalized GPs for classification and count data (Diggle et al., 1998; Williams and Barber, 1998), in log-Gaussian Cox processes for spatial point patterns (Diggle et al., 2013), modeling censored spatial observations (Schelin and Sjöstedt-de Luna, 2014), and in autoregressive GP-based models for non-Gaussian generative learning (Katzfuss and Schäfer, 2024; Wiemann and Katzfuss, 2023). In all of these settings, the posterior of the latent field given data is analytically intractable, and scalable approximate inference is essential.
Standard approximations all have significant drawbacks at scale. MCMC is exact in the limit but prohibitively slow for large n. Laplace approximations impose a Gaussian posterior, severely underestimating non-Gaussian uncertainty (Nickisch and Rasmussen, 2008). Mean-field VI (Blei et al., 2017) ignores posterior dependence. The sparse-inverse-Cholesky (SIC) Gaussian variational family of Cao et al. (2023) captures structured dependence but remains limited to Gaussian posteriors.
We address all of these limitations simultaneously. Our framework (i) inherits the linear-cost structure of the Vecchia-type approximation, (ii) uses normalizing flows as conditionals for non-Gaussian expressiveness, and (iii) can amortize parameters via a shared neural conditioner, together enabling inference at scale.
Short paper for the Joint Meeting SIS-FENStatS 2026, Rome, June 22-25, 2026.
2.1 NN-AR prior
Let denote a latent function evaluated at spatial locations arranged in maximin order (Guinness, 2018). The prior factorizes as
where the approximation replaces conditioning on all previous entries by conditioning only on the nearest-neighbor subset , with defined as
with and sparsity parameter . Since is constant in , this Vecchia or nearest-neighbor autoregressive (NN-AR) structure reduces the prior evaluation and simulation to and, in the special case of a GP prior, each conditional in (1) is Gaussian, yielding near-exact accuracy for elliptic covariance kernels (Schäfer et al., 2021).
2.2 NN-AR variational family and scalable ELBO
We mirror the NN-AR prior structure in the variational family,
and optimize variational parameters by maximizing the evidence lower bound . The ELBO decomposes as a sum over , where each term depends on only through the ancestor set of node in the NN-AR directed acyclic graph (Katzfuss and Guinness, 2021), so that where collects the likelihood, prior, and variational density contributions of index .
Reduced ancestor sets. Naively sampling costs per step. However, reduced ancestor sets have size and suffice for accurate gradient estimation (Cao et al., 2023). Moreover, the ELBO decomposition allows for using a mini-batch of size and Monte Carlo samples in a doubly stochastic gradient estimator
with gradients computed via automatic differentiation and the reparametrization trick (Kingma and Welling, 2014). The resulting complexity per iteration is . As shown in Figure 2, accuracy improves monotonically with . Figure 1 illustrates maximin ordering, conditioning sets, and reduced ancestor sets.
i = 16

i = 64
i = 256
Figure 1: Maximin ordering of points. For selected indices (black dot), we show the conditioning set (blue), full ancestor set (green), and reduced ancestor set (orange). Clearly for large , .

Figure 2: KL divergence to the exact posterior distribution vs. for noisy GP regression ( ), using full and reduced ancestor sets. Accuracy improves monotonically with .
3 Expressive Amortized Variational Family
3.1 Normalizing flow conditionals
The framework in Section 2.2 is general. Any sampleable and differentiable conditional can be used. We parameterize each conditional via a sparse autoregressive normalizing flow (ARNF),
where is a strictly monotone transformation function (e.g., deep sigmoidal flow (Huang et al., 2018)) and is a (neural) conditioner mapping the context to flow parameters . Under regularity conditions, ARNFs can be universal density approximators (Bogachev et al., 2005). As a consequence, for sufficiently large , the variational family can approximate any posterior arbitrarily well. The family contains mean-field VI ( , affine) and the Gaussian SIC-VI of Cao et al. (2023) ( , with where depends linearly on and is constant w.r.t. ) as special cases.
3.2 Amortized conditioner
Without amortization, each location has its own conditioner , giving variational parameters in total. We propose to share a single conditioner across all locations, augmented with location-specific context (e.g., coordinates, neighbor distances, local observations), so .
We use an encoder-pooling-decoder architecture, that is, an encoder maps each neighbor to a feature vector; an attention-pooling layer aggregates features over ; a decoder produces . All variational parameters are updated in every mini-batch step. This reduces the total parameter count from to , enabling truly scalable inference.
4 Results
GP classification. We applied the framework to binary data with likelihood and a GP prior. GP classification posteriors are well-known to be skewed (Nickisch and Rasmussen, 2008). We compared a Gaussian SIC variational family against our family using two-piece-normal conditional distributions, which adds a per-location skewness parameter. As shown in Figure 3, our approach captures posterior skewness and achieves a higher ELBO.
Arctic Ocean ice coverage. We applied the amortized framework to binary Arctic Ocean ice-coverage data from NOAA's Interactive Multisensor Snow and Ice Mapping System, using a Matérn-1.5 GP prior with probit likelihood. Our amortized architecture with affine flow


Figure 3: GP binary classification on the unit interval. Our two-piece-normal NN-AR family (middle) captures posterior skewness and achieves higher a ELBO than the Gaussian baseline (left). The right panel compares the estimated densities for .
conditionals (as a first demonstration of amortization) requires only 1,398 variational parameters regardless of n.
For a subregion with randomly selected observations, the amortized approach visually matched the accuracy of a non-amortized version while using only 1,398 vs. parameters. Crucially, for a larger subset observed on a different date with , the amortized approach produced accurate posterior maps of the latent field with only 1,398 parameters, while the non-amortized version (approx. parameters) did not converge reliably in our initial runs. Figure 4 displays posterior summaries.
5 Conclusion
We have presented a scalable, expressive variational inference framework for non-Gaussian posterior distributions of latent spatial fields. By combining sparse NN-AR structure, normalizing-flow conditionals, and neural amortization, the framework achieves polylogarithmic per-iteration complexity while reducing variational parameters to with amortized inference. Preliminary results on GP classification and Arctic ice-coverage data demonstrate expressiveness and scalability of the approach.
References
Blei, D. M., Kucukelbir, A., and McAuliffe, J. D. (2017). Variational inference: A review for statisticians. Journal of the American Statistical Association, 112(518):859–877.
Bogachev, V. I., Kolesnikov, A. V., and Medvedev, K. V. (2005). Triangular transformations of measures. Sbornik: Mathematics, 196(3):309.
Cao, J., Kang, M., Jimenez, F., Sang, H., Schäfer, F., and Katzfuss, M. (2023). Variational sparse inverse Cholesky approximation for latent Gaussian processes via double Kullback-Leibler minimization. In International Conference on Machine Learning (ICML), pages 3559–3576.

Figure 4: Left to right: Observed data, posterior mean (non-amortized and amortized), posterior standard deviation (non-amortized and amortized), posterior mean (larger dataset, amortized).
Diggle, P., Tawn, J., and Moyeed, R. (1998). Model-based geostatistics. Journal of the Royal Statistical Society, Series C, 47(3):299–350.
Diggle, P. J., Moraga, P., Rowlingson, B., and Taylor, B. M. (2013). Spatial and spatio-temporal log-Gaussian Cox processes: Extending the geostatistical paradigm. Statistical Science, 28(4):542–563.
Guinness, J. (2018). Permutation and grouping methods for sharpening Gaussian process approximations. Technometrics, 60(4):415–429.
Huang, C.-W., Krueger, D., Lacoste, A., and Courville, A. (2018). Neural autoregressive flows. In International Conference on Machine Learning (ICML), pages 2078–2087.
Katzfuss, M. and Guinness, J. (2021). A general framework for Vecchia approximations of Gaussian processes. Statistical Science, 36(1):124–141.
Katzfuss, M. and Schäfer, F. (2024). Scalable Bayesian transport maps for high-dimensional non-Gaussian spatial fields. Journal of the American Statistical Association, 119(546):1409–1423.
Kingma, D. P. and Welling, M. (2014). Auto-encoding variational Bayes. In International Conference on Learning Representations.
Nickisch, H. and Rasmussen, C. E. (2008). Approximations for binary Gaussian process classification. Journal of Machine Learning Research, 9(67):2035–2078.
Schäfer, F., Katzfuss, M., and Owhadi, H. (2021). Sparse Cholesky factorization by Kullback-Leibler minimization. SIAM Journal on Scientific Computing, 43(3):A2019–A2046.
Schelin, L. and Sjöstedt-de Luna, S. (2014). Spatial prediction in the presence of left-censoring. Computational Statistics & Data Analysis, 74:125–141.
Wiemann, P. F. V. and Katzfuss, M. (2023). Bayesian nonparametric generative modeling of large multivariate non-Gaussian spatial fields. Journal of Agricultural, Biological and Environmental Statistics, 28(4):597–617.
Williams, C. and Barber, D. (1998). Bayesian classification with Gaussian processes. IEEE Transactions on Pattern Analysis and Machine Intelligence, 20(12):1342–1351.