betaFeedback

WorksMathematics

Feature Space Adaptation for Effortless Gaussian Process Flows

Abstract

Outside the linear-Gaussian regime, conditional sampling from Gaussian processes (GPs) is challenging. Recent methods such as FlowGP (Moss et al., (2026)) can condition on arbitrary non-linear and non-Gaussian statements, but at considerable cost: an expensive iterative and high-dimensional diffusion that requires hand-specified kernel hyperparameters. In this paper, we alleviate two significant drawbacks of FlowGP by (1) introducing kernel approximations that enable scaling to high-resolution domains and (2) proposing a way to obtain the marginal likelihood by measuring the work needed to steer the diffusion towards conditioning statements. We enable, for the first time, hyperparameter optimisation within FlowGP and demonstrate our approach on probabilistic downscaling from areal summary statistics, PDE solution inference on irregular domains, and recovery of sea level anomaly fields from non-Gaussian satellite observations.

INTRODUCTION

Gaussian processes (GPs) provide flexible probabilistic models over unknown functions, with calibrated uncertainty and a natural means of incorporating prior knowledge (Rasmussen and Williams (2006)). Conditioning on data is analytically tractable for linear observations with Gaussian noise. However, scientific information often takes more complex forms, including non-linear differential equations, integral measurements, inequalities, and boundary constraints. Existing solutions typically rely on posterior approximations ([5, 16] (Rue and Martino 2007)), or specialised kernels and inference schemes derived for particular classes of constraints ([15] (Long et al. 2022; Steinert et al. 2025)). Recently, Moss et al. (2026) introduced FlowGP, a general framework for conditioning GPs on non-linear and non-Gaussian statements, without the need for bespoke inference schemes.

Despite their promise, however, GP flows have several important limitations. First, the flow operates over a fixed discretisation of the function’s domain, and thus the computational requirements grow with the number of evaluation points NN, including an initial O(N3)O(N^3) matrix factorisation and an NN-dimensional ODE solve. This becomes restrictive when the number of evaluation points is large, such as for fine spatial or spatio-temporal grids. Large computational cost further makes repeated computation across, and thus optimisation of, kernel hyperparameters prohibitively expensive. Finally, known structure such as boundary conditions must be represented via conditioning statements, which makes the sampling diffusion challenging to solve ((Moss et al., 2026)).

In this work, we introduce FeatureFlow, which extends GP flows to operate on the weights of a finite-feature GP approximation instead of function values. The resulting flow has dimension R≪NR \ll N, where RR denotes the (tunable) number of features, and decouples the cost of the flow from the resolution at which its function samples are evaluated. This makes kernel hyperparameter optimisation practical and the feature representation also provides access to analytic derivatives which may be further exploited. We evaluate the resulting method through wall-time scaling and numerical accuracy, across two important problem classes: probabilistic downscaling ((Perezoghin et al., 2023; Schmidt et al., 2025)) and inference of PDE solutions on irregular domains, as shown in Fig. 1 ((Khara et al., 2022; Zhao et al., 2025)). We also demonstrate the real-world utility of scalable flow-based inference by applying FeatureFlow to a well-studied, challenging non-linear inverse problem in oceanography ([10] (Passaro and Juhl 2023)).

Figure 1. Gaussian process samples, conditioned on non-conjugate information, i.e., satisfying a non-linear PDE. (a) The PDE domain, equipped with a homogeneous Dirichlet boundary condition, and noisy Gaussian observations. Samples drawn from a GP flow (b, c) and FeatureFlow, first using deliberately misspecified kernel hyperparameters (b, f), and secondly using the adaptive scheme (c, g). FeatureFlow obtains higher-quality samples, as measured by condition residual (d, h), and with more than an order of magnitude speed-up (e).

Related Work

Scalable GP representations. The computational cost of exact Gaussian process inference has motivated a large literature on scalable approximations, including inducing-point methods (Titsias, 2009), structured kernel approximations (Saatci, 2011), and finite-dimensional feature representations. Examples of finite-feature representations include Fourier features adapted to bounded domains Hensman et al., [17], Laplacian eigenfunctions that incorporate domain geometry and boundary conditions (Solin and Kok, 2019), and spherical harmonics for functions defined on spherical domains (Dutordoir et al., 2020). Beyond scalability, each basis imposes constraints on encoded functions—many of which are common in scientific problems.

Non-conjugate GP inference. Outside of linear-Gaussian conditioning, exact GP posterior inference is generally intractable and is commonly addressed using general approximations such as the Laplace approximation (Rue and Martino, 2007), expectation propagation Cseke and Heskes, [5], and variational inference Hensman et al., [17]. A complementary line of work develops specialised inference procedures or kernel constructions for particular forms of information, including inequality and shape constraints (Riihimäki and Vehtari, 2010; López-Lopera et al., 2018), differential equations and physical constraints [15] (Long et al. 2022), and non-Gaussian likelihoods (Nickisch et al., 2018). More recently, flow-based approaches have provided a general mechanism for conditioning GPs on arbitrary differentiable, non-linear and non-Gaussian information (Moss et al., 2026; Sharrock et al., 2026).

Hyperparameter optimisation. Kernel hyperparameters in standard GP regression are commonly learned by maximising the marginal likelihood (Rasmussen and Williams, 2006), and analogous approximate objectives exist for non-conjugate likelihoods (Li et al., 2023). When conditioning information is specified through general constraints rather than a conventional pointwise likelihood, standard marginal-likelihood hyperparameter learning is no longer directly applicable, motivating constraint-specific likelihoods or inference procedures (López-Lopera et al., 2018). While versatile, the GP flows introduced by Moss et al. (2026) are computationally expensive and afford no practical way to optimise kernel hyperparameters.

GAUSSIAN PROCESSES AND SAMPLING

Let f:X→Rf:\mathcal{X}\to\mathbb{R} be a random function over X⊂RD\mathcal{X}\subset\mathbb{R}^{D}. Assume ff has a GP prior, written f∼GP(μ,kθ)f\sim\mathcal{GP}(\mu,k_{\theta}), specified by a mean function μ:X→R\mu:\mathcal{X}\to\mathbb{R} and a positive semidefinite kernel kθ:X×X→Rk_\theta: \mathcal{X} \times\mathcal{X} \to\mathbb{R} with hyperparameters θ\theta. By definition, for every finite collection of inputs X=(x1,…,xN)X = (x_1, \ldots, x_N), the vector of GP function evaluations f:=[f(x1),…,f(xN)]⊤\mathbf{f} := [f(x_1), \ldots, f(x_N)]^\top is multivariate Gaussian distributed f∼N(m,K(θ))\mathbf{f} \sim\mathcal{N}(\mathbf{m}, \mathbf{K}(\theta)), with elements mi=μ(xi)m_i = \mu(x_i) and Kij(θ)=kθ(xi,xj)K_{ij}(\theta) = k_\theta(x_i, x_j) for i,j∈{1,…,N}i,j \in\{1,\ldots,N\}. Commonly, we sample from f≡f(X)\mathbf{f} \equiv f(X) by the mean-scale transformation f=m+Lz\mathbf{f} = \mathbf{m} + \mathbf{L}\mathbf{z}, where LL⊤=K\mathbf{L}\mathbf{L}^{\top} = \mathbf{K} and white noise z∼N(0,IN)\mathbf{z} \sim\mathcal{N}(\mathbf{0}, \mathbf{I}_N). In general, constructing L\mathbf{L} costs O(N3)O(N^3) time and O(N2)O(N^2) memory, and the subsequent sample costs O(N2)O(N^2).

When the covariance function is stationary, there are well-studied solutions to scalable sampling of GPs. Through application of Bochner’s theorem, a number of finite-feature kernel approximations have been proposed, including random Fourier features (Rahimi and Recht (2007)) and Laplacian eigenfunctions (Solin and Kok (2019; Solin and Särkkä 2020)). In each case, the full kernel matrix is replaced with a low-rank approximation, defined by the number of features used RR, and samples are drawn by projecting standard normal samples in the coefficient space back into the function space. These methods result in a sampling time complexity of O(NR)O(NR), with RR serving as a tunable parameter that determines approximation quality.

When kθk_\theta is stationary, we approximate the kernel using RR basis functions {ψθr}r=1R\{\psi_\theta^r\}_{r=1}^R with feature vector ψθ(x)=[ψθ1(x),…,ψθR(x)]⊤\boldsymbol{\psi}_\theta(x) = [\psi_\theta^1(x), \ldots, \psi_\theta^R(x)]^\top and matrix Ψθ=ψθ(X)∈RN×R\mathbf{\Psi}_\theta= \boldsymbol{\psi}_\theta(X) \in\mathbb{R}^{N \times R}. For a suitable choice of basis representation (cf. App. § 6 for examples), the kernel approximation takes the form kθ(x,x′)≈ψθ(x)⊤ψθ(x′)k_\theta(x,x') \approx\boldsymbol{\psi}_\theta(x)^\top\boldsymbol{\psi}_\theta(x'), so that K(θ)≈K~(θ)=ΨθΨθ⊤\mathbf{K}(\theta) \approx\widetilde{\mathbf{K}}(\theta) = \mathbf{\Psi}_\theta\mathbf{\Psi}_\theta^\top. Equivalently, the approximate GP may be represented directly in weight space using the decoder function gθg_\theta, namely,

gθ(ξ):=f~θ=μ+Ψθ⊤ξ,ξ∼N(0,IR).(1)g_\theta(\boldsymbol{\xi}) := \widetilde{\mathbf{f}}_\theta= \boldsymbol{\mu} + \mathbf{\Psi}_\theta^\top\boldsymbol{\xi}, \qquad\boldsymbol{\xi} \sim\mathcal{N}(\mathbf{0}, \mathbf{I}_R). \tag*{(1)}

A functional sample can be evaluated at arbitrary locations, incurring only an O(NR)O(NR) cost (Rahimi and Recht (2007); Solin and Kok (2019); Solin and Särkkä (2020)). Here, ξ∈RR\boldsymbol{\xi} \in\mathbb{R}^R with R≪NR \ll N, and (1) provides the primary mechanism by which we reduce computation in the developments to come. Using a finite-feature representation is useful beyond scalability; by intelligently selecting a basis in which to approximate the kernel, problem-specific structure may be enforced exactly.

When kθk_\theta is non-stationary, scalable sampling is more difficult as the basis decomposition in (1) does not hold. This can arise, for instance, when kθk_\theta corresponds to the kernel of a conditioned GP. Wilson et al. (2020) describe a decoupled basis that provides exact pathwise corrections to approximate prior samples, thus approximating the GP posterior. In § 3.3, we will adapt this framework to pre-condition linear-Gaussian information into the GP flows.

Non-linear and Non-Gaussian Conditioning

Finite-feature representations do not resolve the difficulties of non-conjugacy. Recent flow-based methods, introduced for GPs by Moss et al. (2026) and since extended to arbitrary stochastic processes by Sharrock et al. (2026), provide a general framework for this task, by reframing conditional sampling as a transport problem. Consider the interpolation

ft=α(t)f0+1−α(t)2z,z∼N(0,IN),(2)\mathbf{f}_t = \alpha(t)\mathbf{f}_0 + \sqrt{1-\alpha(t)^2}\mathbf{z}, \qquad\mathbf{z} \sim\mathcal{N}(\mathbf{0}, \mathbf{I}_N), \tag*{(2)}

where α(t)=exp⁡(−12∫0tβ(s)ds)\alpha(t) = \exp\left(-\frac{1}{2}\int_0^t \beta(s)\mathrm{d}s\right) for a typical noise schedule β(t)\beta(t). As tt increases, this progressively corrupts the sample f0\mathbf{f}_0 towards Gaussian noise. Since f0∼N(m,K(θ))\mathbf{f}_0 \sim\mathcal{N}(\mathbf{m}, \mathbf{K}(\theta)), the marginals of this interpolation are given in closed form,

pt(ft)=N(α(t)m,α(t)2K(θ)+(1−α(t)2)IN),(3)p_t(\mathbf{f}_t) = \mathcal{N}\left(\alpha(t)\mathbf{m}, \alpha(t)^2\mathbf{K}(\theta) + \left(1-\alpha(t)^2\right)\mathbf{I}_N\right), \tag*{(3)}

defining a path, continuous in tt, from the GP distribution to a standard Gaussian reference. Equivalently, by transporting samples along the path given by the reverse-time stochastic differential equation (SDE)

dft=−β(t)[12ft+∇ftlog⁡pt(ft)]dt+β(t)dW‾t,(4)\mathrm{d}\mathbf{f}_t = -\beta(t)\left[\frac{1}{2}\mathbf{f}_t + \nabla_{\mathbf{f}_t}\log p_t(\mathbf{f}_t)\right]\mathrm{d}t + \sqrt{\beta(t)}\mathrm{d}\overline{\mathbf{W}}_t, \tag*{(4)}

where t:1→0t : 1 \to0 and W‾t\overline{\mathbf{W}}_t is a reverse-time Wiener process (Anderson [1]), we preserve the time-tt marginals in (3). Because ptp_t is Gaussian, the unconditional score ∇ftlog⁡pt(ft)\nabla_{\mathbf{f}_t}\log p_t(\mathbf{f}_t) is available analytically. Conditioning can now be incorporated by augmenting Eq. (4) with a likelihood-dependent guidance term; for information C\mathcal{C} and by Bayes’ rule

∇ftlog⁡pt(ft∣C)=∇ftlog⁡pt(ft)⏟closed-form+∇ftlog⁡pt(C∣ft)⏟conditional guidance.\nabla_{\mathbf{f}_t}\log p_t(\mathbf{f}_t \mid\mathcal{C}) = \underbrace{\nabla_{\mathbf{f}_t}\log p_t(\mathbf{f}_t)}_{\text{closed-form}} + \underbrace{\nabla_{\mathbf{f}_t}\log p_t(\mathcal{C}\mid\mathbf{f}_t)}_{\text{conditional guidance}}.

The second term is calculated using samples from p(f0∣ft)p(\mathbf{f}_0 \mid\mathbf{f}_t), available in closed-form, and computing pointwise evaluation of the likelihood p(C∣f0)p(\mathcal{C}\mid\mathbf{f}_0). This allows the sampler to accommodate non-linear and non-Gaussian observations and conditioning statements.

The cubic scaling of GP flows restricts utility, making repeated sampling infeasible for many important large-scale problems, limiting the ability to tune kernel hyperparameters, which, we demonstrate, is crucial for generating high-quality samples. Some problem classes, including sampling PDE solutions, are currently more challenging than necessary, due to the error resulting from finite-difference approximations of derivatives. Introducing a scalable kernel approximation addresses both of these problems directly.

FEATUREFLOW

We now re-derive the generating SDE in (4) in the coefficient space of a finite GP expansion described in (1). This separates the dimension of the sampling dynamics from the resolution of the evaluation grid, making repeated computation possible. In turn, this enables scalable estimation of kernel hyperparameters. Gaussian observations are incorporated exactly through a Matheron-corrected decoder (Wilson et al., 2020), simplifying the path-dynamics of the generative flow. Finally, we introduce methodology to adapt the kernel hyperparameters during integration of (4) using the same conditional information that guides the flow, resulting in a parsimonious framework for joint estimation of the process ff and its hyperparameters.

Conditional Flow in Weight Space

Assume, here, the kernel hyperparameters θ\boldsymbol{\theta} are fixed; their adaptation is introduced in Sec. 3.4. Assuming an appropriate kernel decomposition as in (1), such that f≈gθ(ξ)f \approx g_{\boldsymbol{\theta}}(\boldsymbol{\xi}), we apply the same distributional interpolation as in (2) directly to the weight vector

ξt=α(t)ξ0+1−α(t)2z,ξ0,z∼N(0,IR).(5)\boldsymbol{\xi}_t = \alpha(t)\boldsymbol{\xi}_0 + \sqrt{1-\alpha(t)^2}\boldsymbol{z}, \qquad\boldsymbol{\xi}_0,\boldsymbol{z} \sim\mathcal{N}(0,\mathbf{I}_R). \tag*{(5)}

See Figure 2(a) for a schematic. For fixed θ\boldsymbol{\theta}, define the decoded likelihood by Lθ(ξ):=p(C∣gθ(ξ))L_{\boldsymbol{\theta}}(\boldsymbol{\xi}) := p(C \mid g_{\boldsymbol{\theta}}(\boldsymbol{\xi})). In the weight-space, the target posterior is given by

Figure 2. Schematic of FeatureFlow with fixed hyperparameters. RFF coefficients (a) and the functions they encode (b) for a single sampling trajectory backwards in diffusion time, for a monotone increasing condition.

πθ(ξ0∣C)=N(ξ0;0,IR)Lθ(ξ0)Zθ,(6)\pi_{\boldsymbol{\theta}}(\boldsymbol{\xi}_0 \mid C) = \frac{\mathcal{N}(\boldsymbol{\xi}_0;0,\mathbf{I}_R)L_{\boldsymbol{\theta}}(\boldsymbol{\xi}_0)}{Z_{\boldsymbol{\theta}}}, \tag*{(6)}

with Zθ=Eξ∼N(0,IR)[Lθ(ξ)]Z_{\boldsymbol{\theta}} = \mathbb{E}_{\boldsymbol{\xi}\sim\mathcal{N}(0,\mathbf{I}_R)}[L_{\boldsymbol{\theta}}(\boldsymbol{\xi})]. A posterior draw from f~θ\tilde{f}_{\boldsymbol{\theta}} is obtained by propagating a draw of ξ0\boldsymbol{\xi}_0 from (6) through (1). Thus an exact conditional score and exact integration recover the posterior induced by the chosen finite-feature GP. As both ξ0\boldsymbol{\xi}_0 and the noising variable are standard normal, the distribution of ξt\boldsymbol{\xi}_t in (5) is N(0,IR)\mathcal{N}(0,\mathbf{I}_R) for all tt.

Following (4), the reverse-time SDE that corresponds to (5) is

dξt=−β(t)[12ξt+∇ξtlog⁡pt(ξt)]dt+β(t)dW‾t\mathrm{d}\boldsymbol{\xi}_t = -\beta(t)\left[\frac{1}{2}\boldsymbol{\xi}_t + \nabla_{\boldsymbol{\xi}_t}\log p_t(\boldsymbol{\xi}_t)\right]\mathrm{d}t + \sqrt{\beta(t)}\mathrm{d}\overline{\mathbf{W}}_t

with dimension R≪NR \ll N. Define the smoothed likelihood

L‾t,θ(ξt):=Eξ0∼p(ξ0∣ξt)[Lθ(ξ0)].(7)\overline{L}_{t,\boldsymbol{\theta}}(\boldsymbol{\xi}_t) := \mathbb{E}_{\boldsymbol{\xi}_0\sim p(\boldsymbol{\xi}_0\mid\boldsymbol{\xi}_t)}[L_{\boldsymbol{\theta}}(\boldsymbol{\xi}_0)]. \tag*{(7)}

The conditional score then decomposes as

∇ξtlog⁡pt(ξt∣C)=−ξt+∇ξtlog⁡L‾t,θ(ξt).(8)\nabla_{\boldsymbol{\xi}_t}\log p_t(\boldsymbol{\xi}_t\mid C) = -\boldsymbol{\xi}_t + \nabla_{\boldsymbol{\xi}_t}\log\overline{L}_{t,\boldsymbol{\theta}}(\boldsymbol{\xi}_t). \tag*{(8)}

The unconditional score is therefore trivial in weight space, and all problem-specific computation is confined to the guidance term ht,θ\boldsymbol{h}_{t,\boldsymbol{\theta}} such that we need only solve the reverse SDE

dξt=β(t)[12ξt−ht,θ(ξt)]dt+β(t)dW‾t.\mathrm{d}\boldsymbol{\xi}_t = \beta(t)\left[\frac{1}{2}\boldsymbol{\xi}_t-\boldsymbol{h}_{t,\boldsymbol{\theta}}(\boldsymbol{\xi}_t)\right]\mathrm{d}t+\sqrt{\beta(t)}\mathrm{d}\overline{\mathbf{W}}_t.

Computing Weight-space Guidance

With the score decomposed as in Eq. (8), all that remains is the guidance ht,θ(ξt)=∇ξtlog⁡L‾t,θ(ξt)\boldsymbol{h}_{t,\boldsymbol{\theta}}(\boldsymbol{\xi}_t)=\nabla_{\boldsymbol{\xi}_t}\log\overline{L}_{t,\boldsymbol{\theta}}(\boldsymbol{\xi}_t). This is the gradient of an RR-dimensional integral of the decoded likelihood, which is intractable for nonlinear conditions and, despite the reduced dimension, far too large for quadrature. We therefore estimate it by Monte Carlo, using SS bridge samples. Let

ℓs=log⁡Lθ(ξ0(s)),w‾s=exp⁡(ℓs)∑r=1Sexp⁡(ℓr).\ell_s = \log L_{\boldsymbol{\theta}}(\boldsymbol{\xi}_0^{(s)}), \qquad\overline{w}_s = \frac{\exp(\ell_s)}{\sum_{r=1}^{S}\exp(\ell_r)}.

Differentiating through Eq. (7) gives

h^t,θ(ξt)=α(t)∑s=1Sw‾s∇ξ0(s)log⁡Lθ(ξ0(s)).(9)\widehat{\boldsymbol{h}}_{t,\boldsymbol{\theta}}(\boldsymbol{\xi}_t)=\alpha(t)\sum_{s=1}^{S}\overline{w}_s\nabla_{\boldsymbol{\xi}_0^{(s)}}\log L_{\boldsymbol{\theta}}(\boldsymbol{\xi}_0^{(s)}). \tag*{(9)}

Automatic differentiation provides the likelihood gradient through both the condition and, where needed, the decoder. (9) is the Monte Carlo guidance estimator used in the experiments that follow.

Guidance is evaluated in weight space: for a condition CC, its likelihood is computed after applying the differentiable decoder in Eq. (1), as shown in Figure 2. For some problems, conditions may be naturally expressed in weight-space (e.g. band-limited signals), rendering the decoder step unnecessary and yielding even greater cost reductions. This highly scalable flow over approximate GPs via their weight-space representation is a special case of a tilt given in Sharrock et al. (2026). Function values are formed on the full output grid only when required by a condition or when returning the final sample. A condition may instead be evaluated at a smaller set of collocation points, making its cost independent of the resolution used for downstream tasks.

As the flow is performed in weight space, where the unconditional covariance structure is the identity, the major cost of sampling, O(N3)O(N^3) from the kernel factorisation, is eliminated entirely. Evaluating the decoder on NcN_c locations therefore costs O(RNc)O(RN_c). With linear-Gaussian data, the remaining dense factorisation is only dependent on the number of observed data (cf. App. § 7). The cost of adaptive hyperparameter selection is thus governed by the number of features and the number of observations, rather than by the resolution of the output grid.

Exact Conjugate Updates by Matheron

Suppose the conditioning information splits into a conjugate part D={Xy,y}\mathcal{D} = \{X_y,\mathbf{y}\}, with y=f(Xy)+σyϵ\mathbf{y} = f(X_y) + \sigma_y\boldsymbol{\epsilon}, and a non-conjugate remainder C\mathcal{C}. In this case, the weight-space target factorises as

π(ξ0∣C,D)∝N(ξ0;0,IR)Lθ(ξ0)p(D∣gθ(ξ0)).(10)\pi(\boldsymbol{\xi}_0 \mid\mathcal{C},\mathcal{D}) \propto\mathcal{N}(\boldsymbol{\xi}_0; \mathbf{0}, \mathbf{I}_R) L_\theta(\boldsymbol{\xi}_0)p(\mathcal{D}\mid g_\theta(\boldsymbol{\xi}_0)). \tag*{(10)}

One could incorporate D\mathcal{D} as an additional guidance term, but the resulting drift becomes numerically unstable as t→0t \to0, with spectral radius growing as β(t)λmax⁡/σy2\beta(t)\lambda_{\max}/\sigma_y^2 (App. § 7.§ 2); for small observation noise, explicit solvers then need thousands of steps. Instead, we absorb D\mathcal{D} analytically into the decoder, leaving the flow to account only for C\mathcal{C}. This resembles the whitened form of Moss et al. (2026), which runs the flow relative to the GP posterior given D\mathcal{D}. However, neither version of the existing whitenings suit our setting: in function space it requires an O(N3)O(N^3) factorisation of the posterior covariance, and in weight space it would make the reference non-isotropic.

In FeatureFlow, we instead augment the latent with ∣Xy∣|X_y| observation-noise variables, so that conditioning on D\mathcal{D} is carried entirely by an affine decoder via Matheron’s rule (Wilson et al. (2020)). Here, we turn a prior sample into a posterior sample by adding a correction that depends on how far the sample is from the data. With the finite-feature prior gθ(ξ)=μ+ψθTξg_\theta(\boldsymbol{\xi}) = \mu+ \boldsymbol{\psi}_\theta^{\mathsf{T}}\boldsymbol{\xi}, set Φ=Ψθ\boldsymbol{\Phi} = \boldsymbol{\Psi}_\theta and Φy=ψθ(Xy)T\boldsymbol{\Phi}_y = \boldsymbol{\psi}_\theta(X_y)^{\mathsf{T}} denoting the prior features at the evaluation locations, a sample from the posterior given D\mathcal{D} is

gθ∣y(ξ^)=gθ(ξ)⏟prior sample+ΦΦyTAθ(y−gθ(ξ)(Xy)−σyϵ)⏟conjugate update term,g_\theta^{\mid y}(\hat{\boldsymbol{\xi}}) = \underbrace{g_\theta(\boldsymbol{\xi})}_{\text{prior sample}} + \underbrace{\boldsymbol{\Phi}\boldsymbol{\Phi}_y^{\mathsf{T}}\mathbf{A}_\theta\left(\mathbf{y} - g_\theta(\boldsymbol{\xi})(X_y) - \sigma_y\boldsymbol{\epsilon}\right)}_{\text{conjugate update term}},

where ξ^=(ξ,ϵ)∼N(0,IR+∣Xy∣)\hat{\boldsymbol{\xi}} = (\boldsymbol{\xi},\boldsymbol{\epsilon}) \sim\mathcal{N}(\mathbf{0},\mathbf{I}_{R+|X_y|}) and Aθ=(ΦyΦyT+σy2I)−1\mathbf{A}_\theta= (\boldsymbol{\Phi}_y\boldsymbol{\Phi}_y^{\mathsf{T}} + \sigma_y^2\mathbf{I})^{-1}. In App. § 7.§ 1, we show that gθ∣y(ξ^)g_\theta^{\mid y}(\hat{\boldsymbol{\xi}}) is distributed according to the exact posterior of the finite-feature GP given D\mathcal{D}. We can then apply the flow of § 3.1 unchanged to this affine decoder, with the latent enlarged by one dimension per observation.

Hyperparameter Optimisation

Existing implementations of GP flows (Moss et al., 2026) assume known kernel hyperparameters, or else tune those parameters manually, an approach which is rarely applicable in practice. Hyperparameter tuning via maximum likelihood estimation is typical for standard GP regression (Rasmussen and Williams, 2006); however, no equivalent procedure has been proposed for the broader class of tasks targeted by GP flows.

In our more general setting, the natural quantity to optimise is the marginal likelihood, or evidence, of the condition. In particular, we target the logarithm

J(θ)=log⁡Zθ=log⁡Eξ∼N(0,IR)[Lθ(ξ)]=log⁡Eξt∼N(0,IR)[L‾t,θ(ξt)],(11)\begin{aligned} J(\boldsymbol{\theta}) = \log Z_{\boldsymbol{\theta}} = \log\mathbb{E}_{\boldsymbol{\xi}\sim\mathcal{N}(\mathbf{0},\mathbf{I}_R)}[L_{\boldsymbol{\theta}}(\boldsymbol{\xi})] \\ &= \log\mathbb{E}_{\boldsymbol{\xi}_t\sim\mathcal{N}(\mathbf{0},\mathbf{I}_R)}[\overline{L}_{t,\boldsymbol{\theta}}(\boldsymbol{\xi}_t)], \tag*{(11)} \end{aligned}

where the second line follows from the law of total expectation under the stationary Gaussian reference. If the conditioning information also contains a conjugate linear-Gaussian component D\mathcal{D}, its marginal log-likelihood can be evaluated analytically and added to this objective; see App. § 8.§ 1.

The objective in (11) balances condition satisfaction against the relative-entropy cost of deforming the underlying GP law into the conditioned law; see App. § 8.§ 3. This relative-entropy cost is, up to a boundary term, precisely the energy of the guidance drift. Thus, equivalently, the objective penalises the amount of guidance required to realise the conditioned law; see App. § 8.§ 4.

A principled approach to optimising Eq. (11) is to use an outer-loop scheme. Fix an initial value θ(0)\boldsymbol{\theta}^{(0)}. Then, at outer iteration mm, run the conditional flow with θ(m)\boldsymbol{\theta}^{(m)} fixed, construct an estimate G^(θ(m))\widehat{\mathbf{G}}(\boldsymbol{\theta}^{(m)}) of the evidence gradient, and update

θ(m+1)=θ(m)+ηmG^(θ(m)),\boldsymbol{\theta}^{(m+1)} = \boldsymbol{\theta}^{(m)} + \eta_m \widehat{\mathbf{G}}(\boldsymbol{\theta}^{(m)}),

where ηm>0\eta_m > 0 is a step size. In practice, this update can instead be performed using a general-purpose optimiser such as Adam.

For a flow solve with the parameter fixed, the terminal particles provide a direct estimator of the evidence gradient. Indeed, at t=0t=0, Fisher’s identity gives

∇θJ(θ)=Eξ0∼πθ,R(⋅∣C)[∇θlog⁡Lθ(ξ0)].\nabla_{\boldsymbol{\theta}}J(\boldsymbol{\theta}) = \mathbb{E}_{\boldsymbol{\xi}_0\sim\pi_{\boldsymbol{\theta},R}(\cdot\mid\mathcal{C})}\left[\nabla_{\boldsymbol{\theta}}\log L_{\boldsymbol{\theta}}(\boldsymbol{\xi}_0)\right].

Thus, for terminal particles {ξ0(b)}b=1B\{\boldsymbol{\xi}_0^{(b)}\}_{b=1}^{B}, we can estimate

G^0(θ)=1B∑b=1B∇θlog⁡Lθ(ξ0(b))≈∇θJ(θ).\widehat{\mathbf{G}}_0(\boldsymbol{\theta}) = \frac{1}{B}\sum_{b=1}^{B}\nabla_{\boldsymbol{\theta}}\log L_{\boldsymbol{\theta}}(\boldsymbol{\xi}_0^{(b)}) \approx\nabla_{\boldsymbol{\theta}}J(\boldsymbol{\theta}).

In fact, the same gradient can also be estimated at intermediate noising times using quantities already evaluated during sampling. For any t∈[0,1]t \in[0,1], Fisher’s identity gives

∇θJ(θ)=Eξt∼pt,θ(ξt∣C)[∇θlog⁡L‾t,θ(ξt)⏟at,θ(ξt)].(12)\nabla_\theta J(\theta)=\mathbb{E}_{\xi_t\sim p_{t,\theta}(\xi_t\mid C)}\left[\underbrace{\nabla_\theta\log\overline{L}_{t,\theta}(\xi_t)}_{\mathbf{a}_{t,\theta}(\xi_t)}\right]. \tag*{(12)}

Thus, similar to the guidance ht,θ\mathbf{h}_{t,\theta}, parameter estimation requires a logarithmic derivative of the smoothed likelihood. Using the same bridge construction and normalised likelihood weights as in § 3.1, the corresponding Monte Carlo estimate for particle bb is

a^t,θ(ξt(b))=∑s=1Sw‾b,s∇θlog⁡Lθ(ξ0(b,s)),\widehat{\mathbf{a}}_{t,\theta}(\xi_t^{(b)})=\sum_{s=1}^{S}\overline{w}_{b,s}\nabla_\theta\log L_\theta(\xi_0^{(b,s)}),

where w‾b,s\overline{w}_{b,s} denotes the normalised likelihood weight associated with the ss-th bridge sample for particle bb. Averaging over the particles gives

G^t(θ)=1B∑b=1Ba^t,θ(ξt(b))≈∇θJ(θ).(13)\widehat{G}_t(\theta)=\frac{1}{B}\sum_{b=1}^{B}\widehat{\mathbf{a}}_{t,\theta}(\xi_t^{(b)})\approx\nabla_\theta J(\theta). \tag*{(13)}

In practice, the outer-loop scheme can be expensive, since the conditional flow must be rerun after each parameter update. We thus also consider a faster online scheme, in which parameter updates using the estimate in Eq. (13) are interleaved with a single conditional solve. Since changing the parameters also changes the target conditional distribution and the corresponding guidance, now the current particles need not follow the instantaneous marginal pt,θ(ξt∣C)p_{t,\theta}(\xi_t\mid C) in Eq. (12), introducing an additional path-dependent approximation. In this case, after online optimisation, the conditional flow should be rerun with the fitted value of the parameter to obtain samples from the corresponding fitted conditional model; see App. § 8 for further details.

Empirical Evaluation

Probabilistic Downscaling

Probabilistic downscaling of spatial fields is an increasingly important use case for generative modelling ([6, 18] (Peleg et al. 2017; Perezhogin et al. 2023)). The fundamental task is to produce probable, high-resolution fields, given some summary statistic measured on a coarser grid, often alongside direct measurements or prior knowledge (e.g. imposed non-linear physics).

We first generate a high-resolution ground-truth field by sampling an approximate posterior GP with a large number of random Fourier features (RFFs) (R=4096R=4096). This field is then coarse-grained into a pair of 8×88\times8 grids using the (non-linear) areal min and max summary statistics, and 32 random locations in the domain are queried to define an additional conjugate condition. We use an RFF basis (R=1024R=1024) to approximate the RBF prior, augmented with an additional Matheron’s rule block to exactly correct for the Gaussian observations, for a total latent dimension of 1056. We then generate conditional samples using a GP flow and FEATUREFLOW, under a fixed computational budget (provided here by a maximum wall-time of 0.5 s).

In Figure 3(b, Figure 3c), we show one sample from the GP flow and FEATUREFLOW. Under the same computational constraint, FEATUREFLOW is able to produce samples of comparable quality (cf. Supplementary Fig. 5) at >10×>10\times as many evaluation points as the dense method. This translates to a wall-time speed-up of more than two orders of magnitude at high resolutions (Figure 3(d)). Memory requirements are also far more limited, with the vanilla GP flow estimated to require ∼34\sim34 GB to build the GP Gram matrix alone, compared to the equivalent FEATUREFLOW requirement of ∼500\sim500 MB to store the basis design matrix, at the largest resolution considered. Further details are found in App. § 9.§ 1.

Figure 3. A non-linear downscaling task. (a) Non-conjugate (max/min) and conjugate (Gaussian observations) conditioning data. Single samples drawn from each of (b) the GP flow and (c) FeatureFlow under a fixed compute constraint. Both methods achieve mean absolute condition residuals ∼10−3\sim10^{-3}. (d) Comparison of the two methods, showing the increase in the dominant setup wall-time with grid size NN. The fixed time/compute budget used for (b, c) is indicated.

Allen-Cahn Solution Fields

PDE solutions are commonly subject to boundary conditions (BCs), whose type and sufficiency determine the uniqueness of a solution ([9]). In the dense GP flow framework, BCs can only be imposed inelegantly by conditioning on additional artificial noiseless data, resulting in a soft enforcement of the condition. Here, we leverage the work of Solin and Kok (2019) to use the Laplacian eigenfunction basis to enforce homogeneous Dirichlet BCs by construction, beyond the linear-Gaussian regime they demonstrate.

We draw samples from both a GP flow and FEATUREFLOW, conditioned such that they solve the Allen-Cahn equation:

{f=0.2f3−(2×10−3)Δf,on Ω,f=0,on ∂Ω,\begin{cases} f=0.2f^3-(2\times10^{-3})\Delta f, & \text{on }\Omega,\\ f=0, & \text{on }\partial\Omega, \end{cases}

where Ω⊆R2\Omega\subseteq\mathbb{R}^2 is some irregular domain and Δ\Delta is the 2-D Laplacian operator. The condition is formulated by providing a differentiable relaxation to the condition that the PDE residual should vanish everywhere. Here, we exploit that for a stationary prior encoded by a differentiable basis, derivatives of samples may be computed analytically without the need for a finite-difference scheme as ∂xdf~(x)=∂xdμ(x)+(∂xdψ(x))Tξ\partial_{x_d}\tilde{f}(x)=\partial_{x_d}\mu(x)+(\partial_{x_d}\psi(x))^\mathsf{T}\xi. The Allen-Cahn residuals can therefore be evaluated analytically in O(RN)\mathcal{O}(RN) time in FEATUREFLOW. We impose the Dirichlet boundary condition using artificial data for the GP flow, and via an appropriate Laplacian basis for the weight-space flow (App. § 6.§ 2).

In Fig. 1, we show results of our online adaptive sampling scheme applied to both sampling methods. A ground truth solution of the PDE with the given boundary conditions was computed using a numerical scheme (damped Newton iterations using exact sparse Jacobian), providing the 16 noisy (σn=10−2\sigma_n = 10^{-2}) Gaussian observations shown across the irregular domain in Fig. 1(a). We show samples drawn from both samplers, where in each case, we first use deliberately misspecified kernel hyperparameters (Figs. 1(b, f)), and then use the adaptive scheme (Figs. 1(c, g)). We obtain higher-quality samples than those resulting from the GP flow, as measured by condition residuals (Figs. 1(d, h)), while benefiting from more than an order of magnitude speed-up at the highest resolutions (Figs. 1(e)). In particular, the boundary conditions are adhered to much more closely using the Laplacian eigenfunction features, and the PDE residuals are generally reduced using the adaptive sampling scheme in feature space.

We hypothesise that the improved PDE consistency is due to the removal of finite-difference discretisation error when evaluating the pointwise likelihood. Hyperparameter estimation is also more stable using FeatureFlow in this experiment; in Supplementary Fig. 6, we see substantial disagreement between runs with different resolutions with the vanilla GP flow, which is minimal using our stable weight-space formulation. Further experimental details are provided in App. § 9.§ 2.

Sea Level Anomaly Estimation

We now use FeatureFlow in a real-data example to recover sea-level anomaly (SLA) fields from observational satellite data. Accurate SLA estimates are crucial for understanding large-scale ocean surface currents, impacting transport and navigation, as well as environmental mapping (Yu et al., 2026). We assume a ground-truth SLA field from the Integrated Marine

Observing System, Australia, which is computed using a numerical model (IMOS, 2026), to generate a synthetic Level 0 dataset: completely raw data at instrument resolution. Specifically, let f:X→Rf : \mathcal{X} \to\mathbb{R} be a field representing the SLA over some irregular domain X⊂R2\mathcal{X} \subset\mathbb{R}^{2}. Here, X\mathcal{X} corresponds to the ocean region off the southeastern Australian coast. Our aim is to generate probable samples of ff given sparse, noisy, non-Gaussian and non-linear measurements from satellite observations (cf. Figure 4(a, Figure 4e)).

Figure 4. Inference of a sea-level anomaly field. (a) The ground-truth field, with satellite tracks overlaid. Samples using FeatureFlow with (b) misspecified and (c) fitted kernel length scales ℓ\ell. (d) The reconstruction error compared between FeatureFlow and the baseline. MLE3 only provides pointwise estimates and so cannot be compared across the 2-D field. (e) A representative radar echo, taken at 20 Hz along the satellite tracks. (f) Comparison of on-track reconstruction error between the deterministic baseline and scalable flow-based inference.

Raw satellite measurements are dependent on the true SLA through a probabilistic forward model, which additionally depends on four physical variables—significant wave height SWH, surface wind speed U10U_{10}, surface skewness λ\lambda, and reflectivity bias β\beta—which we will treat as known in this work. Typically a satellite will observe at ∼\sim20 Hz a radar echo comprising ∼\sim100 observations of range gates (Figure 4(e)). The expected waveform at each range gate location kk is given by a five-parameter Brown’s function (see App. § 9.3.6 for definition) denoted mjkm_{jk} for the jjth observation:

{f(xj),SWH⁡j,U10,j,λj,βj}↦{mjk}\{f(x_j),\operatorname{SWH}_j,U_{10,j},\lambda_j,\beta_j\}\mapsto\{m_{jk}\}

shown in Figure 4(e) by the black line. The observation noise surrounding mjkm_{jk} is Gamma-distributed as

Yjk∣mjk∼Gamma⁡(Nl,mjkNl),Nl=90.Y_{jk}\mid m_{jk}\sim\operatorname{Gamma}\left(N_l,\frac{m_{jk}}{N_l}\right),\qquad N_l=90.

See Tourain et al. (2021), for more details. A commonly-used approach to estimating SLA is Maximum Likelihood Estimator 3 (MLE3; Brown, [4]; Rodriguez, 1988). Figure 4(a) shows a single day’s worth of satellite observation tracks over southeastern Australia; in total there were 63,458 radar echoes, each comprising 104 range gates.

Let j=1,…,Jj = 1,\ldots,J index the J=63,458J = 63,458 radar echoes, each at location xj∈Xx_j \in\mathcal{X}, and k=1,…,Kk = 1,\ldots,K index the

K=104K = 104 range gates. The complete observation is {Yjk}j=1:J,k=1:K∈R63,458×104\{Y_{jk}\}_{j=1:J,k=1:K} \in\mathbb{R}^{63,458 \times104}. We aim to draw SLA field samples consistent with the noisy radar data, as well as enforcing an approximate RBF prior on the field through an RFF kernel approximation. In the following results, we use R=512R = 512 RFFs and 100 steps in the flow time discretisation. The entire evaluation domain is 69,081 points, a scale which is computationally infeasible using a GP flow. We consider the adaptive setting, where the length scale is unknown a priori and must therefore be learned from the non-Gaussian condition. In Figure 4(a, Figure 4b), we display the ground truth SLA field, as well as samples drawn from FeatureFlow with a misspecified kernel length scale. Figure 4(c) shows the result of adaptive hyperparameter estimation on this real-world problem, where the complex non-Gaussian observations prove highly informative and result in visually higher-quality samples of the entire 2-D field. Measurements of on-track and whole-field RMSE (Figure 4(d)) confirm that making joint predictions of SLA across all points in the domain, given all satellite measurements, provides a meaningful advantage in pointwise accuracy. Figure 4(f) compares the on-track error distributions between the fitted FeatureFlow and deterministic pointwise baseline, MLE3. We note that our estimates of SLA are substantially less biased than MLE3. As previous work has aimed to reduce MLE3-related bias ([14] (Passaro et al. 2018)), in Supplementary Fig. 9, we show that even with post hoc debiasing using the ground truth field, FeatureFlow performs better in pointwise accuracy. Further experimental details are located in App. § 9.§ 3.

Conclusion

We have introduced FeatureFlow, which runs GP flows in the weight space of a finite-feature approximation. This decouples the cost of the flow from the evaluation resolution and absorbs conjugate data exactly via Matheron’s rule. Because the bridge is independent of the kernel hyperparameters, the guidance samples also yield evidence gradients, enabling the first hyperparameter optimisation for GP flows. FeatureFlow gives one to two orders of magnitude speed-up over function-space GP flows and scales to a 69,081-point sea-level field inferred from over six million radar observations. Limitations include the reliance on a largely stationary prior with an accurate finite basis and the bias of the online adaptation scheme. Future work includes jointly estimating the altimetry nuisance fields and characterising this bias.

AI Use Statement

In this work, we used generative AI tools for providing feedback on research methodology or experiments, implementing methods, and generating synthetic data sets. We have not used generative AI tools for helping to develop theoretical models or conceptual frameworks; formulating mathematical claims; providing critical ingredients for proving mathematical claims; assisting in the writing of proofs; proposing or refining hypotheses; assisting with translation; cleaning and reformatting datasets; supporting qualitative and thematic data analysis; interpreting results. Additionally, we used generative AI tools for creating scientific figures, creating or editing software code, brainstorming, and sourcing/searching for information. We have reviewed all AI-assisted work. LLM-generated code was verified and tested for correctness. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.

Basis Decompositions

Random Fourier features

Random Fourier features (RFFs) provide a finite-dimensional approximation to stationary kernels ((Rahimi and Recht, 2007). By Bochner’s theorem, a stationary kernel kθ(x,x′)=kθ(x−x′)k_{\theta}(x,x') = k_{\theta}(x-x') can be written as an expectation over its spectral density pθ(ω)p_{\theta}(\omega). Drawing frequencies ωr∼pθ\omega_r \sim p_{\theta} and phases br∼Uniform⁡(0,2π)b_r \sim\operatorname{Uniform}(0,2\pi), we define

ψθ(r)(x)=2σf2Rcos⁡(ωrx+br),r=1,…,R\psi_{\theta}^{(r)}(x) = \sqrt{\frac{2\sigma_f^2}{R}}\cos(\omega_r x+b_r), \qquad r=1,\ldots,R

with RR defined as the number of features used to approximate the kernel. The resulting feature vector satisfies

kθ(x,x′)≈ψθ(x)Tψθ(x′),k_{\theta}(x,x') \approx\psi_{\theta}(x)^{\mathsf{T}}\psi_{\theta}(x'),

and an approximate GP prior draw is

f~θ(x)=μ(x)+ψθ(x)Tξ,ξ∼N(0,IR).\tilde{f}_{\theta}(x) = \mu(x) + \psi_{\theta}(x)^{\mathsf{T}}\xi,\qquad\xi\sim\mathcal{N}(0,I_R).

For the RBF kernel with length scale matrix Λθ\Lambda_{\theta}, the spectral density is Gaussian,

ωr∼N(0,Λθ−1).\omega_r \sim\mathcal{N}(0,\Lambda_{\theta}^{-1}).

Fixing the underlying standard-normal frequency draws while varying θ\theta gives a differentiable parameterisation of the features. Spatial derivatives are also available analytically by differentiating the trigonometric basis. Although RFFs directly approximate only the stationary prior kernel, they can be combined with exact kernel evaluations in the decoupled posterior construction of Section B.

Laplacian eigenfunction basis

Laplacian eigenfunctions provide a deterministic low-rank approximation to stationary kernels while allowing boundary conditions to be imposed on a bounded domain Ω⊂Rd\Omega\subset\mathbb{R}^{d} ((Solin and Kok, 2019). For homogeneous Dirichlet boundary conditions, the basis functions are obtained from the eigenvalue problem

−Δφj(x)=λj2φj(x),x∈Ω,φj(x)=0,x∈∂Ω,-\Delta\varphi_j(x)=\lambda_j^2\varphi_j(x), \qquad x\in\Omega,\qquad\varphi_j(x)=0,\qquad x\in\partial\Omega,

where the eigenfunctions are orthonormal in L2(Ω)L^2(\Omega) and ordered by increasing eigenvalue.

Let sθ(ω)s_{\theta}(\omega) denote the spectral density of the stationary kernel. For an isotropic kernel, its value depends only on the radial frequency, and the covariance function can be approximated using the first RR eigenfunctions as

kθ(x,x′)≈∑j=1Rsθ(λj)φj(x)φj(x′).k_{\theta}(x,x') \approx\sum_{j=1}^{R} s_{\theta}(\lambda_j)\varphi_j(x)\varphi_j(x').

Defining the weighted features

ψθ(j)(x)=sθ(λj)φj(x),j=1,…,R,\psi_{\theta}^{(j)}(x)=\sqrt{s_{\theta}(\lambda_j)}\varphi_j(x), \qquad j=1,\ldots,R,

gives

kθ(x,x′)≈ψθ(x)⊤ψθ(x′)k_\theta(x,x') \approx\psi_\theta(x)^\top\psi_\theta(x')

and the corresponding approximate prior draw is

f~θ(x)=μ(x)+ψθ(x)⊤ξ,ξ∼N(0,IRf).\tilde{f}_\theta(x) = \mu(x) + \psi_\theta(x)^\top\xi,\qquad\xi\sim\mathcal{N}(0,I_{R_f}).

For simple domains, such as intervals and rectangles, the eigenpairs are available analytically. For irregular domains, they can instead be computed once by discretising the Laplacian operator on a grid and solving the resulting sparse eigenvalue problem. Restricting the discretisation to points inside Ω\Omega naturally imposes the boundary condition and ensures that every approximate prior draw vanishes on ∂Ω\partial\Omega. Other conditions, including homogeneous Neumann conditions, can be incorporated by changing the boundary condition in the eigenvalue problem.

The eigenfunctions and eigenvalues depend only on the domain and can therefore be held fixed while varying θ\theta; the kernel hyperparameters enter only through the spectral weights sθ(λj)s_\theta(\lambda_j). This gives a differentiable parameterisation with respect to the kernel hyperparameters, while replacing dense kernel operations by computations involving RR basis functions.

Conditioning on Conjugate Data by Matheron's Rule

Throughout this section, the conjugate data are D={Xy,y}\mathcal{D} = \{X_y,\mathbf{y}\} with y=f(Xy)+σyε\mathbf{y}=f(X_y)+\sigma_y\varepsilon and ε∼N(0,I∣Xy∣)\varepsilon\sim\mathcal{N}(0,I_{|X_y|}). We write Φ=ψθ(X)⊤∈RN×R\boldsymbol{\Phi}=\psi_\theta(X)^\top\in\mathbb{R}^{N\times R} and Φy=ψθ(Xy)⊤∈R∣Xy∣×R\boldsymbol{\Phi}_y=\psi_\theta(X_y)^\top\in\mathbb{R}^{|X_y|\times R} for the prior features at the evaluation and observation locations, and μy=μ(Xy)\boldsymbol{\mu}_y=\mu(X_y). Under the finite-feature prior, f=μ+Φξf=\mu+\boldsymbol{\Phi}\xi and y=μy+Φyξ+σyε\mathbf{y}=\boldsymbol{\mu}_y+\boldsymbol{\Phi}_y\xi+\sigma_y\varepsilon with ξ∼N(0,IR)\xi\sim\mathcal{N}(0,I_R). Finally, define

Aθ=(Φy⊤Φy+σy2I)−1,P=Φy⊤AθΦy.A_\theta=(\boldsymbol{\Phi}_y^\top\boldsymbol{\Phi}_y+\sigma_y^2 I)^{-1},\qquad P=\boldsymbol{\Phi}_y^\top A_\theta\boldsymbol{\Phi}_y.

Matheron's rule targets the posterior

Let ξ^=(ξ,ε)∈RR+∣Xy∣\hat{\xi}=(\xi,\varepsilon)\in\mathbb{R}^{R+|X_y|}, denoting the total latent dimension. Expanding the decoder in § 3.3 using gθ(ξ)(Xy)=μy+Φyξg_\theta(\xi)(X_y)=\boldsymbol{\mu}_y+\boldsymbol{\Phi}_y\xi shows that it is affine in ξ^\hat{\xi}:

gθ∣y(ξ^)=μ+Φξ+ΦΦy⊤Aθ(y−μy−Φyξ−σyε)=m∣y+Ψ∣yξ^.g_\theta^{\mid y}(\hat{\xi})=\mu+\boldsymbol{\Phi}\xi+\boldsymbol{\Phi}\boldsymbol{\Phi}_y^\top A_\theta(\mathbf{y}-\boldsymbol{\mu}_y-\boldsymbol{\Phi}_y\xi-\sigma_y\varepsilon)=\mathbf{m}_{\mid y}+\boldsymbol{\Psi}_{\mid y}\hat{\xi}.

where

m∣y=μ+ΦΦy⊤Aθ(y−μy),Ψ∣y=[Φ(I−P),−σyΦΦy⊤Aθ]∈RN×(R+∣Xy∣).\mathbf{m}_{\mid y}=\mu+\boldsymbol{\Phi}\boldsymbol{\Phi}_y^\top A_\theta(\mathbf{y}-\boldsymbol{\mu}_y),\qquad \boldsymbol{\Psi}_{\mid y}=[\boldsymbol{\Phi}(I-P),-\sigma_y\boldsymbol{\Phi}\boldsymbol{\Phi}_y^\top A_\theta]\in\mathbb{R}^{N\times(R+|X_y|)}.

Proposition B.1. Assume CC and DD are conditionally independent given ff. If ξ^∼N(0,IR+∣Xy∣)\hat{\xi}\sim\mathcal{N}(0,I_{R+|X_y|}), then gθ∣y(ξ^)g_\theta^{\mid y}(\hat{\xi}) is distributed according to the exact posterior of the finite-feature GP given DD. Consequently, the latent target

π∣y(ξ^0∣C)∝N(ξ^0;0,IR+∣Xy∣)p(C∣gθ∣y(ξ^0))(14)\pi^{\mid y}(\hat{\xi}_0\mid C)\propto\mathcal{N}(\hat{\xi}_0;0,I_{R+|X_y|})p(C\mid g_\theta^{\mid y}(\hat{\xi}_0)) \tag*{(14)}

pushes forward under gθ∣yg_\theta^{\mid y} to the same law over functions as Eq. (10) does under gθg_\theta.

Proof. Posterior. Since gθ∣yg_\theta^{\mid y} is affine, gθ∣y(ξ^)g_\theta^{\mid y}(\hat{\xi}) is Gaussian with mean m∣y\mathbf{m}_{\mid y} and covariance Ψ∣yΨ∣y⊤\boldsymbol{\Psi}_{\mid y}\boldsymbol{\Psi}_{\mid y}^\top; it suffices to match these to the finite-feature posterior. Writing K~=ΦΦ⊤\widetilde{K}=\boldsymbol{\Phi}\boldsymbol{\Phi}^\top, K~⋅y=ΦΦy⊤\widetilde{K}_{\cdot y}=\boldsymbol{\Phi}\boldsymbol{\Phi}_y^\top and K~yy=ΦyΦy⊤\widetilde{K}_{yy}=\boldsymbol{\Phi}_y\boldsymbol{\Phi}_y^\top, the mean is m∣y=μ+K~⋅y(K~yy+σy2I)−1(y−μy)\mathbf{m}_{\mid y}=\mu+\widetilde{K}_{\cdot y}(\widetilde{K}_{yy}+\sigma_y^2I)^{-1}(\mathbf{y}-\boldsymbol{\mu}_y), the posterior mean. For the covariance, the identity ΦyΦy⊤=Aθ−1−σy2I\boldsymbol{\Phi}_y\boldsymbol{\Phi}_y^\top=A_\theta^{-1}-\sigma_y^2I gives

P2=Φy⊤Aθ(Aθ−1−σy2I)AθΦy=P−σy2Φy⊤Aθ2Φy,P^2=\boldsymbol{\Phi}_y^\top A_\theta(A_\theta^{-1}-\sigma_y^2I)A_\theta\boldsymbol{\Phi}_y=P-\sigma_y^2\boldsymbol{\Phi}_y^\top A_\theta^2\boldsymbol{\Phi}_y,

so that (I−P)2+σy2Φy⊤Aθ2Φy=I−P(I-P)^2+\sigma_y^2\boldsymbol{\Phi}_y^\top A_\theta^2\boldsymbol{\Phi}_y=I-P. Hence

Ψ∣yΨ∣y⊤=Φ[(I−P)2+σy2Φy⊤Aθ2Φy]Φ⊤=Φ(I−P)Φ⊤=K~−K~⋅y(K~yy+σy2I)−1K~y⋅,\boldsymbol{\Psi}_{\mid y}\boldsymbol{\Psi}_{\mid y}^\top=\boldsymbol{\Phi}\left[(I-P)^2+\sigma_y^2\boldsymbol{\Phi}_y^\top A_\theta^2\boldsymbol{\Phi}_y\right]\boldsymbol{\Phi}^\top=\boldsymbol{\Phi}(I-P)\boldsymbol{\Phi}^\top=\widetilde{K}-\widetilde{K}_{\cdot y}(\widetilde{K}_{yy}+\sigma_y^2I)^{-1}\widetilde{K}_{y\cdot},

which is the posterior covariance.

Pushforward. Let ν=N(0,I)\nu= \mathcal{N}(0,\mathbf{I}) and let φ\varphi be any bounded measurable test function. Under Eq. (10), and using the conditional independence of C\mathcal{C} and D\mathcal{D} given ff,

E[φ(gθ(ξ0))]∝Ef∼pθ[φ(f) p(D∣f) p(C∣f)]∝Ef∼pθ(⋅∣D)[φ(f) p(C∣f)].\mathbb{E}[\varphi(g_\theta(\xi_0))] \propto\mathbb{E}_{f\sim p_\theta}[\varphi(f)\,p(\mathcal{D}\mid f)\,p(\mathcal{C}\mid f)] \propto\mathbb{E}_{f\sim p_\theta(\cdot\mid\mathcal{D})}[\varphi(f)\,p(\mathcal{C}\mid f)].

Under Eq. (14), by the first part,

E[φ(gθy(ξ^0))]∝Eξ^∼ν[φ(gθy(ξ^))p(C∣gθy(ξ^))]=Ef∼pθ(⋅∣D)[φ(f)p(C∣f)].\mathbb{E}[\varphi(g_\theta^y(\hat{\xi}_0))] \propto\mathbb{E}_{\hat{\xi}\sim\nu}[\varphi(g_\theta^y(\hat{\xi}))p(\mathcal{C}\mid g_\theta^y(\hat{\xi}))] = \mathbb{E}_{f\sim p_\theta(\cdot\mid\mathcal{D})}[\varphi(f)p(\mathcal{C}\mid f)].

Both expressions are proportional to the same functional of φ\varphi, and both are normalised, so the two laws coincide.

Diffusing under conjugacy is stiff

Suppose that we instead choose to treat D\mathcal{D} as an additional guidance term. Then the smoothed data likelihood ∇ξtlog⁡pt(y∣ξt)\nabla_{\xi_t}\log p_t(\mathbf{y}\mid\xi_t) is therefore Gaussian,

pt(y∣ξt)=N(y; μy+αΦyξt, Mt),Mt=(1−α2)ΦyΦyT+σy2I,p_t(\mathbf{y}\mid\xi_t)=\mathcal{N}\left(\mathbf{y};\,\mu_y+\alpha\Phi_y\xi_t,\,M_t\right),\qquad M_t=(1-\alpha^2)\Phi_y\Phi_y^\mathsf{T}+\sigma_y^2\mathbf{I},

and its score is available in closed form, with Hessian

Ht=∇ξt2log⁡pt(y∣ξt)=−α2ΦyTMt−1Φy.H_t=\nabla_{\xi_t}^2\log p_t(\mathbf{y}\mid\xi_t)=-\alpha^2\Phi_y^\mathsf{T}M_t^{-1}\Phi_y.

which does not depend on ξt\xi_t. Let λ1≥λ2≥…\lambda_1\ge\lambda_2\ge\ldots denote the eigenvalues of ΦyΦyT\Phi_y\Phi_y^\mathsf{T}, which are also the nonzero eigenvalues of ΦyTΦy\Phi_y^\mathsf{T}\Phi_y. Since MtM_t shares eigenvectors with ΦyΦyT\Phi_y\Phi_y^\mathsf{T}, the nonzero eigenvalues of HtH_t are

−α2λi(1−α2)λi+σy2⟶−λiσy2as t→0.-\frac{\alpha^2\lambda_i}{(1-\alpha^2)\lambda_i+\sigma_y^2}\longrightarrow-\frac{\lambda_i}{\sigma_y^2}\quad\text{as }t\to0.

Step-size restriction. Written in forward integration time, the reverse-time drift is −12β(t)ξt+β(t)ht-\frac{1}{2}\beta(t)\xi_t+\beta(t)h_t, whose Jacobian is β(t)(Ht−12I)\beta(t)(H_t-\frac{1}{2}\mathbf{I}). Along the iith data direction, the drift therefore contracts at rate

κi(t)=β(t)(12+α2λi(1−α2)λi+σy2)≈β(t)λiσy2near t=0.\kappa_i(t)=\beta(t)\left(\frac{1}{2}+\frac{\alpha^2\lambda_i}{(1-\alpha^2)\lambda_i+\sigma_y^2}\right)\approx\frac{\beta(t)\lambda_i}{\sigma_y^2}\quad\text{near }t=0.

An explicit solver such as Euler–Maruyama is stable on a linear contraction of rate κ\kappa only if Δt<2/κ\Delta t<2/\kappa, which near t=0t=0 requires

Δt≲2σy2β(t)λ1.\Delta t\lesssim\frac{2\sigma_y^2}{\beta(t)\lambda_1}.

Hyperparameter Optimisation

Evidence Decomposition with Conjugate Information

In § 3, we note that when the conditioning statement C\mathcal{C} contains some linear-Gaussian component, we can extract this part of the likelihood and compute it analytically. Let D\mathcal{D} denote the conjugate conditioning information (e.g. noisy point observations with Gaussian likelihood), and let C\mathcal{C} denote the remaining non-conjugate condition. The exact GP evidence decomposes as

log⁡pθ(C,D)=log⁡pθ(C∣D)+log⁡pθ(D).\log p_\theta(\mathcal{C},\mathcal{D})=\log p_\theta(\mathcal{C}\mid\mathcal{D})+\log p_\theta(\mathcal{D}).

Let gθyg_\theta^y denote the decoder obtained after conditioning on D\mathcal{D}, and define the corresponding finite-feature conditional evidence by

Zθ,RD=Eξ^0∼N(0,IR+∣Xy∣)[p(C∣gθy(ξ^0))].Z_{\theta,R}^{\mathcal{D}}=\mathbb{E}_{\hat{\xi}_0\sim\mathcal{N}(0,\mathbf{I}_{R+|\mathcal{X}_y|})}\left[p\left(\mathcal{C}\mid g_\theta^y(\hat{\xi}_0)\right)\right].

When gθyg_\theta^y generates the exact conditional GP, Zθ,RD=pθ(C∣D)Z_{\theta,R}^{\mathcal{D}}=p_\theta(\mathcal{C}\mid\mathcal{D}); for the finite-feature construction, it is the corresponding approximation. We therefore optimise

JD(θ)=log⁡Zθ,RD+log⁡pθ(D).(15)J_{\mathcal{D}}(\theta)=\log Z_{\theta,R}^{\mathcal{D}}+\log p_\theta(\mathcal{D}). \tag*{(15)}

For a fixed value of θ\theta, the gradient of the first term in Eq. (15) can be estimated using the same bridge construction used to guide the conditional flow. In particular,

∇θJD(θ)=Eξ^t∼pt,θ(ξ^t∣C,D)[∇θlog⁡Eξ^0∼p(ξ^0∣ξ^t)[p(C∣gθy(ξ^0))]]+∇θlog⁡pθ(D).\nabla_\theta J_{\mathcal{D}}(\theta)=\mathbb{E}_{\hat{\xi}_t\sim p_{t,\theta}(\hat{\xi}_t\mid\mathcal{C},\mathcal{D})}\left[\nabla_\theta\log\mathbb{E}_{\hat{\xi}_0\sim p(\hat{\xi}_0\mid\hat{\xi}_t)}\left[p\left(\mathcal{C}\mid g_\theta^y(\hat{\xi}_0)\right)\right]\right]+\nabla_\theta\log p_\theta(\mathcal{D}).

For outer particles ξ^t(b)\hat{\xi}_t^{(b)} and bridge samples ξ^0(b,s)\hat{\xi}_0^{(b,s)} constructed as in Eq. (5), we therefore compute

G^tD(θ)=1B∑b=1B∇θlog⁡[1S∑s=1Sp(C∣gθD(ξ0(b,s)))]+∇θlog⁡pθ(D)=G^t(θ)+∇θlog⁡pθ(D)(16)\widehat{G}^{\mathcal{D}}_t(\theta)=\frac{1}{B}\sum_{b=1}^{B}\nabla_\theta\log\left[\frac{1}{S}\sum_{s=1}^{S}p\left(\mathcal{C}\mid g_\theta^{\mathcal{D}}\left(\xi_0^{(b,s)}\right)\right)\right]+\nabla_\theta\log p_\theta(\mathcal{D})=\widehat{G}_t(\theta)+\nabla_\theta\log p_\theta(\mathcal{D}) \tag*{(16)}

where G^t(θ)\widehat{G}_t(\theta) denotes the Monte Carlo estimate of the non-conjugate contribution, as defined in § 3.4. For the particular case in which D={Xy,y}\mathcal{D}=\{X_y,\mathbf{y}\} consists of pointwise observations with independent Gaussian noise,

yi=f(xi)+εi,εi∼N(0,σy2),y_i=f(x_i)+\varepsilon_i,\qquad\varepsilon_i\sim\mathcal{N}(0,\sigma_y^2),

the observations have the marginal distribution

y∣θ∼N(μy,K(θ)+σy2I),\mathbf{y}\mid\theta\sim\mathcal{N}\left(\boldsymbol{\mu}_y,\mathbf{K}(\theta)+\sigma_y^2\mathbf{I}\right),

where

[μy]i=μ(xi),[K(θ)]ij=kθ(xi,xj),xi,xj∈Xy.[\boldsymbol{\mu}_y]_i=\mu(x_i),\qquad[\mathbf{K}(\theta)]_{ij}=k_\theta(x_i,x_j),\qquad x_i,x_j\in X_y.

The corresponding marginal log-likelihood is therefore

log⁡pθ(D)=−12(y−μy)T(K(θ)+σy2I)−1(y−μy)−12log⁡det⁡(K(θ)+σy2I)−∣Xy∣2log⁡(2π).(17)\log p_\theta(\mathcal{D})=-\frac{1}{2}(\mathbf{y}-\boldsymbol{\mu}_y)^{\mathsf{T}}\left(\mathbf{K}(\theta)+\sigma_y^2\mathbf{I}\right)^{-1}(\mathbf{y}-\boldsymbol{\mu}_y) -\frac{1}{2}\log\det\left(\mathbf{K}(\theta)+\sigma_y^2\mathbf{I}\right)-\frac{|X_y|}{2}\log(2\pi). \tag*{(17)}

Consequently, this contribution can be evaluated exactly and differentiated with respect to the kernel hyperparameters without introducing additional MC error.

Looking at Eq. (17), we note that the Cholesky decomposition of K(θ)+σy2I\mathbf{K}(\theta)+\sigma_y^2\mathbf{I} is already required by the canonical-kernel decoupled posterior construction, so the log-determinant is easily calculable. This evidence term is important because the non-conjugate conditional term alone often admits degenerate solutions, such as reducing the output variance until a residual is small without explaining the observed data.

Algorithm

A schematic algorithm is given in Algorithm 1. We use the same underlying standard-normal bridge draws across updates, providing common random numbers and reducing additional MC variation in the hyperparameter updates. Each update first constructs SS terminal weights from the current whitened flow state, before rebuilding the quantities required to differentiate with respect to θ\theta, including the posterior Cholesky factors. The gradient in Eq. (16) is then computed, using MC samples for the non-conjugate contribution and the exact marginal-likelihood gradient for the conjugate contribution. The flow state and bridge samples are treated as fixed when taking this derivative, so gradients are not propagated through the preceding flow trajectory. After the optimiser step, quantities depending on θ\theta are recomputed without retaining the computational graph. In basis space this refreshes the feature matrix and posterior mean, preventing subsequent SDE steps from using a decoder or likelihood built at stale hyperparameters. After obtaining θ^\hat{\theta}, we rerun the conditional flow with θ^\hat{\theta} fixed to obtain samples from the corresponding fitted conditional model.

A Static Interpretation

We now relate our hyperparameter objective to the standard free-energy interpretation of the log normalising constant. Specialising this identity to our latent GP representation provides a useful interpretation of the quantities balanced by evidence maximisation.

For simplicity, we here return to the generic evidence objective in Eq. (11), regarding C\mathcal{C} as the complete conditioning statement. Let Zθ:=Zθ,R=pθ(C)Z_\theta:=Z_{\theta,\mathcal{R}}=p_\theta(\mathcal{C}) and J(θ)=log⁡ZθJ(\theta)=\log Z_\theta. Further, as in Eq. (1), let r(ξ)=N(ξ;0,IR)r(\xi)=\mathcal{N}(\xi;\mathbf{0},\mathbf{I}_{R}) denote the standard latent Gaussian density, and let pθp_\theta denote the law induced by f~θ=gθ(ξ0)\tilde{f}_\theta= g_\theta(\xi_0) when ξ0∼r\xi_0 \sim r. The corresponding latent target is

Image not extracted

Figure 1 (PDF p. 16).

ρθ(ξ0∣C)=p(C∣gθ(ξ0))r(ξ0)Zθ.(18)\rho_\theta(\xi_0 \mid C) = \frac{p(C \mid g_\theta(\xi_0)) r(\xi_0)}{Z_\theta}. \tag*{(18)}

By the standard Gibbs variational identity, evaluated at the conditioned law, the evidence balances satisfaction of the condition against the relative-entropy cost of deforming the Gaussian latent prior. In our setting, whenever the relevant quantities are finite,

log⁡Zθ=Eξ0∼ρθ(⋅∣C)[log⁡p(C∣gθ(ξ0))]−KL⁡(ρθ(⋅∣C)∥r).(19)\log Z_\theta= \mathbb{E}_{\xi_0 \sim\rho_\theta(\cdot\mid C)} \left[\log p(C \mid g_\theta(\xi_0))\right] - \operatorname{KL}\left(\rho_\theta(\cdot\mid C)\mathbin{\|}r\right). \tag*{(19)}

This follows from the identity ρθ(ξ0∣C)r(ξ0)=p(C∣gθ(ξ0))Zθ\frac{\rho_\theta(\xi_0 \mid C)}{r(\xi_0)} = \frac{p(C \mid g_\theta(\xi_0))}{Z_\theta}, taking logarithms, and taking expectations with respect to ρθ(⋅∣C)\rho_\theta(\cdot\mid C). There is an equivalent interpretation directly in the GP output space. Let πθ(⋅∣C)\pi_\theta(\cdot\mid C) denote the corresponding conditioned law of f~θ=gθ(ξ0)\tilde{f}_\theta= g_\theta(\xi_0). We then have

log⁡Zθ=Ef~∼πθ(⋅∣C)[log⁡p(C∣f~)]−KL⁡(πθ(⋅∣C)∥pθ).(20)\log Z_\theta= \mathbb{E}_{\tilde{f} \sim\pi_\theta(\cdot\mid C)} \left[\log p(C \mid\tilde{f})\right] - \operatorname{KL}\left(\pi_\theta(\cdot\mid C)\mathbin{\|}p_\theta\right). \tag*{(20)}

Thus, the log-evidence represents a balance between satisfaction of CC and the relative-entropy cost of deforming the GP prior pθp_\theta into the conditioned GP law πθ(⋅∣C)\pi_\theta(\cdot\mid C).

Hard Constraints. Suppose that the additional condition CC is the event that the approximate GP sample lies in a feasible set AA, so that p(C∣f~)=1A(f~)p(C \mid\tilde{f}) = \mathbf{1}_A(\tilde{f}). If pθ(A)>0p_\theta(A) > 0, then Zθ=pθ(A)Z_\theta= p_\theta(A) and πθ(⋅∣C)=pθ(⋅∣A)\pi_\theta(\cdot\mid C) = p_\theta(\cdot\mid A). Since dpθ(⋅∣A)/dpθ=1A/pθ(A)\mathrm{d}p_\theta(\cdot\mid A)/\mathrm{d}p_\theta= \mathbf{1}_A/p_\theta(A), we obtain

log⁡Zθ=−KL⁡(pθ(⋅∣A)∥pθ).\log Z_\theta= -\operatorname{KL}\left(p_\theta(\cdot\mid A)\mathbin{\|}p_\theta\right).

Thus, for a positive-probability hard constraint, evidence maximisation admits the particularly simple interpretation of minimising the KL deformation from the unconditioned GP law to the constrained GP law.

Soft Constraints. Similarly, suppose that the additional condition is encoded by a likelihood of the form p(C∣f~)=aexp⁡{−ΦC(f~)}p(C \mid\tilde{f}) = a \exp\{-\Phi_C(\tilde{f})\}, where ΦC(f~)≥0\Phi_C(\tilde{f}) \ge0 and a>0a > 0 is independent of θ\theta. Substituting log⁡p(C∣f~)=log⁡a−ΦC(f~)\log p(C \mid\tilde{f}) = \log a - \Phi_C(\tilde{f}) into Eq. (20) gives, up to additive constants independent of θ\theta,

−log⁡Zθ=+cKL⁡(πθ(⋅∣C)∥pθ)+Ef~∼πθ(⋅∣C)[ΦC(f~)].(21)-\log Z_\theta\stackrel{+c}{=} \operatorname{KL}\left(\pi_\theta(\cdot\mid C)\|p_\theta\right) + \mathbb{E}_{\tilde{f}\sim\pi_\theta(\cdot\mid C)}\left[\Phi_C(\tilde{f})\right]. \tag*{(21)}

Thus, for soft conditions, evidence maximisation admits the familiar free-energy interpretation of balancing condition satisfaction against the KL deformation of the unconditioned GP law.

A Dynamic Interpretation

The static free-energy identity above expresses evidence maximisation in terms of condition satisfaction and a KL deformation cost. A standard stochastic-control interpretation of relative entropy, based on Doob transforms and Girsanov’s theorem, relates this deformation cost to the quadratic energy of the corresponding controlled drift ([7, 12, 3] (Øksendal 2003)). We now specialise this construction to the latent Ornstein–Uhlenbeck flow underlying FeatureFlow.

Recall from Eq. (18) that the latent target is ρθ(ξ∣C)=p(C∣gθ(ξ))r(ξ)Zθ\rho_\theta(\xi\mid C) = \frac{p(C\mid g_\theta(\xi))r(\xi)}{Z_\theta}. Rather than tilting the static latent law rr by p(C∣gθ(ξ))p(C \mid g_\theta(\xi)), one can consider a stationary reference diffusion in latent space, and tilt its path law by the likelihood of its terminal endpoint. We work on a finite generation horizon, rescaled to [0,1][0,1]. Let P\mathsf{P} denote the path law of the stationary latent Ornstein–Uhlenbeck process

dUs=−12βˉ(s)Us ds+βˉ(s) dBs,U0∼r,0≤s≤1,\mathrm{d}U_s = -\frac{1}{2}\bar{\beta}(s)U_s\,\mathrm{d}s + \sqrt{\bar{\beta}(s)}\,\mathrm{d}B_s,\qquad U_0\sim r,\qquad0\le s\le1,

where βˉ∈L1([0,1])\bar{\beta}\in L^1([0,1]) is nonnegative. Since the process is stationary, Us∼rU_s\sim r for every ss. Define the terminally tilted path law Qθ\mathsf{Q}_\theta by

dQθdP=p(C∣gθ(U1))Zθ.\frac{\mathrm{d}\mathsf{Q}_\theta}{\mathrm{d}\mathsf{P}}=\frac{p(C\mid g_\theta(U_1))}{Z_\theta}.

Its terminal marginal is ρθ(⋅∣C)\rho_\theta(\cdot\mid C). The corresponding Doob potential is hθ(s,u)=EP[p(C∣gθ(U1))∣Us=u]h_\theta(s,u)=\mathbb{E}_{\mathsf{P}}[p(C\mid g_\theta(U_1))\mid U_s=u]. This is the generation-time counterpart of the smoothed likelihood used for guidance. Under standard regularity conditions for the Doob transform and Girsanov’s theorem, the dynamics under Qθ\mathsf{Q}_\theta are

dUs=(−12βˉ(s)Us+βˉ(s)∇ulog⁡hθ(s,Us))ds+βˉ(s) dBsQθ.\mathrm{d}U_s=\left(-\frac{1}{2}\bar{\beta}(s)U_s+\bar{\beta}(s)\nabla_u\log h_\theta(s,U_s)\right)\mathrm{d}s+\sqrt{\bar{\beta}(s)}\,\mathrm{d}B_s^{\mathsf{Q}_\theta}.

Thus ∇ulog⁡hθ\nabla_u\log h_\theta is the generation-time counterpart of the guidance term used in the conditional flow. The standard Girsanov relative-entropy identity then gives (e.g., [12] (Øksendal 2003))

12EQθ[∫01βˉ(s)∥∇ulog⁡hθ(s,Us)∥2ds]=KL⁡(ρθ(⋅∣C)∥r)−KL⁡((Qθ)0∥P0).(22)\frac{1}{2}\mathbb{E}_{\mathsf{Q}_\theta}\left[\int_0^1\bar{\beta}(s)\left\|\nabla_u\log h_\theta(s,U_s)\right\|^2\mathrm{d}s\right]=\operatorname{KL}\left(\rho_\theta(\cdot\mid C)\|r\right)-\operatorname{KL}\left((\mathsf{Q}_\theta)_0\|\mathsf{P}_0\right). \tag*{(22)}

Suppose now that we define the guidance energy by

Eguide(θ)=12EQθ[∫01βˉ(s)∥∇ulog⁡hθ(s,Us)∥2ds].\mathcal{E}_{\mathrm{guide}}(\theta)=\frac{1}{2}\mathbb{E}_{\mathsf{Q}_\theta}\left[\int_0^1\bar{\beta}(s)\left\|\nabla_u\log h_\theta(s,U_s)\right\|^2\mathrm{d}s\right].

Gaussian entropy contraction for the Ornstein–Uhlenbeck semigroup gives ([13, 2])

KL⁡((Qθ)0∥P0)≤exp⁡{−∫01βˉ(s) ds}KL⁡(ρθ(⋅∣C)∥r).\operatorname{KL}\left((\mathsf{Q}_\theta)_0\|\mathsf{P}_0\right)\le\exp\left\{-\int_0^1\bar{\beta}(s)\,\mathrm{d}s\right\}\operatorname{KL}\left(\rho_\theta(\cdot\mid C)\|r\right).

Hence, whenever KL⁡(ρθ(⋅∣C)∥r)<∞\operatorname{KL}(\rho_\theta(\cdot\mid C)\|r)<\infty, the boundary term vanishes in the complete-noising limit ∫01βˉ(s) ds→∞\int_0^1\bar{\beta}(s)\,\mathrm{d}s\to\infty. In this case, Eq. (22) then yields

Eguide(θ)=KL⁡(ρθ(⋅∣C)∥r).\mathcal{E}_{\mathrm{guide}}(\theta)=\operatorname{KL}\left(\rho_\theta(\cdot\mid C)\|r\right).

Thus, combining this with Eq. (19), we have that

log⁡Zθ=Eξ0∼ρθ(⋅∣C)[log⁡p(C∣gθ(ξ0))]−Eguide(θ).\log Z_\theta=\mathbb{E}_{\xi_0\sim\rho_\theta(\cdot\mid C)}\left[\log p(C\mid g_\theta(\xi_0))\right]-\mathcal{E}_{\mathrm{guide}}(\theta).

It follows, applying the standard control-energy representation to our latent flow, that log-evidence maximisation can be interpreted dynamically as balancing condition satisfaction against the guidance energy required to deform the reference process. For positive-probability hard constraints, the log-likelihood contribution vanishes on the constrained support, so, in the complete-noising limit, evidence maximisation reduces to minimising the guidance energy. For soft constraints, the objective also includes the expected residual loss in Eq. (21).

Experimental Details & Additional Results

All reported experiments use the CPU on an Apple M5 Pro with 24 GB memory, using Python 3.12.13, PyTorch 2.13.0 (Paszke et al., 2019), and GPyTorch 1.15.2 (Gardner et al., [11]). Runtime values are therefore hardware-dependent.

Probabilistic Downscaling

This experiment compares a dense function-space GP flow with FeatureFlow, with increasing spatial resolution. Both methods use the same fitted kernel, observations, non-linear constraints, diffusion schedule, and sampling budget; only the sampling representation differs.

Ground Truth and Observations

The spatial domain is [0,1]2[0,1]^2. Each H×HH \times H evaluation grid contains N=H2N = H^2 equally spaced points, including the domain boundary. We use a zero-mean GP with an RBF kernel (Rasmussen and Williams, 2006):

k(x,x′)=σf2exp⁡(−∥x−x′∥22ℓ2).k(x,x') = \sigma_f^2 \exp\left(-\frac{\lVert x-x'\rVert^2}{2\ell^2}\right).

The kernel is fitted once to 17 anchor observations and then frozen. Nine anchors have value +5+5 at (a,a)(a,a) for a∈A={0.1,0.2,…,0.9}a \in A = \{0.1, 0.2, \ldots, 0.9\}, while eight have value −5-5 at (a,1−a)(a,1-a) ∀a∈A∖{0.5}\forall a \in A\setminus\{0.5\}. The observation-noise variance is 10−410^{-4}. Starting from ℓ=0.3\ell= 0.3 and σf2=1\sigma_f^2 = 1, the hyperparameters are optimised conventionally by exact marginal likelihood for 500 Adam iterations with learning rate 0.1, while the zero mean and noise variance remain fixed. The fitted values are ℓ=0.096\ell= 0.096 and σf2=2.486\sigma_f^2 = 2.486.

The ground truth f⋆f^\star is one fixed draw from a scalable approximation to the anchor-conditioned posterior. The posterior is represented using 4,096 RFFs and the 17 additional observation-noise features required by the exact Matheron’s rule correction ((Rahimi and Recht, 2007; Wilson et al., 2020)). We then sample 32 locations {xm}m=132\{x_m\}_{m=1}^{32} uniformly from [0,1]2[0,1]^2 and observe ym=f⋆(xm)y_m = f^\star(x_m) without adding further noise. Both methods target the same GP posterior conditioned on these 32 pairs, using a Gaussian observation model with variance 10−410^{-4}.

The GP flow evaluates the exact posterior mean and covariance on each grid and samples an NN-dimensional whitened representation. Its covariance square root is computed by eigendecomposition with jitter 10−1210^{-12}. FeatureFlow instead uses 1,024 random Fourier features and 32 observation-noise features, giving a fixed latent width of 1,056.

Non-linear Conditions

Each grid is divided into a regular 8×88 \times8 partition. For region AqA_q of the coarse grid, the conditioning targets are the discrete maximum and minimum of the ground truth in that grid cell:

yqmax⁡=max⁡xi∈Aqf⋆(xi),yqmin⁡=min⁡xi∈Aqf⋆(xi).y_q^{\max} = \max_{x_i \in A_q} f^\star(x_i), \qquad y_q^{\min} = \min_{x_i \in A_q} f^\star(x_i).

The targets are recomputed at each resolution. The condition likelihood is

log⁡p(C∣f)=−12σC2∑q=164[(max⁡xi∈Aqf(xi)−yqmax⁡)2+(min⁡xi∈Aqf(xi)−yqmin⁡)2].\log p(C \mid f) = -\frac{1}{2\sigma_C^2}\sum_{q=1}^{64}\left[\left(\max_{x_i \in A_q} f(x_i)-y_q^{\max}\right)^2+\left(\min_{x_i \in A_q} f(x_i)-y_q^{\min}\right)^2\right].

with σC=10−3\sigma_C = 10^{-3}. Thus each sample is guided by 64 maximum and 64 minimum residuals. The guidance for a GP flow differentiates this condition with respect to the whitened grid values; FeatureFlow differentiates the same condition through the feature map with respect to its weights.

Sampling and resolution sweep

Both methods use the same linear variance-preserving diffusion schedule. For each method and resolution, we generate 50 samples using 1,000 stochastic Euler–Maruyama steps on a log-SNR time grid from t=1t = 1 to t=10−10t = 10^{-10}.

Guidance uses one Monte Carlo terminal draw, with its norm smoothly clipped to 200. All experiments use a fixed seed for reproducibility.

For display in Figure 3, the function-space side lengths are H∈{16,24,32,40,48,56,64,72,88,96}H \in\{16, 24, 32, 40, 48, 56, 64, 72, 88, 96\}. FeatureFlow additionally uses H∈{112,128,144,168,192,224,256}H \in\{112, 128, 144, 168, 192, 224, 256\}.

Timing and Evaluation

Setup time for the GP flow includes evaluating the posterior mean and dense N×NN \times N covariance and computing its eigendecomposition. FeatureFlow setup involves constructing the fixed-width weight-space flow, evaluating the basis on the grid, and constructing the two condition objects. Kernel fitting, generation of the ground truth and point observations, and construction of the regional targets are excluded from timing.

For sample bb, field accuracy is measured by

RMSE⁡b=[1N∑i=1N(fb(xi)−f∗(xi))2]1/2.\operatorname{RMSE}_{b} = \left[\frac{1}{N}\sum_{i=1}^{N}\left(f_b(x_i)-f^{*}(x_i)\right)^2\right]^{1/2}.

In Figure 5, we report the mean RMSE over the 50 samples, measured across a range of different numbers of features RR, with all other parameters held fixed (H=W=96H = W = 96, N=9216N = 9216).

Figure 5. (a) Comparison of sample quality between the GP flow and FeatureFlow, as a function of the number of features RR. (b) Total wall time of sampling using each method; on this problem FeatureFlow trades off a small decrease in sample quality for large computational speed-up.

In Figure 3, we show the measured setup times together with reference slopes O(N3)O(N^3) for the dense GP flow and O(N)O(N) for FeatureFlow. These are fixed reference exponents rather than fitted slopes. For the 0.5-second setup-budget comparison, the highest measured resolution within budget is 40×4040 \times40 for function space and 144×144144 \times144 for FeatureFlow.

PDE Solutions

The spatial domain Ω\Omega is the interior of a discrete star-shaped mask, embedded in the unit square [0,1]2[0, 1]^2 (shape H×W=H2H \times W = H^2). The mask was retrieved from the code accompanying Solin and Kok (2019), which is licensed under Apache 2.0.

We consider the stationary Allen–Cahn equation

af(x)−bf(x)3−cΔf(x)=0x∈Ω,f(x)=0x∈∂Ω,(23)\begin{aligned} af(x) - bf(x)^3 - c \Delta f(x) &= 0 && x \in\Omega, \\ f(x) &= 0 && x \in\partial\Omega, \tag*{(23)} \end{aligned}

with (a,b,c)=(−1,−0.2,2×10−3)(a, b, c) = (-1, -0.2, 2 \times10^{-3}). Equivalently, the physical residual is rPDE(f)=−f+0.2×f3−(2×10−3)Δfr_{\mathrm{PDE}}(f) = -f + 0.2 \times f^3 - (2 \times10^{-3})\Delta f.

Reference field. The observation-generating field was generated via a numerical solve using a nine-point Laplacian on a 64×6464 \times64 grid. With h=1/63h = 1/63, the nine-point Laplacian is

(Δhf)ij=16h2[∑(p,q)∈Afi+p,j+q+∑(p,q)∈Bfi+p,j+q−20fij].(24)(\Delta_h f)_{ij} = \frac{1}{6h^2}\left[\sum_{(p,q)\in\mathcal{A}} f_{i+p,j+q} + \sum_{(p,q)\in\mathcal{B}} f_{i+p,j+q} - 20f_{ij}\right]. \tag*{(24)}

where A={(−1,0),(1,0),(0,−1),(0,1)}\mathcal{A} = \{(-1,0),(1,0),(0,-1),(0,1)\} and B={(−1,−1),(−1,1),(1,−1),(1,1)}\mathcal{B} = \{(-1,-1),(-1,1),(1,-1),(1,1)\}. The eighth smallest Dirichlet eigenmode of −cΔh-c\Delta_h was used to initialise the non-linear solve, in order to converge to a high-frequency solution. A damped Newton method then solves Eq. (23). The RMS-residual tolerance is 10−1010^{-10}, the maximum number of Newton updates is 80, and the smallest permitted line-search step is 2−242^{-24}. The resulting 64×6464 \times64 array is used for observations.

Observations and GP posterior

We draw M=16M = 16 distinct observation locations Xy={xm}m=1MX_y = \{\boldsymbol{x}_m\}_{m=1}^{M} uniformly without replacement from the array of the numerical solve, which we treat as the ground truth. Measurements obey

ym=f⋆(xm)+ϵm,ϵm∼iidN(0,0.012).y_m = f_\star(\boldsymbol{x}_m) + \epsilon_m,\qquad\epsilon_m \mathrel{\overset{\mathrm{iid}}{\sim}} \mathcal{N}(0,0.01^2).

The zero-mean GP prior has an isotropic scaled radial-basis-function kernel

kθ(x,x′)=σf2exp⁡(−∥x−x′∥22ℓ2).k_\theta(x,x') = \sigma_f^2 \exp\left(-\frac{\lVert x-x'\rVert^2}{2\ell^2}\right).

The observation noise variance is fixed at 10−410^{-4}. At every value of ℓ\ell, the prior is conditioned analytically on the MM observations:

Cθ=Kθ(Xy,Xy)+10−4I,C_\theta= K_\theta(X_y,X_y) + 10^{-4}I,
mθ(x)=kθ(x,Xy)Cθ−1y,m_\theta(x) = k_\theta(x,X_y)C_\theta^{-1}y,
kθpost(x,x′)=kθ(x,x′)−kθ(x,Xy)Cθ−1kθ(Xy,x′).k_\theta^{\mathrm{post}}(x,x') = k_\theta(x,x') - k_\theta(x,X_y)C_\theta^{-1}k_\theta(X_y,x').

Every run starts from ℓ=0.3\ell= 0.3. The output scale is frozen at σf2=1.0\sigma_f^2 = 1.0 during adaptation, so the length scale is the only optimized kernel parameter.

Function-space and Feature-space Representations

GP flow. At a grid of N=H2N = H^2 points, the dense method evaluates the posterior mean and covariance, computes a symmetric eigendecomposition Kθpost=UθΛθUθTK_\theta^{\mathrm{post}} = U_\theta\Lambda_\theta U_\theta^\mathsf{T}, and uses L=UθΛθ1/2L = U_\theta\Lambda_\theta^{1/2} to map a whitened state z∈RNz \in\mathbb{R}^N to fθ=m+Lθzf_\theta= m + L_\theta z. A diagonal jitter of 10−1210^{-12} is added before the eigendecomposition and eigenvalues are lower-clamped at 10−1210^{-12}. During adaptation this dense decoder is recomputed after each length scale update.

FeatureFlow. The feature-space method uses the kernel approximation defined by

fθ(x)=m(x)+Ψθ⟨y⟩(x)Tξ^,ξ^∼N(0,IR+M).f_\theta(x) = m(x) + \Psi_\theta^{\langle y\rangle}(x)^\mathsf{T}\hat{\xi},\qquad\hat{\xi}\sim\mathcal{N}(0,I_{R+M}).

The first R=256R = 256 features are Dirichlet Laplacian eigenfunctions on the star domain. The remaining ∣Xy∣=M=16\lvert X_y\rvert= M = 16 features implement the observation-noise block in a Matheron correction (Wilson et al., 2020); thus, the total diffusion dimension is R=272R = 272.

The eigenbasis is constructed numerically once on a fine 256×256256 \times256 star mask, according to Solin and Kok (2019). The exact RBF kernel supplies the rank-16 pathwise conditioning correction and posterior mean. Both the spectral amplitudes and conditioning correction are refreshed after every adaptive update.

PDE and Boundary Likelihoods

There are two conditions, C∈{PDE,∂Ω}C \in\{\mathrm{PDE}, \partial\Omega\}: the PDE condition and the boundary condition. Each has log likelihood

ℓC=log⁡p(C∣fθ)=−12AC∑j=1AC(rC,j(fθ)σC)2.\ell_C = \log p(C \mid f_\theta) = -\frac{1}{2A_C}\sum_{j=1}^{A_C}\left(\frac{r_{C,j}(f_\theta)}{\sigma_C}\right)^2.

Here, ACA_C is the number of residual components, and σC\sigma_C is the dimensionless constant that defines the “sharpness” of the condition. The total constraint log likelihood is ℓcond=ℓPDE+ℓ∂Ω\ell_{\mathrm{cond}} = \ell_{\mathrm{PDE}} + \ell_{\partial\Omega}.

For the PDE residual, σPDE=10−3\sigma_{\mathrm{PDE}} = 10^{-3}, and for the boundary residual, σ∂Ω=10−1\sigma_{\partial\Omega} = 10^{-1}. Setting σ∂Ω\sigma_{\partial\Omega} to larger values for the GP flow leads to very poor PDE residuals. The boundary is the one-pixel exterior ring whose pixels have at least one four-connected neighbour in Ω\Omega, and its target value is zero, in keeping with the boundary condition in Eq. (23).

The dense GP flow evaluates the PDE residual at interior stencil centres using Eq. (24), with h=1/(H−1)h = 1/(H - 1). The sampled field is defined on the whole square; consequently, stencil neighbours outside Ω\Omega take their sampled values, while the separate exterior-ring likelihood steers the adjacent values toward zero. FeatureFlow instead evaluates

rPDE(fθ;x)=afθ(x)−bfθ(x)3−cΔfθ(x)r_{\mathrm{PDE}}(f_\theta;x) = af_\theta(x) - bf_\theta(x)^3 - c\Delta f_\theta(x)

at every interior grid point, using the eigenvalues and analytic Laplacian of the pathwise RBF correction. In Fig. 1, the two plotted PDE MSEs therefore use the same physical equation but method-specific operators (nine-point finite difference for the GP flow and analytic for FeatureFlow).

Guided Sampling

Every run uses num_steps=1000. The sampler constructs 1,001 scheduled times at equal increments of log signal-to-noise ratio between t=1t = 1 and t=10−10t = 10^{-10}. It uses a linear variance-preserving schedule and stochastic Euler–Maruyama integration.

Likelihood guidance uses S=5S = 5 terminal Monte Carlo draws per particle and step. The Monte Carlo noise is drawn once and held fixed along each trajectory. For stability, the guidance vector is smoothly norm-limited using a tanh function. The maximum norm is 200 for the function-space GP flow and 100 for the weight-space FeatureFlow.

Every fixed-prior run generates 50 particles in one batch. The adaptive runs use only 5 particles. In summary, the common sampling configuration is: float64 CPU calculation; num_steps=1000; equal log-SNR spacing on t∈[10−10,1]t \in[10^{-10}, 1]; a linear variance-preserving schedule; stochastic Euler–Maruyama integration with final denoising; 50 particles per fixed-prior ensemble; five particles during adaptation; five guidance terminal draws; and guidance norm limits of 200 for the GP flow and 100 for FeatureFlow.

Online Hyperparameter Adaptation

Adaptive runs start from ℓ=0.3\ell= 0.3 and update the lengthscale every 10 integration steps using Adam with learning rate 0.05. Hence, the 999 integrated steps produce 99 parameter updates. A separate set of S=5S = 5 frozen terminal draws is used in the adaptation objective. At an update time, one update step is taken according to App. § 8, in order to maximise the objective. Hyperparameter trajectories during the adaptive sampling run are shown in Figure 6, for both the GP flow and FeatureFlow. We note that the optimisation dynamics in FeatureFlow appear more stable than those in the vanilla GP flow.

Figure 6. Hyperparameter adaptation histories in both function (left) and weight space (right) for the PDE problem.

Table 1 gives the realised final values. The output scale is 1.0 in each case.

H=WH = WNNGP flowFeatureFlow
162560.18720.1322
224840.15950.1248
3210240.139780.1222
4520250.18660.1240
6339690.15720.1275
908100—0.1288
12816384—0.1311

Table 1. Final fitted lengthscales. A dash denotes a GP flow resolution that was not run because of its dense covariance cost.

Resolution Ablation, Metrics, and Timing

We consider side lengths H∈{16,22,32,45,63,90,128}H \in\{16, 22, 32, 45, 63, 90, 128\}. FeatureFlow is run at all seven resolutions; the dense GP flow is restricted to H≤64H \le64. The same 16 observations are used at every resolution.

PDE error is the mean of the squared, unscaled physical residual over all 50 samples and all PDE evaluation points. Boundary error is the corresponding mean of f2f^2 on the exterior ring.

Wall time is measured with perf_counter. For an initial run, total time is fixed-run setup plus fixed-run sampling. For an adapted result it is the setup and sampling time of the fresh final fixed run plus the complete adaptive run, including adaptive setup and all 99 updates. The dotted reference curves do not estimate their exponent: the exponents are fixed to three for GP flow and one for FeatureFlow, with only a multiplicative constant fitted by matching the geometric mean of measured and reference times in log space.

Sea Level Anomaly Estimation

Data and Synthetic Observations

Truth field and sampling geometry. The target field has shape 105×80105 \times80 and is taken from the IMOS OceanCurrent gridded sea-level anomaly (GSLA) analysis for 29 August 2026 in the southeast-Australia domain, provided under a Creative Commons Attribution 4.0 International License (IMOS, 2026). In Figure 7, we show a visualisation of the GSLA analysis—which we treat as a high-quality reference field because it assimilates additional observational sources unavailable to our inversion. We use the tracks of 16 real, distinct satellite passes (IMOS, 2026), with simulated shots taken at 0.288 km intervals. The GSLA field is sampled at these locations by bilinear interpolation of the gridded product. This produces 63,458 shots spanning approximately 18,276 km of satellite track length.

Figure 7. Visualisation of the GSLA analysis provided by (IMOS, 2026). This ground truth SLA field is obtained using a range of observational data as shown, beyond satellite altimetry.

Nuisance fields and waveform generation. The sea-surface height at each shot is taken from the interpolated GSLA field. The significant wave height (SWH), 10-m wind speed U10U_{10}, and skewness λ\lambda are synthetic nuisance fields treated as known in the experiment. The reflectivity-tilt parameter is constant, β=0.12\beta= 0.12.

The forward model produces one 104-gate mean waveform per shot. Conditional on that mean, independent Gamma speckle is generated with 90 looks, resulting in 63,458 ×\times 104 observations.

Information supplied to the inversion. The inversion observes the raw 104-gate waveform from every shot. It treats the four nuisance quantities (SWH, U10U_{10}, λ\lambda, and β\beta) as known. Thus the only unknown field in this experiment was sea-surface height. The exact joint Gamma log-likelihood is evaluated over all 6,599,632 waveform gates. Shots are divided into chunks of 256 solely to limit memory use; chunk log-likelihoods are summed before guidance is calculated, so this introduces no likelihood factorisation or approximation.

Spatial Prior and Basis Representation

Longitude ζ\zeta and latitude φ\varphi are mapped to a local planar coordinate system before applying the RBF kernel. With (ζ0,φ0)=(152.5∘,−35∘)(\zeta_0,\varphi_0)=(152.5^\circ,-35^\circ),

x=(ζ−ζ0)×91.19,y=(φ−φ0)×111.32x=(x,y)T.x=(\zeta-\zeta_0)\times91.19,\quad y=(\varphi-\varphi_0)\times111.32\quad\mathbf{x}=(x,y)^{\mathsf{T}}.

The prior is

f(x)∼GP(μ,σf2exp⁡[−∥x−x′∥22ℓ2]).f(\mathbf{x})\sim\mathcal{GP}\left(\mu,\sigma_f^2\exp\left[-\frac{\lVert\mathbf{x}-\mathbf{x}'\rVert^2}{2\ell^2}\right]\right).

For the oracle prior, μ\mu, σf2\sigma_f^2, and ℓ\ell are fitted to the complete truth field before conditioning on waveforms. The adaptive experiment retains the oracle mean and variance and treated only the length scale as unknown.

A total of R=512R=512 RFFs (256 sampled frequencies) parameterises the field as in A.1.

The same weight vector is evaluated both on the 105 × 80 display grid and at all shot coordinates. The RFF run therefore has 512 latent variables regardless of the number of observations. The full rectangular field is sampled, but land cells are masked when computing field metrics. Future work could investigate appropriate physics-informed boundary conditions, especially near coastlines, that would inform the samples drawn from FeatureFlow beyond the non-Gaussian measurements considered here.

Guided Sampling

Every run uses num_steps=100. The sampler constructs 101 scheduled times at equal increments of log signal-to-noise ratio between t=1t=1 and t=10−10t=10^{-10}.

Likelihood guidance uses S=1S=1 terminal Monte Carlo draw per particle and step. For stability, the guidance vector is smoothly norm-limited to a maximum norm of 1000 using a tanh function.

The fixed-prior runs each generate 50 particles in one batch. In summary, the common sampling configuration is: RFF basis with R=512R=512; float64 CPU calculation; num_steps=100; equal log-SNR spacing on t∈[10−10,1]t\in[10^{-10},1]; stochastic Euler–Maruyama integration; 50 particles per fixed-prior ensemble; one guidance terminal draw; guidance norm limit 1000; and likelihood chunks of 256 shots.

Adaptive Length Scale Experiment

The adaptive comparison consists of the following three stages (samples from each shown in Figure 8).

Figure 8. (a) The ground-truth field, with satellite tracks overlaid. Samples using FeatureFlow with (b) oracle, (c) misspecified and (d) fitted kernel length scales ℓ\ell. The oracle fixed flow represents the best possible performance of FeatureFlow with respect to the adaptive scheme.

  1. Misspecified fixed prior. The initial length scale is set to three times the oracle value, ℓmis=3ℓoracle=226.25\ell_{\mathrm{mis}}=3\ell_{\mathrm{oracle}}=226.25 km. With this value fixed, 50 posterior draws are produced using the sampling configuration above.

  1. Adaptive path. A single guided trajectory is initialised at the same misspecified length scale. The kernel output variance is frozen at σf2=0.014 m2\sigma_f^2=0.014\ \mathrm{m}^2, the mean is fixed at 0.097 m, and only the isotropic RBF length scale is trainable. After every five integration steps, one Adam update (Kingma and Ba, 2015) is applied to the length scale.

The learning rate is rescaled from 0.07 to 0.07×226=15.820.07 \times226 = 15.82 using the initial length scale to encourage convergence in a reasonable number of steps. Both guidance and kernel fitting use only one terminal Monte Carlo draw; the kernel-fitting draw noise remains fixed between updates. The final fitted length scale obtained is 81.55 km.

  1. Fitted fixed prior. The fitted value 81.55 km is frozen and a fresh 50-draw guided ensemble was generated. This is the adaptive method’s final posterior ensemble, used to report results.

The separate oracle fixed run uses a fixed random seed for both its basis construction and sampler. Its length scale is 75.42 km and it also contains 50 draws.

All experiments use a fixed seed for reproducibility.

Baselines and evaluation

The classical baseline is MLE3 retracking applied independently to every noisy waveform ([4] (Rodríguez 1988; Tourain et al. 2021)). Its three fitted quantities are epoch, SWH, and backscatter; sea-surface height is then obtained from the fitted epoch. The retracker converged for all 63,458 waveforms. We report the uncorrected MLE3 baseline as the primary comparison. A post-hoc debiased diagnostic subtracts the MLE3 bias measured on these same evaluation shots (−7.408-7.408 cm); because this correction uses the truth, it is not a deployable estimator and is only to be used for comparison.

For an ensemble {f(m)(x)}m=1M\{f^{(m)}(\mathbf{x})\}_{m=1}^{M}, the point estimate is its sample mean. Field RMSE is

RMSE⁡field=100×1∣O∣∑i∈O(f‾(xi)−f⋆(xi))2.\operatorname{RMSE}_{\mathrm{field}} = 100 \times\sqrt{\frac{1}{|\mathcal{O}|}\sum_{i \in\mathcal{O}}\left(\overline{f}(x_i)-f^{\star}(x_i)\right)^2}.

where O\mathcal{O} is the interior of the finite-ocean mask, f‾\overline{f} is the mean field, taken over posterior samples, and f⋆f^{\star} is the ground truth field. On-track RMSE uses the analogous average over all 63,458 shots after evaluating each draw’s shared RFF weights at the exact shot coordinates. MLE3 has no two-dimensional field estimate, so only its on-track error is reported. The values provided in Table 2 are reflected in Figure 4(d), and a comparison with the post hoc debiased MLE3 estimate is provided in Figure 9.

MethodDrawsField RMSE / cmOn-track RMSE / cm
Misspecified fixed (ℓ=226.25\ell= 226.25 km)5012.6058.185
Adaptive path (226.25→81.55226.25 \to81.55 km)114.02412.449
Fitted fixed (ℓ=81.55\ell= 81.55 km)508.1731.651
Oracle fixed (ℓ=75.42\ell= 75.42 km)507.6351.830
MLE3——9.202
Post hoc debiased MLE3——5.458

Table 2. Observed reconstruction errors. The adaptive-path row is the single changing-prior trajectory used for fitting, not the final ensemble.

Figure 9. Equivalent results to those shown in Figure 4(d, Figure 4f), only using post hoc debiased MLE3 results. FeatureFlow exhibits smaller RMS error even against this more challenging baseline.

Forward Model

The forward model used to generate synthetic radar echoes given a ground-truth SLA field is detailed here. The model has two parts: a deterministic mapping from the SLA field and the nuisance fields to the mean waveform, followed by a non-Gaussian observation model.

For an observation at location xj(ζj,φj)\mathbf{x}_j(\zeta_j,\varphi_j), the sea-surface height f(xj)f(\mathbf{x}_j) determines the two-way delay relative to the tracker reference height HH:

τj=2c[H−f(xj)],\tau_j = \frac{2}{c}\left[H-f(\mathbf{x}_j)\right],

where cc is the speed of light. The delay associated with range gate kk is

tk=(k−Gref)Δt,k=1,…,K,t_k=(k-G_{\mathrm{ref}})\Delta t,\qquad k=1,\ldots,K,

where Δt=3.125\Delta t=3.125 ns (temporal spacing between adjacent range gates) and Gref=32.5G_{\mathrm{ref}}=32.5 (the range gate index associated with an SLA f(xj)=0f(\mathbf{x}_j)=0). The significant wave height (SWH) determines the temporal width of the scattering surface and its convolution with the radar point-target response:

σs,j=SWHj2c,σc,j2=σp2+σs,j2,\sigma_{s,j}=\frac{\mathrm{SWH}_j}{2c},\qquad\sigma_{c,j}^{2}=\sigma_{p}^{2}+\sigma_{s,j}^{2},

where σp\sigma_p is the width of the point-target response and σc,j2\sigma_{c,j}^{2} is the composite waveform width obtained by convolving the scattering-surface distribution with the point-target response. Wind speed near the surface (U10U_{10}) determines the backscatter coefficient σj0\sigma_j^{0} using empirical coefficients ΣA\Sigma_A and ΣB\Sigma_B, and waveform amplitude AjA_j:

σj0=ΣA−ΣBlog⁡10(max⁡{U10,j,1}),Aj=Pref10(σj0−σref0)/10.\sigma_j^{0}=\Sigma_A-\Sigma_B\log_{10}\left(\max\{U_{10,j},1\}\right),\qquad A_j=P_{\mathrm{ref}}10^{(\sigma_j^{0}-\sigma_{\mathrm{ref}}^{0})/10}.

For a Gaussian sea surface at exact nadir, the Brown mean waveform is

Bj(x)=Ajexp⁡(α2σc,j22−αx)Φ(xσc,j−ασc,j),B_j(x)=A_j\exp\left(\frac{\alpha^2\sigma_{c,j}^{2}}{2}-\alpha x\right)\Phi\left(\frac{x}{\sigma_{c,j}}-\alpha\sigma_{c,j}\right),

where x=tk−τjx = t_k - \tau_j, α\alpha is the trailing-edge decay rate, and Φ\Phi is the standard Gaussian cumulative distribution function. Surface skewness λj\lambda_j and electromagnetic reflectivity-tilt parameter βj\beta_j are incorporated through the Hermite coefficients

(q0,j,q1,j,q2,j,q3,j,q4,j)=(1,βj,−λjβj2,−λj6,−λjβj6).(q_{0,j},q_{1,j},q_{2,j},q_{3,j},q_{4,j}) = \left(1,\beta_j,-\frac{\lambda_j\beta_j}{2},-\frac{\lambda_j}{6},-\frac{\lambda_j\beta_j}{6}\right).

The expected power in gate kk of echo jj is then

mjk=Pthermal+∑n=04qn,j(−1)nσs,jndnBj(x)dxn∣x=tk−τjm_{jk}=P_{\mathrm{thermal}}+\sum_{n=0}^{4}q_{n,j}(-1)^n\sigma_{s,j}^{n}\left.\frac{\mathrm{d}^n B_j(x)}{\mathrm{d}x^n}\right|_{x=t_k-\tau_j}

where PthermalP_{\mathrm{thermal}} is the minimum power observed due to the thermal floor. Finally, we model the observed gate powers to follow an exact speckle-noise model using 90 looks

Yjk∣mjk∼Gamma⁡(Nl,mjkNl),Nl=90,Y_{jk}\mid m_{jk}\sim\operatorname{Gamma}\left(N_l,\frac{m_{jk}}{N_l}\right),\qquad N_l=90,

independently across echoes and range gates; we use the shape-scale convention for the Gamma distribution here. This parameterisation gives

E[Yjk∣mjk]=mjk,Var⁡[Yjk∣mjk]=mjk2Nl.\mathbb{E}[Y_{jk}\mid m_{jk}]=m_{jk},\qquad\operatorname{Var}[Y_{jk}\mid m_{jk}]=\frac{m_{jk}^{2}}{N_l}.

Thus, the forward model maps the SLA and nuisance fields to all 6,599,632 observed powers:

{f(xj),SWHj,U10,j,λj,βj}j=163,458↦{mjk}↦{Yjk}\left\{f(x_j),\mathrm{SWH}_j,U_{10,j},\lambda_j,\beta_j\right\}_{j=1}^{63,458}\mapsto\{m_{jk}\}\mapsto\{Y_{jk}\}

where the first map is deterministic and a function of all nuisance variables, and the second map is a stochastic draw from the Gamma observation model.

References

  1. [1]Brian D. O. Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313–326, 1982.DOI
  2. [2]Dominique Bakry, Ivan Gentil, and Michel Ledoux. Analysis and Geometry of Markov Diffusion Operators, volume 348 of Grundlehren der mathematischen Wissenschaften. Springer, 2014. doi: 10.1007/978-3-319-00227-9.DOI
  3. [3]Michelle Boué and Paul Dupuis. A variational representation for certain functionals of Brownian motion. The Annals of Probability, 26(4):1641–1659, 1998. doi: 10.1214/aop/1022855876.DOI
  4. [4]G. Brown. The average impulse response of a rough surface and its applications. IEEE Transactions on Antennas and Propagation, 25(1):67–74, January 1977. ISSN 1558-2221. doi: 10.1109/TAP.1977.1141536. URL https://ieeexplore.ieee.org/document/1141536.DOI
  5. [5]Botond Cseke and Tom Heskes. Approximate marginals in latent Gaussian models. Journal of Machine Learning Research, 12:417–454, 2011.DOI
  6. [6]Jordan P. Deshon, Jeffrey D. Niemann, Timothy R. Green, Andrew S. Jones, and Peter J. Grazaitis. Stochastic analysis and probabilistic downscaling of soil moisture in small catchments. Journal of Hydrology, 585:124711, June 2020. ISSN 0022-1694. doi: 10.1016/j.jhydrol.2020.124711. URL https://www.sciencedirect.com/science/article/pii/S0022169420301712.DOI
  7. [7]Joseph L. Doob. Conditional brownian motion and the boundary limits of harmonic functions. Bulletin de la Société Mathématique de France, 85:431–458, 1957. doi: 10.24033/bsmf.1494.DOI
  8. [9]Lawrence C. Evans. Partial differential equations. American Mathematical Society, Providence, R.I., 2010. ISBN 9780821849743 0821849743.
  9. [10]Lee-Leung Fu and Anny Cazenave. Satellite Altimetry and Earth Sciences: A Handbook of Techniques and Applications. Academic Press, 2001. ISBN 978-0-12-269545-2.
  10. [11]Jacob R Gardner, Geoff Pleiss, David Bindel, Kilian Q Weinberger, and Andrew Gordon Wilson. GPyTorch: Blackbox matrix-matrix Gaussian process inference with GPU acceleration. In Advances in Neural Information Processing Systems, 2018.arxiv.org/abs/1809.11165
  11. [12]Igor V. Girsanov. On transforming a certain class of stochastic processes by absolutely continuous substitution of measures. Theory of Probability and Its Applications, 5(3):285–301, 1960. doi: 10.1137/1105027.DOI
  12. [13]Leonard Gross. Logarithmic Sobolev inequalities. American Journal of Mathematics, 97(4):1061–1083, 1975. doi: 10.2307/2373688.DOI
  13. [14]J. Gómez-Enri, C. P. Gommenginger, M. A. Skrokosz, P. G. Challenor, and J. Benveniste. Measuring Global Ocean Wave Skewness by Retracking RA-2 Envisat Waveforms. Journal of Atmospheric and Oceanic Technology, 24(6):1102–1116, June 2007. ISSN 0739-0572, 1520-0426. doi: 10.1175/JTECH2014.1. URL https://journals.ametsoc.org/view/journals/atot/24/6/jtech2014_1.xml.
  14. [15]Oliver Hamelijnck, Arno Solin, and Theodoros Damoulas. Physics-informed variational state-space Gaussian processes. Advances in Neural Information Processing Systems, 37:98505–98536, 2024.
  15. [16]James Hensman, Nicolo Fusi, and Neil D Lawrence. Gaussian processes for big data. arXiv preprint arXiv:1309.6835, 2013.arxiv.org/abs/1309.6835
  16. [17]James Hensman, Nicolas Durrande, and Arno Solin. Variational Fourier Features for Gaussian Processes. Journal of Machine Learning Research, 18(151):1–52, 2018. ISSN 1533-7928. URL http://jmlr.org/papers/v18/16-579.html.
  17. [18]Philipp Hess, Michael Aich, Baoxiang Pan, and Niklas Boers. Fast, scale-adaptive and uncertainty-aware downscaling of Earth system model fields with generative machine learning. Nature Machine Intelligence, 7(3):363–373, March 2025. ISSN 2522-5839.arxiv.org/abs/2403.02774

Paper details

vlnc:W_v68tktqq
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

generative AI tools

View statement
Looking for related papers…
Contents