Piecewise-Deterministic Markov Chain Monte Carlo
Paul Vanetti, Alexandre Bouchard-Côté, George Deligiannidis, Arnaud Doucet
Introduction
Markov chain Monte Carlo (MCMC) methods are the tools of choice to sample non-standard probability distributions. In high-dimensional scenarios, the celebrated Metropolis–Hastings algorithm performs usually poorly and alternative algorithms are required. Two of the most popular alternatives are slice sampling and Hamiltonian Monte Carlo (HMC) methods which have had much empirical success over recent years. More recently, continuous-time non-reversible MCMC algorithms based on Piecewise-Deterministic Markov Processes (PDMP) schemes have also appeared in the literature in applied probability , automatic control , physics , statistics and machine learning . In physics, these schemes have become quickly popular as they provide state-of-the-art performance when applied to the simulation of large scale physical models. They also show promise for statistics applications, in particular for high dimensional sparse graphical models and big data .
However, the PDMP-based schemes currently available suffer from shortcomings which limit both their applicability and performance. To ensure invariance with respect to the target distribution, one needs to be able to simulate these continuous-time processes exactly. In practice, this restricts severely the deterministic dynamics one can use: all the existing algorithms use a simple linear dynamics that does not exploit the geometry of the target. Moreover, exact simulation of the event times is problem specific and may be impossible in certain scenarios. This prevents the development of a generic software implementation of these techniques.
In this paper, we address these limitations by developing novel continuous-time and discrete-time Piecewise-Deterministic Markov Chain Monte Carlo (PD-MCMC) techniques which bring together HMC, PDMP and generalized Metropolis–Hastings.
First, we show that it is possible to develop continuous-time PD-MCMC algorithms relying on Hamiltonian dynamics. In this context, exact simulation of the resulting PDMP remains possible for an important class of target distributions. The resulting algorithms provide an alternative to elliptical slice sampling-type algorithms . We also exploit a generalized version of Metropolis–Hastings algorithm (see, e.g., ) satisfying a skewed detailed balance condition to derive novel schemes.
Second, we introduce novel discrete-time PD-MCMC algorithms. These non-reversible algorithms can be thought of as a discretized version of continuous-time PD-MCMC but preserve the target distribution as invariant distribution for all discretization steps. These schemes are not only able to exploit complex dynamics, such as approximate Hamiltonian dynamics arising from symplectic integrators, but it is also always possible to simulate the event times. Moreover some versions of these discrete-time algorithms do not even require being able to compute the gradient of the log-target. These methods enjoy the same attractive features as their continuous-time counterparts: they can leverage any representation of the target as a product of non-negative factors. Additionally they can use unbiased estimators of the log-target distribution and its gradient and still provide algorithms with the correct invariant distribution.
The rest of the paper is organised as follows. In Section 2 we review continuous-time PDMPs, provide sufficient conditions to ensure invariance of a PDMP with respect to a given target distribution, discuss existing PD-MCMC algorithms and finally introduce novel algorithms relying on Hamiltonian dynamics. In Section 3, we introduce the class of discrete-time PDMP and provide sufficient conditions to ensure invariance of a PDMP with respect to a given target distribution which parallel the ones obtained in the continuous-time scenarios. We review existing and describe novel discrete-time PD-MCMC algorithms. Section 4 is dedicated to the efficient implementation of discrete-time algorithms using subsampling and prefetching ideas while Section 5 proposes discrete-time algorithms to handle scenarios where the target is intractable but its logarithm and the logarithm of its gradient can be estimated unbiasedly. Empirical performance of some of these schemes are reviewed in Section 6. Appendix A contains all the proofs of validity of the proposed algorithms while weak convergence of a specific discrete-time scheme to a PDMP is proven in Appendix B.
Continuous-Time PDMP and PD-MCMC
an Ordinary Differential Equation (ODE) with differentiable drift , i.e.,
satisfying the semi-group property and such that is càdlàg,
a Markov transition kernel from to where the state at event time is given by , being the state of the process just before the event.
Algorithm 1 describes how to simulate the path of a PDMP.
To be able to exactly simulate a PDMP, we thus need to be able to simulate from the distribution (3) and compute the flow (4). Finally we also need to be able to simulate from the transition kernel . In important scenarios, exact simulation of the event times can be performed using inversion of the integrated rate function as in or using adaptive thinning procedures as in .
We now introduce the generator associated with the PDMP. For functions in the domain of the generator, it is defined by
Under suitable regularity conditions [15, Theorem 26.14], it can be shown that this generator is given by
where denotes the scalar product between vectors and . The first term on the right hand side of (6) arises from the deterministic dynamics while the second term corresponds to the jump component of the process.
2 From PDMP to PD-MCMC
Assume we are interested in sampling from a given target probability distribution on the Borel space . If we want to use a PDMP mechanism to sample this target distribution, this PDMP needs at least to admit this distribution as invariant distribution. We provide here sufficient conditions to ensure this is satisfied. If additionally the PDMP is ergodic, this will allow us to estimate consistently expectations with respect to the invariant distribution.
From now onward, the target distribution will be assumed to have a strictly positive density with respect to the Lebesgue measure where
Invariance with respect to will be satisfied if
for all functions in the domain of the generator [15, Proposition 34.7]. From (6), this means that we need
However, using integration by parts, we obtain
where is the divergence of the vector field . Hence, a sufficient condition to ensure invariance of a PDMP with respect to is to have
We provide here useful sufficient conditions on , and to ensure -invariance of the associated PDMP, without making any structural assumptions on these objects.
Based on these assumptions, straightforward calculations show that the following result holds.
Assume (A(A1)). Then the PDMP admits as invariant distribution.
2.2 Sufficient conditions for local methods
Assume that can be decomposed as follows
where potentially each only depends on a subset of the components of . In this context, like in standard MCMC, we might be interested in using a transition kernel which is a mixture of kernels performing local updates. This can be achieved in the PDMP framework by introducing an event rate of the form
where are Markov transition kernels. Let us write . To simulate the event times of the resulting PDMP, one can associate a clock to each index and use a priority queue . When it is possible to bound locally in time, more elaborate thinning strategies have been developed in [10, Section 3.3.2] and .
Based on these structural assumptions on and , we can provide useful sufficient “local” conditions on and to ensure that invariance of the associated PDMP with respect to is satisfied.
Conditions on and
There exists a -preserving mapping .
The event rates satisfy
For all , the transition kernel satisfies
If the functions are differentiable then Assumption A(A2).2 is satisfied for a divergence-free vector field, i.e. , if for all
Assume (A(A2)). Then the PDMP admits as invariant distribution.
2.3 Sufficient conditions for doubly stochastic methods
In this context, we consider an event rate of the form
where is a Markov transition kernel from to . In Section 2.2.2, (11), (12) and (13) simply correspond to (17), (18) and (19) if we select as the measure such that for all . The sufficient conditions of the previous section can be directly generalized.
Conditions on and
There exists a -preserving mapping .
The event rates satisfy
For all , the transition kernel satisfies
If is a probability measure and the derivative is well-defined for almost all then under weak regularity conditions, it follows from (17) that is an unbiased estimate of when and Assumption A(A3).2 will be satisfied for a divergence-free field if
We will refer to this class of PD-MCMC as “doubly stochastic” in reference to doubly-stochastic Poisson processes.
Assume (A(A3)). Then the PDMP admits as invariant distribution.
3 Existing PD-MCMC algorithms
so the resulting flow is analytically tractable and given by
In this case, we have . Additionally, all these algorithms rely on which can be viewed as a time reversal, so (9) becomes
These algorithms differ in the way the event rate and the transition kernels are specified. We just give a few examples here and refer the reader to the list of references for other examples.
This algorithm proposed in exploits any additive decomposition of the potential , i.e.
For , it uses the event rate
The BPS algorithm has been further extended to the scenario where one has access to an unbiased estimate of ; see and [20, Section 4.4.2]. The validity of this algorithm can be established as an application of the results of Section 2.2.3. We are not aware of any implementation of this algorithm in scenarios where is not an atomic measure with finite support, in which case the algorithm is the local BPS.
3.2 Zig-Zag sampler
This algorithm proposed in uses for the uniform distribution on In this scenario, does not admit a density with respect to Lebesgue measure but the results discussed previously can be directly extended to this scenario. . It relies on the following event rates
while the transition kernel is selected as
It is also possible to further exploit any additive decomposition of within this framework and this has been used to develop an efficient sampling algorithm for big data . Again, it is easy to show that Assumption A(A2) is satisfied.
3.3 BPS sampler with randomized bounces
Alternatives to bounces of the form (28) have been proposed where one uses
and . In this case, Assumption A(A1).3 is verified if
Here will be the standard multivariate normal distribution. We consider the scenario where as in the global BPS. To present the various methods proposed in the literature, a decomposition of the velocity similar to that adopted in is useful:
where and are unit norm vectors such that
All the randomized bounce procedures return a vector
where . With this notation, we obtain
Let and be the and distributions respectively, with degrees of freedom. Under , the random variables and are independent and satisfy
Indeed, we have and . We give below some examples of kernels satisfying Equation (30).
Independent sampling : proposes using which satisfies (30) but a scheme to sample this distribution was not given. Using the parameterization (31)-(33), (34) shows this can be achieved by sampling according to a density proportional to times the standard normal density, which is equivalent to sampling . Finally, sample and set .
Autoregressive bounce: this is a new scheme where one samples with probability and otherwise, sample and set . Finally, set for .
The properties of these randomized bounces are not yet well understood. In Section 6, we compare them experimentally on a variety of models.
4 Hamiltonian PD-MCMC
where and is an auxiliary probability density ensuring is analytically tractable, e.g., is quadratic or linear . For example if is a posterior density arising from a Gaussian prior, then could be this Gaussian prior. Alternatively, can always be selected as a Gaussian approximation to . We can then rewrite the target as where
where . This is the same rationale as in elliptical slice sampling-type algorithms : both schemes use an exact Hamiltonian dynamics associated with an approximation of to explore the space. The difference with these algorithms and the method proposed here is that we correct for the discrepancy between and by using a PDMP mechanism instead of slice sampling techniques.
The Hamiltonian flow is induced by the ODE of drift where and . Hence, we have and
We can alternatively use the randomized bounces described in Section 2.3.3 substituting for . Figure 1 illustrates a sample path obtained from the resulting Hamiltonian BPS algorithm. Local and doubly stochastic versions of this algorithm as for BPS can also be directly developed.
In the big data examples considered in , one could for example use for a Gaussian approximation of . A local algorithm can then be obtained using for the difference of the gradient of the log-likelihood corresponding to data and the properly rescaled gradient of the log-approximate posterior, as in . If the terms are locally bounded, we can simulate exactly the PDMP using thinning techniques which boil down to data subsampling . This provides an alternative to which also exploits Hamiltonian dynamics and subsampling but does not preserve as invariant distribution.
Finally, we also note that the methods introduced in this section can be combined with the HMC algorithm of proposed to perform exact simulation of constrained normal distributions. This extends significantly the applicability of the work in , which can be viewed as a special case where . An alternative approach to constrained problems is proposed in but it is limited to piecewise-linear dynamics.
5 Using generalized Metropolis–Hastings transitions at event times
All the algorithms we have considered so far are such that only a part of the state is updated at event times, i.e., the transition kernel is of the form We might be interested in designing more general transitions kernels satisfying Assumption A(A1).3 and similarly Assumption A(A2).3 or Assumption A(A3).3.
For sake of illustration, consider Assumption A(A1).3. This can be rewritten as
for the probability measure assuming that , a weak condition which we assume holds. If the mapping is an involution, i.e., , and we can design a kernel satisfying the so-called skewed detailed balance condition
then it follows directly by integrating both terms in this equality with respect to variable that it will satisfy (36).
We present here a generic mechanism which can be used to achieve this known as the Generalized Metropolis–Hastings (GMH) algorithm. The GMH algorithm is a simple extension of MH; see for example [31, pp. 74–77]. For a probability measure on , let us consider the following GMH kernel defined for a Markov proposal kernel by
Conditions on and
The mapping is an involution, i.e., .
is defined and positive for almost all
Assumption A(A4).1 is satisfied for . For a deterministic proposal Assumption A(A4).3 is satisfied if admits an inverse such that
and then the acceptance probability is given by
Assume (A(A4)). Then the GMH kernel defined by (38) satisfies the following skewed detailed balance condition
If additionally is a -preserving mapping then the GMH kernel is -invariant.
The proof of this result follows from direct calculations given in the Appendix and can also be found in [31, pp. 74–77]. Using this result, it is possible to check easily Assumption A(A1).3 for the BPS and Zig-Zag processes. For example, for the BPS, is of the form (38) with , , as we use a deterministic proposal which verifies so for all . Hence by Proposition 4, satisfies the skewed detailed balance (37), hence it satisfies (36).
The benefit of the GMH approach is that it allows us to define much more general kernels at event times. For example one could use a deterministic proposal with where is a computationally cheap approximation of . It is valid to use such a deterministic proposal at it satisfies . In this case, there is a probability of the bounce being rejected and setting . We can also use transition kernels which modify the component of .
Discrete-time PDMP and PD-MCMC
We introduce here the class of discrete-time PDMP and present general conditions for such processes to ensure invariance w.r.t. a strictly positive density . These conditions parallel the conditions given Section 2.2 for continuous-time algorithms.
a diffeomorphism with the absolute value of the determinant of the Jacobian satisfying for all ,
an acceptance probability with being the probability of having an event at the next time step when the current state is , and
a Markov transition kernel from to where the state at event time is given by .
2 From discrete-time PDMP to PD-MCMC
Similarly to Section 2.2, assume we are interested in sampling a strictly positive density given by (7) using a discrete-time PDMP process. Invariance of the kernel with respect to is satisfied if, by definition, one has
All the following developments could also be adapted to sample from distributions on discrete spaces but this will not be discussed here.
We provide here useful sufficient conditions on , and to ensure -invariance of the associated discrete-time PDMP, without making any structural assumption on these objects.
There exists a -preserving mapping .
The acceptance probability satisfies
Conditions A(A5).1 to A(A5).3 parallel the conditions A(A1).1 to A(A1).3.
Assume (A(A5)). Then the discrete-time PDMP admits as invariant distribution.
When is an involution so that , condition A(A5).3 can be interpreted as a “skewed” invariance condition on . The quantity is proportional to the invariant distribution of the “jump chain,” i.e. the distribution of those states where the proposal is rejected. It has a clear analogue in the continuous-time scenario where the jumps occur at states with distribution proportional to .
2.2 Sufficient conditions for local methods
In scenarios where can be decomposed as in (11), it will prove convenient to consider an acceptance probability of the form
Based on these structural assumptions on and , we can provide useful sufficient “local” conditions on and to ensure invariance of the associated discrete-time PDMP w.r.t. is satisfied.
Conditions on , and
There exists a -preserving mapping .
The acceptance probabilities satisfy
For all , the transition kernel satisfies
For a mapping such that , then Assumption A(A6).2 is satisfied if for all
Assume (A(A6)). Then the discrete-time PDMP admits as invariant distribution.
2.3 Sufficient conditions for doubly stochastic methods
Consider finally the scenario where is given by (17). In this context, we consider an acceptance probability of the form
Conditions on and
There exists a -preserving mapping .
The acceptance probabilities satisfy
For all , the transition kernel satisfies
and the Radon-Nikodym derivative in the expression above is well-defined and strictly positive for almost all .
For a mapping such that , Assumption A(A7).2 is satisfied if for all
Assume (A(A7)). Then the discrete-time PDMP admits as invariant distribution.
3 Existing PD-MCMC algorithms
This scheme satisfies Assumption A(A5).1 to Assumption A(A5).3 and is thus -invariant. In particular Assumption A(A5).3 is satisfied as Steps 2 and 3 correspond to using for the event kernel a GMH kernel satisfying the skewed-detailed balance condition (42) for .
Algorithm 3 can be alternatively viewed as a composition of reversible kernels. First, a delayed-rejection algorithm proposing and, in case of rejection, then proposing . Second, the involution is applied unconditionally. In the delayed-rejection framework, we can view condition A(A5).3 as a condition on delayed-rejection kernels expressed in a sort of “remainder” form. While our algorithm uses two proposals, extending this remainder condition to multiple proposals would require that each satisfies .
This algorithm was proposed in . It is a special case of Algorithm 3 which uses for some and a proposal which is accepted with probability 1.
3.2 Hamiltonian Monte Carlo
The celebrated HMC algorithm proposed in is also a special case of Algorithm 3 which uses a proposal . However, contrary to guided random walk, it is using for a symplectic integrator targeting the Hamiltonian . This deterministic proposal satisfies indeed and (see, e.g., ). The resulting PD-MCMC kernel is usually combined with a momentum refreshment step .
3.3 Reflective Slice Sampling: discrete-time BPS schemes
Several versions of slice sampling, known as reflective slice sampling, are based on bounces similar to the BPS and are also a special case of Algorithm 3; see [37, Section 7]. They rely for some and a deterministic proposal . Reflective slice sampling with inner reflections is using while reflective slice sampling with outer reflections is using . Both proposals satisfy . The outer version of the algorithm has been recently proposed independently in ; see also for a related proposal in the context of nested sampling. In either case, the acceptance probability simplifies to
Under regularity conditions, reflective slice sampling with inner reflections converges weakly to the BPS for as .
A precise mathematical statement, Theorem 12, and its proof are given in Appendix B. We can modify this algorithm to include a refreshment, i.e. by sampling with probability . This weak convergence result of Proposition 11 can be directly extended to this case to show that the resulting discrete-time process converges weakly to the BPS process with refreshment rate . Note that the kernel would still be -invariant if were using a computationally cheap approximation of to bounce. However, this discrete-time algorithm does not converge to the BPS process as the probability of accepting does not vanish as in this scenario. Under regularity conditions, it will instead converge towards the algorithm described at the end of Section 2.5.
4 Extensions
For the kernel , we can use the randomized bounces developed in Section 2.3.3 as well as The forward-event , generalized BPS , and autoregressive bouncing procedures discussed in Section 2.3.3 induce a transition kernel satisfying , for which we would expect that the acceptance ratio in Step 2.b of Algorithm 4 will be close to 1 for small .
The invariance with respect to of the transition kernel is easy to check. Assumption A(A5).1 is clearly satisfied. Assumption A(A5).2 follows from direct calculations using and . Finally Assumption A(A5).3 follows from the fact that the event kernel corresponding to steps 2.a to 2.c of Algorithm 4 is a GMH kernel with with a proposal kernel .
4.2 Discrete-time Hamiltonian BPS
The invariance with respect to of the transition kernel is easy to check. Assumption A(A5).1 is obviously satisfied. Assumption A(A5).2 follows from direct calculations using and . Finally Assumption A(A5).3 follows from the fact that the event kernel corresponding to step (a) and (b) of Algorithm 5 is a GMH kernel with with a deterministic transition kernel satisfying . If is a leapfrog integrator of stepsize targeting the Hamiltonian , then the strategy described above is not directly applicable as for all so is not defined. However as can be thought of as the exact time discretization of a shadow Hamiltonian of the form [30, p. 107], it may be possible to build bounces based on to correct for the discrepancy between the true Hamiltonian dynamics and its leapfrog approximation.
4.3 Discrete-time gradient-free BPS
The BPS-type algorithms given thus far all require computation of the gradient of the potential in order to update the velocity when a bounce event occurs. However, we may wish to target potential functions where this gradient cannot be computed or is very expensive to compute. Additionally, the gradient may not be informative in some models, such as certain embeddings of discrete spaces where the gradient may be zero almost everywhere.
A scheme to approximate the gradient by computing numerical differences was advanced in . Here, some number of orthogonal unit vectors are selected, and the gradient approximated along each of these vectors by, e.g.,
for some small value . The combination of these vectors yields an approximation to the gradient
which for is a typical numerical approximation to the gradient. The new velocity is found by a reversible map from the old velocity to the new velocity which preserves the magnitude of the velocity and maintains the projection of the velocity on the gradient vector.
We may derive an algorithm which operates in the same spirit as that of . By taking orthogonal unit vectors, here selected randomly and independently of , we can achieve a reversible algorithm by simply taking the reflection off of the approximate gradient
and accepting this proposal in the same way we would accept a typical bounce in the discrete-time BPS algorithm; specifically, by accepting the bounce with probability
Alternatively, we propose an algorithm which is related to the continuous-time randomized bounces of Section 2.3.3. We had previously noted that the independent sampling algorithm proposed in consists of sampling from the distribution proportional to , independently of the current value of . Based on the discrete-time invariance condition (50), we may analogously sample from the distribution proportional to . This can be accomplished by using rejection sampling with instrumental distribution , noting that the ratio between the densities is bounded above by ; thus each rejection sampling proposal is accepted with probability , and the first accepted proposal is also accepted as the new state . See Algorithm 6 for details of this rejection-sampling scheme.
4.4 Efficient Implementation of Discrete-time PD-MCMC
Finally there are scenarios where it is possible to directly simulate an event time from (43). For example, assume that where is strictly convex, and then it is easy to show that Algorithm 7 returns a sample from (43). This adapts the approaches developed in [10, Section 2.3.1] for the continuous-time BPS algorithm to the discrete-time case.
All these strategies can be easily combined. For example, we can use an upper bound where is strictly log-concave for some .
Discrete-time local PD-MCMC
Note that depends on both , and , we stress this dependence as it is omitted notationally.
Algorithms 8 and 9 might appear of limited interest as they require to sample Bernoulli random variables at each iteration. In the next sections, we show how we can propose implementations that parallel the priority queue implementation of the local BPS proposed in , see [10, Section 3.3.1] for a detailed description, as well as the subsampling algorithms proposed in [10, 6, 29, Section 3.3.2].
2 Prefetching implementation
We first describe a priority queue type implementation of Algorithm 9 based on parallel prefetching ideas in scenarios where
being a subset of the components of and . There are many possible variations of this implementation.
The efficiency of Algorithm 10 relies on the capability of computing the efficiently. This may be possible when, for example, this is done in parallel or when we some property of allows it, such as in the case of log-concave targets detailed as in Algorithm 7 given above.
3 Subsampling implementations
For sufficiently small , we might expect that in Step 1 of Algorithm 9 would yield very few indices for which . This motivates an approach which can sample these variables more efficiently by finding an upper bound on the probability that , essentially allowing us to bound the number of indices for which . We present Algorithm 11; here, the acceptance of the bounce move (64) is computed in two stages: in Step 4.b we simulate events of probability for each where , if these succeed then in Step 4.c we simulate events of probability for each where . We suggest that one can make use of efficient procedures described in Algorithm 12 and Algorithm 13 to sample multiple Bernoulli random variables in both Steps 1 and 4.c; in both cases we expect few cases where the respective Bernoulli variables are 1. While Step 4.b also samples a set of Bernoulli variables, our assumption that is small suggests that the number of variables sampled here will be small; as such this step may be inexpensive and there is likely little to be gained by a more sophisticated simulation scheme.
In this case, we can determine the set using Algorithm 12. This incurs a computational complexity compared to for the direct implementation . This implementation can be thought of as the discrete-time version of the thinning ideas leading to the “naive” subsampling techniques presented in .
Second, if we instead have access to local bounds such that
we could obviously use the previous strategy by setting but this strategy can be highly inefficient if, e.g., most bounds are very close to zero and a few are close to 1. In this scenario, it is possible to use instead Algorithm 13 which relies on the simulation of Poisson random variables. This algorithm can be thought of as the discrete-time version of the thinning ideas leading to the “informed” subsampling techniques presented in .
For this algorithm to be of practical interest, the bounds and the associated Poisson rates should not have to be recomputed at each time step as for the examples considered in . In this scenario, it is then possible to use the alias method or ordered marginally uniform random variables on to sample efficiently from the multinomial distributions in complexity .
The availability of an upper bound for Step 1, denoted here , can be seen as equivalent to a lower bound on as discussed in Section 3.2.2, since
For Step 4.c, we would seek an upper bound
This bound may be achieved, for example, when for all . In this case, an upper bound can be derived using
Discrete-time doubly stochastic PD-MCMC
The kernel , which must satisfy (59), may be implemented using a scheme similar to the GMH. Using standard results on Poisson point processes and Assumption A(A7).3, the condition (61) can be simplified as
suggesting a GMH kernel with deterministic proposal satisfying and acceptance probability
which arises by treating the integral terms and the product terms as two factors, each with its own acceptance probability. Based on this, we present Algorithm 14, wherein we sample an event of probability (68) using a two-stage acceptance procedure.
By selecting for , the acceptance probability (68) takes the form
Further allowing , and with yields
The first term of this acceptance ratio, viewed as a void probability of a Poisson process, can be interpreted as the “excess” rate of over ; in other words, the probability that no extra points would be simulated for when in state .
In either case, the simulation of Poisson processes and is possible when those rates can be bounded. If we have some lower bound for which we can simulate a Poisson process of intensity , then we can recover by thinning this process. This condition is sufficient for simulation of as the corresponding intensity is bounded by ; however, it may be possible to bound the intensity of more tightly in some situations.
The idea of introducing a Poisson process so as to deal with the intractability of target distribution can also be exploited within a standard MCMC setting. For simplicity, assume a symmetric proposal density then it is easy to check that Algorithm 15 corresponds to a transition kernel which is reversible with respect to .
2 For measures containing atoms
While it remains sufficient to use the acceptance probability (68), we note that a partition of into sets of equivalent (and therefore equivalent bounce proposals ) will yield a sufficient condition which is “integrated out” in the sense that the total density of the forward and reverse transitions are captured.
and that the Radon-Nikodym derivative above is well-defined and strictly positive for -almost all . The above implies an algorithm similar to Algorithm 14 but where would be accepted with a probability of
Numerical results
In , the local BPS algorithm was shown to outperform various state-of-the-art HMC algorithms in sparse precision Gaussian random field models with Poisson observations. In this section, we investigate the relative performance of local BPS and Hamiltonian BPS in the same setting. We find that Hamiltonian BPS has a modest advantage over local BPS when the number of observations is small but the dimensionality of the latent variables is high. On the other hand, when the number of observations is equal to the number of latent variables, the situation is reversed. However in both regimes Hamiltonian BPS outperforms global BPS, and it is worth keeping in mind that there are situations where Hamiltonian BPS is applicable while the local BPS is not computationally attractive, for example if a single variable is connected to all factors.
More generally, if is an arbitrary normal distribution, the situation considered here can be used after a change of variables. The computational trade-off results we present in this section are hence representative of situations where we have a high-dimensional Gaussian prior with a precision matrix admitting a Cholesky decomposition that can be computed in time , which arises for example in certain time series models and corresponds to a best case scenario for Hamiltonian BPS.
1.2 Exact simulation of bounce times
Let index the observations. Assume that the negative log-likelihood can be decomposed as for some function mapping observation indices to the latent variable indices. As a pre-processing step, we compute (numerically or analytically) a bound .
Let and denote the initial position and velocity at the beginning of the current piecewise Hamiltonian segment for the latent variable associated with observation . From Section 2.3.3 of , it is enough to simulate the bounce time of a single factor . Using the methodology developed in [10, Section 2.3.2], we simulate the bounce time of each factor using thinning and the following bound on the intensity :
where , .
1.3 Results
We consider a likelihood given by conditionally independent Poisson observations with observations having a natural exponential family parameter given by the latent random variable :
We compare three algorithms: local and global BPS with piecewise linear trajectories, and Hamiltonian BPS. Computation of the bounce times for the piecewise linear trajectories is done as in . For the bounce times of Hamiltonian BPS, we use the result from Section 6.1.2 with .
We show in Figure 2 the scaling of the CPU wall clock time required to obtain one effective sample size (ESS) as a function of the dimensionality (log-log scale). The wall clock time is measured in milliseconds on a 2.8 GHz Intel Core i7, and the ESS is computed using a batch mean estimator with a test function given by . Expectations from piecewise-deterministic trajectories are computed analytically as shown in and from piecewise Hamiltonian trajectories, using numerical integration. For each dimension and algorithm, we run independent chains and average the running times per ESS.
2 Empirical comparisons of local and global BPS to HMC and Standard and Elliptical Slice Sampling
We consider four models, built from two prior distributions: first, a Brownian bridge prior, and second, a diagonal precision prior. For each prior, we consider either a Poisson likelihood with synthetic observations (with the same structure as described in the previous section), or no likelihood function. We consider the following sampling methods: the Elliptical Slice Sampler , the “Standard” Slice Sampler (with exponential slice growing and slice shrinking) , HMC, or more precisely the NUTS algorithm implemented in Stan, the local and global BPS algorithm with linear trajectories, and the Hamiltonian BPS algorithm. For each combination, we run the algorithms on latent fields of dimensionality , and replicate the experiment 50 times with different random seeds. We measure ESS and wall clock time. ESS is computed using a batch mean estimator with a test function given by .
2.2 Results
We summarize the main results of this section in Figure 3, where the empirical computational complexity (wall clock time (ms) per ESS) is plotted in log-log scale against the dimensionality of the field for the four models. For sufficiently high-dimensional scenarios (> 10 dimensions), local BPS outperforms all other methods in 3 out of the 4 settings. In the fourth setting, (Diagonal Precision + Poisson Likelihood), NUTS (HMC) and Local BPS outperform the other methods, but neither strictly dominate the other. Elliptic Slice Sampling is competitive when there is no likelihood, but it is still not better than Local BPS, presumably because the latter can use the full trajectory when computing averages whereas Elliptical is discrete-time. However, once the Poisson Likelihood is added, Elliptical Sampling seems to have worse asymptotics, empirically roughly versus roughly for the best performing methods.
3 Randomized bounces
In this section, we compare the performance of several collision operators on two collections of problems of increasing dimensionality.
The first collection of target distributions we consider consists in funnel distributions from , namely multivariate normals of varying dimension with diagonal covariance matrix and standard deviations for each components given by . Since the algorithms considered are rotationally invariant, this is representative of problems with averse conditioning. The second collection consists in isotropic multivariate normal of increasing dimensionality . The isotropic examples are useful to identify cases where symmetries create a clear imperative for refreshment as discussed in . For each class of target distributions, we look at problems of dimensionality .
We compare 8 algorithms, corresponding to different bounce operators and refreshment strategies (either independent refreshment at times determined by a unit rate homogeneous Poisson process, or no refreshment). The bounce operator labeled Flip corresponds to , Det-Rand corresponds to the forward-event chain algorithm of , and Rand-Rand corresponds to the independent sampling algorithm of . We recorded the Monte Carlo averages of the test function for the trajectory up to event time index and computed the errors . We then averaged the errors over independent executions of the algorithms using different random seeds. All experiments in this section are performed on a global (continuous-time) BPS algorithm. Both simulation of collision times and computation of Monte Carlo averaged are performed using closed form expressions that can be found in .
3.2 Results
We show in Figure 4 the average error as a function of the event index (log-log scale).
Our results show that in the low dimensional regime, at least two randomized bounce operators (Det-Rand and Rand-Rand) combined with no refreshment outperform the standard bounce with refreshment. However, this advantage asymptotically vanishes as the dimensionality of the problem increases. In fact, when refreshment is turned off, for all the operators but Rand-Rand, performance dramatically collapses with dimensionality. The performance drop-off is so pronounced that it may not be detected by conventional estimators of effective sample size. We can measure it here since the true value of the expectations are known.
We conjecture that this sharp drop in performance is due to a concentration of measure phenomenon making the variance of the randomized operators in the direction parallel to the gradient decrease with , hence, informally speaking, making certain randomized operators such as Det-Rand more and more deterministic as increases. The lack of irreducibility of deterministic bounce operators without refreshment is shown formally in . This conjecture is also supported by the fact that reintroducing refreshment makes all methods behave similarly in high-dimensional settings (except for the cruder Flip operator).
This is noteworthy as one of the motivations for previous work on alternative bounce operators is that such operators may alleviate the need for refreshment in certain scenarios. Our results provide a cautionary example that in certain high-dimensional scenarios, it is still preferable to perform refreshment even when randomized bounces are used. Interestingly, this happens not only in the isotropic case but also in the non-isotropic, funnel distribution case, where one might expect refreshment to play a more minor role due to lack of symmetry.
Discussion
We have introduced a general framework which allows us to develop novel continuous-time and discrete-time PD-MCMC algorithms addressing some of the limitations of existing techniques. They allow to exploit dynamics dependent on the target distribution. Moreover, contrary to continuous-time algorithms, it is always possible to simulate exactly the event times.
There are many possible methodological extensions of these algorithms. To simplify presentation, we have presented our results for auxiliary distributions of the form but, as in the HMC context , it is possible to adapt these techniques to the scenario where with for a positive definite matrix capturing the local curvature of around . From preliminary experiments, we observe that using a position-dependent mass matrix can provide significant gains in complex scenarios. Even selecting simply a suitable constant matrix can already improved substantially performance as already demonstrated for the BPS . Moreover, the proposed framework is very flexible but all the algorithms proposed so far in continuous-time are based on a divergence-free vector field and in discrete-time on a deterministic mapping with unit Jacobian determinant. There is conceptually no need to restrict ourselves to such scenarios and it would be interesting to come up with useful algorithms exploiting this degree of freedom.
From a theoretical point of view, PD-MCMC techniques appear to provide state-of-the-art performance on some interesting sampling problems but there are only few theoretical results available and there is much work to be done to better understand their properties.
References
Appendix A Proofs of invariance
Using Assumption A(A1).3 then Assumption A(A1).1, we obtain
under Assumption A(A1).2. This establishes the result. ∎
where we have used Assumptions A(A2).3 and A(A2).1. Hence, (8) is equal to
under Assumption A(A2).2. The result follows. ∎
The proof is similar to the proof of Proposition 2 and is therefore omitted. ∎
First notice that, if using Assumption A(A4).2, we define
then using the properties of the push-forward measure and Assumption A(A4).1, we have for any measurable function
This establishes that the measure is absolutely continuous w.r.t. with a Radon-Nikodym derivative given by
For the first term on the r.h.s. of (69), we have
where we have used Assumption A(A4).3 then Assumption A(A4).1.
The second term on the r.h.s. of (69) satisfies
using Assumption A(A4).1. The sum of the terms (70) and (71) is equal to . Hence the GMH kernel satisfies the skewed detailed balance condition (37). ∎
The proof follows from simple manipulations. We have from Assumption A(A5).3 then Assumption A(A5).1 that the l.h.s. of (48) satisfies
Hence the condition (48) is satisfied if for all
By rewriting this expression for , and using the fact that so , we obtain Assumption A(A5).2. ∎
The proof follows from simple manipulations. We consider first the second term on the r.h.s. of (48). This satisfies
where we have used Assumption A(A6).3 then Assumption A(A6).1. The first term on the l.h.s. of (48) is given by
Hence the condition (48) is satisfied if for all
By rewriting this expression for , we obtain Assumption A(A6).2. which is also implied by (56) if for all . ∎
The proof is very similar to the proof of Proposition 8. We similarly consider the second term on the r.h.s. of (48) which satisfies
where we have used Assumption A(A7).3 then Assumption A(A7).1. The first term on the l.h.s. of (48) is given by
Hence the condition (48) is satisfied if for all
By rewriting this expression for , we obtain Assumption A(A7).2.which is also implied by (62) if for all . ∎
Appendix B Weak convergence of discrete-time BPS
for the infinitesimal generator of BPS where the domain will be discussed later on.
For any , we write for the transition kernel of the discrete-time BPS, DPBS, with step size . This kernel satisfies
To keep notation reasonably compact we will often write
with for the probabilities appearing in (72).
We will write for the Markov chain generated by the transition kernel , with . We also define the càdlàg process , through
For any the function is continuous.
where denotes the operator norm of the Hessian matrix of .
and for some we have for all and
Let be a positive sequence such that as . Under Assumptions 1, 2, 3 and 4 the law of converges weakly to that of BPS as probability measures on as .
Before we embark on the proof of Theorem 12 we prove some useful properties for the semigroup and the generator.
B.2 The Feller property
for all and we have , and
as for and .
Let Assumptions 1 and 2 hold. Then is a Feller semigroup and the martingale problem for admits a unique solution.
First we prove the uniqueness for the martingale problem assuming the Feller property. Then we will prove the Feller property.
Since the semigroup is Feller it follows from [28, Theorem 19.6] that the semigroup is also strongly continuous, whence by the Hille-Yosida Theorem (see for example [19, Theorem 1.2.6]) if follows that is dissipative, that is for any we have
To complete the proof we now show that BPS is Feller. For and , write . To prove (F2) notice that for any and we have
where it is clear that for any we have
as and (F2) follows easily by continuity of .
where are the event times of BPS. We can also write
Both integrals vanish by bounded convergence, since by continuity of and the second integrand vanishes pointwise, while both integrands are bounded by boundedness of the flow and continuity of . On the other hand letting
We have thus shown that defined in (76) is continuous. In addition since is bounded, it follows that
Finally, recall from the proof of [15, Lemma 9.3] that
as , where is the time of -th event, when BPS starts from . Suppose now that , the ball of radius around the origin. Then by construction of BPS there will be a compact set , such that . Therefore, since is locally bounded, we have that
as . It follows that as uniformly on compact sets. Since the functions are continuous, it follows that is continuous on every compact set and thus is continuous.
Then choose and , such that for all we have . Then since it follows that and thus . Since is arbitrary the result follows. ∎
B.3 Preliminary calculations
We first need precise estimates for , and small . We will often use the formula
Therefore if , we will have , for all small enough. Thus we can assume that in which case we also have and therefore for all small enough we have that and thus
Since we have assumed that for small enough we have , then we have for small enough
where we used Assumption 4. Overall we have that
B.4 Proof of Theorem 12
Let . To ease notation we will write rather than . Define (see [19, Remark 8.3(b)])
where , the natural filtration of . Recall that for all .
To apply [19, Corollary 8.15 of Chapter 4] we need to check the following:
Compact Containment: For every and there is a compact set such that
Separating algebra: the closure of the linear span of contains an algebra that separates points;
Martingale problem: the martingale problem in for admits at most one solution; this has already been established in Lemma 13.
Generator convergence: for each and , for as defined in (81),(82)
We will apply the theorem to the sequence of processes with as defined in (81),(82).
Let , be arbitrary. We need to provide a compact set such that (83) holds. Let . Then notice that for all , the first component component will of will take on the values for ranging from up to , while the second component will only change in direction through the reflection and negation steps, while the modulus will remain fixed at . From the definition of we thus know that for any , for each we have that
B.4.2 Separating Algebra.
This holds since is dense in , continuous functions of compact support, which is in turn dense in which is an algebra that separates points.
B.4.3 Convergence of generators.
Recall that for
Conditions (84),(85) are automatically satisfied by stationarity.
Since (88) implies (86) we only need to check (88).
Let and . Since for we have it follows that
by a simple Taylor expansion, since and are bounded.
Since for all the first term clearly vanishes. In addition by (80), (75) and stationarity it follows that
To control the last term of (90), again by stationarity we have
for for . Since
it follows that for large enough so that
which is integrable by Assumption 3. Thus by dominated convergence it follows that the last term of (90) vanishes and thus (88) holds.
Letting and , we have by stationarity
From (80) and the fact that is assumed bounded it easily follows that . Also we proved that while checking Condition (88). Therefore we just have to handle . We start with the triangle inequality
The first term vanishes by continuity of and bounded convergence, while for the second term we have
Notice that for we have
Next we treat the second term, where from (80) and (79) we have
uniformly in . To control , since by subbaditivity we have
Now recall from (91) and (92), for large enough so that , it follows that