Zig-Zag Process (ZZP) Overview
- Zig-Zag Process (ZZP) is a nonreversible piecewise deterministic Markov process that alternates linear flows with velocity sign flips to target exact invariant distributions.
- It employs state-dependent switching rates and Poisson thinning to simulate event times without discretisation error for scalable Bayesian computations.
- Extensions like the Speed Up Zig-Zag process and hybrid state space formulations enhance mixing properties and adapt to heavy-tailed targets and big-data applications.
The Zig-Zag Process (ZZP) is a nonreversible piecewise deterministic Markov process (PDMP) used as a continuous-time Monte Carlo sampler on an extended position–velocity state space. In its standard form, the position moves linearly between random event times, while one velocity coordinate flips sign at each event; the switching rates are chosen so that the position marginal has a prescribed target density . This construction yields an exact PDMP sampler with invariant law in position and a uniform law on velocities, and it has been studied from the viewpoints of ergodicity, limit theorems, large deviations, scalable Bayesian computation, heavy-tailed targets, numerical implementation, and hybrid discrete–continuous state spaces (Bierkens et al., 2016, Bierkens et al., 2016, Vasdekis et al., 2021, Bierkens et al., 2019).
1. Canonical construction and dynamics
In the multidimensional formulation, the state space is
with state , where is position and is a velocity/sign vector. Between switching events, the dynamics are deterministic: while remains constant; at an event of type , only the -th component of 0 flips (Bierkens et al., 2016). The process is therefore a continuous-time Markov process with deterministic linear flow and stochastic sign flips in individual velocity coordinates.
The target distribution is written
1
and the structural condition guaranteeing stationarity is
2
Equivalently, the admissible switching rates are
3
with 4. The canonical Zig-Zag process corresponds to 5 (Bierkens et al., 2016).
The generator takes the PDMP form
6
combining deterministic transport with coordinate-wise jump terms (Bierkens et al., 2016).
In one dimension, the state space reduces to
7
with state 8. The target density is
9
and the switching intensity is
0
Between switching times,
1
and at a switch the direction flips, 2. In this form, ZZP is a piecewise linear motion with random velocity flips; the term 3 produces systematic bounces against the gradient, while 4 adds refreshments (Vasdekis et al., 2021).
2. Invariant distribution and event-time simulation
Under the rate identity above, the extended invariant law is
5
with 6 uniform on 7; in one dimension,
8
Thus the position marginal is exactly the target 9, which is the basic reason ZZP is useful for Monte Carlo simulation (Bierkens et al., 2016, Vasdekis et al., 2021).
A major practical feature of the classical construction is that ZZP can be simulated without discretisation error when one can sample its event times exactly. If
0
and one has tractable dominating rates 1, then Poisson thinning can be used: candidate event times are generated from the easier inhomogeneous Poisson processes with rates 2, and accepted with probability 3. Two classes of bounds highlighted in the literature are globally bounded gradients, for which 4, and dominated-Hessian settings, for which affine bounds 5 are available (Bierkens et al., 2016).
For more general models, NuZZ replaces analytic inversion or thinning envelopes by numerical solution of the Sellke event equation
6
where 7. The implementation uses adaptive Gauss–Kronrod quadrature and Brent’s method, and then chooses the flipped coordinate with probability
8
In this formulation, one event-time integral replaces 9 separate coordinate-wise integrals (Pagani et al., 2020).
NuZZ is not exact at fixed numerical tolerance, but the perturbation is explicit. Under the assumptions stated in the numerical analysis, if
0
then the Kantorovich–Rubinstein distance between the exact invariant law 1 and the numerical occupation measure 2 satisfies
3
where 4 is a positive refreshment lower bound and 5 bounds Hessian entries of 6 (Pagani et al., 2020).
3. Ergodicity, heavy tails, and speed modulation
A central theme in ZZP theory is the dependence of convergence on tail behavior. In one dimension, heavy-tailed targets invalidate geometric or exponential ergodicity for the original constant-speed process. One sharp obstruction is geometric: if ZZP starts at the origin, then by time 7 it cannot reach distance larger than 8, so for heavy-tailed targets the total variation distance cannot decay exponentially. The corresponding theorem states that if the original Zig-Zag targets a heavy-tailed distribution, then it is not exponentially ergodic (Vasdekis et al., 2021).
The one-dimensional heavy-tail theory is particularly explicit. Suppose there exist 9 and a compact 0 such that, outside 1,
2
and that the refreshment rate is asymptotically negligible relative to the deterministic bounce term,
3
Then for every 4, there exist 5 and 6 such that with
7
8
Hence the process is polynomially ergodic of order 9 (Vasdekis et al., 2021). The proof uses a subgeometric Foster–Lyapunov drift condition
0
small-set theory, and a continuous-time subgeometric ergodicity theorem (Vasdekis et al., 2021).
For Student targets,
1
the result is nearly sharp. For every 2, ZZP is polynomially ergodic of order 3, while for every 4 it is not polynomially ergodic of order 5. More precisely, for sufficiently large 6,
7
Whether order exactly 8 holds remains open (Vasdekis et al., 2021).
To overcome the bounded-speed obstruction on heavy tails, the Speed Up Zig-Zag (SUZZ) process replaces unit speed by a state-dependent positive function 9, so that between events
0
To preserve the same target 1, the rates become
2
The effective potential is therefore 3 (Vasdekis et al., 2021).
This modification changes the tail geometry substantially. Under the assumptions stated in the stability theory, SUZZ is non-explosive, has invariant law
4
and can be exponentially ergodic on heavy-tailed targets (Vasdekis et al., 2021). In one dimension, if the deterministic flow has finite explosion time in both directions, the process is even uniformly ergodic: 5 A notable consequence is that explosive deterministic dynamics need not imply an unstable PDMP; the switching mechanism can interrupt the trajectory before explosion and yield a stable, faster-mixing algorithm (Vasdekis et al., 2021).
4. Limit theorems and large deviations
For one-dimensional ZZP, ergodic averages admit a detailed fluctuation theory. In the general CLT framework, for centered observables 6 one defines
7
and the asymptotic variance is
8
If 9 depends only on position, then
0
This makes explicit that excess switching 1 increases asymptotic variance (Bierkens et al., 2016).
In the canonical unimodal one-dimensional setting, the process admits an explicit regenerative decomposition, yielding a closed-form asymptotic variance formula: 2 The same analysis also gives functional central limit theorems under Foster–Lyapunov conditions in exponentially ergodic and suitable heavy-tailed regimes (Bierkens et al., 2016).
A second asymptotic regime appears when the excess switching becomes very large. If
3
then, after time acceleration 4,
5
where 6 solves
7
Thus large excess switching drives ZZP toward a diffusion limit (Bierkens et al., 2016).
Large deviations theory provides a complementary description of long-time behavior. For the empirical measure
8
the one-dimensional zig-zag process satisfies an LDP with speed 9 and Donsker–Varadhan-type rate function
0
on the torus, and an analogous formula on 1 under additional Lyapunov and regularity conditions (Bierkens et al., 2019).
In the compact setting, the Donsker–Varadhan functional can be written explicitly. This explicit form shows that the rate function is strictly decreasing in a constant refreshment parameter 2; from an empirical-measure large deviations perspective, smaller 3 is therefore better, and the optimal choice is 4 (Bierkens et al., 2019). This does not contradict spectral-gap-based arguments favoring positive refreshment, because convergence to equilibrium and empirical-measure concentration are different criteria (Bierkens et al., 2019).
5. Bayesian inference, sub-sampling, and large-sample scaling
The Zig-Zag process is especially prominent in Bayesian big-data settings because posterior gradients decompose over observations. If
5
then one can construct an exact sub-sampling scheme: along a deterministic segment, propose candidate events from dominating bounds, choose a datapoint index 6, and accept with probability based on 7. The resulting effective rates are
8
and still satisfy the invariance identity
9
This is the exact approximate scheme: the algorithm uses approximation internally but retains the exact posterior as invariant law (Bierkens et al., 2016).
A key refinement is the control-variate estimator
00
where 01 is a reference point near the posterior mode. With an 02 preprocessing step to compute 03, the cost per essentially independent posterior sample can be 04, provided the posterior contracts at 05 scale and the reference point is sufficiently accurate (Bierkens et al., 2016).
Large-sample analysis clarifies why naive sub-sampling and control variates behave so differently. In the transient phase, the trajectories are well approximated by a deterministic ODE,
06
whose drift points in the direction of decreasing KL divergence between the assumed model and the true distribution (Agrawal et al., 2024). For canonical ZZ, the denominator of the drift reduces to 07, so the process moves at the optimal coordinate speed 08. For naive sub-sampling, the denominator involves
09
which is larger and damps the motion, especially near the KL minimizer. Control variates reduce this damping when the reference point is close to the posterior center (Agrawal et al., 2024).
In the stationary phase, the distinction is sharper. With local parameter
10
naive sub-sampling ZZ-SS converges to a stationary Ornstein–Uhlenbeck diffusion,
11
where
12
(Agrawal et al., 2024). By contrast, ZZ-CV with reference points satisfying
13
retains a Zig-Zag PDMP limit after the 14-time rescaling, and the same limiting PDMP also describes canonical ZZ in the large-batch regime (Agrawal et al., 2024).
The resulting complexity comparison is: 15 More precisely, canonical ZZ mixes in 16 physical time but pays 17 per proposed switch; ZZ-SS has 18 per-switch cost but 19 switching burden; ZZ-CV combines 20 per-switch cost with 21 mixing time under suitable control-variate assumptions (Agrawal et al., 2024). This suggests that exact sub-sampling alone is not sufficient for large-22 scalability; variance reduction is the essential ingredient.
6. Extensions, hybrid state spaces, and disambiguation
ZZP has also been extended beyond purely continuous Euclidean targets. In the hybrid construction for targets 23, the discrete state 24 is countable and the continuous state lies in a domain 25 depending on 26. The process evolves as 27, where 28, follows ordinary Zig-Zag dynamics in the interior,
29
and uses a boundary kernel 30 to jump between domains when 31 hits an interface. Under skew-detailed balance and flux compatibility conditions,
32
is stationary (Koskela, 2020).
This hybrid formulation does not require any structural assumptions on the discrete component. It was developed for coalescent-based phylogenetic models in which the latent state combines a tree topology with branch lengths and mutation parameters. In that setting, the continuous-time zig-zag process avoids the boundary-crossing complications that arise in Hamiltonian Monte Carlo on hybrid tree spaces, and the paper reports efficiency gains of up to several orders of magnitude over classical Metropolis–Hastings algorithms in some examples (Koskela, 2020).
A common source of confusion is nomenclature. “Zigzag” also appears in topological data analysis and combinatorial expansion, but these are different objects. “Using Zigzag Persistent Homology to Detect Hopf Bifurcations in Dynamical Systems” studies zigzag persistent homology and states explicitly that it is “not anything related to the stochastic Zig-Zag MCMC process” (Tymochko et al., 2020). Likewise, work on the zig-zag product in hypergraph expansion concerns graph-theoretic and spectral constructions rather than PDMP Monte Carlo (Karni et al., 2020). This suggests that “Zig-Zag Process” should be reserved for the stochastic position–velocity sampler, while “zigzag persistence” and “zig-zag product” belong to distinct mathematical literatures.
Overall, ZZP occupies a distinctive position within nonreversible Monte Carlo. Its defining mechanism is persistent ballistic motion punctuated by state-dependent sign flips; its invariant law is controlled by a simple antisymmetry relation on switching intensities; and its theory now spans exact simulation, sub-sampling, CLTs, empirical-measure large deviations, heavy-tail polynomial ergodicity, state-dependent speedups, numerical perturbation bounds, and hybrid discrete–continuous extensions (Bierkens et al., 2016, Bierkens et al., 2016, Bierkens et al., 2019, Vasdekis et al., 2021, Vasdekis et al., 2021, Pagani et al., 2020, Agrawal et al., 2024, Koskela, 2020).