A Discrete Bouncy Particle Sampler

Chris Sherlock, Alexandre H. Thiery

Introduction

Markov Chain Monte Carlo (MCMC) algorithms provide Monte Carlo approximations to expectations with respect to a given probability distribution, π\pi, via an ergodic Markov chain whose invariant distribution is π\pi. Non-reversible Markov Chaine Monte Carlo samplers, of which the Hamiltonian Monte Carlo algorithm (Duane et al. 1987) is perhaps one of the most successful and widely-used examples, are known to enjoy desirable mixing properties in several contexts. Indeed, several theoretical results quantify the advantages of non-reversible samplers. For example, Diaconis et al. 2000 obtains rates of convergence for a non-reversible version of the random walk algorithm; subsequently and inspired by Diaconis et al. 2000, Chen et al. 1999 describes the best acceleration achievable through the idea of lifting. On a different note, Hwang et al. 2015, Lelièvre et al. 2013, Rey-Bellet & Spiliopoulos 2015 and Duncan et al. 2016 investigate and quantify the advantages offered by leveraging (a discretization of) a non-reversible diffusion process for computing Monte-Carlo averages: in many settings, it can be proved that the standard reversible Langevin dynamics is the worst in terms of asymptotic variances among a large class of diffusion processes that are ergodic with respect to a given target distribution. More recently, different designs of non-reversible MCMC sampler have been proposed. The Zig-Zag sampler, an instance of the large class of Piecewise-Deterministic-Markov-Processes, first obtained as a scaling limit of a lifted Metropolis–Hastings Markov chain (Bierkens & Roberts 2017), is a continuous-time non-reversible Markov process that can be used for computing ergodic averages, and can be used for efficiently exploring Bayesian posterior distributions in the Big-Data regime (Bierkens et al. 2019). Inspired from the physics literature (Peters & de With 2012), the Bouncy Particle Sampler (Bouchard-Côté et al. 2017) is another continuous-time non-reversible Monte-Carlo sampler that demonstrates state-of-the-art performance when used to explore certain Bayesian posterior distributions. Fearnhead et al. 2018 reviews the Zig-Zag sampler and the Bouncy Particle Sampler and describes some extensions. The Bouncy Particle Sampler or the Zig-Zag Sampler requires more than simple point-wise evaluations of the log-target density and its gradient: one typically needs local upper bounds on derivatives of the log-target density. Unfortunately, those bounds are unavailable or difficult to compute in many applied situations. Consequently, such continuous-time samplers cannot be directly used in these settings. This article presents a discrete-time MCMC sampler, inspired by the Bouncy Particle Sampler, that can be implemented when only point-wise evaluations of the target-density and its gradient are available.

Our algorithm, the Discrete Bouncy Particle Sampler, is described in detail in Section 2.1. It extends the statespace from a position to a position and a direction in the same way that the Zig-Zag and Bouncy Particle samplers do; however, our algorithm operates in discrete time and is based upon the guided random walk of Gustafson 1998. The guided random walk combines two reversible kernels to create a non-reversible kernel which heads in a specific direction until a rejection occurs, at which point it reverses direction. Our key addition is a particular delayed-rejection proposal (Tierney & Mira 1999), used after any initial rejection, potentially avoiding many inefficient direction reversals. The delayed-rejection move is analogous to the bounce in the Bouncy Particle Sampler and we show that the Discrete Bouncy Particle Sampler can be viewed as a time discretization of the Bouncy Particle Sampler. An alternative discretization of the Bouncy Particle Sampler, based on the reflective slice sampler (Neal 2003) is described and extended in the independent work of Vanetti et al. 2017. Importantly, several interesting extensions have recently been proposed (Vanetti et al. 2017; Wu & Robert 2017; Wu & Robert 2020; Monmarché 2019; Michel et al. 2020) to scale and enhance this class of Piecewise-Deterministic-Markov-Processes MCMC samplers.

As with the Bouncy Particle Sampler, our algorithm can be reducible. To solve this issue, we perturb the direction vector at the end of every iteration. The size of this per-iteration perturbation has a substantial impact on the performance of the algorithm, in a similar way to the occasional, complete direction refresh of the Bouncy Particle Sampler (Bierkens et al. 2018). Analogously to the independent investigations for the Bouncy Particle Sampler in Bierkens et al. 2018, for the Discrete Bouncy Particle Sampler exploring a Gaussian target we use diffusion-approximation arguments to describe the limit of the radial process as dimension increases to infinity. We then leverage this to obtain the theoretical efficiency of the Discrete Bouncy Particle Sampler as a function of the partial-refreshment parameter, κ\kappa. This leads to a simple and robust tuning criterion that is described in Section 3.2. In more practical developments, we show that a surrogate may be substituted for the gradient of the target density when it is computationally expensive or impossible to obtain. Our final contribution is a construction that allows the user to choose to only calculate a fixed number of orthogonal components of the gradient vector.

The Discrete Bouncy Particle Sampler

The Discrete Bouncy Particle Sampler operates on the extended state space X×S\mathcal{X}\times\mathcal{S}, where S⊆X\mathcal{S}\subseteq\mathcal{X}, and explores the extended target distribution

where ρ(du)\rho(\mathsf{d}u) is an auxiliary spherically symmetric distribution with support S⊂X\mathcal{S}\subset\mathcal{X}. Section 2.2 describes several standard choices of auxiliary distributions. Henceforth, we will refer to the variable x∈Xx\in\mathcal{X} as the position of a particle and the variable u∈Su\in\mathcal{S} as its direction. The bounce after which the Discrete Bouncy Particle Sampler is named enters through the operator u↦Rv(u)u\mapsto\mathscr{R}_{v}(u) that reflects the vector u∈Su\in\mathcal{S} with respect to the hyperplane orthogonal to the vector v∈X∖{0}v\in\mathcal{X}\setminus\{0\},

For any vector v∈X∖{0}v\in\mathcal{X}\setminus\{0\}, the reflection operator Rv\mathscr{R}_{v} is an involution Rv∘Rv(u)=u\mathscr{R}_{v}\circ\mathscr{R}_{v}(u)=u that preserves norms. This remark underlies the proof of correctness of the Discrete Bouncy particle Sampler whose details are presented in the Supplementary Material. As discussed in Michel et al. 2020, it is possible to rely on more general reflection operators. Most of the methods developed in this text extends to these variants, although we concentrate on Equation (1) for ease of exposition. The Discrete Bouncy Particle Sampler relies on a non-vanishing vector field

In practice, this vector field is either chosen as F(x)=∇log⁡π(x)\mathscr{F}(x)=\nabla\log\pi(x), replaced by an arbitrary modification when the gradient vanishes, or as an approximation of it, as described in Section 2.4. The quantity RF(x)(u)\mathscr{R}_{\mathscr{F}(x)}(u) represents the resulting direction when a particle with incoming direction uu performs an elastic bounce off the hyperplane orthogonal to the vector F(x)\mathscr{F}(x).

The Discrete Bouncy Particle Sampler deterministically cycles through two Markovian transitions that leave the extended target distribution π~\widetilde{\pi} invariant, (1) a Position Update, with a possible Direction Reflection (2) a Direction Refreshment. The resulting scheme is, in general, non-reversible. For the direction refreshment, one can choose any Markov transition kernel Pρ(u,du′)\mathsf{P}_{\rho}(u,\mathsf{d}u^{\prime}) that leaves the auxiliary distribution ρ\rho invariant. For a discretization parameter δ>0\delta>0, and a current state (xk,uk)∈X×S(x_{k},u_{k})\in\mathcal{X}\times\mathcal{S}, the algorithm proceeds as follows.

Position Update: Generate a proposal (x′,u′)=(xk+δ uk,uk)(x^{\prime},u^{\prime})=(x_{k}+\delta\,u_{k},u_{k}). With position update probability

set (x^k,u^k)=(x′,u′)(\hat{x}_{k},\hat{u}_{k})=(x^{\prime},u^{\prime}) and go to Step 3. Otherwise, proceed to Step 2.

Direction Reflection: consider u′′=RF(x′)(u′)u^{\prime\prime}=\mathscr{R}_{\mathscr{F}(x^{\prime})}(u^{\prime}) and x′′=x′+δ u′′x^{\prime\prime}=x^{\prime}+\delta\,u^{\prime\prime}. With direction reflection probability

set (x^k,u^k)=(x′′,u′′)(\hat{x}_{k},\hat{u}_{k})=(x^{\prime\prime},u^{\prime\prime}). Otherwise, negate the direction by setting (x^k,u^k)=(xk,−uk)(\hat{x}_{k},\hat{u}_{k})=(x_{k},-u_{k}).

Direction Refreshment: Set (xk+1,uk+1)=(x^k,U)(x_{k+1},u_{k+1})=(\hat{x}_{k},U) where P⁡(U∈A)=Pρ(u^k,A)\operatorname{P}(U\in A)=\mathsf{P}_{\rho}(\hat{u}_{k},A).

By construction, the Direction Refreshment step preserves the extended target distribution. The fact that the combination of the Position Update and Direction Reflection steps also preserves the extended distribution is discussed in the Supplementary Material. This can be understood as a slight generalization of the standard delayed rejection mechanism (Tierney & Mira 1999) when applied to a deterministic and volume preserving proposal. A similar scheme was proposed independently in Vanetti et al. 2017. Furthermore, and importantly for Section 2.4, the algorithm remains valid if the deterministic vector field is replaced by a randomized version of it. The proof of correctness is identical to the deterministic case and is briefly discussed in the Supplementary Material.

A simple thought experiment, such as considering a target density π\pi with spherically-symmetric contours and Pρ(u,du′)=δu(du′)\mathsf{P}_{\rho}(u,\mathsf{d}u^{\prime})=\delta_{u}(\mathsf{d}u^{\prime}), shows that, as with the Bouncy Particle Sampler, the Discrete Bouncy Particle Sampler can be reducible. The choice and tuning of the direction refreshment operator Pρ\mathsf{P}_{\rho} is consequently important in practice and is discussed at length in the sequel.

2 Direction dynamics

Full Refresh: for ρ=ρS\rho=\rho_{S} or ρ=ρG\rho=\rho_{G} and an update rate κ>0\kappa>0 the Markov process with generator L(V)φ(u)=κ (ρ(φ)−φ(u))\mathcal{L}^{(V)}\varphi(u)=\kappa\,{\left(\rho(\varphi)-\varphi(u)\right)} completely refreshes the direction at rate κ\kappa and has a mixing time of O(1/κ)\mathcal{O}(1/\kappa). For a time discretization parameter 0<δ<10<\delta<1, set

where ξ∼ρ\xi\sim\rho and BκδB_{\kappa}^{\delta} is a Bernoulli random variable with P⁡(Bκδ=1)=exp⁡(−κ δ)\operatorname{P}(B_{\kappa}^{\delta}=1)=\exp(-\kappa\,\delta).

Ornstein-Uhlenbeck refresh: for ρ=ρG\rho=\rho_{G} and an update rate κ>0\kappa>0, the Ornstein-Uhlenbeck process dVt=−(κ/2) Vt dt+(κ/d)1/2 dW\mathsf{d}V_{t}=-(\kappa/2)\,V_{t}\,\mathsf{d}t+(\kappa/d)^{1/2}\,\mathsf{d}W leaves ρG\rho_{G} invariant and has a mixing time of O(1/κ)\mathcal{O}(1/\kappa). Set

for ξ∼ρG\xi\sim\rho_{G} and α=exp⁡(−κ δ/2)\alpha=\exp(-\kappa\,\delta/2).

for ξ∼ρG\xi\sim\rho_{G} and α=exp⁡(−κ δ/2)\alpha=\exp(-\kappa\,\delta/2).

3 Continuous-time limit

for any integer 0≤k≤T/δ0\leq k\leq T/\delta and linearly interpolation in between. The main result of this section, Proposition 1, whose proof is presented in the Supplementary Material, relies on the following regularity assumptions.

The function x↦log⁡π(x)x\mapsto\log\pi(x) is twice differentiable with a bounded second derivative.

The vector field F:X→X∖{0}\mathscr{F}:\mathcal{X}\to\mathcal{X}\setminus\{0\} is continuous.

There exists a continuous time Markov process {Vt}t≥0\{V_{t}\}_{t\geq 0} with generator L(V)\mathcal{L}^{(V)} such that, for any time discretization parameter δ>0\delta>0, the transition kernel Pρδ\mathsf{P}^{\delta}_{\rho} describes the transition of the Markov process VV in the sense that Pρδ(u,du′)=P⁡(Vt+δ∈du′∣Vt=u)\mathsf{P}^{\delta}_{\rho}(u,\mathsf{d}u^{\prime})=\operatorname{P}(V_{t+\delta}\in\mathsf{d}u^{\prime}|V_{t}=u). We assume that the trajectories of the Markov process {Vt}t≥0\{V_{t}\}_{t\geq 0} are almost surely continuous.

Let Assumptions A(1-2-3) hold and consider a fixed time horizon T>0T>0. As δ→0\delta\to 0, the sequence of continuous time processes z‾tδ=(x‾tδ,u‾tδ)\overline{z}^{\delta}_{t}=(\overline{x}^{\delta}_{t},\overline{u}^{\delta}_{t}) converges weakly in the Skorokhod topology to the bivariate Markov process Z‾t=(X‾t,U‾t)\overline{Z}_{t}=(\overline{X}_{t},\overline{U}_{t}) with generator

with rate λ(x,u)≡⟨−∇log⁡π(x),u⟩+\lambda(x,u)\equiv\left\langle-\nabla\log\pi(x),u\right\rangle_{+} and acceptance probability

The limiting Markov process Z‾t=(X‾t,U‾t)\overline{Z}_{t}=(\overline{X}_{t},\overline{U}_{t}) with generator (6) evolves according to the dynamics

in between events that arrive at rate λ(X‾t,U‾t)\lambda(\overline{X}_{t},\overline{U}_{t}). When such an event is triggered, the direction is reflected, i.e. U‾t=RF(Xt−)(U‾t−)\overline{U}_{t}=\mathscr{R}_{\mathscr{F}(X_{t^{-}})}(\overline{U}_{t^{-}}), with probability A(X‾t−,U‾t−)\mathcal{A}(\overline{X}_{t^{-}},\overline{U}_{t^{-}}), and completely reversed, i.e. U‾t=−U‾t−\overline{U}_{t}=-\overline{U}_{t^{-}}, with probability 1−A(X‾t−,U‾t−)1-\mathcal{A}(\overline{X}_{t^{-}},\overline{U}_{t^{-}}). Possible choices of Markovian dynamics with generator L(V)\mathcal{L}^{(V)} in Assumption A2 are detailed in Section 2.2. In the case when F(x)=∇log⁡π(x)\mathscr{F}(x)=\nabla\log\pi(x) and L(V)φ(u)=κ {ρ(φ)−φ(u)}\mathcal{L}^{(V)}\varphi(u)=\kappa\,{\left\{\rho(\varphi)-\varphi(u)\right\}}, for a fixed refreshment rate κ>0\kappa>0, the limiting Markov process is the standard Bouncy Particle Sampler (Bouchard-Côté et al. 2017). The interested reader is referred to Vanetti et al. 2017; Wu & Robert 2017 for other interesting generalizations

In order to understand the influence of the vector field F\mathscr{F}, it is instructive to study the limiting acceptance probability (7). The limiting process Z‾\overline{Z} is rejection free, i.e. never backtracks, if for any (x,u)∈X×S(x,u)\in\mathcal{X}\times\mathcal{S} we have that λ{x,−RF(x)(u)}=λ(x,u)\lambda\{x,-\mathscr{R}_{\mathscr{F}(x)}(u)\}=\lambda(x,u). It is readily seen that this condition is equivalent to choosing F(x)\mathscr{F}(x) proportional to ∇log⁡π(x)\nabla\log\pi(x) for any x∈Xx\in\mathcal{X} where this quantity does not vanish. In other words, any other choice of vector field F\mathscr{F} leads to a limiting process that is not rejection-free. Section 2.4 describes ways to efficiently approximate this optimal choice when evaluating ∇log⁡π(x)\nabla\log\pi(x) is not computationally efficient.

4 Approximate reflections

As described in the previous section, vector fields that lead to a rejection-free algorithm in the limit δ→0\delta\to 0 are such that F(x)\mathscr{F}(x) is proportional to ∇log⁡π(x)\nabla\log\pi(x) for all x∈Xx\in\mathcal{X} where this quantity is non-zero. When computing the gradient of the log-density is not computationally feasible, one can instead use a vector field F\mathscr{F} that only approximates ∇log⁡π\nabla\log\pi, necessarily paying the price of a non-zero probability for the limiting algorithm to backtrack. Another strategy, similar to the one presented in Fielding et al. 2011, consists in choosing F(x)\mathscr{F}(x) as the gradient of an approximate surrogate target distribution.

One can also completely reflect the component of u∈Su\in\mathcal{S} that is orthogonal to the plane V(ζ‾)V(\underline{\zeta}). In other words, the updated direction u′u^{\prime} is defined as

While both reflection operators are valid, we have empirically found that the operator (9) leads to better mixing properties.

5 Preconditioning

Algorithm tuning through diffusion approximation

Note that, in the definition of the process RtdR_{t}^{d}, time has been accelerated by a factor of dd. Proposition 2 stated below shows that, in order to observe a non-degenerate scaling limit as d→∞d\to\infty, this acceleration factor is the correct one. As will be demonstrated, the mixing properties of RtdR^{d}_{t} are closely related to the mixing properties of the scalar jump-diffusion {θtκ}t≥0\{\theta^{\kappa}_{t}\}_{t\geq 0} with generator

The operator L(K)\mathcal{L}^{(K)} is the generator of an Ornstein-Uhlenbeck process that is reversible with the standard Gaussian density. Similarly, L(J)\mathcal{L}^{(J)} is the generator of the Markov process with unit drift and reflections θ↦−θ\theta\mapsto-\theta that occur at rate θ+=max⁡(0,θ)\theta_{+}=\max(0,\theta). It can readily be checked that this process also leaves the standard Gaussian distribution invariant. Combining these two facts show that the process θtκ\theta^{\kappa}_{t} also leaves the standard Gaussian distribution invariant. We denote by Vσ(κ)V_{\sigma}(\kappa) the asymptotic variance of ergodic averages along θtκ\theta^{\kappa}_{t} defined as

There is no closed form expression for the quantity Vσ(κ)V_{\sigma}(\kappa) but it can easily be approximated numerically, as displayed in Figure 1. Note that Vσ(κ)→0V_{\sigma}(\kappa)\to 0 as κ→0\kappa\to 0 and κ→∞\kappa\to\infty. Proposition 2, whose proof can be found in the Supplementary Material, shows that the asymptotic variance Vσ(κ)V_{\sigma}(\kappa) dictates the mixing rate of the log-target process. The higher the asymptotic variance Vσ(κ)V_{\sigma}(\kappa), the faster the mixing of the radial process.

The velocity function Vσ(κ)V_{\sigma}(\kappa) is defined in Equation (12).

The process (13) is an Ornstein-Uhlenbeck that is reversible with respect to the centred Gaussian distribution with variance σ2/2\sigma^{2}/2. Since the Ornstein-Uhlenbeck (13) has a mixing time of order O(1)\mathcal{O}(1), this indicates that in the high-dimensional regime d→∞d\to\infty and δ→0\delta\to 0, one can expect (Roberts & Rosenthal 2016) the log-target process to mix on a time scale of order O(d/δ)\mathcal{O}(d/\delta). When implementing the Discrete Bouncy Particle Sampler in practice, the parameter δ\delta should be chosen small enough to guarantee that the acceptance rate remains high-enough, but not smaller. Similar guidelines for the Hamiltonian Monte-Carlo method are described in Betancourt et al. 2014. The optimal tuning of the parameter δ\delta, and study of its dependence with respect to the dimensionality of the target distribution, is beyond the scope of this article. Instead, we concentrate on the tuning of the refreshment parameter κ\kappa. When optimising the mixing of the log-target process, we observe empirically that the tuning of the parameter κ\kappa is insensitive to the value of δ\delta. This is in part because whatever the value of δ\delta, as long as it is sufficiently small, the log-target process is an approximation of the limiting diffusion (13) (see also Section 3.2); empirical evidence that this insensitivity continues to hold for large δ\delta is provided in Section 4.1.

2 Tuning of the refreshment parameter κ\kappa

The limiting diffusion (13) obtained in Section 3.1 indicates that, for an isotropic Gaussian target distribution with marginal variance σ2\sigma^{2} and in the regime d→∞d\to\infty, optimising the efficiency of the Discrete Bouncy Particle Sampler is achieved by choosing a refreshment parameter κ>0\kappa>0 that maximizes the velocity Vσ(κ)V_{\sigma}(\kappa). In other words, for a given marginal variance σ2>0\sigma^{2}>0, the optimal refreshment rate κ⋆(σ)\kappa_{\star}(\sigma) is given by

Furthermore, a change of time argument immediately shows that κ⋆(σ)=κ⋆/σ\kappa_{\star}(\sigma)=\kappa_{\star}/\sigma with κ⋆≡κ⋆(σ=1)\kappa_{\star}\equiv\kappa_{\star}(\sigma=1). In practice, the variance parameter σ2>0\sigma^{2}>0 is not known so that the optimal refreshment parameter is not directly accessible. To make progress, denote by {τj}j≥1\{\tau_{j}\}_{j\geq 1} the (strictly increasing) sequence of time indices at which Direction Reflection events are attempted (and always accepted in the Gaussian setting). We denote by uτj−∈Su_{\tau^{-}_{j}}\in\mathcal{S} the direction right before a reflection event, and by uτj+∈Su_{\tau^{+}_{j}}\in\mathcal{S} the direction right after the reflection. For tuning purposes, we propose to monitor the dot product β∈\beta\in between the direction vectors right after and before the Direction Reflection attempts,

For a Discrete Bouncy Particle Sampler evolving at stationarity, as δ→0\delta\to 0 and for any fixed dimension d≥2d\geq 2, consider the distribution μd(dβ;κ,σ)\mu^{d}(\mathsf{d}\beta;\kappa,\sigma) of these dot products. One can readily check that if {xkd,δ,ukd,δ}k≥0\{x^{d,\delta}_{k},u^{d,\delta}_{k}\}_{k\geq 0} is Discrete Bouncy Particle Sampler chain with parameters κ,δ>0\kappa,\delta>0 exploring the centred dd-dimensional Gaussian with marginal standard deviation σ\sigma then, for any scaling factor s>0s>0, the Markov chain defined as {s×xkd,δ,ukd,δ}k≥0\{s\times x^{d,\delta}_{k},u^{d,\delta}_{k}\}_{k\geq 0} is also Discrete Bouncy Particle Sampler chain, with refreshment parameter κ/s\kappa/s and time discretization parameter s δ>0s\,\delta>0, exploring the centred dd-dimensional Gaussian with marginal standard deviation s σs\,\sigma. It follows that μd(dβ,κ,σ)=μd(dβ;κ/s,s σ)\mu^{d}(\mathsf{d}\beta,\kappa,\sigma)=\mu^{d}(\mathsf{d}\beta;\kappa/s,s\,\sigma) for any scaling factor s>0s>0. Consequently, since κ⋆(σ)=κ⋆/σ\kappa_{\star}(\sigma)=\kappa_{\star}/\sigma, the distribution μd(dβ;κ⋆(σ),σ)≡μ⋆d(dβ)\mu^{d}(\mathsf{d}\beta;\kappa_{\star}(\sigma),\sigma)\equiv\mu_{\star}^{d}(\mathsf{d}\beta) does not depend on the standard deviation σ\sigma. It is straightforward to numerically estimate the average dot product at optimality,

Figure 1 illustrates this optimality result. Very low values β≪β⋆\beta\ll\beta_{\star} indicate that the directions are updated too frequently, leading to an inefficient random-walk behaviour. High values β≈1\beta\approx 1 indicate that the directions are not updated frequently enough, leading to an inefficient exploration of the state space. The case β=1\beta=1 corresponds to the case when the direction are not updated at all, which is known in the Gaussian case to lead to a reducible Markov Chain with an incorrect invariant distribution. For tuning the refreshment parameter κ>0\kappa>0 of a general Discrete Bouncy Particle Sampler, we consequently propose to estimate empirically the expectation at stationarity of the quantity β\beta in (14). Let {τj}j≥1\{\tau_{j}\}_{j\geq 1} now denote the realization of the sequence of indices at which direction reflection attempts occur. A direction reflection attempt is accepted with probability (3), otherwise the direction is negated. We define

and choose κ>0\kappa>0 so that this quantity approximately equals its optimal value β⋆≈0.2\beta_{\star}\approx 0.2. Just as with the estimation of acceptance rates when tuning the scaling of various algorithms (Roberts & Rosenthal 2001), and unlike the Effective Sample Size itself that is notoriously difficult to reliably estimate, the mean dot product can be estimated accurately from short MCMC runs. Importantly, and as described in Section 4, we have found this tuning procedure to be robust with respect to departure from Gaussianity and to approximately hold in non-isotropic and relatively low-dimensional settings with δ≫0\delta\gg 0.

3 Non-isotropic target and non-zero δ\delta

The diffusion limit in Section 3.1 was obtained as δ↓0\delta\downarrow 0 and for an isotropic Gaussian target where the direction reflection proposals are always accepted. In this Section, we consider the non-isotropic case of a dd-dimensional target distribution defined as

where Φ(t)=(2π)−1/2 ∫0te−t2/2 dt\Phi(t)=(2\pi)^{-1/2}\,\int_{0}^{t}e^{-t^{2}/2}\,dt is the standard Gaussian cumulative function.

Simulation studies

2 Robustness of advice to departures from Gaussianity and isotropy

We next investigate the robustness of our tuning advice to departures of the target from Gaussianity and isotropy.

Consider three scenarios: an isotropic multivariate logistic distribution πlogis\pi^{\textrm{logis}} with density ∏i=1d exp⁡(xi)/[1+exp⁡(xi)]2\prod_{i=1}^{d}\,\exp(x_{i})/[1+\exp(x_{i})]^{2}, an isotropic Gaussian distribution πiso\pi^{\textrm{iso}} with density proportional to ∏i=1d exp⁡(−xi2/2)\prod_{i=1}^{d}\,\exp(-x_{i}^{2}/2) and a non-isotropic multivariate Gaussian distribution πaniso\pi^{\textrm{aniso}} with density proportional to ∏i=1d exp⁡{−xi2/(2 σi2)}\prod_{i=1}^{d}\,\exp\{-x_{i}^{2}/(2\,\sigma_{i}^{2})\}. In this section, we choose d=100d=100 for both isotropic targets, and d∈{20,50,200}d\in\{20,50,200\} for the anisotropic target. In order to test the robustness of our tuning guidelines to non-isotropic distributions, we chose the scales σ1<…<σd\sigma_{1}<\ldots<\sigma_{d} linearly separated between σ1=1\sigma_{1}=1 and σd=10\sigma_{d}=10. The scaled effective sample size curves as a function of the mean dot-product are displayed in Figure 3. There is extremely good agreement with the theory developed in Section 4 for the isotropic distribution πiso\pi^{\textrm{iso}} and the approximately isotropic distribution πlogistic\pi^{\textrm{logistic}}. Not surprisingly, mild departure from the theory is observed for strongly non-isotropic distributions such as πaniso\pi^{\textrm{aniso}}. However, for dimension d=200d=200 the departure, especially in terms of the optimal dot product, is barely noticeable. When d=20d=20 and d=50d=50, however, our proposed guideline, i.e. tune the refreshment rate κ\kappa such that the mean dot-product β≈0.2\beta\approx 0.2, leads only to a loss of efficiency of approximately 10%10\% and 5%5\% respectively.

3 Convergence and tail behaviour

One of the most commonly used algorithms for inference in high-dimensional scenarios is Hamiltonian Monte Carlo Duane et al. 1987. However, it is well known (Livingstone et al. 2019) that due to the dependence of the Leapfrog step on ∥∇log⁡π∥\|\nabla\log\pi\|, Hamiltonian Monte Carlo is not geometrically ergodic on targets with tails lighter than those of a Gaussian. By contrast, the Discrete Bouncy Particle Sampler depends on ∇log⁡π\nabla\log\pi only through the equivalent normalized vector. The Supplementary Material details a simulation study on a non-isotropic, light-tailed target where a tuned Hamiltonian Monte Carlo algorithm is nearly 50%50\% more efficient than a tuned discrete bouncy particle sampler when started from stationarity. However, with the same tunings, but when started from a random point in the tail of the distribution, Hamiltonian Monte Carlo does not even move, whereas the discrete bouncy particle sampler quickly converges to the centre of the posterior mass.

4 The Markov modulated Poisson process

A simulation study on the eight-dimensional posterior of a non-trivial statistical model, the Markov modulated Poisson process, is detailed in the Supplementary Material. We find that mixing efficiency of log⁡π\log\pi is optimized at a dot product statistic of β≈0.4\beta\approx 0.4, tuning to β≈0.2\beta\approx 0.2 would lead to only a 10%10\% reduction in efficiency. When either preconditioning or using only ncpt=3n_{\text{cpt}}=3 random components of the gradient vector, the optimal efficiency is achieved for a dot product statistics of β≈0.2\beta\approx 0.2.

Discussion

The key advantage of the Discrete Bouncy Particle Sampler over its continuous-time counterpart is that posterior and gradient evaluations can be treated as a “black box” with no requirement to bound the gradient so as to apply Poisson thinning. Unlike the continuous-time algorithm, there is a chance that an attempted bounce will be rejected and the particle will approximately backtrack, however for sensible tunings, the back-tracking probability converges towards zero as the dimension of the problem increases.

The average computational cost per iteration is insensitive to the choice of κ\kappa since the direction is updated every iteration, and κ\kappa has little effect on the number of steps between potential bounces. Thus it is sufficient for the purposes of this article to describe and empirically record efficiency in terms of effective sample size rather than effective samples per unit of time. The only exception to this is when we compare against Hamiltonian Monte Carlo in Appendix C.1.

The dot-product tuning diagnostic maps κ\kappa to an absolute scale via the properties of the posterior, just as the acceptance rate diagnostic does for the scaling in the random-walk Metropolis algorithm. When κ=0\kappa=0 the velocity direction just before the next bounce is identical to that just after the previous bounce, and the dot product is unity. The mixing time of the refreshment process is 1/κ1/\kappa; when this is small compared with the time between bounces or, equivalently, the length scale of the target, the two velocity directions bear little relation to each other, and the dot product is small.

Whilst this article offers theory-based practical advice on the tuning of the refreshment parameter, κ\kappa, it does not tackle the choice of the discretization parameter, δ\delta. In contrast to the insensitivity of computational cost to the choice of κ\kappa, increasing δ\delta increases the frequency of potential bounces and hence of expensive gradient calculations, and this would need to be accounted for in any analysis.

Acknowledgements

Work by CS was supported by EPSRC grant EP/P033075/1. AHT acknowledges support from the Singapore Ministry of Education Tier 2 Grant (MOE2016-T2-2-135) and a Young Investigator Award Grant (NUSYIA FY16 P16; R-155-000-180-133).

References

Appendix A Correctness and proofs of propositions

The mapping u↦R(u,x)u\mapsto\mathsf{R}(u,x) is volume preserving.

The mapping u↦R(u,x)u\mapsto\mathsf{R}(u,x) preserves norms, ∥R(u,x)∥=∥u∥\|\mathsf{R}(u,x)\|=\|u\|.

Generate a proposal (x′,u′)=(xk+δ uk,−uk)(x^{\prime},u^{\prime})=(x_{k}+\delta\,u_{k},-u_{k}). With probability

set (x^k,u^k)=(x′,−u′)(\hat{x}_{k},\hat{u}_{k})=(x^{\prime},-u^{\prime}) and go to Step 3. Otherwise, proceed to Step 2.

consider u′′=−R(u,x′)u^{\prime\prime}=-\mathsf{R}(u,x^{\prime}) and x′′=x′−δ u′′x^{\prime\prime}=x^{\prime}-\delta\,u^{\prime\prime}. With probability

set (x^k,u^k)=(x′′,u′′)(\hat{x}_{k},\hat{u}_{k})=(x^{\prime\prime},u^{\prime\prime}). Otherwise, set (x^k,u^k)=(xk,uk)(\hat{x}_{k},\hat{u}_{k})=(x_{k},u_{k}).

Reverse the direction: (xk+1,uk+1)=(x^k,−u^k)(x_{k+1},u_{k+1})=(\hat{x}_{k},-\hat{u}_{k})

Consider any spherically symmetric probability density ρ(u)\rho(u). Under Assumptions B1-2-3, the Markov kernel described by Step 1-2-3 leaves the density π~(x,u)=π(x) ρ(u)\widetilde{\pi}(x,u)=\pi(x)\,\rho(u) invariant.

with α1(z)=1∧μ{T1(z)}/μ(z)\alpha_{1}(z)=1\wedge\mu\{T_{1}(z)\}/\mu(z) and α3(z)=1−α1(z)−{1−α1(z)} α2(z)\alpha_{3}(z)=1-\alpha_{1}(z)-\{1-\alpha_{1}(z)\}\,\alpha_{2}(z) and

Algebra shows that this is equivalent to proving that

Since T1T_{1} and T2T_{2} are involutions that preserve volume, a change of variable z↦T1(z)z\mapsto T_{1}(z) shows that the first integral in Equation (17) also equals its negation, and hence vanishes. And similarly, the change of variable z↦T2(z)z\mapsto T_{2}(z) shows that the second integral in Equation (17) also vanishes. This concludes the proof of the lemma. ∎

In Section 2.1, the combination of the Position Update and Direction Update is equivalent to Step 1-2-3 with the operator R(u,x)=RF(x)(u)\mathsf{R}(u,x)=\mathscr{R}_{\mathscr{F}(x)}(u). Since algebra shows that the Conditions B1-2-3 are satisfied, Lemma 1 thus shows the correctness of the Discrete Bouncy Particle Sampler as described in Section 2.1.

A.2 Proof of Proposition 1

Recall that the quantity λ(x,u)\lambda(x,u) is defined as λ(x,u)≡⟨−∇log⁡π(x),u⟩+\lambda(x,u)\equiv\left\langle-\nabla\log\pi(x),u\right\rangle_{+}. Under Assumption (A1) and a discretization parameter δ>0\delta>0, the acceptance probability αδ(x,u)\alpha^{\delta}(x,u)that the proposal (x,u)↦(x+δ u,u)(x,u)\mapsto(x+\delta\,u,u) is accepted reads

where O(δ2)\mathcal{O}(\delta^{2}) is a quantity whose absolute value is less than a constant times δ2\delta^{2}. For t>0t>0, the probability that the Discrete Bouncy Particle Sampler algorithm accepts ⌊t/δ⌋+1\lfloor t/\delta\rfloor+1 consecutive proposals (x,u)↦(x+δ u,u)(x,u)\mapsto(x+\delta\,u,u) without reflection attenpts equals ∏k=0⌊t/δ⌋αδ(xkδ,ukδ)\prod_{k=0}^{\lfloor t/\delta\rfloor}\alpha^{\delta}(x^{\delta}_{k},u^{\delta}_{k}). Under Assumption (A3), one can condition upon a fixed trajectory of the Markov process VV, i.e. Vt=vtV_{t}=v_{t} for all 0≤t≤T0\leq t\leq T and ukδ=u‾kδδ=vkδu^{\delta}_{k}=\overline{u}^{\delta}_{k\delta}=v_{k\delta}, not depending on the parameter δ\delta, so that x‾kδδ=x‾0δ+δ∑j=0k−1vjδ\overline{x}^{\delta}_{k\delta}=\overline{x}^{\delta}_{0}+\delta\sum_{j=0}^{k-1}v_{j\delta}. Equation (18), the continuity of the rate function λ\lambda as well as the continuity of the trajectories of the Markov process VV, show that

where x‾s=x0+∫0svt dt\overline{x}_{s}=x_{0}+\int_{0}^{s}v_{t}\,dt. This means that, in the limit δ→0\delta\to 0, bounce attempts arrive at rate λ(x,u)\lambda(x,u) and, in between the bounces, the limiting process simply evolves according to the dynamics (8).

Finally, once a proposal (x,u)↦(x+δ u,u)(x,u)\mapsto(x+\delta\,u,u) is rejected, the second proposal (x,u)↦(x′′,u′′)(x,u)\mapsto(x^{\prime\prime},u^{\prime\prime}), i.e. the bounce, is accepted with probability αDR(x,u)\alpha_{\textrm{DR}}(x,u) described in Equation (3). By continuity of the density x↦π(x)x\mapsto\pi(x), we have that π(x′′)/π(x)→1\pi(x^{\prime\prime})/\pi(x)\to 1 as δ→0\delta\to 0. Furthermore, the Taylor expansion (18) gives that 1−αδ(x,u)=δ λ(x,u)+O(δ2)1-\alpha^{\delta}(x,u)=\delta\,\lambda(x,u)+\mathcal{O}(\delta^{2}). Under Assumption, the vector field F\mathscr{F} is continuous, which implies that

where we have dropped the dependence on δ\delta from the notation x′′=x+δ u+δ RF(x+δu)(u)x^{\prime\prime}=x+\delta\,u+\delta\,\mathscr{R}_{\mathscr{F}(x+\delta u)}(u) and u′′=RF(x+δu)(u)u^{\prime\prime}=\mathscr{R}_{\mathscr{F}(x+\delta u)}(u). It follows from (19) that, in the limit as δ→0\delta\to 0, a proposed bounce (x,u)↦(x′′,u′′)(x,u)\mapsto(x^{\prime\prime},u^{\prime\prime}) is accepted with probability A(x,u)\mathcal{A}(x,u) described in Equation (7), with (x′′,u′′)→(x,RF(x)(u))(x^{\prime\prime},u^{\prime\prime})\to(x,\mathscr{R}_{\mathscr{F}(x)}(u)) as δ→0\delta\to 0. This completes the proof of Proposition 1.

A.3 Proof of Proposition 2

where L(κ,B)\mathcal{L}^{(\kappa,B)} is the generator of the Brownian motion on the united sphere (5) and F\mathcal{F} is the flip operator defined as Fφ(x,u)=φ(x,−u)−φ(x,u)\mathcal{F}\varphi(x,u)=\varphi(x,-u)-\varphi(x,u). In order to obtain the limit of the process defined in Equation (10), set

Note that time has been accelerated by a factor dd. The process θtd\theta^{d}_{t} describes the dot product between the position XdX^{d} and the direction UdU^{d}, scaled by a factor d1/2d^{1/2} in order to observe a non-degenerate limiting process. Itô’s lemma, neglecting terms of order 1/d1/d, directly shows (after straightforward algebra) that the Markov process (Rtd,θtd)(R^{d}_{t},\theta^{d}_{t}) has a generator Lε\mathcal{L}^{\varepsilon} that reads

with the standard multiscale expansion notation ε=1/d\varepsilon=1/\sqrt{d}, generators L(J)\mathcal{L}^{(J)} and L(K)\mathcal{L}^{(K)} defined in Equation (11) and

where θtκ\theta^{\kappa}_{t} is the Markov process with generator L(Fast)≡1σ L(J)+κ2 L(K)\mathcal{L}^{(\text{Fast})}\equiv\frac{1}{\sigma}\,\mathcal{L}^{(J)}+\frac{\kappa}{2}\,\mathcal{L}^{(K)}. Indeed, Equation (22) is the Kolmogorov backward equation associated to the Ornstein-Uhlenbeck

which concludes the proof of Proposition 2.

Appendix B High-dimensional behaviour for finite δ\delta and non-isotropic target

where ∣T1(d)∣≤δ3/d×L∑i=1dγi3∣Zi∣3→δ3L×E⁡[γ3]E⁡[∣Zi∣3]<∞|T_{1}^{(d)}|\leq\delta^{3}/d\times L\sum_{i=1}^{d}\gamma_{i}^{3}|Z_{i}|^{3}\rightarrow\delta^{3}L\times\operatorname{E}[\gamma^{3}]\operatorname{E}[|Z_{i}|^{3}]<\infty. Hence as d→∞d\rightarrow\infty, the Central Limit Theorem gives

Also, by (24) and the central limit theorem,

where ∣T2(d)∣≤δ3L∑i=1dγi3Vi2∣Zi∣=O(1)|T_{2}^{(d)}|\leq\delta^{3}L\sum_{i=1}^{d}\gamma_{i}^{3}V_{i}^{2}|Z_{i}|=\mathcal{O}(1) by the Lipschitz condition on f′′f^{\prime\prime}, the boundedness of E⁡[γ3]\operatorname{E}[\gamma^{3}] and because ∥U−V∥2=O(1/d)\|U-V\|^{2}=\mathcal{O}(1/d) and U=Z/dU=Z/\sqrt{d}. Further, the quantity −B(X,U)-B(X,U) also reads

Since ∥U∥=1\|U\|=1 and ∥U−V∥=O(1/d)\|U-V\|=\mathcal{O}(1/\sqrt{d}), the term to control in (26) is

in probability. If there is a delayed-rejection event then the standard move must have been rejected and, for example, BB must be negative. Let DR\mathsf{DR} be the event that the standard move has been rejected and so a delayed-rejection step is being attempted. Let fB(b)f_{B}(b) be the a priori density for BB at stationarity, and let fB∣DR(b)f_{B|\mathsf{DR}}(b) be the density conditional on there being a delayed-rejection event. Then

which is well-behaved and has no mass where αdr(X(d),U(d))\alpha_{\text{dr}}(X^{(d)},U^{(d)}) is undefined. In the limit as d→∞d\rightarrow\infty, fB(b)f_{B}(b) is the density of the Gaussian distribution in (23), and (27) gives the limiting conditional density. It follows from the Bounded Convergence Theorem that

B.2 Simulation study varying dd for fixed δ\delta

Appendix C Further simulation studies

We reran Hamiltonian Monte Carlo for 10610^{6} iterations 4040 additional times with X0=γ(σ1z1,…,σdzd)×r⋆X_{0}=\gamma(\sigma_{1}z_{1},\dots,\sigma_{d}z_{d})\times r_{\star} for each γ∈{1.5,2.0.2.5,3.0}\gamma\in\{1.5,2.0.2.5,3.0\}, with a new, independent zz vector on each of the 160160 occasions. On each occasion we counted the fraction of times where, by iteration 10610^{6} the algorithm had ever had a value with ∥x∥M≤r⋆\|x\|_{\text{M}}\leq r_{\star}; i.e., the algorithm had reached the main posterior mass. The number of runs which converged by this measure were: 40/40 (γ=1.5)40/40~(\gamma=1.5), 36/40 (γ=2.0)36/40~(\gamma=2.0), 4/40 (γ=2.5)4/40~(\gamma=2.5) and 0/40 (γ=3.0)0/40~(\gamma=3.0); indeed, for every run with γ=3.0\gamma=3.0 the empirical acceptance rate was exactly zero. This fits with the known lack of geometric ergodicity of Hamiltonian Monte Carlo on light-tailed targets. By contrast, for the discrete bouncy particle sampler with γ=3.0\gamma=3.0, all 4040 runs converged within 10001000 iterations, and, indeed, 2626 of the runs converged within 300300 iterations.

In summary, on this occasion, when both algorithms were started from the main posterior mass, the discrete bouncy particle sampler was competetive with Hamiltonian Monte Carlo, though less efficient. However, because our algorithm depends on ∇log⁡π\nabla\log\pi only through the unit vector, it is robust to large ∥∇log⁡π∥\|\nabla\log\pi\|, unlike Hamiltonian Monte Carlo.

C.2 The Markov modulated Poisson process

Finally, we consider a kk-state, continuous-time Markov chain ZtZ_{t} started from state 11, and a Poisson process NtN_{t} whose rate λt\lambda_{t} is a fixed function of ZtZ_{t}. The doubly-stochastic process is parameterized by the rate matrix for the Markov chain, QQ, and a vector of rates for the Poisson process, λ\lambda, where λi, (i=1,…,k)\lambda_{i},~(i=1,\dots,k) is the rate of NtN_{t} when Zt=iZ_{t}=i.

Code was written in C++ where auto-differentiation was not available for general matrix exponentials, and so numerical differentiation via centred differences was used (the cheaper, first-order Euler approximation led to precision problems). We applied the Discrete Bouncy Particle Sampler for 2×1052\times 10^{5} iterations for a number of κ\kappa values and repeated this but evaluating only ncpt=3n_{\text{cpt}}=3 randomly-orientated components of the eight-dimensional gradient vector on each delayed-rejection step. Figure 5 plots scaled effective sample size against κ\kappa and suggests that the optimal mean dot product is around 0.50.5 when all gradient components are used and around 0.20.2 when three random components are used. The optimal effective sample size in the latter case is around 3/83/8 of the former; since the number of gradient calculations during a bounce is also reduced by 3/83/8 this suggests no loss in overall efficiency. When all components are used, tuning to a dot product of 0.20.2 brings only a 10%10\% reduction in effective sample size. The posterior variance matrix has a condition number of 49.249.2, so, following typical practice, for each κ\kappa the Discrete Bouncy Particle Sampler was rerun using a crude preconditioning matrix (Section 2.5) of M=\mboxdiag(1/2,2,1,1,2,2,2,2)M=\mbox{diag}(1/2,2,1,1,2,2,2,2). Although the effective variance matrix still has a condition number of ≈4.3\approx 4.3 the right panel of Figure 5 shows that the optimal choice of κ\kappa is now ≈0.2\approx 0.2.