Abstract
We introduce the use of the ZigZag sampler to the problem of sampling conditional diffusion processes (diffusion bridges). The ZigZag sampler is a rejectionfree sampling scheme based on a nonreversible continuous piecewise deterministic Markov process. Similar to the Lévy–Ciesielski construction of a Brownian motion, we expand the diffusion path in a truncated Faber–Schauder basis. The coefficients within the basis are sampled using a ZigZag sampler. A key innovation is the use of the fully local algorithm for the ZigZag sampler that allows to exploit the sparsity structure implied by the dependency graph of the coefficients and by the subsampling technique to reduce the complexity of the algorithm. We illustrate the performance of the proposed methods in a number of examples.
1 Introduction
Diffusion processes are an important class of continuoustime probability models which find applications in many fields such as finance, physics and engineering. They naturally arise by adding Gaussian random perturbations (white noise) to deterministic systems. We consider diffusions described by a onedimensional stochastic differential equation of the form
where \((W_t)_{t\ge 0}\) is a driving scalar Wiener process defined in some probability space and b is the drift of the process. The solution of Eq. (1), assuming it exists, is an instance of onedimensional timehomogeneous diffusion. We aim to sample X on [0, T] conditional on \(\{X_T=v\}\), also known as a diffusion bridge.
One driving motivation for studying this problem is estimation for discretely observed diffusions. Here, one assumes observations \({\mathcal {D}}=\{x_{t_1},\ldots , x_{t_N}\}\) at observations times \(t_1<\ldots < t_N\) are given and interest lies in estimation of a parameter \(\theta \) appearing in the drift b. It is well known that this problem can be viewed as a missing data problem as in Peters and With (2012), where one iteratively imputes the missing paths conditional on the parameter and the observations, and then the parameter conditional on the “full” continuous path. Due to the Markov property, the missing paths in between subsequent observations can be sampled independently and each of such segments constitutes a diffusion bridge. As this application requires sampling iteratively many diffusion bridges, it is crucial to have a fast algorithm for this step. We achieve this by adapting the ZigZag sampler for the simulation of diffusion bridges. The ZigZag sampler is an innovative nonreversible and rejectionfree Markov process Monte Carlo algorithm which can exploit the structure present in this highdimensional sampling problem. It is based on simulating a piecewise deterministic Markov process (PDMP). To the best of our knowledge, this is the first application of PDMPs for diffusion bridge simulation. This method also illustrates the use of a local version of the ZigZag sampler in a genuinely highdimensional setting (arguably even an infinitedimensional setting).
The problem of diffusion bridge simulation has received considerable attention over the past two decades, see, for example, Bladt and Sørensen (2014), Beskos et al. (2006), Roberts and Tweedie (1996), van der Meulen et al. (2018), and Bierkens (2020) and references therein. This far from exhaustive list of references includes methods that apply to a more general setting than considered here, such as multivariate diffusions, conditioning on partial observations and hypoelliptic diffusions. Among the methods that can be applied, most of the methodologies available are of the acceptance–rejection type and scale poorly with respect to some parameters of the diffusion bridge. For example, if the proposed path is not informed by the target distribution, the probability of accepting the path depends strongly on the discrepancy between the proposed path and the target diffusion bridge measure and usually scales poorly as the time horizon of the diffusion bridge T grows. In contrast, gradientbased techniques which compute informed proposals (e.g. Metropolisadjusted Langevin algorithm) require the evaluation of the gradient of the target distribution, which, in this case, is a path integral that has to be generally computed numerically and its computational cost is of order T, leading to computational limitations. The present work aims to alleviate such restrictions through the use of a rejectionfree method and an exact subsampling technique which reduces the cost of evaluating the gradient. On a more abstract level, our method can be viewed as targeting a probability distribution which is obtained by a pushforward of Wiener measure through a change of measure. It then becomes apparent that the studied problem of diffusion bridge simulation is a nicely formulated nontrivial example problem within this setting to study the potential of simulation based on PDMPs. Our results open new paths towards applications of the ZigZag for highdimensional problems.
1.1 Approach
In this section, we present the main ideas used in this paper.
1.1.1 Brownian motion expanded in the Faber–Schauder basis
Our starting point is the Lévy–Ciesielski construction of Brownian Motion. Define \(\bar{\phi }(t)=\sqrt{t}\), \(\phi _{0,0}(t)=\sqrt{T}\left( (t/T)\right. \left. \mathbf {1}_{[0,T/2]}(t) +(1t/T)\mathbf {1}_{(1/2,1]}(t)\right) \) and set
If \(\bar{\xi }\) is standard normal and \(\{\xi _{i,j}\}\) is a sequence of independent standard normal random variables (independent of \(\bar{\xi }\)), then
converges almost surely on [0, T] (uniformly in t) to a Brownian motion as \(N \rightarrow \infty \) [see, for example, Sect. 1.2 of McKean (1969)]. The basis formed by \(\bar{\phi }\) and \(\{\phi _{i,j}\}\) is known as the Faber–Schauder basis (see Fig. 1). The larger the i, the smaller the support of \(\phi _{i,j}\), reflecting that higherorder coefficients represent the fine details of the process. A Brownian bridge starting in u and ending in v can be obtained by fixing \(\bar{\xi }= v/\sqrt{T}\) and adding the function \(\bar{\bar{\phi }}(t)u = (1t/T)u\) \(t\mapsto u (1t/T)\) to (2). By sampling \(\xi ^N := (\xi _{0,0},\xi _{1,0},\ldots ,\xi _{N,2^N1})\) (which in this case are standard normal), approximate realisations of a Brownian bridge can be obtained.
1.1.2 ZigZag sampler for diffusion bridges
Let \({\mathbb {Q}}^u\) denote the Wiener measure on C[0, T] with initial value \(X_0 = u\) [cf. Sect. 2.4 of Karatzas and Shreve (1991)], and let \({\mathbb {P}}^u\) denote the law on C[0, T] of the diffusion in (1). Under mild conditions on b, the two measures are absolutely continuous and their Radon–Nikodym derivative \(\frac{ \mathrm {d}{\mathbb {P}}^u}{ \mathrm {d}{\mathbb {Q}}^u}\) is given by the Girsanov formula. Denote by \({\mathbb {P}}^{u, v_T}\) and \({\mathbb {Q}}^{u, v_T}\) the measures of the diffusion bridge and the Wiener bridge, respectively, both starting at u and conditioned to hit a point v at time T. Applying the Bayes’ law for conditional expectations (Klebaner 2005, Chapt. 10), we obtain:
where p and q are the transition densities of X under \({\mathbb {P}}, {\mathbb {Q}}\), respectively, so that for \(s<t\), \(p(s, x, t, y) \mathrm {d}y = P(X_t \in \mathrm {d}y \mid X_s = x)\). As p is intractable, the Radon–Nikodym derivative for the diffusion bridge is only known up to proportionality constant. The main idea now consists of rewriting the Radon–Nikodym derivative in (3), evaluating it in \(X^N\) and running the ZigZag sampler for \(\xi ^N\) targeting this density. Technicalities to actually get this to work are detailed in Sect. 3. A novelty is the introduction of a local version of the ZigZag sampler, analogously to the local bouncy particle sampler (BouchardCôté 2015). This allows for exploiting the sparsity in the dependence structure of the coefficients of the Faber–Schauder expansion efficiently, resulting in a reduction of the complexity of the algorithm. The methodology we propose is derived for onedimensional diffusion processes with unit diffusivity. However, diffusions with statedependent diffusivity can be transformed to this setting using the Lamperti transform. (An example is given in Sect. 5.3.) In Sect. 6.1, we generalise the method to multivariate diffusion processes with unit diffusivity, assuming the drift to be a conservative vector field.
1.2 Contributions of the paper
The Faber–Schauder basis offers a number of attractive properties:

(a)
The coefficients of a diffusions have a structural conditional independence property (see Sect. 4 and Appendix A) which can be exploited in numerical algorithms to improve their efficiency.

(b)
A diffusion bridge is obtained from the unconditioned process by simply fixing the coefficient \(\bar{\xi }\).

(c)
It will be shown (see, for example, Fig. 8) that the nonlinear component of the diffusion process is typically captured by coefficients \(\xi _{ij}\) in equation (2) for which i is small. This allows for a lowdimensional representation of the process and yet a good approximation. Therefore, the approximation error caused by leaving out fine details is equally divided over [0, T], contrary to approaches where a proxy for the diffusion bridge is simulated by Euler discretisation of an SDE governing its dynamics. In the latter case, the discretisation error accumulates over the interval on which the bridge is simulated.

(d)
It is very convenient from a computational point of view as each function is piecewise linear with compact support.
We adopt the ZigZag sampler (Bierkens et al. 2019) which is a sampler based on the theory of piecewise deterministic Markov processes (see Fearnhead 2018; BouchardCôté 2015; Andrieu 2018; Andrieu and Livingstone 2019). The main reasons motivating this choice are:

a.
The partial derivatives of the loglikelihood of a diffusion bridge measure usually appear as a path integral that has to be computed numerically (introducing consequently computational burden derived by this step and its bias). The ZigZag sampler allows us to replace the gradient of the loglikelihood with an unbiased estimate of it without introducing bias in the target measure. This is done in Sect. 4.4 with the subsampling technique which was presented in Bierkens et al. (2019) for applications for which the evaluation of the loglikelihood is expensive due to the size of the dataset.

b.
In the same spirit as the local Bouncy Particle Sampler of BouchardCôté (2015) and Mider (2019), the local and the fully local ZigZag sampler introduced in Sect. 4 reduces the complexity of the algorithm improving its efficiency with respect to the standard ZigZag algorithm as the dimensionality of the target distribution increases (see Sect. 6.2). This opens the way to highdimensional applications of the ZigZag sampler when the dependency graph of the target distribution is not fully connected and when using subsampling. The factorisation of the loglikelihood and the local method we proposed is reminiscent of other work such as Faulkner (2018), Meulen and Schauer (2017) and Mider et al. (2020).

c.
The method is a rejectionfree sampler, differing from most of the methodologies available for simulating diffusion bridges.

d.
The ZigZag sampler is defined and implemented in continuous time, eliminating the choice of tuning parameters appearing, for example, in the proposal density of the Metropolis–Hastings algorithm. This advantage comes at the cost of a more complicated method which relies upon bounding from above rates which are model specific and often difficult to derive (see Sect. 5 for our specific applications).

(e)
The process is nonreversible: As shown, for example, in Diaconis (2000), nonreversibility generally enhances the speed of convergence to the invariant measure and mixing properties of the sampler. For an advanced analysis on convergences results for this class of nonreversible processes, we refer to the articles Andrieu (2018) and Andrieu and Livingstone (2019).
The local ZigZag sampler relies on the conditional independence structure of the coefficients only. This translates to other settings than diffusion bridge sampling, or other choices of basis functions. For this reason, Sect. 4 describes the algorithms of the sampler in their full generality, without referring to our particular application. A documented implementation of the algorithms used in this manuscript can be found in Roberts and Stramer (2001).
1.3 Outline
In Sect. 2, we set some notation and recap the ZigZag sampler. In Sect. 3, we expand a diffusion process in the Faber–Schauder basis and prove the aforementioned conditional dependence. The simulation of the coefficients \(\xi ^N\) presents some challenges as it is high dimensional and its density is expressed by an integral over the path. We give two variants of the ZigZag algorithm which enables sampling in a highdimensional setting. In particular, in Sect. 4 we present the local and fully local ZigZag algorithms which exploit a factorisation of the joint density (Appendix A) and a subsampling technique which, in this setting, is used to avoid the evaluation of the path integral appearing in the density (which otherwise would severely complicate the implementation of the sampler). In Sect. 5, we illustrate our methodology using a variety of examples, validate our approach and compare the ZigZag sampler with other benchmark MCMC algorithms. We conclude by sketching the extension of our method to multidimensional diffusion bridges, carrying out an informal scaling analysis and providing several remarks for future research (Sects. 6 and 7).
2 Preliminaries
Throughout, we denote by \(\partial _i\) the partial derivative with respect to the coefficient \(\xi _i\), the positive part of a function f by \((f)^+\), the ith element and the Euclidean norm of a vector x, respectively, by \([x]_i\) and \(\Vert x\Vert \). The cardinality of a countable set A is denoted by A.
2.1 Notation for the Faber–Schauder basis
To graphically illustrate the Faber–Schauder basis, a construction of a Brownian motion with the representation of the basis functions is given in Fig. 1. The Faber–Schauder functions are piecewise linear with compact support. The length of the support and the height of the function are determined by the first index, while the second index determines the location. All basis functions with first index i are referred to as level i basis functions. For convenience, we often swap between double and single indexing of Faber–Schauder functions. Denote the double indexing with (i, j) and the single indexing with n. We go from one to the other through the transformations
where \(\lfloor \cdot \rfloor \) denotes the floor function. The basis with truncation level N has \(M:=2^{N+1}  1\) coefficients. Let \(\xi ^N\) denote the vector of coefficients up to level N, i.e.
and let \(X^{\xi ^N} := X^N \) when we want to stress the dependencies of \(X^N\) on the coefficients \(\xi ^N\). Using double indexing, we denote by \(S_{i,j} = {{\,\mathrm{supp}\,}}\phi _{i,j}\).
2.2 The ZigZag sampler
A piecewise deterministic Markov process (Davis 1993) is a continuoustime process with behaviour governed by random jumps at points in time, but deterministic evolution governed by an ordinary differential equation in between those times (yielding piecewisecontinuous realisations). If the differential equation can be solved in closed form and the random event times can be sampled exactly, then the process can be simulated in continuous time without introducing any discretisation error (up to floating number precision) making it attractive from a computational point of view.
By a careful choice of the event times and deterministic evolution, it is possible to create and simulate an ergodic and nonreversible process with a desired unique invariant distribution (Fearnhead 2018). The ZigZag sampler (Bierkens et al. 2019) is a successful construction of such a processes. We now recap the intuition and the main steps behind the ZigZag sampler.
The onedimensional ZigZag sampler is defined in the augmented space \( (\xi , \theta ) \in {\mathbb {R}} \times \{+1,1\}\), where the first coordinate is viewed as the position of a moving particle and the second coordinate as its velocity. The dynamics of the process \(t\mapsto (\xi (t), \theta (t))\) (not to be confused with the time indexing the diffusion process) are as follows: starting from \((\xi (0), \theta (0))\),

(a)
its flow is deterministic and linear in its first component with direction \(\theta (0)\) and constant in its second component until an event at time \(\tau \) occurs. That is, \(\, (\xi (t), \theta (t)) = (\xi (0) + t \theta (0), \theta (0)), \, 0\le t\le \tau \).

(b)
At an event time \(\tau \), the process changes the sign of its velocity, i.e. \((\xi (\tau ), \theta (\tau )) = (\xi (\tau ),\theta (\tau ))\).
The event times are simulated from an inhomogeneous Poisson process with specified rate \(\lambda :({\mathbb {R}}\times \{1,1\}) \rightarrow {\mathbb {R}}^+ \) such that \(P(\tau \in [t, t + \epsilon ] ) = \lambda (\xi (t),\theta (t)) \epsilon + o(\epsilon )\), \(\epsilon \downarrow 0\).
The ddimensional ZigZag sampler is conceived as the combination of d onedimensional ZigZag samplers with rates \(\lambda _i(\xi ,\theta ), \, i= 1,\ldots ,d\), where the rates create a coupling of the independent coordinate processes. The following result provides a sufficient condition for the ddimensional ZigZag sampler to have a particular ddimensional target density \(\pi \) as invariant distribution. Assume that the target ddimensional distribution has strictly positive density with respect to the Lebesgue measure, i.e.
Define the flipping function as \(F_i(\theta ) = (\theta _1,\ldots ,\theta _i,\ldots ,\theta _d)\), for \(\theta \in \{1, +1\}^d\). For any \(i = 1,\ldots ,d\) and \((\xi , \theta ) \in {\mathbb {R}}^d \times \{ 1, 1 \}^d\), the ZigZag process with Poisson rates satisfying
has \(\pi \) as invariant density. Condition (5) is derived in the supplementary material of Bierkens et al. (2019). Condition (5) is equivalent to
for some \(\gamma _i(\xi )\ge 0\). Throughout, we set \(\gamma _i(\xi ) = 0\) because generally the algorithm is more efficient for lower Poisson event intensity (see, for example, Andrieu 2018, Sect. 5.4).
Assume the target density is \(\pi (\xi )=c{\tilde{\pi }}(\xi )\). The process targets the specific distribution function through the Poisson rate \(\lambda \) which is a function of the gradient of \(\xi \mapsto \psi (\xi ) = \log (\tilde{\pi }(\xi ))\), so that any proportionality factor of the density disappears. Throughout we refer to the function \(\psi \) as the energy function. As opposed to standard Markov chain Monte Carlo methods, the process is not reversible and it is defined in continuous time.
Example 2.1
Consider a ddimensional Gaussian random variable with mean \(\mu \in {\mathbb {R}}^d\) and positivedefinite covariance matrix \(\Sigma \in {\mathbb {R}}^{d\times d} \). Then,

\(\pi (\xi ) \propto \exp \left( (\xi  \mu )' \Sigma ^{1}(\xi  \mu )/2\right) \),

\(\partial _{k} \psi (\xi ) = \left[ \Sigma ^{1}(\xi  \mu )\right] _k\),

\(\lambda _k(\xi ,\theta ) = \left( \theta _k [\Sigma ^{1}(\xi  \mu )]_k \right) ^+.\)
Notice that if \(\Sigma \) is diagonal, then \(\lambda _k(\xi , \theta ) = 0\) whenever the process is directed towards the mean so that no jump occurs in the kth component when one of the following conditions is satisfied: \((\theta _k = 1, \xi _k\mu _k \ge 0)\) or \((\theta _k = 1, \xi _k\mu _k \le 0)\). In Fig. 2, we simulate a realisation of the ZigZag sampler targeting a univariate standard normal random distribution.
Algorithm 1 shows the standard implementation of the ZigZag sampler. After initialisation, the first event time \(\tau ^*\) is determined by taking the minimum of event times \(\tau _1, \tau _2,\ldots ,\tau _d\) simulated according to the Poisson rates \(\lambda _i, i = 1,2,\ldots ,d\). At event time \(\tau ^*\), the velocity vector becomes \(\theta (\tau ^*) = F_{i^*}(\theta )\), with \(i^* = {{\,\mathrm{arg\,min}\,}}(\tau _1,\ldots ,\tau _d)\). The algorithm iterates this step moving forward each time until the next simulated event time exceeds the final clock \(\tau _{\text {final}}\).
Although we consider the velocities for each dimension of a ddimensional ZigZag process to be either 1 or \(1\), these can be taken to be any nonzero values \((\theta _i, \theta _i)\) for \(i= 1,\ldots ,d\). A finetuning of \(\theta _1,\ldots ,\theta _N\) can improve the performance of the sampler. Note that the only challenge in implementing Algorithm 1 lies on the simulation of the waiting times which correspond to the simulation of the first event time of d inhomogeneous Poisson processes (IPPs) with rates \(\lambda _1, \lambda _2,\ldots ,\lambda _d\) which are functions of the state space \((\xi , \theta )\) of the process. Since the flow of the process is linear and deterministic, the Poisson rates are known at each time and are equal to
To lighten the notation, we write \(\lambda _i(t) := \lambda _i(t; \xi ,\theta )\) when \(\xi , \theta \) are fixed. Given an initial position \(\xi \) and velocity \(\theta \), the waiting times \(\tau _1,\ldots ,\tau _d\) are computed by finding the roots for x of the equations
where \((u_i)_{i = 1,2,\ldots ,d}\) are independent realisations from the uniform distribution on (0, 1). When it is not possible to find roots of equation (7) efficiently; for example, in closed form, it suffices to find upper bounds for the rate functions for which this is possible, Sect. 4.4 treats this problem for our particular setting. The linear evolution of the process and the jumps of the velocities are always trivially computed and implemented.
Algorithm 1 returns a skeleton of values corresponding to the position of the process at the event times. From these values, it is straightforward to reconstruct the continuous path of the ZigZag sampler. Given a sample path of the ZigZag sampler from 0 to \(\tau _{\text {final}}\), we can obtain a sample from the target distribution in the following way:

Denote by \(\xi (\tau )\) the value of the vector \(\xi \) at the ZigZag clock \(\tau <\tau _{\text {final}}\). Fixing a sample frequency \(\Delta \tau \), we can produce a sample from the density \(\pi \) by taking the values of the random vector \(\xi \) at time \(\tau _{\text {burnin}} + \Delta \tau , \tau _{\text {burnin}} + 2\Delta \tau ,\ldots , \tau _{\text {final}}\) where \(\tau _{\text {burnin}}\) is the initial burnin time taken to ensure that the process has reached its stationary regime. Throughout the paper, we create samples using this approach.
2.3 ZigZag sampler for Brownian bridges
The previous subsections contain all ingredients necessary to run the ZigZag sampler in a finitedimensional projection of the Brownian bridge measure \({\mathbb {Q}}^{0,v}\) on the interval [0, T]. We fix \({\bar{\xi }}\) to v and run the ZigZag sampler for \(\xi ^N\) as defined in (4) targeting a multivariate normal distribution. Figure 3 shows 100 samples obtained from one sample run of the ZigZag sampler where the coefficients are mapped to samples paths using (2). The final clock of the ZigZag is set to \(\tau _{\text {final}} = 500\) with initial burning \(\tau _{\text {burnin}} = 10\).
Both Brownian motion and the Brownian bridge are special in that all coefficients in the Faber–Schauder basis are independent. Of course, these processes can directly be simulated without need of a more advanced method like the ZigZag sampler. However, for a diffusion process with nonzero drift this property is lost. Nevertheless, we will see that when the process is expanded in the Faber–Schauder basis, many coefficients are still conditionally independent. This implies that the dependency graph of the joint density of the coefficients is sparse. We will show in Sect. 4 how this property can be exploited efficiently using the ZigZag sampler in its local version.
3 Faber–Schauder expansion of diffusion processes
We extend the results of Sect. 2 to onedimensional diffusions governed by the SDE in (1). Although the density is defined in infinitedimensional space, in this section we justify both intuitively and formally that the diffusion can be approximated to arbitrary precision by considering a finitedimensional projection of it.
The intuition behind using the Faber–Schauder basis is that, under mild assumptions on the drift function b, any diffusion process behaves locally as a Brownian motion. Expanding the diffusion process with the Faber–Schauder functions, this notion translates to the existence of a level N such that the random coefficients at higher levels which are associated with the Faber–Schauder basis are approximately independent standard normal and independent from \(\xi ^N\) under the measure \({\mathbb {P}}\).
Define the function \(Z_t:{\mathbb {R}}^+ \times C[0,T] \rightarrow {\mathbb {R}}^+\) given by
where the first integral is understood in the Itô sense and \(X\equiv (X_s,\, s \in [0,T])\).
Assumption 3.1
\(Z_t\) is a \({\mathbb {Q}}\)martingale.
For sufficient conditions for verifying that this assumption applies, we refer to Remark 3.6, Remark 3.9 and Liptser et al. (2013), Chapter 6.
Theorem 3.2
(Girsanov’s theorem) If Assumption 3.1 is satisfied,
Moreover, a weak solution of the stochastic differential equation exists which is unique in law.
Proof
This is a standard result in stochastic calculus (see Liptser et al. 2013, Sect. 6). \(\square \)
As we consider diffusions on [0, T] with T fixed, we denote \(Z(X) := Z_T(X)\). Due to the appearance of the stochastic Itô integral in Z(X), we cannot substitute for X its truncated expansion in the Faber–Schauder basis. Clearly, whereas the approximation has finite quadratic variation, X has not. Assuming that b is differentiable and applying Itô’s lemma to the function \(B(x) = \int _0^x b(s) \mathrm {d}s\), the stochastic integral can be replaced and Eq. (8) is rewritten as
where \(b'\) is the derivative of b.
Definition 3.3
Let X be a diffusion governed by (1). Let \(X^N\) be the process derived from X by setting to zero all coefficients of level exceeding N in its Faber–Schauder expansion [see Eq. (2)]. Set
We define the approximating measure \({\mathbb {P}}_N\) by the change of measure
where \(c_N = {\mathbb {E}}_{\mathbb {Q}}\left( Z^N(X)\right) \).
Note that the measure \({\mathbb {P}}^u_N\) associated with the approximated stochastic process is still on an infinitedimensional space and such that the joint measure of random coefficients \(\xi ^N\) is different from the one under \({\mathbb {Q}}^u\), while the remaining coefficients stay independent standard normal and independent from \(\xi ^N\). This is equivalent to approximating the diffusion process at finite dyadic points with Brownian noise fillin in between every two points. We now fix the final point \(v_T\) by setting \({\bar{\xi }} = v_T\). Define the approximated stochastic bridge with measure \({\mathbb {P}}^{u, v_T}_N\) in an analogous way of equation (11), so that
where \({c^{v_T}_N} = {\mathbb {E}}_{\mathbb {Q}^{u, v_T}}\left( Z^N(X)\right) \). The following is the main assumption made.
Assumption 3.4
The drift b is continuously differentiable, and \(b^2 + b'\) is bounded from below.
Theorem 3.5
If Assumptions 3.1 and 3.4 are satisfied, then \({\mathbb {P}}^{u, v_T}_N\) converges weakly to \({\mathbb {P}}^{u, v_T}\) as \(N \rightarrow \infty \).
Proof
In the following, we lighten the notation by omitting the initial point u from the notation, which will be assumed fixed to \(u = x_0\). We wish to show that \(\mathbb {P}^{v_T}_N\) converges weakly to \(\mathbb {P}^{v_T}\) as \(N \rightarrow \infty \). This is equivalent to showing that \(\int f \mathrm {d}\mathbb {P}^{v_T}_N \rightarrow \int f \mathrm {d}\mathbb {P}^{v_T}\) for all bounded and continuous functions f. Write \(c^{v_T}_\infty = p(0,x_0,T, v_T)/q(0,x_0,T, v_T)\). By equation (3) and (9),
and we have that
where we used Assumption 3.1 for applying the change of measure between the conditional measures. Notice that \(Z^N(X) = Z(X^N)\). The mapping \(X \mapsto Z(X)\), as a function acting on C(0, T) with uniform norm, is continuous, since B, b and \(b'\) are continuous. Therefore, it follows from the Lévy–Ciesielski construction of Brownian motion (see Sect. 1.1.1) and the continuous mapping theorem that
Now, notice that, under conditional measures \(\mathbb {Q}^{v_T}\) and \(\mathbb {P}^{v_T}\), the term \(B(X_T)  B(X_0)\) is fixed. By the assumptions on b and \(b'\), Z is a bounded function and by dominated convergence, we get that
giving convergence to zero of the first term in (13). This implies that also the constant \(c_N := \mathbb {E}_\mathbb {Q}^{v_T} Z^N(X) \) converges to \(\mathbb {E}_\mathbb {Q}^{v_T} Z(X) = c^{v_T}_\infty \) so that all the terms in (13) converge to 0. \(\square \)
We now list some technical conditions for the process to satisfy Assumptions 3.1 and 3.4.
Remark 3.6
If \(b(x) \le c(1 + x)\), for some positive constant c, then Assumption 3.1 is satisfied.
Proof
See Liptser et al. (2013), Sect. 6, Example 3 (b). \(\square \)
Remark 3.7
If b is globally Lipschitz and continuously differentiable, then Assumptions 3.1 and 3.4 are satisfied.
Proof
Assumption 3.4 is trivially satisfied. By Remark 3.6, also Assumption 3.1 is satisfied. \(\square \)
In Sect. 5.3, we will present an example where the drift b is not globally Lipschitz, yet Assumption 3.4 is satisfied.
Assumption 3.8
There exists a nondecreasing function \(h :[0,\infty ) \rightarrow [0,\infty )\) such that \({B(x) \le h(x)}\) and
The above integrability condition is, for example, satisfied if \(h(x) = c(1 + x)\) for some \(c > 0\).
Remark 3.9
If Assumptions 3.4 and 3.8 hold, then Assumption 3.1 is satisfied.
Proof
By Sect. 3.5 in Karatzas and Shreve (1991), \((Z_t)\) is a local martingale. Say \(b'(x) + b^2(x) \ge 2 C\), where \(C \ge 0\). Using the assumptions, we have
with constant \(A = \exp (B(X_0))\). Then,
By Lemma 3.10,
Then, for a sequence of stopping times \((\tau _k)\) diverging to infinity such that \((Z_t^{\tau _k})_{0 \le t \le T}\) is a martingale for all k, we have
as \(k \rightarrow \infty \) by dominated convergence. \(\square \)
Lemma 3.10
Suppose \(h:[0,\infty ) \rightarrow [0,\infty )\) is nondecreasing. Let \(N_T = \max _{0 \le t \le T} X_t\) where \((X_t)\) is a Brownian motion. Then,
Proof
The maximum \(M_T = \max _{0 \le t \le T} X_t\) of a Brownian motion is distributed as the absolute value of a Brownian motion and thus has density function \(\frac{2}{\sqrt{2 \pi T}} \exp (x^2/(2T))\), see Karatzas and Shreve (1991), Sect. 2.8. We have \({\mathbb {P}}(N_T \ge y) \le 2 {\mathbb {P}}(M_T \ge y)\) from which the result follows. \(\square \)
Finally, we mention that Theorem 3.5 can be generalised in the following way to diffusions without a fixed end point.
Proposition 3.11
If Assumption 3.4 is satisfied and B is bounded, then \({\mathbb {P}}_N\) converges weakly to \({\mathbb {P}}\).
The proof follows the same steps of the one of Theorem 3.5. In this case, we need to pay attention on B, as for unconditioned process, the final point is not fixed. If B is bounded, then Assumption 3.8 is satisfied. By Remark 3.9, also Assumption 3.1 is satisfied so that we can apply Theorem 3.2 for the change of measure. Finally, by the assumptions on b and B, the function Z is bounded and by dominated convergence, we get that
4 A local ZigZag algorithm with subsampling for highdimensional structured target densities
In Sect. 4.4, we will show that the task of sampling diffusion bridges boils down to the task of sampling a highdimensional vector \(\xi ^N \in \mathbb {R}^{M}\) under the measure \({\mathbb {P}}^{u,v_T}_N\). Define by \(P_{\xi ^N}\) the distribution of the vector \(\xi ^N\). Under the target measure,
We take the density \(\pi \) to be the Mdimensional invariant density (target density) for the ZigZag sampler. An efficient implementation of piecewise deterministic Monte Carlo methods including the local and fully local ZigZag sampler can be found in Roberts and Stramer (2001).
4.1 Subsampling technique
In our setting, the integral appearing in the Girsanov formula (10) poses difficulties when finding the root of equation (7) and would require numerical evaluation of the integral, hence also introducing a bias. By adapting the subsampling technique presented in Bierkens et al. (2019) (Sect. 4), we avoid this problem altogether (see Sect. 4.4). In general, this technique requires

(a)
unbiased estimators for \(\partial _i\psi \), i.e. random functions \(\partial _i\tilde{\psi _i}(\xi , U_i)\) such that
$$\begin{aligned} E_{U_i}[\partial _i\tilde{\psi _i}(\xi , U_i)] = \partial _i\psi (\xi ), \end{aligned}$$for all i and \(\xi \). These random functions create new (random) Poisson rates given by
$$\begin{aligned} \tilde{\lambda }_i(t; \xi , \theta ; U_i) = (\theta _i \partial _i \tilde{\psi }(\xi (t), U_i))^+, \qquad i = 1,2,\ldots ,d, \end{aligned}$$(14)whose evaluation becomes feasible and computationally more efficient compared to the original Poisson rates given by Eq. (6).

(b)
upper bounds \({\bar{\lambda }}_i:(\mathbb {R}^+ \times \mathbb {R}^d \times \{1,+1\}^d) \rightarrow \mathbb {R}^+\) for all \(i = 1,\ldots ,d\) such that for any point \((\xi , \theta )\) and \(t\ge 0\), we have
$$\begin{aligned} P\left( \tilde{\lambda }_i(t; \xi , \theta ; U_i)\le \bar{\lambda }_i(t; \xi , \theta )\right) = 1. \end{aligned}$$(15)As we show in Algorithm 2 and in Sect. 5, these upper bounds are used for finding the roots of Eq. (7).
Algorithm 2 gives the algorithm for the ZigZag sampler with subsampling. It can be proved (see Bierkens et al. 2019) that the ZigZag sampler with subsampling has the same invariant distribution as its original and therefore does not introduce any bias. Note that we slightly modified the algorithm from Bierkens et al. (2019) in order to reduce its complexity. In particular, it is sufficient to draw new waiting times and to save the coordinates only when the if condition at the subsampling step of Algorithm 2 is true.
4.2 Local ZigZag sampler
Section 3.1 of BouchardCôté (2015) proposes a local algorithm for the Bouncy Particle Sampler which is a process belonging to the class of piecewisedeterministic Markov processes. Similar ideas apply to our setting.
Assumption 4.1
The Poisson rate \(\lambda _i\) for a ddimensional target distribution is a function of the coordinates \(N_i \subset \{1, \dots , d\}\),
Recall that by the definition of \(\lambda _i\) (see equation (6)), the ith partial derivative of the negative loglikelihood determines the sets \(N_i\). Now, let us suppose that the first event time \(\tau \) is triggered by the coordinate i so that at event time, the velocity \(\theta _i\) is flipped. For all \(\lambda _k\) which are not function of this coordinate (\(k \not \in N_i\)), we have
which implies that the waiting times drawn before \(\tau \) are still valid after switching the velocity i. This allows us to rescale the previous waiting time and reduce the number of computations at each step. The sets \(N_{1},\ldots ,N_{d}\) are connected to the factorisation of the target distribution and define its conditional dependence structure. Indeed, take a ddimensional target distribution with the following decomposition
where \(\xi ^{(i)} := \{ \xi _j: j \in \Gamma _i\}\) and \(\Gamma _i \subset \{ 1,2,\ldots ,N\}\) defines a subset of indices. We have that
where the ith term in the sum is equal to 0 if \(k \notin \Gamma _i\). Since the Poisson rates (6) are defined through the partial derivatives, the factorisation defines the sets \(N_1,\ldots ,N_d\) of Assumption 4.1.
Algorithm 3 shows the implementation of the local sampler which exploits any conditional independence structure so that the complexity of the algorithm scales well with the number of dimensions.
The local ZigZag sampler simplifies to independent onedimensional ZigZag processes if the coefficients are pairwiseindependent coefficients, as it was the case in the example of sampling a Brownian motion or Brownian bridge (see Sect. 2.3). On the other hand, it defaults to Algorithm 1 when the dependency graph is fully connected, that is if \(N_i = \{1, \dots , d\}, \forall i\).
4.3 Fully local ZigZag sampler
Combining the subsampling technique and the local ZZ can lead to a further reduction of the complexity of the algorithm. Indeed, the bounds for the Poisson rates might induce sparsity as \(\bar{\lambda }_i\) can be function of few coordinates (see, for example, Sect. 5.2). This means that, after flipping \(\theta _i\), \(\bar{\lambda }^{old}_j(\tau + t) = \bar{\lambda }^{new}_j(t) \) for almost all \(j \ne i\) making the if statement in the local step of Algorithm 3 almost always satisfied and improving the efficiency of the algorithm. This means that, after flipping \(\theta _i\), we have that \(\bar{\lambda }^{old}_j(\tau + t) = \bar{\lambda }^{new}_j(t) \) for almost all \(j \ne i\) or, in other words, the cardinality of the set \(N_i\) in the local step of Algorithm 3 is small. Furthermore, the evaluation of \({\tilde{\lambda }}_i(t, \xi , \theta )\) and \({\bar{\lambda }}_i(t, \xi , \theta )\) for \(i = 1,2,\ldots ,d\) does not necessarily require to access the location of all the coordinates \(\xi _j\) so that, by assigning an independent time for each coordinate and updating only the coordinates needed for the evaluation of \({\tilde{\lambda }}_i\) and \({\bar{\lambda }}_i\), the algorithm can be made more efficient. This is shown in the fully local ZZ sampler (Algorithm 4) where \({\bar{N}}_i, {\tilde{N}}_i(U_i)\) define, respectively, the subset and the random subset of the coordinates required for the evaluation of \({\bar{\lambda }}_i(\cdot ; \xi , \theta )\) and \({\tilde{\lambda }}_i(\cdot ; \xi , \theta ; U_i)\).
4.4 Sampling diffusion bridges
In order to employ the ZigZag sampler to simulate from the bridge measure, we choose the truncation level N in Eq. (2). Then, under \(\mathbb {P}^{u, v_T}_N\)
This is a straightforward consequence of the change of measure in (12) and the Lévy–Ciesielski construction.
We need to make one further assumption:
Assumption 4.2
The drift b of the diffusion process is twice differentiable.
Assumption 4.2 is necessary in order to compute the \(\xi _k\)partial derivative of the energy function, which becomes
where
As the index k in the Faber–Schauder basis function gets larger, both the magnitude of \(\phi _k\) and the size of its support decrease so that typically \(\int h_k(s; \xi ^N) \mathrm {d}s\) gets smaller and \(\partial _k \psi (\xi ) \approx \xi _k\) which corresponds to the partial derivative of the energy function of a standardised Gaussian random variable with independent components. This justifies one more time the intuition that for high levels i, the random variables \(\xi _{ij}\), \(j =1 ,\ldots ,2^{i}1\) are approximately normally distributed and almost independent from the other random coefficients.
In order to avoid the evaluation of the integral appearing in (16) and the difficulty of drawing a Poisson time from its corresponding rate (6), we employ the subsampling technique. Considering \(\xi ^N\) nonrandom, we take as an unbiased estimator for \(\partial _k\psi (\xi _N)\) the (random) function
where \(U_k \sim \text {Unif}(S_k)\) and as the bounding intensity rate
where \(\bar{\Phi }_k = \max _s(\phi _k(s))\) and \(f(\xi ^{N}) \ge \left 2b(X^{\xi ^N}_s)b'(X^{\xi ^N}_s)\right. \left. + b''(X^{\xi ^N}_s)\right ,\, \forall s \in [0,T],\, \xi ^N \in \mathbb {R}^{M} \). The subsampling technique avoids the numerical computation of the time integral (16), thus avoiding a numerical bias and reducing the computational effort from \({\mathcal {O}}(T)\) (for fixed discretisation size) to \({\mathcal {O}}(1)\). The variance of this unbiased estimator can be reduced by averaging over multiple independent uniform draws or similar strategies (see, for example, Sect. 5.4), albeit at the cost of additional computations. In Sect. 5, we show specifically for each numerical experiment how we derived the Poisson upper bounds \(\bar{\lambda }_i\).
The compact support of the Faber–Schauder functions induces a sparse dependency structure on the target measure \(\pi \). Indeed, \(X_t\) only depends on those values of \(\xi _{l,k}\) for which \(t \in S_{l,k}\). See Fig. 4 for an illustration. It is easy to see that this implies that \(\frac{\partial \psi (\xi ^N)}{\partial \xi _{(i,j)}} \) depends only on those \(\xi _{(k,l)}\) for which the interior of \(S_{i,j} \cap S_{k,l}\) is nonempty. In particular, define the relation \( \xi _{i,j} \ll \xi _{k,l}\) to hold if \(S_{k,l} \subset S_{i,j}\). If this happens, then we refer to \(\xi _{i,j}\) as the ancestor of \(\xi _{k,l}\) (and conversely \(\xi _{k,l}\) as the descendant). Then, the sets in Assumption 4.1 (using double indexing) can be chosen as \(N_{i,j} = \{ \xi _{h,d} :\xi _{h,d} \ll \xi _{i,j} \vee \xi _{h,d} \gg \xi _{i,j}\}\) with cardinality \(N_{i,j}= 2^{Ni + 1} + i 1 \), where N is the truncation level. Formally, \(N_{i,j}\) are the neighbourhoods of the interval graph induced by \(((S_{i,j}:i \in \{1,2,\dots ,N\},\, j \in \{0,1,\dots ,2^i1\}))\) with vertices \(\{(i,j) :i \in \{1,2,\dots ,N\},\, j \in \{0,1,\dots ,2^i1\}\}\), where there is an edge between (i, j) and (l, k) if the interior of \(S_{i,j} \cap S_{k,l}\) is nonempty (see Fig. 11). The factorisation of the partial derivatives leads to a specific dependency structure of the coefficients under the target diffusion bridge measure: the coefficient \(\xi _{i,j}\) is conditionally independent of the coefficient \(\xi _{k,l}\) if \(S_{i,j} \cap S_{k,l} = \emptyset \) conditionally on the set of common ancestors \((\xi _{m,n} :\xi _{m,n} \ll \xi _{i,j} \wedge \xi _{m,n} \ll \xi _{k,l})\). This argument is made more formal by decomposing the likelihood function in Appendix A.
5 Numerical results
We show numerical results for three representative examples. In general, when applying our method, we start from a model (1) and devise a representation of the approximate diffusion bridge (12) that we sample using generic implementations of algorithms 14 from our package, which are easily adapted to the task of sampling the coefficients of the Faber–Schauder expansion. To this end, we provide the kth partial derivative of the energy function (16) or an upper bound to the Poisson rate (18) as argument for the sampler, as well as the sets \(N_{i,j}\) as given in Sect. 4.4. The reader is referred to the file faberschauder.jl in the public repository https://github.com/SebaGraz/ZZDiffusionBridge/src for the implementation of the expansion and for the generic implementation of the different variants of the ZigZag sampler to our package (Roberts and Stramer 2001).
The first class of diffusion processes considered are diffusions with linear drift function (Sect. 5.1). This is a special case, where our method does not require the subsampling technique described in Sect. 4.1 and only Algorithm 3 has been employed. Notice that for this class, the transition kernel of the conditioned process is known. In Sect. 5.2, we apply our method for diffusions which substantially differ from Brownian motions, being highly nonlinear and multimodal and therefore creating challenging bridge distributions for standard MCMC. Here, we use the fully local algorithm (Algorithm 4). In the specific example considered, the implementation of the ZigZag sampler is facilitated by the drift function and its derivatives being bounded, and therefore, a bounded Poisson rate for the subsampling technique is available. In view of this, we choose for the third numerical experiment a diffusion with unbounded drift (Sect. 5.3). For all the models, Assumptions 3.1, 3.4 and 4.2 are immediate to verify and Assumption 4.1 is satisfied. For each experiment, the burnin \(\tau _{\text {burnin}}\) and final clock \(\tau _{\text {final}}\) are manually tuned by inspecting the trace of \(\xi ^N\) and ensuring that the process reached stationarity before \(\tau _{\text {burnin}}\) and fully explore the state space before the final clock \(\tau _{\text {final}}\). The computations are performed with a conventional laptop with a 1.8GHz intel core i78550U processor and 8GB DDR4 RAM. We wrote the program in Julia 1.4.2 which allows profiling and optimizing the code for high performance. The program is publicly available on GitHub at https://github.com/SebaGraz/ZZDiffusionBridge where the reader can follow the documentation to reproduce the results.
5.1 Linear diffusions
A linear stochastic differential equation conditioned to hit a final point \(v_T\) has the form
for some \((\alpha ,\beta ) \in {\mathbb {R}}^2\). Assumptions 3.1, 3.4 and 4.2 can be easily verified. In this case, the energy function of the target distribution is
for some constant \(C_1,C_2\). Note that \(\psi \) is a quadratic function of \(\xi \), which means that the target density is still Gaussian under \({\mathbb {P}}^{u,v_T}_N\). It follows that
Interchanging the integral and the sum, this becomes
where \(\Phi _k = \int \phi _k \mathrm {d}t\), \(\Phi _{jk} = \int \phi _k \phi _j \mathrm {d}t\), \(\bar{\Phi }_k = \int \bar{\phi } \phi _k \mathrm {d}t\) and \(\bar{\bar{\Phi }} = \int \bar{\bar{\phi }} \phi _k \mathrm {d}t\). This is a linear function of \(\xi ^N\), and for each i, the event times with rates \(\lambda _i\), see (6), can be directly simulated without upper bounds. Figure 5 shows samples from the resulting diffusion bridge measure with \(\alpha = 5, \beta = 1\) obtained with this method running the ZigZag sampler for \(\tau _{\text {final}} = 1000\), with a burnin time of \(\tau _{\text {burnin}} = 10\). The closed form of the expansion of linear processes, or more generally, reciprocal linear processes, with the Faber–Schauder basis was also found and used in Schauer and Grazzi (2020) for the problem of nonparametric drift estimation of diffusion processes. The results are validated by computing analytically the density of the random variable \(X_{T/2}\) (which, for the linear case, is known in close form) and comparing this with its empirical density obtained from one sample of the ZigZag process (see Fig. 7, left panel).
5.2 Nonlinear multimodal diffusions
The stochastic differential equation considered here has the form
for some \(\alpha \ge 0\). When \(\alpha = 0 \), the process is a standard Brownian motion, while for positive \(\alpha \), the process is attracted to its stable points \((2k 1)\pi , \, k \in {\mathbb {N}}.\) Assumptions 3.1, 3.4, 4.2 follow from drift, its primitive and its derivative being globally bounded. Fixing N, the energy function is given by
Using trigonometric identities, we obtain that
where \( X^{\xi ^N, k}_t := \bar{\bar{\phi }}(t) u + \bar{\phi }(t) v_T/\sqrt{T} + \sum _{j \in N_k}\phi _j(t) \xi _j\). To avoid the need to find the roots of Eq. (7), we apply the subsampling technique described in Sect. 4.1. Since the drift and its derivatives are bounded, we can easily find the following upper bound for (14):
with \(a_1 = \bar{\Phi }_k S_k (\alpha ^2 + \alpha )/2\), \(\bar{\Phi }_k = \max (\phi _k)\) and \(\xi _k(t) = \xi _k + \theta _k t\). In this case, the upper bound \({{\bar{\lambda }}}_i\) is a function only of the coefficient \(\xi _i\). Figure 6 shows the results obtained with this method setting \(\alpha = 0.7\). For this diffusion, the nonlinearity and multiple modes make the mixing of the ZigZag sampler slower, so we set \(\tau _{\text {final}} = 10{,}000\) and burnin \(\tau _{\text {burnin}} = 10\).
Analysing the goodness of the empirical diffusion bridge distribution obtained is a difficult task since the true conditional distribution is not known in a tractable form. We start by checking if some geometrical properties of the diffusion bridge distributions are preserved in the simulations. For example, in Fig. 6, it can be noticed that the diffusion is attracted to the stable points \( \pm \pi , \pm 3\pi ,...\), and symmetric (geometrically speaking, after rotation) around the vertical axes \(t = T/2\). We furthermore validate our method by simulating forward diffusion processes, using Euler discretisation in a fine grid and retaining only the paths which end in a \(\epsilon \)ball of a certain point at time T (\(\epsilon \)ball forward simulation). If the final point is such that the probability of ending in this \(\epsilon \)ball is high enough, we can create in this way a sample from the approximated bridge and compare it to the samples obtained from the ZigZag. The right panel of Fig. 7 shows the joint empirical distribution with the two methods of the first quarter and third quarter random variables. Finally, Fig. 8 illustrates that the marginal distribution of the coefficients in higher levels is approximately Gaussian and the nonlinearity of the process is absorbed by the coefficients in low levels.
5.3 Diffusions with unbounded drift
Here, we consider stochastic exponential logistic models. For this class, the process grows exponentially with rate r until it reaches its saturation point K. Its dynamics are perturbed by noise which grows as the population grows. The resulting stochastic differential equation takes the form
We can transform the process in order to get a new process with unitary diffusivity \(\sigma = 1\) (Lamperti transform with \(X_t = \log (Y_t)/\beta \)). The transformed differential equation becomes
with \(c_1 = \beta /2  r/\beta \) and \(c_2 = r/(\beta K).\) Note that the drift function b of the transformed process is not global Lipschitz continuous. Nevertheless, Assumptions 3.4 and 4.2 are satisfied and by Remark 3.9, also Assumption 3.1 is verified. In this case, the partial derivative of the energy function is given by
where \(a_1 = 2r^2/(\beta K), \, a_2 = a_1/K\). As before, it is not possible to simulate directly the first event time using the Poisson rates given by Eq. (6). The subsampling technique requires an upper bound for the unbiased estimator (14). Define the following quantities
For any \(a,b,c \in {\mathbb {R}}, \, (a + b + c)^+ \le (a)^+ + (b)^+ + (c)^+\), and hence, a valid upper bound for the Poisson rate (14) is given by
with
and
Using the superposition theorem (see, for example, Grimmett and Stirzaker 2001), we can simulate a waiting time with Poisson rate (23) by means of simulating three waiting times according to the Poisson rates \(\lambda _k^{(1)}, \lambda _k^{(2)}, \lambda _k^{(3)}\) and then take the minimum of the three realisations. Since at any time \(t>0\), either \(\lambda _k^{(2)}(t)\) or \(\lambda _k^{(3)}(t)\) is 0, we just need to evaluate two waiting times. Figure 9 shows the results obtained with our method for this process. The final clock of the ZigZag sampler is set to \(T^{\star } = 1000\) and initial burnin time \(\tau _{\text {burnin}} = 10\).
5.4 Numerical comparisons
In this section, we benchmark the fully local ZigZag sampler against the Metropolisadjusted Langevin algorithm (MALA) (Roberts and Rosenthal 1998), Hamiltonian Monte Carlo (HMC) (Duane 1987) and another wellknown PDMP, the Bouncy particle sampler (BouchardCôté 2015). The Bouncy Particle sampler can use the exact subsampling technique in a very similar way as explained in Sect. 4.1. According to the scaling limit results obtained in Bierkens et al. (2020), the ZigZag is more efficient compared to the Bouncy Particle sampler in a highdimensional setting when the conditional dependency graph corresponding to the target measure exhibits sparsity (which clearly is the case here). The MALA sampler is a wellknown discretetime Markov chain Monte Carlo method which performs informed updates through the gradient of the target distribution. HMC is considered a stateoftheart algorithm. In contrast to PDMPs, for HMC and MALA the gradient needs to be fully evaluated and no subsampling methods can be exploited. Thus, the integral in (16) needs to be computed numerically, introducing bias. Furthermore, contrary to PDMPs, the resulting Markov chain is reversible. We study the performance of the samplers for the stochastic differential equation (20) with \(u, v = 0\) and the time horizon \(T = 100\) and we let \(\alpha \) vary. As \(\alpha \) increases, the target distribution on the coefficients presents higher peaks and valleys and is therefore a challenging distribution for general Markov chain Monte Carlo methods. We fix the refreshment rate of the Bouncy Particle sampler to 1 to avoid a degenerate behaviour and implement the MALA algorithm with adaptive step size over 250,000 iterations. We used the automatically tuned dynamic integration time HMC Algorithm (Betancourt 2018) with 3000 iterations and with diagonal mass matrix and integrator step size both adaptively tuned in a warmup phase of 2000 iterations, with the latter adapted using a dualaveraging algorithm (Hoffman and Gelman 2014) with target acceptance statistic of 0.8. The algorithm is provided in the package AdvancedHMC.jl (see Ge et al. 2018) with 3000 iterations. The integral appearing in the gradient of the energy function is computed for the MALA sampler and for the HMC sampler numerically with a simple Euler integration scheme over \(2^{N+1}\) points, where N is the truncation level which is fixed to 6 for all the experiments. The final clock for the PDMPs is \(T' = 25,000\). We also include the numerical results of two variants of the ZigZag sampler:

(ZZv1)
where the partial derivative in (16) is estimated by averaging over multiple independent realisations of (17), with the number of realisations proportional to the length of the range of the integral in (16);

(ZZv2)
where the partial derivative in (16) is estimated by decomposing the range of the integral into N subintervals (with N proportional to the length of the range of the integral) and evaluating the integrand at a random point drawn inside each subinterval.
These variants of the ZigZag have been proposed after noticing that the coefficients at low levels are the ones deviating the most from normality and the partial derivative with respect to those coefficients have larger support. This suggests that refining the estimates of the partial derivative of the energy function only with respect to those coefficients can be beneficial and improve the performances of the PDMPs. Figure 10 shows the results obtained. The fully local ZigZag and its variants always outperform the Bouncy Particle sampler, the MALA and the HMC with respect to the statistics considered, namely the mean, median and minimum of the effective sample size computed for each coefficient of the Faber–Schauder expansion and the effective sample size of the coefficient \(\xi _{0,0}\), which gives the middle point \(X_{T/2}\) and, as shown in Fig. 10, is one of the most difficult coefficients to sample.
6 Extensions
In this section, we briefly sketch the extension of the approach presented in Sect. 3 to a class of multidimensional diffusion bridges. Then, we study the scaling properties of the algorithm with respect to three quantities: the time horizon of the diffusion bridge T, the truncation level N and the dimensionality of the diffusion bridge d.
6.1 Multivariate diffusion bridge
Consider a ddimensional diffusion bridge given the stochastic differential equation
where \((W_t)_{t\ge 0}\) is a ddimensional Wiener process and \(\nabla B: \mathbb {R}^d \mapsto \mathbb {R}^d\) is a conservative vector field, i.e. the gradient of some scalarvalued function B. Denote its law by \(\mathbb {P}^{u,v_T}\). Similarly to Eq. (10), under mild assumption on \(\nabla B(X_t)\), we can write the change of measure between \(\mathbb {P}^{u,v_T}\) and the standard ddimensional Wiener bridge measure \(\mathbb {Q}^{u,v_T}\) as
where \(b = \nabla B\), \(\Delta B\) is the Laplacian of B, and C is a normalisation constant which depends on \(u,v_T\) and T. It is straightforward to derive an equivalent approximated measure as done in equation (12) and prove Theorem 3.11 in the multidimensional setting. In this case, the ddimensional diffusion bridge measure is approximated by the same truncated expansion of equation (2) with coefficients \(\xi _{i,j}, i = 0,\ldots ,N; \, j = 0,\ldots ,2^N\) which now are ddimensional random vectors. The total dimensionality of the target density for diffusion bridges becomes \(d(2^{N+1} 1)\) . Similarly to the onedimensional case, Proposition 7.1 holds. (The proof follows in a similar fashion of the proof of Proposition 7.1 and is omitted for brevity.) The Poisson rates \(\lambda ^k_{i,j}\) (where, \(k \in \{1,\ldots ,d\}\) defines the coordinate of the ddimensional process) are functions of the sets \(N_{i,j}^k\) which have maximum admissible size \(N_{i,j}^k = d(2^{Ni+1} + i 1) \le d(2^{N+1}  1)\) so that Assumption 4.1 holds.
6.2 Scaling for large T, N, d
The following scaling analysis serves as preliminary work for future explorations. The expected run time of the fully local ZigZag sampler (Algorithm 4) is intimately related to the number of Poisson event times for a fixed final clock \(\tau _{\text {final}}\) and the conditional independence structure appearing in the target measure. The former is determined by the size of the Poisson bounding rates \({\bar{\lambda }}_1,\ldots ,\bar{\lambda }_{M}\), while the latter is defined by the sets \(N_{1},\ldots ,N_{M}\) and determines the complexity of the local step of Algorithm 3.
Remark 6.1
For a fixed position and velocity, the Poisson bounding rates used in the ZigZag sampler with subsampling (Algorithm 2) for diffusion bridges are of the form \({\bar{\lambda }}_{i,j} = C_1 T^{3/2}2^{3i/2} + C_2, \, i = 0, 1,\ldots ,N; \, j = 0,1,\ldots ,2^i1\), for some terms \(C_1\) and \(C_2\) which do not depend on i and T.
Proof
For every \(i = 0, 1,\ldots ,N; \, j = 0,1,\ldots ,2^i1\), the time horizon T and scaling index i enter in the bounding rates of (18) through the terms \(S_{i,j}\) and \(\bar{\phi }_{i,j}\). The first term is of \({\mathcal {O}}(T 2^{i})\), and the second one is of \({\mathcal {O}}(\sqrt{T}2^{i/2})\). \(\square \)
Proposition 6.1 helps in understanding how the complexity of the algorithm scales as T grows and as the truncation level N grows. As T grows, the Poisson rates increase with order \(T^{3/2}\) so that the total number of Poisson events for a fixed ZigZag clock increases with the same order.
Furthermore, as the truncation level N grows, the change of measure affects less and less the coefficients in high levels and the partial derivative of the energy function goes to zero with rate \(2^{3N/2}\)) implying that the for large N, \(\bar{\lambda }_{N,j} \approx C_2 = (\xi _{N,j} \theta _{N,j})^+\) (which is the Poisson rate for the Brownian bridge). As a consequence, the Poisson processes of the coefficients in high levels (i large) will be approximately independent with all the other coefficients and not function of the level i so that the complexity of Algorithm 4 scales approximately linearly with the number of mesh points. This is opposed to the standard ZigZag algorithm (Algorithm 1) which does not take advantage of the approximate independence of the coefficients in high levels so that the \(2^{N+1}1\) waiting times have to be renovated at every reflection of each coefficient.
The scaling result under mesh refinement (when N grows) is unsatisfactory as the algorithm deteriorates when the resolution of the path increases. A partial solution can be obtained by letting the absolute value of the marginal velocities \(\theta _{N,j}\) to decrease as N increases. This would enhance the scaling property of the algorithm under mesh refinement at the cost of a slow mixing of highlevel components. An alternative solution is considered in Bierkens et al. (2018) where the authors enhance the scaling property of the algorithm by replacing the ZigZag algorithm with the Factorised Boomerang sampler. The Factorised Boomerang sampler differs from the ZigZag by having curved trajectories which are invariant to a prescribed Gaussian measure. This allows the process to sample from the Gaussian measure (Brownian bridge measure) at barely no cost. However, the main drawback of the factorised Boomerang sampler is the current limiting techniques for simulating Poisson times given the curved trajectories which lead to Poisson upper bounds which are not tight.
Finally, when the dimensionality of the diffusion bridge is \(d \gg 1\), both the dimensionality of the target density of the ZigZag sampler and the sets \(N_{i,j}^k\) for \(i = 0,\ldots ,N; \, j = 0,\ldots ,2^i1;\, k = 1,\ldots ,d\) grow linearly with d so that, in general, we expect the computational time to grow with rate \(d^2\). When the drift of the multidimensional bridge presents a sparse structure, i.e. not all coordinates of the differential equation interact directly with each other, as common in the highdimensional case arising from discretised stochastic partial differential equations (e.g. Michel et al. 2019, Sect. 6), the size of those sets reduces considerably until the extreme case of d independent diffusion bridges where the sets \(N_{i,j}^k\) are not anymore a function of d and clearly the complexity grows linearly with the dimensionality d.
7 Conclusions
In this paper, we have introduced a new method for the simulation of diffusion bridges which substantially differs from existing methods by using the ZigZag sampler and the basis of representation adopted. We motivated both choices and presented the method and its implementation. The resulting simulated bridge measures are shown to be close to the real measures, even for lowdimensional approximations and bridges which are highly nonlinear. We took advantage of the subsampling technique and a local version of the ZigZag to sample highdimensional approximation to conditional measures of diffusions with intractable transition densities. The subsampling technique is a key property in favour of using piecewise deterministic Monte Carlo methods for diffusion bridges (and whenever the target measure is expressed as an integral that requires numerical evaluation). However, the main limitation found for these methods is that they rely on upper bounds of the Poisson rates which are modelspecific. Upper bounds for PDMC are easily derived in situations where the loglikelihood has a bounded Hessian. In our setting, this means that we wish for the function \(b^2(x)  b'(x)\) to have bounded second derivative. In other cases, tailormade bounds need to be derived which can be substantially more complicated. Furthermore, the performance of these samplers can be affected if the upper bounds are too large.
In conclusion, this is the first time (to our knowledge) the ZigZag has been employed in a highdimensional practical setting. We claim that the promising results will open research towards applications of the ZigZag for highdimensional problems. We mention below some possible extensions of the methodology proposed which are left for future research:

a.
The hierarchical structure of the Faber–Schauder basis suggests that the ZigZag should explore the space at different velocities to achieve optimal performance. Unfortunately, it is not immediately clear how to tune the velocity vector;

b.
In Sect. 6, we anticipated the possibility to simulate multidimensional diffusion bridges. In order to generalise the results presented in this paper, we assumed the drift being a conservative vector field. In order to relax this limiting assumption, new convergence results have to be derived which deal explicitly with the stochastic integral appearing in equation (8).

c.
The driving motivation for proposing this methodology is to perform parameter estimation of a discretely observed diffusion model. For this purpose, the ZigZag sampler runs jointly on the augmented path space given by the coefficients \(\xi \) and the parameter space \(\Theta \).
References
Andrieu, C., Livingstone, S.: PeskunTierney ordering for Markov chain and process Monte Carlo: beyond the reversible scenario (2019). arXiv:1906.06197
Andrieu, C. et al.: Hypocoercivity of Piecewise Deterministic Markov ProcessMonte Carlo. (2018). arXiv:1808.08592
Beskos, A., Papaspiliopoulos, O., Roberts, G.O. et al.: Retrospective exact simulation of diffusion sample paths with applications. Bernoulli 12(6), pp. 1077–1098 (2006)
Betancourt M. : A Conceptual Introduction to Hamiltonian Monte Carlo (2018). arXiv:1701.02434
Bierkens, J., Fearnhead, P., Roberts, G.: The ZigZag process and superefficient sampling for Bayesian analysis of big data. Ann. Stat. 47(3) , pp. 1288–1320 (2019). https://doi.org/10.1214/18AOS1715
Bierkens, J., Kamatani, K., Roberts, G.O.: Highdimensional scaling limits of piecewise deterministic sampling algorithms (2018). arXiv:1807.11358
Bierkens, J. et al.: The Boomerang Sampler. (2020). arXiv:2006.13777
Bierkens, J., van der Meulen, F., Schauer, M.: Simulation of elliptic and hypoelliptic conditional diffusions. Adv. Appl. Probab. 52(1), 173–212 (2020). https://doi.org/10.1017/apr.2019.54
Bladt, M., Sørensen, M., et al.: Simple simulation of diffusion bridges with application to likelihood inference for diffusions. Bernoulli 20(2), 645–675 (2014)
BouchardCôté, A., Vollmer, S.J., Doucet, A.: The Bouncy particle sampler: a nonreversible rejectionfree markov chain monte carlo method. In: (2015). arXiv:1510.02451
Davis, M.H.A.: Markov Models & Optimization. Chapman & Hall/CRC Monographs on Statistics & Applied Probability. Taylor & Francis (1993). ISBN: 9780412314100
Diaconis, P., Holmes, S., Neal, R.M .: Analysis of a nonreversible Markov chain sampler. In: Annals of Applied Probability, pp. 726–752 (2000)
Duane, S. et al.: Hybrid Monte Carlo. Phys. Lett. B 195(2), 216–222 (1987). ISSN: 03702693. https://doi.org/10.1016/03702693(87)91197X
Faulkner, M.F. et al.: Allatom computations with irreversible Markov chains. J. Chem. Phys. 149(6), 064113 (2018). ISSN: 10897690. https://doi.org/10.1063/1.5036638
Fearnhead, P. et al.: Piecewise deterministic markov processes for continuoustime monte carlo. Stat. Sci. 33(3), 386–412 (2018). https://doi.org/10.1214/18STS648
Ge, H., Xu, K., Ghahramani, Z.: Turing: a language for exible probabilistic inference. In: International Conference on Artificial Intelligence and Statistics, AISTATS 2018, 9–11 April 2018, Playa Blanca, Lanzarote, Canary Islands, Spain, pp. 1682–1690 (2018). http://proceedings.mlr.press/v84/ge18b.html
Grimmett, G., Stirzaker, D.: Probability and Random Processes. Oxford University Press, Oxford (2001)
Hoffman M.D., Gelman A : The NoUTurn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. J. Mach. Learn. Res.15(1), 1593–1623 (2014)
Karatzas, I., Shreve, S.E .: Brownian motion and stochastic calculus. In: Graduate texts in Mathematics 113 (1991)
Klebaner, F.C.: Introduction to Stochastic Calculus with Applications. World Scientific Publishing Company (2005)
Liptser, R.S., Aries, B., Shiryaev, A.N.: Statistics of Random Processes: I. General Theory. Stochastic Modelling and Applied Probability. Springer, Berlin (2013). ISBN: 9783662130438
McKean, H.P.: Stochastic Integrals, vol. 353. American Mathematical Society (1969)
Michel, M., Tan, X., Deng, Y.: Clock Monte Carlo methods. Phys. Rev. E 99(1) (2019). ISSN: 24700053. https://doi.org/10.1103/physreve.99.010105
Mider, M., Schauer, M., van der Meulen, F.: Continuousdiscrete smoothing of diffusions. (2020). arXiv: 1712.03807
Mider, M. et al.: Simulating bridges using con uent diffusions (2019). arXiv: 1903.10184
Peters, E.A.J.F.: Rejectionfree Monte Carlo sampling for general potentials. Phys. Rev. E 85(2) (2012). ISSN: 15502376. https://doi.org/10.1103/PhysRevE.85.026703
Pierre, M. et al.: Velocity jump processes: an alternative to multitime step methods for faster and accurate molecular dynamics simulations. J. Chem. Phys. 153(2), 024101 (2020). ISSN: 10897690. https://doi.org/10.1063/5.0005060
Roberts, G.O., Rosenthal, J.S.: Optimal scaling of discrete approximations to Langevin diffusions. J. R. Stat. Soc.: Ser. B (Statistical Methodology) 60(1), 255–268 (1998)
Roberts, G.O., Stramer, O.: On inference for partially observed nonlinear diffusion models using the MetropolisHastings algorithm. Biometrika 88(3), 603–621 (2001)
Roberts, G.O., Tweedie, R.L.: Exponential convergence of Langevin distributions and their discrete approximations. In: Bernoulli 2.4 , pp. 341–363 (1996). ISSN: 13507265. http://www.jstor.org/stable/3318418
Schauer, M., Grazzi, S.: ZigZagBoomerang: v0.5.3. https://www.github.com/mschauer/ZigZagBoomerang.jl. 2020. https://doi.org/10.5281/zenodo.3931118
van der Meulen, F., Schauer, M., van Waaij, J.: Adaptive nonparametric drift estimation for diffusion processes using Faber–Schauder expansions. Stat. Inference Stoch. Process. 21(3), 603–628 (2018)
van der Meulen, F., Schauer, M.: Bayesian estimation of discretely observed multidimensional diffusion processes using guided proposals. Electron. J. Stat. 11(1), 2358–2396 (2017). https://doi.org/10.1214/17EJS1290
Acknowledgements
This work is part of the research programme Bayesian inference for highdimensional processes with project number 613.009.034c, which is (partly) financed by the Dutch Research Council (NWO) under the Stochastics – Theoretical and Applied Research (STAR) grant. J. Bierkens acknowledges support by the NWO for the research project Zigzagging through computational barriers with project number 016.Vidi.189.043. The authors are thankful to Gareth Roberts and Marcin Mider for fruitful discussion and grateful to the reviewers for valuable input.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix A Factorisation of the diffusion bridge measure
Appendix A Factorisation of the diffusion bridge measure
Here, we derive rigorously the conditional independence structure of the coefficients which arise from the compact support of the Faber–Schauder functions as shown in Fig. 4. Recall that the relation \( \xi _{i,j} \ll \xi _{k,l}\) holds if \(S_{k,l} \subset S_{i,j}\) and in that case we refer to \(\xi _{i,j}\) as the ancestor of \(\xi _{k,l}\) (and conversely \(\xi _{k,l}\) as the descendant). Notice that each coefficient is both descendant and ancestor of itself.
Proposition 7.1
(Conditional independence structure) Denote the set of common ancestors of \(\xi _{i,j}\) and \(\xi _{k,l}\) by \(A_{(i,j; k,l)} := \{ \xi _{h,d} :\xi _{h,d} \ll \xi _{k,l} \wedge \xi _{h,d} \ll \xi _{i,j} \}\). Under \({\mathbb {P}}^{v_T}_N\), \(\xi _{i,j}\) is conditionally independent from \(\xi _{k,l}\), given the set \(A_{(i,j;k,l)}\), whenever the interior of the supports of their basis function is disjoint that is neither \(\xi _{i,j} \ll \xi _{k,l}\) nor \(\xi _{k,l} \ll \xi _{i,j}\) is satisfied.
Proof
For \(i= 1,\ldots ,N; \, j = 1,\ldots ,2^i  1\), define the vectors of ancestors and descendants of \(\xi _{i,j}\) as \(\xi ^{(i,j)} := \{\xi _{m,n} :\xi _{m,n} \ll \xi _{i,j} \vee \xi _{m,n} \gg \xi _{i,j}\}\). Assume, without loss of generality, that \(i \le k\) and consider two coefficients \(\xi _{i,j}, \xi _{k,l}\). We factorise \(Z^N(X)\) by partitioning the integration interval [0, T] in a sequence of subintervals \(S_{k,0}, S_{k,1},\ldots ,S_{k,2^k 1}\) so that
Here,
with
and we used that \(X^N_s = X^{N;i,j}_s \) when \(s \in S_{i,j},\, X^N_T = \bar{\phi }(T) v_T/\sqrt{T}\) and \(X^N_0 = \bar{\bar{\phi }}(0) u \). Now, just notice that, under this factorisation, the only factor which is a function of \(\xi _{k,l}\) is \(f_{k,l}(\xi ^{(k,l)})\). Here, if \(\xi _{i,j} \not \ll \xi _{k,l}\), then \(\xi ^{(k,l)}\) does not contain \(\xi _{i,j}\). Conversely, the factors containing \(\xi _{i,j}\) are those \(f_{k,p}(\xi ^{(k,p)})\) such that \( \xi _{i,j} \ll \xi _{k,p} \) with \(p = 0,1,\ldots ,2^k1\). If \(\xi _{i,j} \not \ll \xi _{k,l}\), none of the vectors \(\xi ^{(k,p)}\) contains \(\xi _{k,l}\). Since, under the measure \({\mathbb {Q}}^{u,v_T}\), the random variables in the vector \(\xi ^N\) are pairwise independent, the factorisation on \(Z^N(X)\) defines the dependency structure of the vector \(\xi ^N\) under \({\mathbb {P}}^{v_T}_N\) so that \(\xi _{i,j}\) and \(\xi _{k,l}\) are independent conditionally on their common coefficients given by the set \( A_{(i,j;k,l)}\). \(\square \)
More intuitively, the factorisation of Z(X) gives rise to the dependency graph displayed in Fig. 11 which shows that the coefficients in high levels (i large) are coupled with just few other coefficients and conditionally independent from all the remaining. The conditional independence of the coefficients implies that the partial derivatives of the energy function (and consequently the Poisson rates given by equation (6)) are functions of only few coefficients in the sense of Assumption 4.1. In particular, the sets in Assumption 4.1 (using double indexing) can be chosen as \(N_{i,j} = \{ \xi _{h,d} :\xi _{h,d} \ll \xi _{i,j} \vee \xi _{h,d} \gg \xi _{i,j}\}\) with size \(N_{i,j}= 2^{Ni + 1} + i 1 \), where N is the truncation level.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Bierkens, J., Grazzi, S., van der Meulen, F. et al. A piecewise deterministic Monte Carlo method for diffusion bridges. Stat Comput 31, 37 (2021). https://doi.org/10.1007/s11222021100088
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s11222021100088
Keywords
 Diffusion bridge
 Conditional diffusion
 Diffusion process
 Faber–Schauder basis
 Intractable target density
 Local ZigZag sampler
 Piecewise deterministic Monte Carlo
 Highdimensional simulation