Introduction
Particle Gibbs and backward sampling
Particle Gibbs samplers [1 ] sample the smoothing distribution of a state-space model, or, more generally, the path measure of a Feynman–Kac model [12 , 6 ] , by iterating a conditional sequential Monte Carlo (CSMC) update: a particle filter is run with one particle fixed to the current trajectory, the reference , after which a new trajectory is selected among the particles. In the original algorithm, the new trajectory is obtained by drawing a final-time particle and tracing its ancestry back in time, which we refer to as ancestral tracing (AT). Because of path degeneracy, the early states of the reference are then rarely updated when the time horizon T T T is large compared with the number of particles N N N . Theoretical guarantees are then only obtained when N N N grows linearly with T T T [2 ] . Backward sampling (BS) [33 , 28 ] , which adapts the backward simulation of Godsill, Doucet and West (2004) to CSMC, redraws the indices of the new trajectory backwards in time, from probabilities which combine the filtering weights with the transition densities. It dominates AT in asymptotic efficiency [8 Theorem 11] and, contrary to AT, remains effective with a number of particles which does not grow with T T T [26 , 23 ] .
Metropolized Gibbs steps and the forced move
In CSMC, the final index, and, with BS, each earlier index, is drawn by a Gibbs step on the extended space of all the variables generated by the particle filter ([1 , 8 ] ), that is, from its conditional distribution, without regard for its current value. However, for discrete variables, Liu [29 ] proposed the Metropolized Gibbs sampler, which proposes a value different from the current one, with probabilities proportional to the conditional distribution, and accepts it with a Metropolis–Hastings probability. It dominates the Gibbs step in the ordering of Peskun [31 ] , and hence in asymptotic variance ([32 , 30 ] ). With two candidates, the Gibbs step is the acceptance rule of Barker [3 ] , whereas the Metropolized Gibbs step is the Metropolis rule. Chopin and Singh [7 ] applied this construction to the final index of CSMC with AT, under the name of forced move , and showed that the resulting sampler, which we denote by FM-AT (forced move plus ancestral tracing), dominates AT in the Peskun ordering ([31 , 32 ] ). The construction extends immediately to BS, which gives FM-BS (forced move plus backward sampling). The forced move does not appear in the published version ([8 ] ), which concentrates on BS. To our knowledge, it is rarely used in practice. There is a simple reason for this: with BS, a forced move at the final time step only changes the final index, while the backward draws at earlier times are exact draws from conditional distributions which forget the final index. We show that, under mixing conditions, the benefit decays geometrically with the distance to the final time (Proposition 2), so that, for even moderately long time series, FM-BS behaves like BS. This is particularly clear when the model factorizes across time, as, in this case, the backward draws are independent of the final index and a forced move at the final time step does not affect any earlier time steps.
Contributions
To address this issue, we propose to make a forced move at every step of the backward pass. We call the resulting sampler Metropolized backward sampling (M-BS). The key observation is that the index drawn at time t t t has a natural current value: the ancestor of the particle selected at time t + 1 t+1 t + 1 , which AT keeps deterministically, and which BS ignores. When the output and the reference differ at time t + 1 t+1 t + 1 , this ancestor is independent of the index of the reference at time t t t , which may therefore be selected again, decreasing efficiency. To fix this, we introduce a coupled Metropolized backward sampling (CM-BS) variant. The index at time t t t is then drawn as with BS, but replaced by a forced move away from the index of the reference if it equals the latter. We prove that CSMC remains valid when each index of the backward pass is drawn from a Markov kernel started from the index of the reference , under a symmetry condition which is directly satisfied by AT and BS, and which, when the output and the reference coincide at the next time step, is the reversibility with respect to the backward-sampling probabilities. When the output and the reference differ, the kernels of M-BS draw the index independently of the index of the reference, so that they may be started from the ancestor instead. This generalized backward pass is summarized in Algorithm 1. It is reversible with respect to the target distribution (Proposition 1), which extends the reversibility of CSMC with BS ([8 Proposition 9] ). At every time step, CSMC with M-BS or CM-BS has larger update rates and smaller lag-one autocovariances of all univariate functions of the state than BS and FM-BS (Theorem 1). The update rates of the states at two consecutive time steps are ordered in the same way, as are, for M-BS, their autocovariances (Corollary 1). Given the indices of the reference and of the output at time t + 1 t+1 t + 1 , the probability that the index of the reference is selected again at time t t t can only decrease when the draw of FM-BS at time t t t is replaced by that of M-BS or CM-BS. At every time t < T t < T t < T , the update rate of M-BS, or of CM-BS, exceeds that of FM-BS by at least the expectation of this decrease under that rule (Proposition 3). When the model factorizes across time and the particles have equal weights, every state is updated under CM-BS, whereas each state is kept with probability 1 / N 1/N 1/ N under BS and, under M-BS, with a probability which tends to 1 / ( N + 1 ) 1/(N+1) 1/ ( N + 1 ) as T − t T-t T − t grows. With two particles and a model which factorizes across time, CSMC with CM-BS performs an independent Metropolis–Hastings step at each time step (Proposition 4). Appendix § 10 extends Algorithm 1, its reversibility, and the results of § 4.1 and § 4.2 to potential functions which depend on two states and to any resampling scheme under which the expected number of offspring of each particle is N N N times its normalized weight, with ancestor sampling of the reference. § 5 illustrates these results on a linear-Gaussian model and on the nonlinear model of Gordon, Salmond and Smith [20 ] , which Andrieu, Doucet and Holenstein [1 ] used to illustrate CSMC. The proofs of our results are given in Appendix § 8 .
Related work
In particle Gibbs with ancestor sampling, Lindsten, Jordan and Schön [27 ] (Section 6.1) observed that the ancestor index of the reference may be drawn from any Markov kernel which leaves the ancestor-sampling probabilities invariant. The backward pass of Algorithm 1 applies this idea to backward sampling, with kernels started from the indices of the reference. To reduce the cost of ancestor sampling, Lindsten, Jordan and Schön [27 ] suggested a Metropolis–Hastings step, which only evaluates the ancestor-sampling weights of the current and proposed indices. They recommended a proposal which never proposes the current index, in the spirit of Liu [29 ] , without specifying it further. Such a kernel is not the Metropolized Gibbs kernel of Liu [29 ] , whose proposal requires all the weights, so that, in general, it does not dominate the Gibbs step in the Peskun ordering. In particle smoothing, Bunch and Godsill [4 ] also replaced each backward draw by Metropolis–Hastings steps, started from the ancestor of the particle selected at the next time step, to reduce the cost of backward sampling. Dau and Chopin [10 ] formulated these steps as independent Metropolis–Hastings steps with the filtering weights as proposal. They proved that a single step per draw gives a convergent and stable smoother, at a cost linear in N N N (Dau and Chopin [10 ] , Proposition 4). Their validity rests on the same invariance as that of the forced moves of M-BS started from the ancestors: the ancestor is distributed according to the backward-sampling probabilities, which these kernels leave invariant (Dau and Chopin [10 ] , Theorem 2.1; Lemma 4). We use the Metropolized Gibbs kernel instead, whose cost is that of BS, in order to improve the statistical efficiency of the sampler rather than its cost. In the backward pass of CSMC, the steps of Bunch and Godsill [4 ] would have the opposite effect of M-BS: because they favour the current index, they would reduce the update rates and increase the autocorrelations.
Backward sampling and forced moves
Feynman–Kac models and conditional SMC
Let X X X be a measurable space, equipped with a σ \sigma σ -finite measure d x dx d x . We consider a Markov chain on X X X with initial density m 1 ( x 1 ) m_1(x_1) m 1 ( x 1 ) and transition densities m t ( x t − 1 , x t ) m_t(x_{t-1},x_t) m t ( x t − 1 , x t ) , 2 ≤ t ≤ T 2 \le t \le T 2 ≤ t ≤ T , with respect to d x dx d x , and potential functions g t : X → ( 0 , ∞ ) g_t\colon X \to(0,\infty) g t : X → ( 0 , ∞ ) , t ∈ [ T ] : = { 1 , … , T } t \in[T] := \{1,\ldots,T\} t ∈ [ T ] := { 1 , … , T } . The target distribution has density
π ( x 1 : T ) = m 1 ( x 1 ) g 1 ( x 1 ) Z ∏ t = 2 T m t ( x t − 1 , x t ) g t ( x t ) , (1) \pi(x_{1:T}) = \frac{m_1(x_1)g_1(x_1)}{Z} \prod_{t=2}^{T} m_t(x_{t-1},x_t)g_t(x_t), \tag*{(1)} π ( x 1 : T ) = Z m 1 ( x 1 ) g 1 ( x 1 ) t = 2 ∏ T m t ( x t − 1 , x t ) g t ( x t ) , (1)
where we assume that Z ∈ ( 0 , ∞ ) Z \in(0,\infty) Z ∈ ( 0 , ∞ ) . For a state-space model with transition densities m t m_t m t and observation densities h t ( y t ∣ x t ) h_t(y_t \mid x_t) h t ( y t ∣ x t ) , the choice g t ( x t ) = h t ( y t ∣ x t ) g_t(x_t) = h_t(y_t \mid x_t) g t ( x t ) = h t ( y t ∣ x t ) makes π \pi π the smoothing distribution and the particle filter below the bootstrap filter. The particle filter uses N ≥ 2 N \ge2 N ≥ 2 particles x t 1 , … , x t N x_t^1,\ldots,x_t^N x t 1 , … , x t N at each time step, with the normalized weights W t i : = g t ( x t i ) / ∑ j = 1 N g t ( x t j ) W_t^i := g_t(x_t^i)/\sum_{j=1}^{N}g_t(x_t^j) W t i := g t ( x t i ) / ∑ j = 1 N g t ( x t j ) , which form the probability vector W t : = ( W t 1 , … , W t N ) \mathbf{W}_t := (W_t^1,\ldots,W_t^N) W t := ( W t 1 , … , W t N ) . We denote by a t − 1 n ∈ [ N ] a_{t-1}^n \in[N] a t − 1 n ∈ [ N ] the index of the ancestor at time t − 1 t-1 t − 1 of the particle x t n x_t^n x t n . For t ∈ [ T − 1 ] t \in[T-1] t ∈ [ T − 1 ] and i , j ∈ [ N ] i,j \in[N] i , j ∈ [ N ] , we define the backward-sampling probabilities
B t ( i ∣ j ) : = W t i m t + 1 ( x t i , x t + 1 j ) ∑ k = 1 N W t k m t + 1 ( x t k , x t + 1 j ) . (2) B_t(i \mid j) := \frac{W_t^i m_{t+1}(x_t^i,x_{t+1}^j)}{\sum_{k=1}^{N} W_t^k m_{t+1}(x_t^k,x_{t+1}^j)}. \tag*{(2)} B t ( i ∣ j ) := ∑ k = 1 N W t k m t + 1 ( x t k , x t + 1 j ) W t i m t + 1 ( x t i , x t + 1 j ) . (2)
Algorithm 1 (CSMC with a general backward pass). Given the reference trajectory x 1 : T x_{1:T} x 1 : T and Markov kernels on [ N ] [N] [ N ] which are functions of the particle positions only: K T K_T K T , reversible with respect to W T W_T W T , and, for t ∈ [ T − 1 ] t \in[T-1] t ∈ [ T − 1 ] and j , j ′ ∈ [ N ] j,j' \in[N] j , j ′ ∈ [ N ] , K t , j , j ′ K_{t,j,j'} K t , j , j ′ , such that, for all i , i ′ ∈ [ N ] i,i' \in[N] i , i ′ ∈ [ N ] ,
B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) = B t ( i ′ ∣ j ′ ) K t , j ′ , j ( i ′ , i ) . (3) B_t(i \mid j)K_{t,j,j'}(i,i') = B_t(i' \mid j')K_{t,j',j}(i',i). \tag*{(3)} B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) = B t ( i ′ ∣ j ′ ) K t , j ′ , j ( i ′ , i ) . (3) (a) Draw b 1 , … , b T b_1,\ldots,b_T b 1 , … , b T independent uniforms on [ N ] [N] [ N ] .
(b) Set x 1 b 1 : = x 1 x_1^{b_1}:=x_1 x 1 b 1 := x 1 and draw x 1 n ∼ m 1 x_1^n \sim m_1 x 1 n ∼ m 1 for n ≠ b 1 n \ne b_1 n = b 1 . For t = 2 , … , T t=2,\ldots,T t = 2 , … , T , set a t − 1 b t : = b t − 1 a_{t-1}^{b_t}:=b_{t-1} a t − 1 b t := b t − 1 and x t b t : = x t x_t^{b_t}:=x_t x t b t := x t , then, for n ≠ b t n \ne b_t n = b t , draw a t − 1 n ∼ W t − 1 a_{t-1}^n \sim W_{t-1} a t − 1 n ∼ W t − 1 and x t n ∼ m t ( x t − 1 a t − 1 n , ⋅ ) x_t^n \sim m_t(x_{t-1}^{a_{t-1}^n},\cdot) x t n ∼ m t ( x t − 1 a t − 1 n , ⋅ ) .
(c) Draw l T ∼ K T ( b T , ⋅ ) l_T \sim K_T(b_T,\cdot) l T ∼ K T ( b T , ⋅ ) .
(d) For t = T − 1 , … , 1 t=T-1,\ldots,1 t = T − 1 , … , 1 , draw l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) l_t \sim K_{t,b_{t+1},l_{t+1}}(b_t,\cdot) l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) .
(e) Return x ~ 1 : T : = ( x 1 b 1 , … , x T l T ) \tilde{x}_{1:T}:=(x_1^{b_1},\ldots,x_T^{l_T}) x ~ 1 : T := ( x 1 b 1 , … , x T l T ) .
The kernels K T K_T K T and K t , j , j ′ K_{t,j,j'} K t , j , j ′ of the six selection rules below depend on the particles only through the probabilities W T W_T W T and B t B_t B t . In Algorithm 1.d, the kernel at time t t t starts from the index b t b_t b t of the reference. If l t + 1 = b t + 1 l_{t+1}=b_{t+1} l t + 1 = b t + 1 , this is the ancestor a t l t + 1 a_t^{l_{t+1}} a t l t + 1 of the particle selected at time t + 1 t+1 t + 1 . For j = j ′ j=j' j = j ′ , (3) is the reversibility of K t , j , j K_{t,j,j} K t , j , j with respect to B t ( ⋅ ∣ j ) B_t(\cdot\mid j) B t ( ⋅ ∣ j ) . For j ≠ j ′ j\ne j' j = j ′ , summing (3) over i i i shows that, if i ∼ B t ( ⋅ ∣ j ) i\sim B_t(\cdot\mid j) i ∼ B t ( ⋅ ∣ j ) and i ′ ∼ K t , j , j ′ ( i , ⋅ ) i'\sim K_{t,j,j'}(i,\cdot) i ′ ∼ K t , j , j ′ ( i , ⋅ ) , then i ′ ∼ B t ( ⋅ ∣ j ′ ) i'\sim B_t(\cdot\mid j') i ′ ∼ B t ( ⋅ ∣ j ′ ) , while (3) states that the pair ( i ′ , i ) (i',i) ( i ′ , i ) then has the same distribution as when i ′ ∼ B t ( ⋅ ∣ j ′ ) i'\sim B_t(\cdot\mid j') i ′ ∼ B t ( ⋅ ∣ j ′ ) and i ∼ K t , j ′ , j ( i ′ , ⋅ ) i\sim K_{t,j',j}(i',\cdot) i ∼ K t , j ′ , j ( i ′ , ⋅ ) . For probability vectors p p p and q q q on [ N ] [N] [ N ] , the selection rules are built from the forced move F p F_p F p and the coupling kernel C p , q C_{p,q} C p , q of p p p and q q q , whose formal definitions are deferred to Sections 2.2 and 2.3. We consider six kernel choices. In the first five, K t , j , j ′ ( i , ⋅ ) = B t ( ⋅ ∣ j ′ ) K_{t,j,j'}(i,\cdot)=B_t(\cdot\mid j') K t , j , j ′ ( i , ⋅ ) = B t ( ⋅ ∣ j ′ ) for j ≠ j ′ j\ne j' j = j ′ , so that the indices of the output and of the reference are drawn independently once they differ:
AT: K T ( i , ⋅ ) = W T K_T(i,\cdot)=W_T K T ( i , ⋅ ) = W T and K t , j , j ( i , ⋅ ) = δ i K_{t,j,j}(i,\cdot)=\delta_i K t , j , j ( i , ⋅ ) = δ i : ancestral tracing ([1 ] );
FM-AT: K T = F W T K_T=F_{W_T} K T = F W T and K t , j , j ( i , ⋅ ) = δ i K_{t,j,j}(i,\cdot)=\delta_i K t , j , j ( i , ⋅ ) = δ i : forced move plus ancestral tracing ([7 ] , Section 8);
BS: K T ( i , ⋅ ) = W T K_T(i,\cdot)=W_T K T ( i , ⋅ ) = W T and K t , j , j ( i , ⋅ ) = B t ( ⋅ ∣ j ) K_{t,j,j}(i,\cdot)=B_t(\cdot\mid j) K t , j , j ( i , ⋅ ) = B t ( ⋅ ∣ j ) : the backward sampling of Whiteley [33 ] ;
FM-BS: K T = F W T K_T=F_{W_T} K T = F W T and K t , j , j ( i , ⋅ ) = B t ( ⋅ ∣ j ) K_{t,j,j}(i,\cdot)=B_t(\cdot\mid j) K t , j , j ( i , ⋅ ) = B t ( ⋅ ∣ j ) : forced move plus backward sampling;
M-BS: K T = F W T K_T=F_{W_T} K T = F W T and K t , j , j = F B t ( ⋅ ∣ j ) K_{t,j,j}=F_{B_t(\cdot\mid j)} K t , j , j = F B t ( ⋅ ∣ j ) : Metropolized backward sampling, which we propose;
CM-BS: K T = F W T K_T=F_{W_T} K T = F W T , K t , j , j = F B t ( ⋅ ∣ j ) K_{t,j,j}=F_{B_t(\cdot\mid j)} K t , j , j = F B t ( ⋅ ∣ j ) , and, for j ≠ j ′ j\ne j' j = j ′ , K t , j , j ′ = C B t ( ⋅ ∣ j ) , B t ( ⋅ ∣ j ′ ) K_{t,j,j'}=C_{B_t(\cdot\mid j),B_t(\cdot\mid j')} K t , j , j ′ = C B t ( ⋅ ∣ j ) , B t ( ⋅ ∣ j ′ ) : coupled Metropolized backward sampling, which we also propose.
For the first five rules, Algorithm 1.d is usually implemented as l t ∼ K t , l t + 1 , l t + 1 ( a t l t + 1 , ⋅ ) l_t\sim K_{t,l_{t+1},l_{t+1}}(a_t^{l_{t+1}},\cdot) l t ∼ K t , l t + 1 , l t + 1 ( a t l t + 1 , ⋅ ) , from the ancestor of the particle selected at time t + 1 t+1 t + 1 , without the indices of the reference at the times t < T t<T t < T . When x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π , this gives the same joint distribution of the reference and the output (Lemma 4). With AT, l t = a t l t + 1 l_t=a_t^{l_{t+1}} l t = a t l t + 1 , whereas, with M-BS, l t l_t l t is drawn by a forced move from a t l t + 1 a_t^{l_{t+1}} a t l t + 1 at every time step. With CM-BS, if l t + 1 = b t + 1 l_{t+1}=b_{t+1} l t + 1 = b t + 1 , the index l t l_t l t is drawn as with M-BS, by a forced move from the ancestor b t = a t l t + 1 b_t=a_t^{l_{t+1}} b t = a t l t + 1 . Otherwise, it is drawn from B t ( ⋅ ∣ l t + 1 ) B_t(\cdot\mid l_{t+1}) B t ( ⋅ ∣ l t + 1 ) , as with BS, and replaced, if it equals b t b_t b t , by a forced move from b t b_t b t with respect to the probabilities proportional to B t ( i ∣ b t + 1 ) B t ( b t ∣ l t + 1 ) B_t(i\mid b_{t+1})B_t(b_t\mid l_{t+1}) B t ( i ∣ b t + 1 ) B t ( b t ∣ l t + 1 ) , i ∈ [ N ] i\in[N] i ∈ [ N ] . As for BS ([8 Remark 2] ), the law of the output does not change if the indices of the reference are fixed, b 1 = ⋯ = b T = 1 b_1=\cdots=b_T=1 b 1 = ⋯ = b T = 1 , because the steps of the particle filter are exchangeable and the six selection rules are equivariant under relabelling of the particles. We use uniformly drawn indices in the proofs and fixed indices in the experiments. All six rules require the probabilities W T W_T W T , and, except for AT and FM-AT, the probabilities B t ( ⋅ ∣ l t + 1 ) B_t(\cdot\mid l_{t+1}) B t ( ⋅ ∣ l t + 1 ) , t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] . CM-BS also requires the probabilities B t ( ⋅ ∣ b t + 1 ) B_t(\cdot\mid b_{t+1}) B t ( ⋅ ∣ b t + 1 ) at the times t t t at which l t + 1 ≠ b t + 1 l_{t+1}\ne b_{t+1} l t + 1 = b t + 1 and the draw from B t ( ⋅ ∣ l t + 1 ) B_t(\cdot\mid l_{t+1}) B t ( ⋅ ∣ l t + 1 ) equals b t b_t b t . The costs of BS, FM-BS, M-BS, and CM-BS are therefore of order N T NT N T . The backward pass of M-BS costs exactly as much as that of BS, and that of CM-BS at most twice as much.
The forced move
Let p \mathbf{p} p be a probability vector on [ N ] [N] [ N ] . Under the Gibbs kernel, K ( i , ⋅ ) = p K(i,\cdot)=\mathbf{p} K ( i , ⋅ ) = p , the new index is drawn from p \mathbf{p} p without regard for the current index i i i . The Metropolized Gibbs kernel of Liu [29 ] , which is the forced move of Chopin and Singh [7 ] , proposes, from i ∈ [ N ] i\in[N] i ∈ [ N ] with p i < 1 p_i<1 p i < 1 , an index j ≠ i j\ne i j = i with probability p j / ( 1 − p i ) p_j/(1-p_i) p j / ( 1 − p i ) , and accepts it with probability min { 1 , ( 1 − p i ) / ( 1 − p j ) } \min\{1,(1-p_i)/(1-p_j)\} min { 1 , ( 1 − p i ) / ( 1 − p j )} , so that
F p ( i , j ) = p j max { 1 − p i , 1 − p j } , j ≠ i , F_{\mathbf{p}}(i,j)=\frac{p_j}{\max\{1-p_i,1-p_j\}},\qquad j\ne i, F p ( i , j ) = max { 1 − p i , 1 − p j } p j , j = i ,
F p ( i , i ) = 1 − ∑ j ≠ i F p ( i , j ) . (4) F_{\mathbf{p}}(i,i)=1-\sum_{j\ne i}F_{\mathbf{p}}(i,j). \tag*{(4)} F p ( i , i ) = 1 − j = i ∑ F p ( i , j ) . (4)
and F p ( i , ⋅ ) : = δ i F_{\mathbf{p}}(i,\cdot):=\delta_i F p ( i , ⋅ ) := δ i if p i = 1 p_i=1 p i = 1 . For N = 2 N=2 N = 2 and p 1 , p 2 > 0 p_1,p_2>0 p 1 , p 2 > 0 , F p ( 1 , 2 ) = min { 1 , p 2 / p 1 } F_{\mathbf{p}}(1,2)=\min\{1,p_2/p_1\} F p ( 1 , 2 ) = min { 1 , p 2 / p 1 } is the Metropolis acceptance probability, whereas the probability p 2 = p 2 / ( p 1 + p 2 ) p_2=p_2/(p_1+p_2) p 2 = p 2 / ( p 1 + p 2 ) of moving from 1 to 2 under the Gibbs kernel is that of Barker [3 ] . For a Markov kernel K K K on [ N ] [N] [ N ] and φ : [ N ] → R \varphi:[N]\to\mathbb{R} φ : [ N ] → R , we write p ( φ ) : = ∑ i p i φ ( i ) \mathbf{p}(\varphi):=\sum_i p_i\varphi(i) p ( φ ) := ∑ i p i φ ( i ) for the expectation of φ \varphi φ with respect to p \mathbf{p} p , and
⟨ φ , K φ ⟩ p : = ∑ i , j ∈ [ N ] p i K ( i , j ) φ ( i ) φ ( j ) . \langle\varphi,K\varphi\rangle_{\mathbf{p}}:=\sum_{i,j\in[N]}p_iK(i,j)\varphi(i)\varphi(j). ⟨ φ , K φ ⟩ p := i , j ∈ [ N ] ∑ p i K ( i , j ) φ ( i ) φ ( j ) .
This is the expectation of φ ( i ) φ ( j ) \varphi(i)\varphi(j) φ ( i ) φ ( j ) when i ∼ p i\sim\mathbf{p} i ∼ p and j ∼ K ( i , ⋅ ) j\sim K(i,\cdot) j ∼ K ( i , ⋅ ) , so that, if K K K leaves p \mathbf{p} p invariant, ⟨ φ , K φ ⟩ p − p ( φ ) 2 \langle\varphi,K\varphi\rangle_{\mathbf{p}}-\mathbf{p}(\varphi)^2 ⟨ φ , K φ ⟩ p − p ( φ ) 2 is the lag-one autocovariance of φ \varphi φ for the Markov chain with kernel K K K started from p \mathbf{p} p .
Lemma 1. The kernel F p F_{\mathbf{p}} F p is reversible with respect to p \mathbf{p} p . For i ≠ j i\ne j i = j , F p ( i , j ) ≥ p j F_{\mathbf{p}}(i,j)\ge p_j F p ( i , j ) ≥ p j . For every φ : [ N ] → R \varphi:[N]\to\mathbb{R} φ : [ N ] → R , ⟨ φ , F p φ ⟩ p ≤ p ( φ ) 2 \langle\varphi,F_{\mathbf{p}}\varphi\rangle_{\mathbf{p}}\le\mathbf{p}(\varphi)^2 ⟨ φ , F p φ ⟩ p ≤ p ( φ ) 2 .
The first two parts of Lemma 1 are due to Liu [29 ] when p i < 1 p_i<1 p i < 1 for all i ∈ [ N ] i\in[N] i ∈ [ N ] . Because the probability of moving from i i i to j ≠ i j\ne i j = i under the Gibbs kernel is p j p_j p j , the second part states that F p F_{\mathbf{p}} F p dominates the Gibbs kernel off the diagonal, which is the ordering of Peskun [31 ] . If p i = 1 p_i=1 p i = 1 for some i i i , then the first two parts follow from p j = 0 p_j=0 p j = 0 and F p ( j , i ) = 1 F_{\mathbf{p}}(j,i)=1 F p ( j , i ) = 1 for j ≠ i j\ne i j = i . Because ⟨ φ , K φ ⟩ p = p ( φ ) 2 \langle\varphi,K\varphi\rangle_{\mathbf{p}}=\mathbf{p}(\varphi)^2 ⟨ φ , K φ ⟩ p = p ( φ ) 2 for the Gibbs kernel, the third part follows from the first two by Tierney [32 ] .
A coupling which avoids the current index
The forced move also gives a coupling of two probability vectors p \mathbf{p} p and q \mathbf{q} q on [ N ] [N] [ N ] under which the two indices coincide less often than when they are independent: this is the opposite of classically used maximal couplings (Goldstein [19 ] ). For u ∈ [ 0 , ∞ ) N \mathbf{u}\in[0,\infty)^N u ∈ [ 0 , ∞ ) N , let F u : = F u / ( u 1 + ⋯ + u N ) F_{\mathbf{u}}:=F_{\mathbf{u}/(u_1+\cdots+u_N)} F u := F u / ( u 1 + ⋯ + u N ) if u ≠ 0 \mathbf{u}\ne0 u = 0 and F 0 ( i , ⋅ ) : = δ i F_{\mathbf{0}}(i,\cdot):=\delta_i F 0 ( i , ⋅ ) := δ i . With p ⊙ q : = ( p 1 q 1 , … , p N q N ) \mathbf{p}\odot\mathbf{q}:=(p_1q_1,\ldots,p_Nq_N) p ⊙ q := ( p 1 q 1 , … , p N q N ) , let
C p , q ( i , ⋅ ) : = q + q i { F p ⊙ q ( i , ⋅ ) − δ i } , i ∈ [ N ] . (5) C_{\mathbf{p},\mathbf{q}}(i,\cdot):=\mathbf{q}+q_i\{F_{\mathbf{p}\odot\mathbf{q}}(i,\cdot)-\delta_i\},\qquad i\in[N]. \tag*{(5)} C p , q ( i , ⋅ ) := q + q i { F p ⊙ q ( i , ⋅ ) − δ i } , i ∈ [ N ] . (5)
That is, an index is drawn from q \mathbf{q} q and replaced, if it equals i i i , by a forced move from i i i with respect to the probabilities proportional to p j q j p_jq_j p j q j , j ∈ [ N ] j\in[N] j ∈ [ N ] . In particular, C p , q ( i , i ) = q i F p ⊙ q ( i , i ) C_{\mathbf{p},\mathbf{q}}(i,i)=q_iF_{\mathbf{p}\odot\mathbf{q}}(i,i) C p , q ( i , i ) = q i F p ⊙ q ( i , i ) , so that the entries of C p , q C_{\mathbf{p},\mathbf{q}} C p , q are nonnegative and C p , q C_{\mathbf{p},\mathbf{q}} C p , q is a Markov kernel.
Lemma 2. Let p \mathbf{p} p and q \mathbf{q} q be probability vectors on [ N ] [N] [ N ] . For all i , i ′ ∈ [ N ] i,i'\in[N] i , i ′ ∈ [ N ] , p i C p , q ( i , i ′ ) = q i ′ C q , p ( i ′ , i ) p_iC_{\mathbf{p},\mathbf{q}}(i,i')=q_{i'}C_{\mathbf{q},\mathbf{p}}(i',i) p i C p , q ( i , i ′ ) = q i ′ C q , p ( i ′ , i ) . For i ≠ i ′ i\ne i' i = i ′ , C p , q ( i , i ′ ) ≥ q i ′ C_{\mathbf{p},\mathbf{q}}(i,i')\ge q_{i'} C p , q ( i , i ′ ) ≥ q i ′ . For every φ : [ N ] → R \varphi:[N]\to\mathbb{R} φ : [ N ] → R , ⟨ φ , C p , q φ ⟩ p ≤ p ( φ ) q ( φ ) \langle\varphi,C_{\mathbf{p},\mathbf{q}}\varphi\rangle_{\mathbf{p}}\le\mathbf{p}(\varphi)\mathbf{q}(\varphi) ⟨ φ , C p , q φ ⟩ p ≤ p ( φ ) q ( φ ) .
By the first part of Lemma 2, if i ∼ p i\sim\mathbf{p} i ∼ p and i ′ ∼ C p , q ( i , ⋅ ) i'\sim C_{\mathbf{p},\mathbf{q}}(i,\cdot) i ′ ∼ C p , q ( i , ⋅ ) , then i ′ ∼ q i'\sim\mathbf{q} i ′ ∼ q . The two indices then coincide with probability ∑ i p i q i F p ⊙ q ( i , i ) \sum_i p_iq_iF_{\mathbf{p}\odot\mathbf{q}}(i,i) ∑ i p i q i F p ⊙ q ( i , i ) , whereas independent indices coincide with probability ∑ i p i q i \sum_i p_iq_i ∑ i p i q i . If p = q \mathbf{p}=\mathbf{q} p = q is uniform, then F p ⊙ q ( i , i ) = 0 F_{\mathbf{p}\odot\mathbf{q}}(i,i)=0 F p ⊙ q ( i , i ) = 0 for all i ∈ [ N ] i\in[N] i ∈ [ N ] , so that the two indices never coincide. The second and third parts of Lemma 2 compare C p , q C_{\mathbf{p},\mathbf{q}} C p , q with the independent coupling, whose rows all equal q \mathbf{q} q , as the second and third parts of Lemma 1 compare F p F_{\mathbf{p}} F p with the Gibbs kernel.
Validity
Our proofs rely on the extended distribution of Andrieu, Doucet and Holenstein [1 ] on the particle positions x : = ( x t n ) t ∈ [ T ] , n ∈ [ N ] \mathbf{x} := (x_t^n)_{t\in[T],n\in[N]} x := ( x t n ) t ∈ [ T ] , n ∈ [ N ] , the ancestor indices a : = ( a t n ) t ∈ [ T − 1 ] , n ∈ [ N ] \mathbf{a} := (a_t^n)_{t\in[T-1],n\in[N]} a := ( a t n ) t ∈ [ T − 1 ] , n ∈ [ N ] , and a final index b T ∈ [ N ] b_T \in[N] b T ∈ [ N ] , which have joint density
π ˉ ( x , a , b T ) : = W T b T Z N T ∏ t = 1 T { ∑ i = 1 N g t ( x t i ) } ∏ n = 1 N m 1 ( x 1 n ) × ∏ t = 2 T ∏ n = 1 N W t − 1 a t − 1 n m t ( x t − 1 a t − 1 n , x t n ) . (6) \bar{\pi}(\mathbf{x},\mathbf{a},b_T) := \frac{W_T^{b_T}}{ZN^T}\prod_{t=1}^{T}\left\{\sum_{i=1}^{N}g_t(x_t^i)\right\}\prod_{n=1}^{N}m_1(x_1^n)
\times\prod_{t=2}^{T}\prod_{n=1}^{N}W_{t-1}^{a_{t-1}^n}m_t\left(x_{t-1}^{a_{t-1}^n},x_t^n\right). \tag*{(6)} π ˉ ( x , a , b T ) := Z N T W T b T t = 1 ∏ T { i = 1 ∑ N g t ( x t i ) } n = 1 ∏ N m 1 ( x 1 n ) × t = 2 ∏ T n = 1 ∏ N W t − 1 a t − 1 n m t ( x t − 1 a t − 1 n , x t n ) . (6)
The trajectory traced back from b T b_T b T is ( x 1 b 1 , … , x T b T ) (x_1^{b_1},\ldots,x_T^{b_T}) ( x 1 b 1 , … , x T b T ) , with genealogy b t : = a t b t + 1 b_t := a_t^{b_{t+1}} b t := a t b t + 1 for t ∈ [ T − 1 ] t \in[T-1] t ∈ [ T − 1 ] . For the variables generated by steps (a) and (b) of Algorithm 1, these indices are those of the reference drawn in Algorithm 1.a, because a t b t + 1 = b t a_t^{b_{t+1}} = b_t a t b t + 1 = b t by Algorithm 1.b.
Lemma 3. Let x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π and run steps (a) and (b) of Algorithm 1. Then ( x , a , b T ) ∼ π ˉ (\mathbf{x},\mathbf{a},b_T)\sim\bar{\pi} ( x , a , b T ) ∼ π ˉ , with x 1 : T x_{1:T} x 1 : T the trajectory traced back from b T b_T b T . Under π ˉ \bar{\pi} π ˉ , conditionally on x \mathbf{x} x , the indices b T b_T b T and a t n a_t^n a t n , t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , n ∈ [ N ] n\in[N] n ∈ [ N ] , are independent, with the distributions W T W_T W T and B t ( ⋅ ∣ n ) B_t(\cdot\mid n) B t ( ⋅ ∣ n ) , respectively.
The first part of Lemma 3 is due to Andrieu, Doucet and Holenstein [1 ] , in the form of Chopin and Singh [8 ] , where the indices of the reference are drawn uniformly before the other particles are generated. The second part of Lemma 3 is the observation of Chopin and Singh [8 ] that, with multinomial resampling, BS is a Gibbs update of all the ancestor indices given the particle positions. It relies on the potential functions depending on the current state only, so that the weights do not depend on the ancestor indices.
Combined with steps (c) and (d) of Algorithm 1, Lemma 3 gives the joint distribution of the indices b 1 : T b_{1:T} b 1 : T of the reference and l 1 : T l_{1:T} l 1 : T of the output trajectory: given the particle positions, the pairs ( b t , l t ) (b_t,l_t) ( b t , l t ) form a Markov chain backwards in time.
Lemma 4. Let x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π and run Algorithm 1. Conditionally on x \mathbf{x} x , b T ∼ W T b_T\sim W_T b T ∼ W T and, given b T b_T b T , l T ∼ K T ( b T , ⋅ ) l_T\sim K_T(b_T,\cdot) l T ∼ K T ( b T , ⋅ ) . For t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , conditionally on x \mathbf{x} x and ( b t + 1 : T , l t + 1 : T ) (b_{t+1:T},l_{t+1:T}) ( b t + 1 : T , l t + 1 : T ) , b t ∼ B t ( ⋅ ∣ b t + 1 ) b_t\sim B_t(\cdot\mid b_{t+1}) b t ∼ B t ( ⋅ ∣ b t + 1 ) and, given b t b_t b t , l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) l_t\sim K_{t,b_{t+1},l_{t+1}}(b_t,\cdot) l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) . If K t , j , j ′ ( i , ⋅ ) = B t ( ⋅ ∣ j ′ ) K_{t,j,j'}(i,\cdot)=B_t(\cdot\mid j') K t , j , j ′ ( i , ⋅ ) = B t ( ⋅ ∣ j ′ ) for all j ≠ j ′ j\ne j' j = j ′ and t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , the same holds with l t ∼ K t , l t + 1 , l t + 1 ( a t l t + 1 , ⋅ ) l_t\sim K_{t,l_{t+1},l_{t+1}}(a_t^{l_{t+1}},\cdot) l t ∼ K t , l t + 1 , l t + 1 ( a t l t + 1 , ⋅ ) in Algorithm 1.d.
Special cases of Proposition 1 are known: for AT (Chopin and Singh, [8 ] ; Andrieu, Lee and Vihola, [2 ] ), for BS (Chopin and Singh, [8 ] ), and for backward sampling at a subset of the time steps combined with ancestral tracing at the others (Chopin and Singh, [7 ] ). We are not aware of a proof for general kernels K T K_T K T and K t , j , j ′ K_{t,j,j'} K t , j , j ′ , so we give one here.
Proposition 1. For any kernels K T K_T K T and K t , j , j ′ K_{t,j,j'} K t , j , j ′ as in Algorithm 1, the Markov kernel defined by Algorithm 1 is reversible with respect to π \pi π . In particular, it leaves π \pi π invariant.
By Lemma 4, conditionally on the particle positions, the pairs ( b t , l t ) (b_t,l_t) ( b t , l t ) form a backward Markov chain on [ N ] 2 [N]^2 [ N ] 2 whose initial distribution and transitions, by the reversibility of K T K_T K T and by (3) , do not change when the indices of the reference and of the output are exchanged, which gives the reversibility.
Proposition 1 applies to the six selection rules of § 2 , because the identity kernel, the Gibbs kernel, and by Lemma 1, F p F_p F p are reversible with respect to p p p , whereas, for j ≠ j ′ j\ne j' j = j ′ , the kernels K t , j , j ′ ( i , ⋅ ) = B t ( ⋅ ∣ j ′ ) K_{t,j,j'}(i,\cdot)=B_t(\cdot\mid j') K t , j , j ′ ( i , ⋅ ) = B t ( ⋅ ∣ j ′ ) satisfy (3) , and so do the kernels K t , j , j ′ = C B t ( ⋅ ∣ j ) , B t ( ⋅ ∣ j ′ ) K_{t,j,j'}=C_{B_t(\cdot\mid j),B_t(\cdot\mid j')} K t , j , j ′ = C B t ( ⋅ ∣ j ) , B t ( ⋅ ∣ j ′ ) of CM-BS, by the first part of Lemma 2. For BS, by Lemma 3, l 1 : T l_{1:T} l 1 : T has the distribution of the indices traced back from an independent draw of ( b T , a ) (b_T,\mathbf{a}) ( b T , a ) from its conditional distribution given x \mathbf{x} x . Proposition 1 then follows from the reversibility of this Gibbs update, which is the proof of Chopin and Singh [8 ] .
Comparison of the selection rules
Update rates and autocovariances
Throughout this section, x 1 : T ∼ π x_{1:T} \sim\pi x 1 : T ∼ π and x ~ 1 : T \tilde{x}_{1:T} x ~ 1 : T is the output of one iteration of Algorithm 1, so that x t = x t b t x_t = x_t^{b_t} x t = x t b t and x ~ t = x t l t \tilde{x}_t = x_t^{l_t} x ~ t = x t l t for t ∈ [ T ] t \in[T] t ∈ [ T ] . Probabilities and expectations conditional on x \mathbf{x} x are denoted by P x \mathbb{P}_{\mathbf{x}} P x and E x \mathbb{E}_{\mathbf{x}} E x , while those with the name of a selection rule as subscript, such as P M - B S \mathbb{P}_{\mathrm{M\text{-}BS}} P M - BS , are taken under the joint distribution of all the variables, with x 1 : T ∼ π x_{1:T} \sim\pi x 1 : T ∼ π and x ~ 1 : T \tilde{x}_{1:T} x ~ 1 : T the output of Algorithm 1 for said selection rule.
The comparisons rely on a backward recursion for the expected products of a function at the indices of the reference and of the output. For φ : [ N ] → R \varphi: [N] \to\mathbb{R} φ : [ N ] → R , t ∈ [ T ] t \in[T] t ∈ [ T ] , s ∈ [ T − 1 ] s \in[T-1] s ∈ [ T − 1 ] , and j , j ′ ∈ [ N ] j,j' \in[N] j , j ′ ∈ [ N ] , let
Q t ( φ ) : = E x { φ ( b t ) φ ( l t ) } , Q_t(\varphi) := \mathbb{E}_{\mathbf{x}}\{\varphi(b_t)\varphi(l_t)\}, Q t ( φ ) := E x { φ ( b t ) φ ( l t )} ,
( B s φ ) ( j ) : = ∑ i = 1 N B s ( i ∣ j ) φ ( i ) , (B_s\varphi)(j) := \sum_{i=1}^{N} B_s(i\mid j)\varphi(i), ( B s φ ) ( j ) := i = 1 ∑ N B s ( i ∣ j ) φ ( i ) ,
D s , j , j ′ ( φ ) : = ⟨ φ , K s , j , j ′ φ ⟩ B s ( ⋅ ∣ j ) − ( B s φ ) ( j ) ( B s φ ) ( j ′ ) . D_{s,j,j'}(\varphi) := \langle\varphi,K_{s,j,j'}\varphi\rangle_{B_s(\cdot\mid j)}-(B_s\varphi)(j)(B_s\varphi)(j'). D s , j , j ′ ( φ ) := ⟨ φ , K s , j , j ′ φ ⟩ B s ( ⋅ ∣ j ) − ( B s φ ) ( j ) ( B s φ ) ( j ′ ) .
By Lemma 4, Q T ( φ ) = ⟨ φ , K T φ ⟩ W T Q_T(\varphi)=\langle\varphi,K_T\varphi\rangle_{W_T} Q T ( φ ) = ⟨ φ , K T φ ⟩ W T . For t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , also by Lemma 4, ⟨ φ , K t , j , j ′ φ ⟩ B t ( ⋅ ∣ j ) \langle\varphi,K_{t,j,j'}\varphi\rangle_{B_t(\cdot\mid j)} ⟨ φ , K t , j , j ′ φ ⟩ B t ( ⋅ ∣ j ) is the conditional expectation of φ ( b t ) φ ( l t ) \varphi(b_t)\varphi(l_t) φ ( b t ) φ ( l t ) given b t + 1 = j b_{t+1}=j b t + 1 = j and l t + 1 = j ′ l_{t+1}=j' l t + 1 = j ′ , while it equals ( B t φ ) ( j ) ( B t φ ) ( j ′ ) + D t , j , j ′ ( φ ) (B_t\varphi)(j)(B_t\varphi)(j')+D_{t,j,j'}(\varphi) ( B t φ ) ( j ) ( B t φ ) ( j ′ ) + D t , j , j ′ ( φ ) by definition, so that
Q t ( φ ) = Q t + 1 ( B t φ ) + ∑ j , j ′ ∈ [ N ] P x ( b t + 1 = j , l t + 1 = j ′ ) D t , j , j ′ ( φ ) . (7) \begin{aligned}
Q_t(\varphi) &= Q_{t+1}(B_t\varphi) \\
&\quad+ \sum_{j,j'\in[N]} \mathbb{P}_{\mathbf{x}}(b_{t+1}=j,l_{t+1}=j')D_{t,j,j'}(\varphi). \tag*{(7)}
\end{aligned} Q t ( φ ) = Q t + 1 ( B t φ ) + j , j ′ ∈ [ N ] ∑ P x ( b t + 1 = j , l t + 1 = j ′ ) D t , j , j ′ ( φ ) . (7)
For BS and FM-BS, D t , j , j ′ ( φ ) = 0 D_{t,j,j'}(\varphi)=0 D t , j , j ′ ( φ ) = 0 . For AT, D t , j , j ′ ( φ ) D_{t,j,j'}(\varphi) D t , j , j ′ ( φ ) is the variance of φ \varphi φ under B t ( ⋅ ∣ j ) B_t(\cdot\mid j) B t ( ⋅ ∣ j ) if j = j ′ j=j' j = j ′ and zero otherwise, whereas, for M-BS and CM-BS, D t , j , j ′ ( φ ) ≤ 0 D_{t,j,j'}(\varphi)\leq0 D t , j , j ′ ( φ ) ≤ 0 , by Lemma 1 if j = j ′ j=j' j = j ′ , and, if j ≠ j ′ j\ne j' j = j ′ , because D t , j , j ′ ( φ ) = 0 D_{t,j,j'}(\varphi)=0 D t , j , j ′ ( φ ) = 0 for M-BS and by Lemma 2 for CM-BS. Backward induction on (7) therefore orders the selection rules at every time step.
Theorem 1. Let t ∈ [ T ] t\in[T] t ∈ [ T ] and let f : X → R f:\mathcal{X}\to\mathbb{R} f : X → R be measurable with ∫ f ( x t ) 2 π ( x 1 : T ) d x 1 : T < ∞ \int f(x_t)^2\pi(x_{1:T})\,\mathrm{d}x_{1:T}<\infty ∫ f ( x t ) 2 π ( x 1 : T ) d x 1 : T < ∞ . Then
E M - B S { f ( x t ) f ( x ~ t ) } ≤ E F M - B S { f ( x t ) f ( x ~ t ) } \mathbb{E}_{\mathrm{M\text{-}BS}}\{f(x_t)f(\tilde{x}_t)\}\leq\mathbb{E}_{\mathrm{FM\text{-}BS}}\{f(x_t)f(\tilde{x}_t)\} E M - BS { f ( x t ) f ( x ~ t )} ≤ E FM - BS { f ( x t ) f ( x ~ t )} ≤ E B S { f ( x t ) f ( x ~ t ) } \leq\mathbb{E}_{\mathrm{BS}}\{f(x_t)f(\tilde{x}_t)\} ≤ E BS { f ( x t ) f ( x ~ t )} ≤ E A T { f ( x t ) f ( x ~ t ) } , \leq\mathbb{E}_{\mathrm{AT}}\{f(x_t)f(\tilde{x}_t)\}, ≤ E AT { f ( x t ) f ( x ~ t )} , and the first inequality also holds with CM-BS in place of M-BS. Moreover,
P M - B S ( x ~ t ≠ x t ) ≥ P F M - B S ( x ~ t ≠ x t ) \mathbb{P}_{\mathrm{M\text{-}BS}}(\tilde{x}_t\ne x_t)\geq\mathbb{P}_{\mathrm{FM\text{-}BS}}(\tilde{x}_t\ne x_t) P M - BS ( x ~ t = x t ) ≥ P FM - BS ( x ~ t = x t ) ≥ P B S ( x ~ t ≠ x t ) ≥ P A T ( x ~ t ≠ x t ) , \geq\mathbb{P}_{\mathrm{BS}}(\tilde{x}_t\ne x_t)\geq\mathbb{P}_{\mathrm{AT}}(\tilde{x}_t\ne x_t), ≥ P BS ( x ~ t = x t ) ≥ P AT ( x ~ t = x t ) , and the first inequality also holds with CM-BS in place of M-BS.
By stationarity, f ( x t ) f(x_t) f ( x t ) and f ( x ~ t ) f(\tilde{x}_t) f ( x ~ t ) have the same variance, so that the lag-one autocorrelations are ordered in the same way. If X = R d \mathcal{X}=\mathbb{R}^d X = R d and ∫ ∥ x t ∥ 2 π ( x 1 : T ) d x 1 : T < ∞ \int\|x_t\|^2\pi(x_{1:T})\,\mathrm{d}x_{1:T}<\infty ∫ ∥ x t ∥ 2 π ( x 1 : T ) d x 1 : T < ∞ , then the expected squared jumped distances (ESJD)
E ∥ x ~ t − x t ∥ 2 = 2 E ∥ x t ∥ 2 − 2 E ⟨ x t , x ~ t ⟩ \mathbb{E}\|\tilde{x}_t-x_t\|^2=2\mathbb{E}\|x_t\|^2-2\mathbb{E}\langle x_t,\tilde{x}_t\rangle E ∥ x ~ t − x t ∥ 2 = 2 E ∥ x t ∥ 2 − 2 E ⟨ x t , x ~ t ⟩
are ordered in the reverse direction. At t = T t=T t = T , the pair ( x T , x ~ T ) (x_T,\tilde{x}_T) ( x T , x ~ T ) has the same distribution under FM-BS as under FM-AT, and under BS as under AT. For bounded potential functions, the comparison of FM-BS and BS at t = T t=T t = T therefore also follows from the Peskun ordering of FM-AT over AT (Chopin and Singh, [7 ] , Proposition 7), combined with Tierney [32 ] , Lemma 3 for the autocovariances. The comparison of BS and AT is a weaker form of Chopin and Singh (2015, Theorem 10), who prove lag-one domination for all square-integrable functions of the trajectory. While Theorem 1 applies to univariate functions, the same argument applies to functions of the states at two consecutive time steps, except for the autocovariances of CM-BS.
Corollary 1. Let t ∈ [ T − 1 ] t \in[T-1] t ∈ [ T − 1 ] and let f : X 2 → R f : \mathcal{X}^{2} \to\mathbb{R} f : X 2 → R be measurable with ∫ f ( x t , x t + 1 ) 2 π ( x 1 : T ) d x 1 : T < ∞ \int f(x_t,x_{t+1})^{2}\pi(x_{1:T})\,\mathrm{d}x_{1:T} < \infty ∫ f ( x t , x t + 1 ) 2 π ( x 1 : T ) d x 1 : T < ∞ . Then
E M - B S { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) } ≤ E F M - B S { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) } ≤ E B S { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) } ≤ E A T { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) } . \mathbb{E}_{\mathrm{M\text{-}BS}}\{f(x_t,x_{t+1})f(\tilde{x}_t,\tilde{x}_{t+1})\}
\le\mathbb{E}_{\mathrm{FM\text{-}BS}}\{f(x_t,x_{t+1})f(\tilde{x}_t,\tilde{x}_{t+1})\}
\le\mathbb{E}_{\mathrm{BS}}\{f(x_t,x_{t+1})f(\tilde{x}_t,\tilde{x}_{t+1})\}
\le\mathbb{E}_{\mathrm{AT}}\{f(x_t,x_{t+1})f(\tilde{x}_t,\tilde{x}_{t+1})\}. E M - BS { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 )} ≤ E FM - BS { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 )} ≤ E BS { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 )} ≤ E AT { f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 )} . If, moreover, the particles at time t t t and those at time t + 1 t+1 t + 1 are almost surely pairwise distinct under π ˉ \bar{\pi} π ˉ , then the probabilities of { ( x ~ t , x ~ t + 1 ) ≠ ( x t , x t + 1 ) } \{(\tilde{x}_t,\tilde{x}_{t+1}) \ne(x_t,x_{t+1})\} {( x ~ t , x ~ t + 1 ) = ( x t , x t + 1 )} are nonincreasing from M-BS to FM-BS, BS, and AT, and are at least as large under CM-BS as under FM-BS.
The particles are pairwise distinct, for example, if X = R d \mathcal{X} = \mathbb{R}^{d} X = R d and d x \mathrm{d}x d x is Lebesgue measure. With φ ( i , i ′ ) : = f ( x t i , x t + 1 i ′ ) \varphi(i,i') := f(x_t^{i},x_{t+1}^{i'}) φ ( i , i ′ ) := f ( x t i , x t + 1 i ′ ) for i , i ′ ∈ [ N ] i,i' \in[N] i , i ′ ∈ [ N ] , by Lemma 4, the conditional expectation of f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) f(x_t,x_{t+1})f(\tilde{x}_t,\tilde{x}_{t+1}) f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) given x \mathbf{x} x , b t + 1 = j b_{t+1}=j b t + 1 = j , and l t + 1 = j ′ l_{t+1}=j' l t + 1 = j ′ is
∑ i , i ′ ∈ [ N ] B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) φ ( i , j ) φ ( i ′ , j ′ ) . (8) \sum_{i,i'\in[N]} B_t(i\mid j)K_{t,j,j'}(i,i')\varphi(i,j)\varphi(i',j'). \tag*{(8)} i , i ′ ∈ [ N ] ∑ B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) φ ( i , j ) φ ( i ′ , j ′ ) . (8)
For CM-BS and j ≠ j ′ j \ne j' j = j ′ , the functions φ ( ⋅ , j ) \varphi(\cdot,j) φ ( ⋅ , j ) and φ ( ⋅ , j ′ ) \varphi(\cdot,j') φ ( ⋅ , j ′ ) are applied in (8) to the two indices of C p , q C_{p,q} C p , q , where p = B t ( ⋅ ∣ j ) p=B_t(\cdot\mid j) p = B t ( ⋅ ∣ j ) and q = B t ( ⋅ ∣ j ′ ) q=B_t(\cdot\mid j') q = B t ( ⋅ ∣ j ′ ) . If φ ( ⋅ , j ′ ) = φ ( ⋅ , j ) \varphi(\cdot,j')=\varphi(\cdot,j) φ ( ⋅ , j ′ ) = φ ( ⋅ , j ) , Lemma 2 bounds (8) by its value for the independent coupling, but the inequality is reversed if φ ( ⋅ , j ′ ) = − φ ( ⋅ , j ) \varphi(\cdot,j')=-\varphi(\cdot,j) φ ( ⋅ , j ′ ) = − φ ( ⋅ , j ) , so that Corollary 1 does not compare the autocovariances of CM-BS with those of the other rules. Corollary 1 applies, for example, to the gradient of log m t + 1 ( x t , x t + 1 ) \log m_{t+1}(x_t,x_{t+1}) log m t + 1 ( x t , x t + 1 ) with respect to a parameter of the transition densities, whose expectations under π \pi π are the terms of the score in Fisher’s identity (Cappé, Moulines and Rydén, [5 ] ). It does not order the lag-one autocovariances of sums of such functions over t t t , which involve products of functions at different time steps.
The final forced move and the gains at every step
The recursion (7) explains the difference between FM-BS and the two rules which we propose. For FM-BS, the final forced move only affects Q t ( φ ) Q_t(\varphi) Q t ( φ ) through the value of Q T Q_T Q T at the function B T − 1 ⋯ B t φ B_{T-1}\cdots B_t\varphi B T − 1 ⋯ B t φ , because Q t ( φ ) = Q T ( B T − 1 ⋯ B t φ ) Q_t(\varphi)=Q_T(B_{T-1}\cdots B_t\varphi) Q t ( φ ) = Q T ( B T − 1 ⋯ B t φ ) . The backward-sampling kernels contract this function towards a constant. We measure this contraction by the Dobrushin coefficients (Dobrushin, [13 ] )
β s : = max j , j ′ ∈ [ N ] 1 2 ∑ i = 1 N ∣ B s ( i ∣ j ) − B s ( i ∣ j ′ ) ∣ , s ∈ [ T − 1 ] . \beta_s := \max_{j,j'\in[N]} \frac{1}{2}\sum_{i=1}^{N}\lvert B_s(i\mid j)-B_s(i\mid j')\rvert,\qquad s\in[T-1]. β s := j , j ′ ∈ [ N ] max 2 1 i = 1 ∑ N ∣ B s ( i ∣ j ) − B s ( i ∣ j ′ )∣ , s ∈ [ T − 1 ] .
Proposition 2. Let t ∈ [ T ] t \in[T] t ∈ [ T ] . Then
0 ≤ P F M - B S ( x ~ t ≠ x t ) − P B S ( x ~ t ≠ x t ) ≤ E ( ∏ s = t T − 1 β s ) , 0 \le\mathbb{P}_{\mathrm{FM\text{-}BS}}(\tilde{x}_t \ne x_t)-\mathbb{P}_{\mathrm{BS}}(\tilde{x}_t \ne x_t)\le\mathbb{E}\left(\prod_{s=t}^{T-1}\beta_s\right), 0 ≤ P FM - BS ( x ~ t = x t ) − P BS ( x ~ t = x t ) ≤ E ( s = t ∏ T − 1 β s ) , where the expectation is taken under π ˉ \bar{\pi} π ˉ . If there is ε ∈ ( 0 , 1 ] \varepsilon\in(0,1] ε ∈ ( 0 , 1 ] such that m s + 1 ( x , ⋅ ) ≥ ε m s + 1 ( x ′ ; ⋅ ) m_{s+1}(x,\cdot)\ge\varepsilon m_{s+1}(x';\cdot) m s + 1 ( x , ⋅ ) ≥ ε m s + 1 ( x ′ ; ⋅ ) for all x , x ′ ∈ X x,x'\in\mathcal{X} x , x ′ ∈ X and s ∈ [ T − 1 ] s\in[T-1] s ∈ [ T − 1 ] , then the right-hand side is at most ( 1 − ε ) T − t (1-\varepsilon)^{T-t} ( 1 − ε ) T − t .
Proposition 2 is related to the literature on the forgetting of particle filters (Del Moral, [12 ] ; Karjalainen et al., [22 ] ). The closest result that we know of is Karjalainen et al. [23 ] , who bound, under a strong mixing condition, a decoupling probability by a term which decays geometrically in the number of time steps plus a term of order 1 / N 1/N 1/ N .
By Proposition 2, unless the Dobrushin coefficients β s \beta_s β s are close to one, a final forced move only matters at the last time steps. When the model factorizes across time, that is, when m s + 1 ( x , x ′ ) m_{s+1}(x,x') m s + 1 ( x , x ′ ) does not depend on x x x , the condition of Proposition 2 holds with ε = 1 \varepsilon=1 ε = 1 , so that a final forced move does not change the update rates at the times t < T t<T t < T . For M-BS and CM-BS, by contrast, the recursion (7) adds the nonpositive term ∑ j , j ′ P x ( b t + 1 = j , l t + 1 = j ′ ) D t , j , j ′ ( φ ) \sum_{j,j'}\mathbb{P}_{x}(b_{t+1}=j,l_{t+1}=j')D_{t,j,j'}(\varphi) ∑ j , j ′ P x ( b t + 1 = j , l t + 1 = j ′ ) D t , j , j ′ ( φ ) at every time t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] . Proposition 3 bounds the resulting gain in update rate from below.
Proposition 3. Let t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] and assume that the particles x t 1 , … , x t N x_t^1,\ldots,x_t^N x t 1 , … , x t N are almost surely pairwise distinct under π ˉ \bar{\pi} π ˉ . For j , j ′ ∈ [ N ] j,j'\in[N] j , j ′ ∈ [ N ] , let
γ t ( j , j ′ ) : = ∑ i = 1 N B t ( i ∣ j ) { B t ( i ∣ j ′ ) − K t , j , j ′ ( i , i ) } . \gamma_t(j,j'):=\sum_{i=1}^{N}B_t(i\mid j)\{B_t(i\mid j')-K_{t,j,j'}(i,i)\}. γ t ( j , j ′ ) := i = 1 ∑ N B t ( i ∣ j ) { B t ( i ∣ j ′ ) − K t , j , j ′ ( i , i )} . with the kernels K t , j , j ′ K_{t,j,j'} K t , j , j ′ of M-BS. Then γ t ( j , j ′ ) ≥ 0 \gamma_t(j,j')\ge0 γ t ( j , j ′ ) ≥ 0 and
P M - B S ( x ~ t ≠ x t ) − P F M - B S ( x ~ t ≠ x t ) ≥ E M - B S { γ t ( b t + 1 , l t + 1 ) } . \mathbb{P}_{M\text{-}BS}(\tilde{x}_t\ne x_t)-\mathbb{P}_{FM\text{-}BS}(\tilde{x}_t\ne x_t)
\ge\mathbb{E}_{M\text{-}BS}\{\gamma_t(b_{t+1},l_{t+1})\}. P M - B S ( x ~ t = x t ) − P F M - B S ( x ~ t = x t ) ≥ E M - B S { γ t ( b t + 1 , l t + 1 )} . The same holds with CM-BS in place of M-BS, in both the kernels and the inequality.
The quantity γ t ( j , j ′ ) \gamma_t(j,j') γ t ( j , j ′ ) is the decrease of the probability that the output and the reference coincide at time t t t , given b t + 1 = j b_{t+1}=j b t + 1 = j and l t + 1 = j ′ l_{t+1}=j' l t + 1 = j ′ , when the draw of l t l_t l t by FM-BS is replaced by that of M-BS or CM-BS. For N = 2 N=2 N = 2 , γ t ( j , j ) = 2 { 1 − max i B t ( i ∣ j ) } 2 \gamma_t(j,j)=2\{1-\max_i B_t(i\mid j)\}^2 γ t ( j , j ) = 2 { 1 − max i B t ( i ∣ j ) } 2 for both rules. For j ≠ j ′ j\ne j' j = j ′ , γ t ( j , j ′ ) = 0 \gamma_t(j,j')=0 γ t ( j , j ′ ) = 0 for M-BS, whose gain is therefore made at the times at which the output and the reference coincide at the next time step, that is, when the sampler struggles to move. For CM-BS, the gain is also made at the other times, with γ t ( j , j ′ ) = 2 min i B t ( i ∣ j ) B t ( i ∣ j ′ ) \gamma_t(j,j')=2\min_i B_t(i\mid j)B_t(i\mid j') γ t ( j , j ′ ) = 2 min i B t ( i ∣ j ) B t ( i ∣ j ′ ) for N = 2 N=2 N = 2 and j ≠ j ′ j\ne j' j = j ′ .
Relationship with independent Metropolis–Hastings
With two particles, C p , p = F p C_{p,p}=F_p C p , p = F p for every probability vector p p p , so that CM-BS recovers the independent Metropolis–Hastings sampler at each time step when the model factorizes across time, whatever the weights.
Proposition 4. Let N = 2 N=2 N = 2 , and assume that, for s ∈ [ T − 1 ] s\in[T-1] s ∈ [ T − 1 ] , m s + 1 ( x , x ′ ) m_{s+1}(x,x') m s + 1 ( x , x ′ ) does not depend on x x x . Then, under CM-BS and conditionally on x x x and b 1 : T b_{1:T} b 1 : T , the indices l 1 , … , l T l_1,\ldots,l_T l 1 , … , l T are independent, with l t ∼ F W t ( b t , ⋅ ) l_t\sim F_{W_t}(b_t,\cdot) l t ∼ F W t ( b t , ⋅ ) .
With x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π and b 1 : T b_{1:T} b 1 : T given, the particles x t n x_t^n x t n , n ≠ b t n\ne b_t n = b t , are independent draws from m t m_t m t , whose weights relative to x t x_t x t are W t n / W t b t = g t ( x t n ) / g t ( x t ) W_t^n/W_t^{b_t}=g_t(x_t^n)/g_t(x_t) W t n / W t b t = g t ( x t n ) / g t ( x t ) . By Proposition 4, one iteration of CSMC with CM-BS therefore replaces each state x t x_t x t , independently, by the proposal x t n x_t^n x t n with probability min { 1 , g t ( x t n ) / g t ( x t ) } \min\{1,g_t(x_t^n)/g_t(x_t)\} min { 1 , g t ( x t n ) / g t ( x t )} : this is the independent Metropolis–Hastings sampler with proposal m t m_t m t at each time step. With M-BS, by contrast, the index at time t t t is drawn independently of b t b_t b t if l t + 1 ≠ b t + 1 l_{t+1}\ne b_{t+1} l t + 1 = b t + 1 , as with BS.
If the probabilities W T W_T W T and B t ( i ∣ j ) B_t(i\mid j) B t ( i ∣ j ) , t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , j ∈ [ N ] j\in[N] j ∈ [ N ] , are uniform, as when the potential functions are constant and m s + 1 ( x , x ′ ) m_{s+1}(x,x') m s + 1 ( x , x ′ ) does not depend on x x x , then the kernels F W t F_{W_t} F W t and F B t ( ⋅ ∣ j ) F_{B_t(\cdot\mid j)} F B t ( ⋅ ∣ j ) , and, for CM-BS, the kernels K t , j , j ′ K_{t,j,j'} K t , j , j ′ , never keep the current index, by (4) and (5) . By Lemma 4, l t ≠ b t l_t\ne b_t l t = b t almost surely for every t ∈ [ T ] t\in[T] t ∈ [ T ] under CM-BS, whereas P x ( l t = b t ) = 1 / N \mathbb{P}_x(l_t=b_t)=1/N P x ( l t = b t ) = 1/ N under BS, and under FM-BS for t < T t<T t < T . Under M-BS, also by Lemma 4, P x ( l T = b T ) = 0 \mathbb{P}_x(l_T=b_T)=0 P x ( l T = b T ) = 0 and, for t < T t<T t < T , the probability of { l t = b t } \{l_t=b_t\} { l t = b t } is that of { l t + 1 ≠ b t + 1 } \{l_{t+1}\ne b_{t+1}\} { l t + 1 = b t + 1 } divided by N N N , so that
P x ( l t = b t ) = 1 − ( − 1 / N ) T − t N + 1 . \mathbb{P}_x(l_t=b_t)=\frac{1-(-1/N)^{T-t}}{N+1}. P x ( l t = b t ) = N + 1 1 − ( − 1/ N ) T − t .
If the particles are pairwise distinct, every state is therefore updated under CM-BS, whereas each state is kept with probability 1 / N 1/N 1/ N under BS and, under M-BS, with a probability which tends to 1 / ( N + 1 ) 1/(N+1) 1/ ( N + 1 ) as T − t T-t T − t grows. With two particles, far from T T T , the moves of M-BS thus follow the Metropolis rule at about a third of the time steps, and the rule of Barker [3 ] at the others.
Illustration
We consider two state-space models. The first is a linear-Gaussian (LG) model with x 1 ∼ N ( 0 , σ 2 ( 1 − ρ 2 ) − 1 I d ) x_1 \sim\mathcal{N}(0,\sigma^2(1-\rho^2)^{-1}I_d) x 1 ∼ N ( 0 , σ 2 ( 1 − ρ 2 ) − 1 I d ) , x t ∣ x t − 1 ∼ N ( ρ x t − 1 , σ 2 I d ) x_t \mid x_{t-1} \sim\mathcal{N}(\rho x_{t-1},\sigma^2I_d) x t ∣ x t − 1 ∼ N ( ρ x t − 1 , σ 2 I d ) , and y t ∣ x t ∼ N ( x t , σ 2 I d ) y_t \mid x_t \sim\mathcal{N}(x_t,\sigma^2I_d) y t ∣ x t ∼ N ( x t , σ 2 I d ) , where ρ = 0.9 \rho=0.9 ρ = 0.9 , σ = 1 \sigma=1 σ = 1 , T = 200 T=200 T = 200 , and d ∈ { 1 , 3 } d \in\{1,3\} d ∈ { 1 , 3 } . The second is the nonlinear (NL) model of Gordon, Salmond and Smith [20 ] , in the form used by Andrieu, Doucet and Holenstein [1 ] : x 1 ∼ N ( 0 , 5 ) x_1 \sim\mathcal{N}(0,5) x 1 ∼ N ( 0 , 5 ) ,
x t ∣ x t − 1 ∼ N ( x t − 1 2 + 25 x t − 1 1 + x t − 1 2 + 8 cos ( 1.2 t ) , σ V 2 ) , x_t \mid x_{t-1} \sim\mathcal{N}\left(\frac{x_{t-1}}{2}+\frac{25x_{t-1}}{1+x_{t-1}^2}+8\cos(1.2t),\sigma_V^2\right), x t ∣ x t − 1 ∼ N ( 2 x t − 1 + 1 + x t − 1 2 25 x t − 1 + 8 cos ( 1.2 t ) , σ V 2 ) ,
y t ∣ x t ∼ N ( x t 2 20 , σ W 2 ) , y_t \mid x_t \sim\mathcal{N}\left(\frac{x_t^2}{20},\sigma_W^2\right), y t ∣ x t ∼ N ( 20 x t 2 , σ W 2 ) ,
with σ V 2 = 10 \sigma_V^2=10 σ V 2 = 10 , σ W 2 ∈ { 10 , 1 } \sigma_W^2 \in\{10,1\} σ W 2 ∈ { 10 , 1 } , and T = 100 T=100 T = 100 , as in Andrieu, Doucet and Holenstein [1 ] . Algorithm 1 uses the bootstrap filter, with m t m_t m t the transition density and g t ( x t ) = h t ( y t ∣ x t ) g_t(x_t)=h_t(y_t \mid x_t) g t ( x t ) = h t ( y t ∣ x t ) the observation density, so that the potential functions only depend on the current state.
We estimate the quantities compared in § 4 , which concern one iteration started from the target distribution. For each model and N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } N \in\{2,4,8,16,32,64\} N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } , we draw 10 6 10^6 1 0 6 data sets ( x 1 : T , y 1 : T ) (x_{1:T},y_{1:T}) ( x 1 : T , y 1 : T ) from the model, so that, given y 1 : T y_{1:T} y 1 : T , the trajectory x 1 : T x_{1:T} x 1 : T is distributed according to the smoothing distribution. For each data set, we run steps (a) and (b) of Algorithm 1 once with the reference x 1 : T x_{1:T} x 1 : T , apply the selection rules BS, FM-BS, M-BS, and CM-BS to the same particles, and record, for each rule and each t t t , the indicator of { l t ≠ b t } \{l_t \ne b_t\} { l t = b t } and the squared jump ∥ x ~ t − x t ∥ 2 \lVert\tilde{x}_t-x_t\rVert^2 ∥ x ~ t − x t ∥ 2 . Because the particles are almost surely pairwise distinct, { l t ≠ b t } = { x ~ t ≠ x t } \{l_t \ne b_t\}=\{\tilde{x}_t \ne x_t\} { l t = b t } = { x ~ t = x t } almost surely, so that the averages of these quantities over the data sets estimate the update rates and the ESJD, averaged over the distribution of the data under the model. Because the orderings of § 4 hold for every data set, they also hold for the expectations which these averages estimate. Standard errors are computed from 2,000 batches of 500 data sets, with the delta method for the ratios. Code to reproduce the experiments can be found at https://github.com/AdrienCorenflos/metropolized-backward-sampling-experiments. We do not show AT, which BS dominates (Theorem 1 and Chopin and Singh, [8 ] ).
In agreement with Proposition 2, the final forced move of FM-BS only matters at the last time steps (Figure 1 ): it increases the update rates by 2% to 72% at time T T T , but by less than 1% on average over the time steps. Appendix § 9 gives these averages for all the models and numbers of particles. In agreement with Theorem 1, M-BS and CM-BS increase the update rates and the ESJD at every time step in Figure 1 . On average over the time steps, M-BS increases them by 35% to 45% and by 26% to 33%, respectively, for N = 2 N=2 N = 2 , and by 4% to 13% and by 3% to 10% for N = 8 N=8 N = 8 . CM-BS increases them by 43% to 64% and by 37% to 46% for N = 2 N=2 N = 2 , and by 23% to 35% and by 14% to 21% for N = 8 N=8 N = 8 , so that its averages exceed those of M-BS for all the models and numbers of particles. With stratified resampling and ancestor sampling of the reference, the increases of the update rates for N = 2 N=2 N = 2 are the same, 35% to 45% for M-BS and 43% to 64% for CM-BS (Appendix E). The gains decrease as N N N grows, because BS then already moves with high probability.
Figure 1. Update rates (top) and ESJD (bottom) of forced move plus backward sampling (FM-BS), Metropolized backward sampling (M-BS), and coupled Metropolized backward sampling (CM-BS), relative to those of backward sampling (BS), at each time step t t t , on the linear-Gaussian (LG) model with T = 200 T = 200 T = 200 and the nonlinear (NL) model with T = 100 T = 100 T = 100 : FM-BS with N = 2 N = 2 N = 2 (——) and N = 8 N = 8 N = 8 (⋯⋯⋯), M-BS with N = 2 N = 2 N = 2 (——) and N = 8 N = 8 N = 8 (⋯⋯⋯), and CM-BS with N = 2 N = 2 N = 2 (——) and N = 8 N = 8 N = 8 (⋯⋯⋯). The ratios are those of the averages over 10 6 10^{6} 1 0 6 data sets drawn from the model, with one iteration for each data set, started from the trajectory drawn with the data. The shaded bands extend two standard errors on each side of the ratios. For the NL model, the ratios oscillate with the time-dependent term 8 cos ( 1.2 t ) 8\cos(1.2t) 8 cos ( 1.2 t ) of the transition.
Discussion
M-BS replaces each draw l t ∼ B t ( ⋅ ∣ l t + 1 ) l_t \sim B_t(\cdot\mid l_{t+1}) l t ∼ B t ( ⋅ ∣ l t + 1 ) of BS by a forced move from the ancestor a t l t + 1 a_t^{l_{t+1}} a t l t + 1 , at no additional cost, and keeps the reversibility of BS. CM-BS also avoids the index b t b_t b t of the reference when l t + 1 ≠ b t + 1 l_{t+1} \ne b_{t+1} l t + 1 = b t + 1 , by replacing the draw of BS by a forced move from b t b_t b t when it equals b t b_t b t . Its backward pass costs at most twice as much as that of BS. Their gains are largest when the index of the reference is often selected again by BS, that is, for small numbers of particles or for uneven weights, which is the regime of interest when each particle is expensive to propagate or to weight. Small numbers of particles also arise in high dimensions, where the number of particles of CSMC can be traded for locality by proposing the particles around the reference (Finke and Thiery, [16 ] ; Corenflos and Finke [9 ] ): this forms the original motivation for this work.
The analysis we presented here relies on multinomial resampling and on potential functions which depend on the current state only. Together, they make the ancestor indices conditionally independent given the particle positions (Lemma 3), from which the backward Markov chain of Lemma 4, and hence both the reversibility and the recursion (7) , follow. With potential functions which depend on two states, as for guided particle filters, or with conditional versions of other resampling schemes (Chopin and Singh, [8 ] ; Karppinen, Singh and Vihola, [24 ] ; Finke et al., [17 ] ), this conditional independence fails. Appendix § 10 follows the general conditional resampling approach of Finke et al. [17 ] : the ancestor index of each state of the reference is drawn by ancestor sampling (Lindsten, Jordan and Schön, [27 ] ) in the forward pass, without additional cost. Conditionally on the particle positions and the ancestor indices, the backward Markov chain of Lemma 4 is then recovered, so that the reversibility and the results of § 4.1 and § 4.2 extend to these settings. Without ancestor sampling, the forced moves of FM-BS and M-BS from the ancestors still leave the target distribution invariant, which extends the duality of backward and ancestor sampling (Finke, [15 ] ) to forced moves. On the linear-Gaussian model of § 5 with the locally optimal proposal (Doucet, Godsill and Andrieu, [14 ] ), whose potential functions depend on the previous state, and with ancestor sampling, the update rates and the ESJD of the four selection rules are ordered as in Theorem 1, and CM-BS updates the states 49% to 66% more often than BS with two particles (Appendix D). Theorem 1 and Corollary 1 concern functions of the states at one or two consecutive time steps, except for the autocovariances of CM-BS at two time steps: whether M-BS or CM-BS dominates BS for all square-integrable functions of the trajectory, which would order the asymptotic variances (Tierney, [32 ] ; Mira [30 ] ), remains open, as does the comparison of M-BS and CM-BS.
As a rule of thumb, we recommend M-BS. It dominates BS in the sense of Theorem 1 at exactly the same cost. For potential functions of the previous state and other resampling schemes, it remains valid with the same forward pass, whereas CM-BS then requires ancestor sampling of the reference and therefore a different implementation of the forward pass. The backward pass of CM-BS also costs up to twice as much as that of BS. CM-BS is worth its additional cost when the potential functions are much more expensive to evaluate than the transition densities, because the forward pass then dominates the cost of an iteration, while the backward pass only evaluates transition densities. This is the case, for example, in approximate Bayesian computation for hidden Markov models whose observation densities are intractable but can be simulated ([21 , 11 ] ).
Finally, M-BS and CM-BS only change how each backward index is drawn. They can therefore be combined with other improvements of backward sampling, such as the bridge backward sampling of Karppinen, Singh and Vihola [24 ] . By the duality of backward and ancestor sampling, the forced moves of M-BS correspond to forced moves of the ancestor index b t b t + 1 b_t^{b_{t+1}} b t b t + 1 of the reference, started from b t b_t b t , which are allowed in particle Gibbs with ancestor sampling ([27 Section 6.1] ).
References
Proofs
This appendix gives the proofs of our results, in the order in which they appear.
Proof of Lemma 2. Let u : = p ⊙ q u := p \odot q u := p ⊙ q , so that q ⊙ p = u q \odot p = u q ⊙ p = u . By the first part of Lemma 1 if u ≠ 0 u \ne0 u = 0 , and trivially if u = 0 u = 0 u = 0 , u i F u ( i , i ′ ) = u i ′ F u ( i ′ , i ) u_iF_u(i,i') = u_{i'}F_u(i',i) u i F u ( i , i ′ ) = u i ′ F u ( i ′ , i ) for all i , i ′ ∈ [ N ] i,i' \in[N] i , i ′ ∈ [ N ] . It follows from (5) that, for i ≠ i ′ i \ne i' i = i ′ ,
p i C p , q ( i , i ′ ) = p i q i ′ + u i F u ( i , i ′ ) = p i q i ′ + u i ′ F u ( i ′ , i ) = q i ′ C q , p ( i ′ , i ) , p_i C_{p,q}(i,i') = p_iq_{i'} + u_iF_u(i,i')
= p_iq_{i'} + u_{i'}F_u(i',i) = q_{i'}C_{q,p}(i',i), p i C p , q ( i , i ′ ) = p i q i ′ + u i F u ( i , i ′ ) = p i q i ′ + u i ′ F u ( i ′ , i ) = q i ′ C q , p ( i ′ , i ) ,
whereas p i C p , q ( i , i ) = u i F u ( i , i ) = q i C q , p ( i , i ) p_iC_{p,q}(i,i) = u_iF_u(i,i) = q_iC_{q,p}(i,i) p i C p , q ( i , i ) = u i F u ( i , i ) = q i C q , p ( i , i ) . The second part follows from C p , q ( i , i ′ ) = q i ′ + q i ′ F u ( i , i ′ ) C_{p,q}(i,i') = q_{i'} + q_{i'}F_u(i,i') C p , q ( i , i ′ ) = q i ′ + q i ′ F u ( i , i ′ ) for i ≠ i ′ i \ne i' i = i ′ . For the third part, the coefficients p i { C p , q ( i , i ′ ) − q i ′ } p_i\{C_{p,q}(i,i') - q_{i'}\} p i { C p , q ( i , i ′ ) − q i ′ } , i , i ′ ∈ [ N ] i,i' \in[N] i , i ′ ∈ [ N ] , sum to zero over i ′ i' i ′ for every i i i , because C p , q C_{p,q} C p , q is a Markov kernel, and over i i i for every i ′ i' i ′ , because ∑ i p i C p , q ( i , i ′ ) = q i ′ ∑ i C q , p ( i ′ , i ) = q i ′ \sum_i p_iC_{p,q}(i,i') = q_{i'}\sum_i C_{q,p}(i',i) = q_{i'} ∑ i p i C p , q ( i , i ′ ) = q i ′ ∑ i C q , p ( i ′ , i ) = q i ′ by the first part. Because ⟨ φ , C p , q φ ⟩ p = p ( φ ) q ( φ ) \langle\varphi,C_{p,q}\varphi\rangle_p = p(\varphi)q(\varphi) ⟨ φ , C p , q φ ⟩ p = p ( φ ) q ( φ ) and the coefficients times { φ ( i ) − φ ( i ′ ) } 2 = φ ( i ) 2 + φ ( i ′ ) 2 − 2 φ ( i ) φ ( i ′ ) \{\varphi(i)-\varphi(i')\}^2 = \varphi(i)^2+\varphi(i')^2-2\varphi(i)\varphi(i') { φ ( i ) − φ ( i ′ ) } 2 = φ ( i ) 2 + φ ( i ′ ) 2 − 2 φ ( i ) φ ( i ′ ) , whose first two terms contribute zero to the sum, gives
⟨ φ , C p , q φ ⟩ p − p ( φ ) q ( φ ) = − 1 2 ∑ i ≠ i ′ p i { C p , q ( i , i ′ ) − q i ′ } { φ ( i ) − φ ( i ′ ) } 2 , \langle\varphi,C_{p,q}\varphi\rangle_p-p(\varphi)q(\varphi)
= -\frac{1}{2}\sum_{i\ne i'}p_i\{C_{p,q}(i,i')-q_{i'}\}\{\varphi(i)-\varphi(i')\}^2, ⟨ φ , C p , q φ ⟩ p − p ( φ ) q ( φ ) = − 2 1 i = i ′ ∑ p i { C p , q ( i , i ′ ) − q i ′ } { φ ( i ) − φ ( i ′ ) } 2 ,
where the terms with i = i ′ i=i' i = i ′ vanish. The right-hand side is nonpositive by the second part. □ \square □
Proof of Lemma 3. This proof is not ours and is provided for completeness and ease of reference. We collect arguments from Andrieu, Doucet and Holenstein [1 ] in the form of Chopin and Singh [8 ] , § 2.3 and Chopin and Singh [8 ] , proof of Proposition 9. Steps (a) and (b) of Algorithm 1 draw b 1 : T b_{1:T} b 1 : T with probability N − T N^{-T} N − T , then x 1 n ∼ m 1 x_1^n \sim m_1 x 1 n ∼ m 1 for n ≠ b 1 n \ne b_1 n = b 1 , and, for 2 ≤ t ≤ T 2 \le t \le T 2 ≤ t ≤ T and n ≠ b t n \ne b_t n = b t , a t − 1 n ∼ W t − 1 a_{t-1}^n \sim W_{t-1} a t − 1 n ∼ W t − 1 and x t n ∼ m t ( x t − 1 a t − 1 n , ⋅ ) x_t^n \sim m_t(x_{t-1}^{a_{t-1}^n},\cdot) x t n ∼ m t ( x t − 1 a t − 1 n , ⋅ ) , with a t − 1 b t = b t − 1 a_{t-1}^{b_t}=b_{t-1} a t − 1 b t = b t − 1 . With x 1 : T ∼ π x_{1:T} \sim\pi x 1 : T ∼ π , on the set where a t − 1 b t = b t − 1 a_{t-1}^{b_t}=b_{t-1} a t − 1 b t = b t − 1 for 2 ≤ t ≤ T 2 \le t \le T 2 ≤ t ≤ T , the variables ( x , a , b 1 : T ) (x,a,b_{1:T}) ( x , a , b 1 : T ) therefore have the density
π ( x 1 b 1 , … , x T b T ) 1 N T ∏ n ≠ b 1 m 1 ( x 1 n ) × ∏ t = 2 T ∏ n ≠ b t W t − 1 a t − 1 n m t ( x t − 1 a t − 1 n , x t n ) . \pi\left(x_1^{b_1},\ldots,x_T^{b_T}\right)\frac{1}{N^T}\prod_{n\ne b_1}m_1(x_1^n)
\times\prod_{t=2}^{T}\prod_{n\ne b_t}W_{t-1}^{a_{t-1}^n}m_t\left(x_{t-1}^{a_{t-1}^n},x_t^n\right). π ( x 1 b 1 , … , x T b T ) N T 1 n = b 1 ∏ m 1 ( x 1 n ) × t = 2 ∏ T n = b t ∏ W t − 1 a t − 1 n m t ( x t − 1 a t − 1 n , x t n ) .
The factors m 1 ( x 1 b 1 ) m_1(x_1^{b_1}) m 1 ( x 1 b 1 ) and m t ( x t − 1 b t − 1 , x t b t ) m_t(x_{t-1}^{b_{t-1}},x_t^{b_t}) m t ( x t − 1 b t − 1 , x t b t ) of (1) complete the products over n n n , because x t − 1 b t − 1 = x t − 1 a t − 1 b t x_{t-1}^{b_{t-1}}=x_{t-1}^{a_{t-1}^{b_t}} x t − 1 b t − 1 = x t − 1 a t − 1 b t . By the definition of the weights, g t ( x t b t ) = W t b t ∑ i = 1 N g t ( x t i ) g_t(x_t^{b_t})=W_t^{b_t}\sum_{i=1}^{N}g_t(x_t^i) g t ( x t b t ) = W t b t ∑ i = 1 N g t ( x t i ) for t ∈ [ T ] t\in[T] t ∈ [ T ] , and, because b t − 1 = a t − 1 b t b_{t-1}=a_{t-1}^{b_t} b t − 1 = a t − 1 b t ,
∏ t = 1 T W t b t = W T b T ∏ t = 2 T W t − 1 a t − 1 b t . \prod_{t=1}^{T}W_t^{b_t}=W_T^{b_T}\prod_{t=2}^{T}W_{t-1}^{a_{t-1}^{b_t}}. t = 1 ∏ T W t b t = W T b T t = 2 ∏ T W t − 1 a t − 1 b t .
which completes the products of the weights over n n n . The density is therefore (6) . Because b t − 1 = a t − 1 b t b_{t-1}=a_{t-1}^{b_t} b t − 1 = a t − 1 b t , the indices b 1 : T − 1 b_{1:T-1} b 1 : T − 1 are functions of a a a and b T b_T b T , so that ( x , a , b T ) ∼ π ˉ (x,a,b_T)\sim\bar{\pi} ( x , a , b T ) ∼ π ˉ and x 1 : T x_{1:T} x 1 : T is the trajectory traced back from b T b_T b T . Because the weights depend on x x x only, (6) , as a function of ( a , b T ) (a,b_T) ( a , b T ) , proportional to
W T b T ∏ t = 2 T ∏ n = 1 N W t − 1 a t − 1 n m t ( x t − 1 a t − 1 n , x t n ) , W_T^{b_T}\prod_{t=2}^{T}\prod_{n=1}^{N}W_{t-1}^{a_{t-1}^n}m_t\left(x_{t-1}^{a_{t-1}^n},x_t^n\right), W T b T t = 2 ∏ T n = 1 ∏ N W t − 1 a t − 1 n m t ( x t − 1 a t − 1 n , x t n ) ,
which gives the second part, by (2) .
Proof of Lemma 4. By Lemma 3, ( x , a , b T ) ∼ π ˉ (x,a,b_T)\sim\bar{\pi} ( x , a , b T ) ∼ π ˉ , so that, conditionally on x x x , b T ∼ W T b_T\sim W_T b T ∼ W T , and the first claim follows from Algorithm 1.c. Let t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] . The indices ( b t + 1 : T , l t + 1 : T ) (b_{t+1:T},l_{t+1:T}) ( b t + 1 : T , l t + 1 : T ) are functions of b T b_T b T , of the ancestor indices a s n a_s^n a s n with s > t s>t s > t , and of the draws of steps (c) and (d) of Algorithm 1 at the times s > t s>t s > t , also with the draws l s ∼ K s , l s + 1 , l s + 1 ( a s l s + 1 , ⋅ ) l_s\sim K_{s,l_{s+1},l_{s+1}}(a_{s}^{l_{s+1}},\cdot) l s ∼ K s , l s + 1 , l s + 1 ( a s l s + 1 , ⋅ ) . By Lemma 3, conditionally on x x x and on these variables, the indices a t n a_t^n a t n , n ∈ [ N ] n\in[N] n ∈ [ N ] , are therefore independent, with the distributions B t ( ⋅ ∣ n ) B_t(\cdot\mid n) B t ( ⋅ ∣ n ) . Hence b t = a t b t + 1 ∼ B t ( ⋅ ∣ b t + 1 ) b_t=a_t^{b_{t+1}}\sim B_t(\cdot\mid b_{t+1}) b t = a t b t + 1 ∼ B t ( ⋅ ∣ b t + 1 ) . By Algorithm 1.d, given also ( a t n ) n ∈ [ N ] (a_t^n)_{n\in[N]} ( a t n ) n ∈ [ N ] , l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) l_t\sim K_{t,b_{t+1},l_{t+1}}(b_t,\cdot) l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) , which depends on these indices only through b t b_t b t . With l t ∼ K t , l t + 1 , l t + 1 ( a t l t + 1 , ⋅ ) l_t\sim K_{t,l_{t+1},l_{t+1}}(a_t^{l_{t+1}},\cdot) l t ∼ K t , l t + 1 , l t + 1 ( a t l t + 1 , ⋅ ) instead, l t ∼ K t , b t + 1 , b t + 1 ( b t , ⋅ ) l_t\sim K_{t,b_{t+1},b_{t+1}}(b_t,\cdot) l t ∼ K t , b t + 1 , b t + 1 ( b t , ⋅ ) if l t + 1 = b t + 1 l_{t+1}=b_{t+1} l t + 1 = b t + 1 , because then a t l t + 1 = b t a_t^{l_{t+1}}=b_t a t l t + 1 = b t . If l t + 1 ≠ b t + 1 l_{t+1}\ne b_{t+1} l t + 1 = b t + 1 , then a t l t + 1 a_t^{l_{t+1}} a t l t + 1 is independent of b t b_t b t , with the distribution B t ( ⋅ ∣ l t + 1 ) B_t(\cdot\mid l_{t+1}) B t ( ⋅ ∣ l t + 1 ) , which is invariant for K t , l t + 1 , l t + 1 K_{t,l_{t+1},l_{t+1}} K t , l t + 1 , l t + 1 , so that l t l_t l t is independent of b t b_t b t , with the distribution B t ( ⋅ ∣ l t + 1 ) = K t , b t + 1 , l t + 1 ( b t , ⋅ ) B_t(\cdot\mid l_{t+1})=K_{t,b_{t+1},l_{t+1}}(b_t,\cdot) B t ( ⋅ ∣ l t + 1 ) = K t , b t + 1 , l t + 1 ( b t , ⋅ ) . In all cases, these distributions depend on the conditioning variables only through x x x , b t + 1 b_{t+1} b t + 1 , and l t + 1 l_{t+1} l t + 1 , which proves the claim.
Proof of Proposition 1. Let x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π and run Algorithm 1, so that x t = x t b t x_t=x_t^{b_t} x t = x t b t and x ~ t = x t l t \tilde{x}_t=x_t^{l_t} x ~ t = x t l t for t ∈ [ T ] t\in[T] t ∈ [ T ] . By Lemma 4, conditionally on x x x , the pairs ( b t , l t ) (b_t,l_t) ( b t , l t ) , t = T , … , 1 t=T,\ldots,1 t = T , … , 1 , form a Markov chain on [ N ] 2 [N]^2 [ N ] 2 . Its initial distribution W T i K T ( i , j ) W_T^iK_T(i,j) W T i K T ( i , j ) is symmetric in ( i , j ) (i,j) ( i , j ) , by the reversibility of K T K_T K T . At time t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , its transition from ( j , j ′ ) (j,j') ( j , j ′ ) to ( i , i ′ ) (i,i') ( i , i ′ ) has the probability B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) B_t(i\mid j)K_{t,j,j'}(i,i') B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) , which, by (3) , does not change when ( i , j ) (i,j) ( i , j ) and ( i ′ , j ′ ) (i',j') ( i ′ , j ′ ) are exchanged. Hence, conditionally on x x x , the distribution of ( b 1 : T , l 1 : T ) (b_{1:T},l_{1:T}) ( b 1 : T , l 1 : T ) does not change when b 1 : T b_{1:T} b 1 : T and l 1 : T l_{1:T} l 1 : T are exchanged. The pairs ( x 1 : T ; x ~ 1 : T ) (x_{1:T};\tilde{x}_{1:T}) ( x 1 : T ; x ~ 1 : T ) and ( x ~ 1 : T , x 1 : T ) (\tilde{x}_{1:T},x_{1:T}) ( x ~ 1 : T , x 1 : T ) hence have the same distribution, that is, the Markov kernel defined by Algorithm 1 is reversible with respect to π \pi π .
Proof of Theorem 1. We show, by backward induction on t t t , that, for every φ : [ N ] → R \varphi:[N]\to\mathbb{R} φ : [ N ] → R ,
Q t M - B S ( φ ) ≤ Q t F M - B S ( φ ) ≤ Q t B S ( φ ) ≤ Q t A T ( φ ) , (9) Q_t^{\mathrm{M\text{-}BS}}(\varphi)\le Q_t^{\mathrm{FM\text{-}BS}}(\varphi)\le Q_t^{\mathrm{BS}}(\varphi)\le Q_t^{\mathrm{AT}}(\varphi), \tag*{(9)} Q t M - BS ( φ ) ≤ Q t FM - BS ( φ ) ≤ Q t BS ( φ ) ≤ Q t AT ( φ ) , (9)
and Q t C M - B S ( φ ) ≤ Q t F M - B S ( φ ) Q_t^{\mathrm{CM\text{-}BS}}(\varphi) \le Q_t^{\mathrm{FM\text{-}BS}}(\varphi) Q t CM - BS ( φ ) ≤ Q t FM - BS ( φ ) , where the superscripts indicate the selection rule. For t = T t=T t = T , by Lemma 1,
Q T M - B S ( φ ) = Q T C M - B S ( φ ) = Q T F M - B S ( φ ) = ⟨ φ , F W T φ ⟩ W T ≤ W T ( φ ) 2 , \begin{aligned}
Q_T^{\mathrm{M\text{-}BS}}(\varphi)=Q_T^{\mathrm{CM\text{-}BS}}(\varphi)=Q_T^{\mathrm{FM\text{-}BS}}(\varphi)=\langle\varphi,\mathbf{F}_{\mathbf{W}_T}\varphi\rangle_{\mathbf{W}_T} \\
&\le\mathbf{W}_T(\varphi)^2,
\end{aligned} Q T M - BS ( φ ) = Q T CM - BS ( φ ) = Q T FM - BS ( φ ) = ⟨ φ , F W T φ ⟩ W T ≤ W T ( φ ) 2 ,
and W T ( φ ) 2 = Q T B S ( φ ) = Q T A T ( φ ) \mathbf{W}_T(\varphi)^2=Q_T^{\mathrm{BS}}(\varphi)=Q_T^{\mathrm{AT}}(\varphi) W T ( φ ) 2 = Q T BS ( φ ) = Q T AT ( φ ) . Assume that the claim holds at time t + 1 t+1 t + 1 . By (7) and the signs of D t , j , j ′ D_{t,j,j'} D t , j , j ′ , for M-BS and, in the same way, for CM-BS,
Q t M - B S ( φ ) ≤ Q t + 1 M - B S ( B t φ ) ≤ Q t + 1 F M - B S ( B t φ ) = Q t F M - B S ( φ ) , Q_t^{\mathrm{M\text{-}BS}}(\varphi)\le Q_{t+1}^{\mathrm{M\text{-}BS}}(B_t\varphi)\le Q_{t+1}^{\mathrm{FM\text{-}BS}}(B_t\varphi)=Q_t^{\mathrm{FM\text{-}BS}}(\varphi), Q t M - BS ( φ ) ≤ Q t + 1 M - BS ( B t φ ) ≤ Q t + 1 FM - BS ( B t φ ) = Q t FM - BS ( φ ) ,
Q t F M - B S ( φ ) = Q t + 1 F M - B S ( B t φ ) ≤ Q t + 1 B S ( B t φ ) = Q t B S ( φ ) , Q_t^{\mathrm{FM\text{-}BS}}(\varphi)=Q_{t+1}^{\mathrm{FM\text{-}BS}}(B_t\varphi)\le Q_{t+1}^{\mathrm{BS}}(B_t\varphi)=Q_t^{\mathrm{BS}}(\varphi), Q t FM - BS ( φ ) = Q t + 1 FM - BS ( B t φ ) ≤ Q t + 1 BS ( B t φ ) = Q t BS ( φ ) ,
Q t B S ( φ ) = Q t + 1 B S ( B t φ ) ≤ Q t + 1 A T ( B t φ ) ≤ Q t A T ( φ ) . Q_t^{\mathrm{BS}}(\varphi)=Q_{t+1}^{\mathrm{BS}}(B_t\varphi)\le Q_{t+1}^{\mathrm{AT}}(B_t\varphi)\le Q_t^{\mathrm{AT}}(\varphi). Q t BS ( φ ) = Q t + 1 BS ( B t φ ) ≤ Q t + 1 AT ( B t φ ) ≤ Q t AT ( φ ) .
With φ ( i ) : = f ( x t i ) \varphi(i):=f(x_t^i) φ ( i ) := f ( x t i ) , we have f ( x t ) f ( x ~ t ) = φ ( b t ) φ ( l t ) f(x_t)f(\widetilde{x}_t)=\varphi(b_t)\varphi(l_t) f ( x t ) f ( x t ) = φ ( b t ) φ ( l t ) , so that E x { f ( x t ) f ( x ~ t ) } = Q t ( φ ) \mathbb{E}_{\mathbf{x}}\{f(x_t)f(\widetilde{x}_t)\}=Q_t(\varphi) E x { f ( x t ) f ( x t )} = Q t ( φ ) , whose expectation under the distribution of x \mathbf{x} x , which does not depend on the selection rule, is the expectation in Theorem 1. These expectations are finite, because 2 ∣ f ( x t ) f ( x ~ t ) ∣ 2\lvert f(x_t)f(\widetilde{x}_t)\rvert 2 ∣ f ( x t ) f ( x t )∣ is at most f ( x t ) 2 + f ( x ~ t ) 2 f(x_t)^2+f(\widetilde{x}_t)^2 f ( x t ) 2 + f ( x t ) 2 , where x ~ 1 : T ∼ π \widetilde{x}_{1:T}\sim\pi x 1 : T ∼ π by Proposition 1. Given x \mathbf{x} x , the event { x ~ t = x t } \{\widetilde{x}_t=x_t\} { x t = x t } is the disjoint union of the events { b t ∈ S , l t ∈ S } \{b_t\in S,l_t\in S\} { b t ∈ S , l t ∈ S } over the classes S ⊆ [ N ] S\subseteq[N] S ⊆ [ N ] of indices whose particles at time t t t are equal, so that P x ( x ~ t = x t ) = ∑ S Q t ( 1 S ) \mathbb{P}_{\mathbf{x}}(\widetilde{x}_t=x_t)=\sum_S Q_t(1_S) P x ( x t = x t ) = ∑ S Q t ( 1 S ) , which is ordered by (9) . So is its expectation under the distribution of x \mathbf{x} x , which does not depend on the selection rule. ∎
Proof of Corollary 1. Let φ ( i , i ′ ) : = f ( x t i , x t + 1 i ′ ) \varphi(i,i'):=f(x_t^i,x_{t+1}^{i'}) φ ( i , i ′ ) := f ( x t i , x t + 1 i ′ ) for i , i ′ ∈ [ N ] i,i'\in[N] i , i ′ ∈ [ N ] , so that
f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) = φ ( b t , b t + 1 ) φ ( l t , l t + 1 ) . f(x_t,x_{t+1})f(\widetilde{x}_t,\widetilde{x}_{t+1})=\varphi(b_t,b_{t+1})\varphi(l_t,l_{t+1}). f ( x t , x t + 1 ) f ( x t , x t + 1 ) = φ ( b t , b t + 1 ) φ ( l t , l t + 1 ) .
By Lemma 4, its conditional expectation given x \mathbf{x} x , b t + 1 = j b_{t+1}=j b t + 1 = j , and l t + 1 = j ′ l_{t+1}=j' l t + 1 = j ′ is (8) . With χ ( j ) : = ∑ i B t ( i ∣ j ) φ ( i , j ) \chi(j):=\sum_i B_t(i\mid j)\varphi(i,j) χ ( j ) := ∑ i B t ( i ∣ j ) φ ( i , j ) , this is χ ( j ) χ ( j ′ ) \chi(j)\chi(j') χ ( j ) χ ( j ′ ) for BS and FM-BS, and also for AT and M-BS if j ≠ j ′ j\ne j' j = j ′ . For j = j ′ j=j' j = j ′ , it is ∑ i B t ( i ∣ j ) φ ( i , j ) 2 ≥ χ ( j ) 2 \sum_i B_t(i\mid j)\varphi(i,j)^2\ge\chi(j)^2 ∑ i B t ( i ∣ j ) φ ( i , j ) 2 ≥ χ ( j ) 2 for AT, and at most χ ( j ) 2 \chi(j)^2 χ ( j ) 2 for M-BS, by the third part of Lemma 1. Hence the conditional expectation of φ ( b t , b t + 1 ) φ ( l t , l t + 1 ) \varphi(b_t,b_{t+1})\varphi(l_t,l_{t+1}) φ ( b t , b t + 1 ) φ ( l t , l t + 1 ) given x \mathbf{x} x is Q t + 1 ( χ ) Q_{t+1}(\chi) Q t + 1 ( χ ) for BS and FM-BS, at least Q t + 1 A T ( χ ) Q_{t+1}^{\mathrm{AT}}(\chi) Q t + 1 AT ( χ ) for AT, and at most Q t + 1 M - B S ( χ ) Q_{t+1}^{\mathrm{M\text{-}BS}}(\chi) Q t + 1 M - BS ( χ ) for M-BS, so that it is ordered as claimed, by (9) at time t + 1 t+1 t + 1 . The first claim follows by taking expectations under the distribution of x \mathbf{x} x , which does not depend on the selection rule. These expectations are finite, because 2 ∣ f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) ∣ 2\lvert f(x_t,x_{t+1})f(\widetilde{x}_t,\widetilde{x}_{t+1})\rvert 2 ∣ f ( x t , x t + 1 ) f ( x t , x t + 1 )∣ is at most f ( x t , x t + 1 ) 2 + f ( x ~ t , x ~ t + 1 ) 2 f(x_t,x_{t+1})^2+f(\widetilde{x}_t,\widetilde{x}_{t+1})^2 f ( x t , x t + 1 ) 2 + f ( x t , x t + 1 ) 2 , where x ~ 1 : T ∼ π \widetilde{x}_{1:T}\sim\pi x 1 : T ∼ π by Proposition 1. If the particles are pairwise distinct, then x ~ t = x t \widetilde{x}_t=x_t x t = x t and x ~ t + 1 = x t + 1 \widetilde{x}_{t+1}=x_{t+1} x t + 1 = x t + 1 if and only if b t = l t b_t=l_t b t = l t and b t + 1 = l t + 1 b_{t+1}=l_{t+1} b t + 1 = l t + 1 , almost surely, and, by Lemma 4,
P x ( b t = l t , b t + 1 = l t + 1 ) = ∑ j = 1 N P x ( b t + 1 = l t + 1 = j ) ∑ i = 1 N B t ( i ∣ j ) K t , j , j ( i , i ) . \begin{aligned}
\mathbb{P}_{\mathbf{x}}(b_t=l_t,b_{t+1}=l_{t+1}) \\
&=\sum_{j=1}^{N}\mathbb{P}_{\mathbf{x}}(b_{t+1}=l_{t+1}=j)\sum_{i=1}^{N}B_t(i\mid j)K_{t,j,j}(i,i).
\end{aligned} P x ( b t = l t , b t + 1 = l t + 1 ) = j = 1 ∑ N P x ( b t + 1 = l t + 1 = j ) i = 1 ∑ N B t ( i ∣ j ) K t , j , j ( i , i ) .
By (9) at time t + 1 t+1 t + 1 with φ = 1 { j } \varphi=1_{\{j\}} φ = 1 { j } , the first factor is nondecreasing from M-BS to FM-BS, BS, and AT, and at most as large under CM-BS as under FM-BS. So is the second factor, which is the same under M-BS and CM-BS, because F p ( i , i ) = 1 − ∑ i ′ ≠ i F p ( i , i ′ ) ≤ p i F_p(i,i)=1-\sum_{i'\ne i}F_p(i,i')\le p_i F p ( i , i ) = 1 − ∑ i ′ = i F p ( i , i ′ ) ≤ p i by the second part of Lemma 1. Since both factors are nonnegative, the second claim follows by taking expectations. ∎
Proof of Proposition 2. For i ∈ [ N ] i\in[N] i ∈ [ N ] , let ψ i : = B T − 1 ⋯ B t + 1 { i } \psi_i:=B_{T-1}\cdots B_{t+1}\{i\} ψ i := B T − 1 ⋯ B t + 1 { i } , so that ψ i ( j ) \psi_i(j) ψ i ( j ) is the probability that the backward chain with the kernels B s B_s B s , started from j j j at time T T T , is at i i i at time t t t , and, for S ⊆ [ N ] S\subseteq[N] S ⊆ [ N ] , let ψ S : = ∑ i ∈ S ψ i = B T − 1 ⋯ B t + 1 1 S \psi_S:=\sum_{i\in S}\psi_i=B_{T-1}\cdots B_{t+1}1_S ψ S := ∑ i ∈ S ψ i = B T − 1 ⋯ B t + 1 1 S . As in the proof of Theorem 1, P x ( x ~ t = x t ) = ∑ S Q t ( 1 S ) \mathbb{P}_{\mathbf{x}}(\widetilde{x}_t=x_t)=\sum_S Q_t(1_S) P x ( x t = x t ) = ∑ S Q t ( 1 S ) , where the sum is over the classes S S S of indices whose particles at time t t t are equal. For BS and FM-BS, Q t ( 1 S ) = Q T ( ψ S ) Q_t(1_S)=Q_T(\psi_S) Q t ( 1 S ) = Q T ( ψ S ) , by (7) , so that, given x \mathbf{x} x , the difference of the update rates is
∑ S { W T ( ψ S ) 2 − ⟨ ψ S , F W T ψ S ⟩ W T } . \sum_S\left\{\mathbf{W}_T(\psi_S)^2-\langle\psi_S,\mathbf{F}_{\mathbf{W}_T}\psi_S\rangle_{\mathbf{W}_T}\right\}. S ∑ { W T ( ψ S ) 2 − ⟨ ψ S , F W T ψ S ⟩ W T } .
Each term is minus the lag-one autocovariance of ψ S \psi_S ψ S for the Markov chain with kernel F W T F_{W_T} F W T started from its invariant distribution W T W_T W T . It is therefore nonnegative, by Lemma 1, and upper bounded by the variance W T ( ψ S 2 ) − W T ( ψ S ) 2 W_T(\psi_S^2)-W_T(\psi_S)^2 W T ( ψ S 2 ) − W T ( ψ S ) 2 of ψ S \psi_S ψ S under W T W_T W T , by the Cauchy–Schwarz inequality. Summing over S S S ,
∑ S { W T ( ψ S 2 ) − W T ( ψ S ) 2 } = 1 2 ∑ j , j ′ W T j W T j ′ ∑ S { ψ S ( j ) − ψ S ( j ′ ) } 2 ≤ max j , j ′ 1 2 ∑ S ∣ ψ S ( j ) − ψ S ( j ′ ) ∣ ≤ max j , j ′ 1 2 ∑ i = 1 N ∣ ψ i ( j ) − ψ i ( j ′ ) ∣ , \begin{aligned}
\sum_S\left\{W_T(\psi_S^2)-W_T(\psi_S)^2\right\} \\
&= \frac{1}{2}\sum_{j,j'}W_T^jW_T^{j'}\sum_S\{\psi_S(j)-\psi_S(j')\}^2 \\
&\leq\max_{j,j'}\frac{1}{2}\sum_S|\psi_S(j)-\psi_S(j')| \\
&\leq\max_{j,j'}\frac{1}{2}\sum_{i=1}^{N}|\psi_i(j)-\psi_i(j')|,
\end{aligned} S ∑ { W T ( ψ S 2 ) − W T ( ψ S ) 2 } = 2 1 j , j ′ ∑ W T j W T j ′ S ∑ { ψ S ( j ) − ψ S ( j ′ ) } 2 ≤ j , j ′ max 2 1 S ∑ ∣ ψ S ( j ) − ψ S ( j ′ ) ∣ ≤ j , j ′ max 2 1 i = 1 ∑ N ∣ ψ i ( j ) − ψ i ( j ′ ) ∣ ,
because ∣ ψ S ( j ) − ψ S ( j ′ ) ∣ ≤ 1 |\psi_S(j)-\psi_S(j')|\leq1 ∣ ψ S ( j ) − ψ S ( j ′ ) ∣ ≤ 1 and ∑ j , j ′ W T j W T j ′ = 1 \sum_{j,j'}W_T^jW_T^{j'}=1 ∑ j , j ′ W T j W T j ′ = 1 , and by the triangle inequality, since ψ S = ∑ i ∈ S ψ i \psi_S=\sum_{i\in S}\psi_i ψ S = ∑ i ∈ S ψ i . The right-hand side is the maximal total-variation distance between the distributions of the backward chain at time t t t started from two indices at time T T T , which is at most ∏ s = t T − 1 β s \prod_{s=t}^{T-1}\beta_s ∏ s = t T − 1 β s [13 ] . The condition on m s + 1 m_{s+1} m s + 1 is the one-step case, with a constant ε \varepsilon ε , of the mixing condition of Del Moral [12 ] . Under this condition, for all i , j ∈ [ N ] i,j\in[N] i , j ∈ [ N ] ,
m s + 1 ( x s i , x s + 1 j ) ≥ ε max k m s + 1 ( x s k , x s + 1 j ) , m_{s+1}(x_s^i,x_{s+1}^j)\geq\varepsilon\max_k m_{s+1}(x_s^k,x_{s+1}^j), m s + 1 ( x s i , x s + 1 j ) ≥ ε k max m s + 1 ( x s k , x s + 1 j ) ,
so that B s ( i ∣ j ) ≥ ε W s i B_s(i\mid j)\geq\varepsilon W_s^i B s ( i ∣ j ) ≥ ε W s i . Hence β s ≤ 1 − ε \beta_s\leq1-\varepsilon β s ≤ 1 − ε .
Proof of Proposition 3. We give the proof for M-BS, that for CM-BS being the same with CM-BS in place of M-BS. Because ∑ i D t , j , j ′ ( 1 { i } ) = − γ t ( j , j ′ ) \sum_iD_{t,j,j'}(1_{\{i\}})=-\gamma_t(j,j') ∑ i D t , j , j ′ ( 1 { i } ) = − γ t ( j , j ′ ) , the sum over φ = 1 { i } \varphi=1_{\{i\}} φ = 1 { i } , i ∈ [ N ] i\in[N] i ∈ [ N ] , of the last term of (7) is − E M - B S { γ t ( b t + 1 , l t + 1 ) ∣ x } -\mathbb{E}_{\mathrm{M\text{-}BS}}\{\gamma_t(b_{t+1},l_{t+1})\mid x\} − E M - BS { γ t ( b t + 1 , l t + 1 ) ∣ x } . By (7) and (9) at time t + 1 t+1 t + 1 , it follows that
∑ i = 1 N Q t M - B S ( 1 { i } ) ≤ ∑ i = 1 N Q t + 1 F M - B S ( B t 1 { i } ) − E M - B S { γ t ( b t + 1 , l t + 1 ) ∣ x } , \sum_{i=1}^{N}Q_t^{\mathrm{M\text{-}BS}}(1_{\{i\}})\leq\sum_{i=1}^{N}Q_{t+1}^{\mathrm{FM\text{-}BS}}(B_t1_{\{i\}})
-\mathbb{E}_{\mathrm{M\text{-}BS}}\{\gamma_t(b_{t+1},l_{t+1})\mid x\}, i = 1 ∑ N Q t M - BS ( 1 { i } ) ≤ i = 1 ∑ N Q t + 1 FM - BS ( B t 1 { i } ) − E M - BS { γ t ( b t + 1 , l t + 1 ) ∣ x } ,
and ∑ i Q t + 1 F M - B S ( B t 1 { i } ) = ∑ i Q t F M - B S ( 1 { i } ) \sum_iQ_{t+1}^{\mathrm{FM\text{-}BS}}(B_t1_{\{i\}})=\sum_iQ_t^{\mathrm{FM\text{-}BS}}(1_{\{i\}}) ∑ i Q t + 1 FM - BS ( B t 1 { i } ) = ∑ i Q t FM - BS ( 1 { i } ) , by (7). The claim follows by taking expectations, because P x ( x ~ t = x t ) = ∑ i Q t ( 1 { i } ) \mathbb{P}_x(\widetilde{x}_t=x_t)=\sum_iQ_t(1_{\{i\}}) P x ( x t = x t ) = ∑ i Q t ( 1 { i } ) for both rules. Finally, F p ( i , i ) = 1 − ∑ i ′ ≠ i F p ( i , i ′ ) ≤ p i F_p(i,i)=1-\sum_{i'\ne i}F_p(i,i')\leq p_i F p ( i , i ) = 1 − ∑ i ′ = i F p ( i , i ′ ) ≤ p i , by the second part of Lemma 1, and C p , q ( i , i ) = q i F p ⊙ q ( i , i ) ≤ q i C_{p,q}(i,i)=q_iF_{p\odot q}(i,i)\leq q_i C p , q ( i , i ) = q i F p ⊙ q ( i , i ) ≤ q i , so that γ t ( j , j ′ ) ≥ 0 \gamma_t(j,j')\geq0 γ t ( j , j ′ ) ≥ 0 .
Proof of Proposition 4. Because m t + 1 ( x t i , x t + 1 j ) m_{t+1}(x_t^i,x_{t+1}^j) m t + 1 ( x t i , x t + 1 j ) does not depend on i i i , B t ( ⋅ ∣ j ) = W t B_t(\cdot\mid j)=W_t B t ( ⋅ ∣ j ) = W t for all j ∈ [ N ] j\in[N] j ∈ [ N ] and t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] . The kernels of CM-BS are therefore K t , j , j = F W t K_{t,j,j}=F_{W_t} K t , j , j = F W t and, for j ≠ j ′ j\ne j' j = j ′ , K t , j , j ′ = C W t , W t K_{t,j,j'}=C_{W_t,W_t} K t , j , j ′ = C W t , W t . For a probability vector p \mathbf{p} p on [ 2 ] [2] [ 2 ] , C p , p = F p C_{\mathbf{p},\mathbf{p}}=F_{\mathbf{p}} C p , p = F p . Indeed, let p 1 ≥ p 2 p_1\geq p_2 p 1 ≥ p 2 , the other case being symmetric. By (4), F p ( 1 , 2 ) = p 2 / p 1 F_p(1,2)=p_2/p_1 F p ( 1 , 2 ) = p 2 / p 1 and F p ( 2 , 1 ) = 1 F_p(2,1)=1 F p ( 2 , 1 ) = 1 , so that, with u : = p ⊙ p \mathbf{u}:=\mathbf{p}\odot\mathbf{p} u := p ⊙ p , F u ( 1 , 2 ) = ( p 2 / p 1 ) 2 F_u(1,2)=(p_2/p_1)^2 F u ( 1 , 2 ) = ( p 2 / p 1 ) 2 and F u ( 2 , 1 ) = 1 F_u(2,1)=1 F u ( 2 , 1 ) = 1 . By (5), C p , p ( 1 , 2 ) = p 2 + p 1 ( p 2 / p 1 ) 2 = p 2 / p 1 C_{\mathbf{p},\mathbf{p}}(1,2)=p_2+p_1(p_2/p_1)^2=p_2/p_1 C p , p ( 1 , 2 ) = p 2 + p 1 ( p 2 / p 1 ) 2 = p 2 / p 1 and C p , p ( 2 , 1 ) = p 1 + p 2 = 1 C_{\mathbf{p},\mathbf{p}}(2,1)=p_1+p_2=1 C p , p ( 2 , 1 ) = p 1 + p 2 = 1 . By Lemma 4, conditionally on x \mathbf{x} x , the indices ( b 1 : T , l 1 : T ) (b_{1:T},l_{1:T}) ( b 1 : T , l 1 : T ) therefore have the probability
∏ t = 1 T W t b t F W t ( b t , l t ) , \prod_{t=1}^{T}W_t^{b_t}F_{W_t}(b_t,l_t), t = 1 ∏ T W t b t F W t ( b t , l t ) ,
which proves the claim.
Averages over the time steps
Table 1 gives the averages over the time steps of the update rates and of the ESJD in the experiment of § 5 , for each model, selection rule, and number of particles.
Table 1. Averages over the time steps of the update rates and of the ESJD, for the four selection rules and N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } N \in\{2,4,8,16,32,64\} N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } , on the linear-Gaussian (L G LG L G ) model with T = 200 T=200 T = 200 and the nonlinear (N L NL N L ) model with T = 100 T=100 T = 100 , estimated as in Figure 1 . The standard errors are below 10 − 4 10^{-4} 1 0 − 4 for the update rates and below 0.1% of the ESJD.
Potential functions of the previous state and other resampling schemes
Our proofs require multinomial resampling and potential functions which depend on the current state only. This section removes both requirements with the construction of Finke et al. [17 ] . In Algorithm 2, the ancestor index of each state of the reference is drawn by ancestor sampling (Lindsten, Jordan and Schön, [27 ] ) in the forward pass, which is followed by the backward pass of Algorithm 1. Algorithm 2 is reversible for all the kernels of Algorithm 1 (Proposition 5). The results of § 4.1 and § 4.2 hold for it (Proposition 6). With multinomial resampling and potential functions of the current state, it gives the same joint distribution of the reference and the output as Algorithm 1 (Proposition 7). Without ancestor sampling, the usual implementations of AT, FM-AT, BS, FM-BS, and M-BS leave the target distribution invariant (Proposition 8 ).
Model and resampling schemes
Let g 1 : X → ( 0 , ∞ ) g_1:\mathsf{X}\to(0,\infty) g 1 : X → ( 0 , ∞ ) and g t : X 2 → ( 0 , ∞ ) g_t:\mathsf{X}^2\to(0,\infty) g t : X 2 → ( 0 , ∞ ) , 2 ≤ t ≤ T 2\le t\le T 2 ≤ t ≤ T , be potential functions, and let the target distribution have density
π ( x 1 : T ) = m 1 ( x 1 ) g 1 ( x 1 ) Z ∏ t = 2 T m t ( x t − 1 , x t ) g t ( x t − 1 , x t ) . (10) \pi(x_{1:T})=\frac{m_1(x_1)g_1(x_1)}{\mathcal{Z}}\prod_{t=2}^{T}m_t(x_{t-1},x_t)g_t(x_{t-1},x_t). \tag*{(10)} π ( x 1 : T ) = Z m 1 ( x 1 ) g 1 ( x 1 ) t = 2 ∏ T m t ( x t − 1 , x t ) g t ( x t − 1 , x t ) . (10)
where Z ∈ ( 0 , ∞ ) Z \in(0,\infty) Z ∈ ( 0 , ∞ ) . At each time t ∈ [ T − 1 ] t \in[T-1] t ∈ [ T − 1 ] , the vector a t : = ( a t 1 , … , a t N ) a_t := (a_t^1,\ldots,a_t^N) a t := ( a t 1 , … , a t N ) of the indices of the ancestors at time t t t of the particles at time t + 1 t+1 t + 1 is drawn from a resampling scheme r t r_t r t (Definition 1). The normalized weights at the times t ≥ 2 t \ge2 t ≥ 2 are
W t n : = g t ( x t − 1 a t − 1 n , x t n ) ∑ i = 1 N g t ( x t − 1 a t − 1 i , x t i ) , n ∈ [ N ] , W_t^n := \frac{g_t(x_{t-1}^{a_{t-1}^n},x_t^n)}{\sum_{i=1}^N g_t(x_{t-1}^{a_{t-1}^i},x_t^i)}, \qquad n \in[N], W t n := ∑ i = 1 N g t ( x t − 1 a t − 1 i , x t i ) g t ( x t − 1 a t − 1 n , x t n ) , n ∈ [ N ] ,
which depend on the ancestor indices at time t − 1 t-1 t − 1 .
Definition 1. A resampling scheme at time t ∈ [ T − 1 ] t \in[T-1] t ∈ [ T − 1 ] is a distribution r t r_t r t on [ N ] N [N]^N [ N ] N , which may depend on the particles at time t t t and on their weights, such that, for every i ∈ [ N ] i \in[N] i ∈ [ N ] , the expected number of indices n ∈ [ N ] n \in[N] n ∈ [ N ] with a t n = i a_t^n=i a t n = i under r t r_t r t is N W t i NW_t^i N W t i .
Multinomial resampling, with r t ( a t ) = ∏ n = 1 N W t a t n r_t(a_t)=\prod_{n=1}^N W_t^{a_t^n} r t ( a t ) = ∏ n = 1 N W t a t n , is a resampling scheme, as are stratified, systematic, residual, and killing resampling, among others (Finke et al., [17 ] , § 3 ). The first part of Lemma 3 extends to this setting (Lemma 5 below), whereas the second part fails, because the weights depend on the ancestor indices, and because the ancestor indices need not be independent (Section D.2 gives an example).
For t ∈ [ T − 1 ] t \in[T-1] t ∈ [ T − 1 ] , i ∈ [ N ] i \in[N] i ∈ [ N ] , and x ′ ∈ X x' \in\mathcal{X} x ′ ∈ X , let
B t ( i ∣ x ′ ) : = W t i m t + 1 ( x t i , x ′ ) g t + 1 ( x t i , x ′ ) ∑ k = 1 N W t k m t + 1 ( x t k , x ′ ) g t + 1 ( x t k , x ′ ) . (11) B_t(i\mid x') := \frac{W_t^i m_{t+1}(x_t^i,x')g_{t+1}(x_t^i,x')}{\sum_{k=1}^N W_t^k m_{t+1}(x_t^k,x')g_{t+1}(x_t^k,x')}. \tag*{(11)} B t ( i ∣ x ′ ) := ∑ k = 1 N W t k m t + 1 ( x t k , x ′ ) g t + 1 ( x t k , x ′ ) W t i m t + 1 ( x t i , x ′ ) g t + 1 ( x t i , x ′ ) . (11)
and let B t ( i ∣ j ) : = B t ( i ∣ x t + 1 j ) B_t(i\mid j):=B_t(i\mid x_{t+1}^j) B t ( i ∣ j ) := B t ( i ∣ x t + 1 j ) for j ∈ [ N ] j\in[N] j ∈ [ N ] . These are the backward-sampling probabilities of Lindsten and Schön [28 ] , which reduce to (2) when g t + 1 g_{t+1} g t + 1 depends on the current state only. Below, the denominator is almost surely positive for x ′ = x t + 1 j x'=x_{t+1}^j x ′ = x t + 1 j , j ∈ [ N ] j\in[N] j ∈ [ N ] , because the weights are positive and x t + 1 j x_{t+1}^j x t + 1 j is either drawn from m t + 1 ( x t a t j , ⋅ ) m_{t+1}(x_t^{a_t^j},\cdot) m t + 1 ( x t a t j , ⋅ ) or the state x t + 1 x_{t+1} x t + 1 of the reference, whose density given its predecessor x t x_t x t , a particle at time t t t , is positive. The kernels K T K_T K T and K t , j , j ′ K_{t,j,j'} K t , j , j ′ of the six selection rules are defined as in § 2 , with these probabilities. For the six rules, K t , j , j K_{t,j,j} K t , j , j is the identity kernel, the Gibbs kernel K t , j , j ( i , ⋅ ) = B t ( ⋅ ∣ j ) K_{t,j,j}(i,\cdot)=B_t(\cdot\mid j) K t , j , j ( i , ⋅ ) = B t ( ⋅ ∣ j ) , or the forced move F B t ( ⋅ ∣ j ) F_{B_t}(\cdot\mid j) F B t ( ⋅ ∣ j ) , which depend on j j j only through B t ( ⋅ ∣ j ) B_t(\cdot\mid j) B t ( ⋅ ∣ j ) .
Ancestor sampling of the reference
Algorithm 2 (CSMC with ancestor sampling and a general backward pass). Given the reference trajectory x 1 : T x_{1:T} x 1 : T and kernels K T K_T K T and K t , j , j ′ K_{t,j,j'} K t , j , j ′ as in Algorithm 1, with the probabilities (11) and functions of the particle positions and of the ancestor indices:
(a) Draw b 1 b_1 b 1 uniformly on [ N ] [N] [ N ] , set x 1 b 1 : = x 1 x_1^{b_1}:=x_1 x 1 b 1 := x 1 , and draw x 1 n ∼ m 1 x_1^n\sim m_1 x 1 n ∼ m 1 for n ≠ b 1 n\ne b_1 n = b 1 .
(b) For t = 1 , … , T − 1 t=1,\ldots,T-1 t = 1 , … , T − 1 , draw c ∼ B t ( ⋅ ∣ x t + 1 ) c\sim B_t(\cdot\mid x_{t+1}) c ∼ B t ( ⋅ ∣ x t + 1 ) , and then ( b t + 1 , a t ) (b_{t+1},a_t) ( b t + 1 , a t ) with probabilities proportional to r t ( a t ) r_t(a_t) r t ( a t ) on the set where a t b t + 1 = c a_t^{b_{t+1}}=c a t b t + 1 = c . Set x t + 1 b t + 1 : = x t + 1 x_{t+1}^{b_{t+1}}:=x_{t+1} x t + 1 b t + 1 := x t + 1 and draw x t + 1 n ∼ m t + 1 ( x t a t n , ⋅ ) x_{t+1}^n\sim m_{t+1}(x_t^{a_t^n},\cdot) x t + 1 n ∼ m t + 1 ( x t a t n , ⋅ ) for n ≠ b t + 1 n\ne b_{t+1} n = b t + 1 .
(c) Run steps (c) to (e) of Algorithm 1.
In Algorithm 2.b, the index c c c of the ancestor of the state x t + 1 x_{t+1} x t + 1 of the reference is drawn by ancestor sampling (Lindsten, Jordan and Schön [27 ] ). The pair ( b t + 1 , a t ) (b_{t+1},a_t) ( b t + 1 , a t ) is then drawn by the conditional resampling of Finke et al. [17 ] , given that c c c is the ancestor of the particle b t + 1 b_{t+1} b t + 1 . By Definition 1, the normalizing constant of its probabilities is N W t c NW_t^c N W t c . Equivalently, b t + 1 = n b_{t+1}=n b t + 1 = n with probability proportional to the probability that a t n = c a_t^n=c a t n = c under r t r_t r t . The other ancestor indices are then drawn from their conditional distribution under r t r_t r t given a t b t + 1 = c a_t^{b_{t+1}}=c a t b t + 1 = c . Finke et al. [17 ] , § 3 ) give algorithms for these draws for the resampling schemes above. With multinomial resampling, b t + 1 b_{t+1} b t + 1 is uniform on [ N ] [N] [ N ] , while the other ancestor indices are independent draws from W t W_t W t , as in Algorithm 1.b. Unlike in Algorithm 1, the indices of the reference cannot be fixed in general, because the resampling schemes need not be exchangeable (Finke et al., [17 ] , § 2.3 ). Algorithm 2.b computes the probabilities B t ( ⋅ ∣ x t + 1 ) B_t(\cdot\mid x_{t+1}) B t ( ⋅ ∣ x t + 1 ) , at a cost of order N N N per time step, so that the costs of the six selection rules are of order N T NT N T , as in Section 2.
For each of the six selection rules, we also consider Algorithm 2.b with c c c drawn from the kernel K t , j , j K_{t,j,j} K t , j , j of the rule, with B t ( ⋅ ∣ x t + 1 ) B_t(\cdot\mid x_{t+1}) B t ( ⋅ ∣ x t + 1 ) in place of B t ( ⋅ ∣ j ) B_t(\cdot\mid j) B t ( ⋅ ∣ j ) , started from b t b_t b t . With the Gibbs kernels of BS and FM-BS, this is Algorithm 2.b itself. With the identity kernels of AT and FM-AT, c = b t c=b_t c = b t , so that the ancestor of each state of the reference is its predecessor, as in Algorithm 1.b. With the forced moves of M-BS and CM-BS, c c c is drawn by a forced move from b t b_t b t .
Lemma 5. Let x 1 : T ∼ π x_{1:T} \sim\pi x 1 : T ∼ π and run steps (a) and (b) of Algorithm 2, with c c c drawn from the kernels K t , j , j K_{t,j,j} K t , j , j of one of the six selection rules. Then x 1 : T = ( x 1 b 1 , … , x T b T ) x_{1:T}=(x_{1}^{b_1},\ldots,x_{T}^{b_T}) x 1 : T = ( x 1 b 1 , … , x T b T ) and ( x , a , b 1 : T ) (\mathbf{x},a,b_{1:T}) ( x , a , b 1 : T ) has the density
W T b T Z N T { ∑ i = 1 N g 1 ( x 1 i ) } ∏ n = 1 N m 1 ( x 1 n ) ∏ t = 1 T − 1 r t ( a t ) \frac{W_T^{b_T}}{ZN^T}\left\{\sum_{i=1}^{N}g_1(x_1^i)\right\}\prod_{n=1}^{N}m_1(x_1^n)\prod_{t=1}^{T-1}r_t(a_t) Z N T W T b T { i = 1 ∑ N g 1 ( x 1 i ) } n = 1 ∏ N m 1 ( x 1 n ) t = 1 ∏ T − 1 r t ( a t ) × ∏ t = 2 T { ∑ i = 1 N g t ( x t − 1 a t − 1 i , x t i ) } ∏ n = 1 N m t ( x t − 1 a t − 1 n , x t n ) (12) {}\times\prod_{t=2}^{T}\left\{\sum_{i=1}^{N}g_t(x_{t-1}^{a_{t-1}^i},x_t^i)\right\}\prod_{n=1}^{N}m_t(x_{t-1}^{a_{t-1}^n},x_t^n) \tag*{(12)} × t = 2 ∏ T { i = 1 ∑ N g t ( x t − 1 a t − 1 i , x t i ) } n = 1 ∏ N m t ( x t − 1 a t − 1 n , x t n ) (12) × ∏ t = 1 T − 1 K t , b t + 1 , b t + 1 ( a t b t + 1 , b t ) . {}\times\prod_{t=1}^{T-1}K_{t,b_{t+1},b_{t+1}}(a_t^{b_{t+1}},b_t). × t = 1 ∏ T − 1 K t , b t + 1 , b t + 1 ( a t b t + 1 , b t ) .
Proof. For t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , let c t : = a t b t + 1 c_t:=a_t^{b_{t+1}} c t := a t b t + 1 , the index c c c drawn in Algorithm 2.b at time t t t . Because x t + 1 b t + 1 = x t + 1 x_{t+1}^{b_{t+1}}=x_{t+1} x t + 1 b t + 1 = x t + 1 , it is drawn from K t , b t + 1 , b t + 1 ( b t , ⋅ ) K_{t,b_{t+1},b_{t+1}}(b_t,\cdot) K t , b t + 1 , b t + 1 ( b t , ⋅ ) . Steps (a) and (b) of Algorithm 2 therefore draw b 1 b_1 b 1 with probability 1 / N 1/N 1/ N , and, at each time t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , c t c_t c t with probability K t , b t + 1 , b t + 1 ( b t , c t ) K_{t,b_{t+1},b_{t+1}}(b_t,c_t) K t , b t + 1 , b t + 1 ( b t , c t ) and ( b t + 1 , a t ) (b_{t+1},a_t) ( b t + 1 , a t ) with probability r t ( a t ) / ( N W t c t ) r_t(a_t)/(NW_t^{c_t}) r t ( a t ) / ( N W t c t ) . With the density (10) of x 1 : T = ( x 1 b 1 , … , x T b T ) x_{1:T}=(x_1^{b_1},\ldots,x_T^{b_T}) x 1 : T = ( x 1 b 1 , … , x T b T ) and the densities of the other particles, ( x , a , b 1 : T ) (\mathbf{x},a,b_{1:T}) ( x , a , b 1 : T ) has the density
π ( x 1 b 1 , … , x T b T ) 1 N ∏ n ≠ b 1 m 1 ( x 1 n ) ∏ t = 1 T − 1 K t , b t + 1 , b t + 1 ( b t , c t ) \pi(x_1^{b_1},\ldots,x_T^{b_T})\frac{1}{N}\prod_{n\ne b_1}m_1(x_1^n)\prod_{t=1}^{T-1}K_{t,b_{t+1},b_{t+1}}(b_t,c_t) π ( x 1 b 1 , … , x T b T ) N 1 n = b 1 ∏ m 1 ( x 1 n ) t = 1 ∏ T − 1 K t , b t + 1 , b t + 1 ( b t , c t )
× r t ( a t ) N W t c t ∏ n ≠ b t + 1 m t + 1 ( x t a t n , x t + 1 n ) . {}\times\frac{r_t(a_t)}{NW_t^{c_t}}\prod_{n\ne b_{t+1}}m_{t+1}(x_t^{a_t^n},x_{t+1}^n). × N W t c t r t ( a t ) n = b t + 1 ∏ m t + 1 ( x t a t n , x t + 1 n ) .
Let t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] and x ′ : = x t + 1 b t + 1 x':=x_{t+1}^{b_{t+1}} x ′ := x t + 1 b t + 1 . By (11) , for i ∈ [ N ] i\in[N] i ∈ [ N ] ,
W t i m t + 1 ( x t i , x ′ ) g t + 1 ( x t i , x ′ ) = B t ( i ∣ b t + 1 ) ∑ k = 1 N W t k m t + 1 ( x t k , x ′ ) g t + 1 ( x t k , x ′ ) . W_t^i m_{t+1}(x_t^i,x')g_{t+1}(x_t^i,x')
=
B_t(i\mid b_{t+1})\sum_{k=1}^{N}W_t^k m_{t+1}(x_t^k,x')g_{t+1}(x_t^k,x'). W t i m t + 1 ( x t i , x ′ ) g t + 1 ( x t i , x ′ ) = B t ( i ∣ b t + 1 ) k = 1 ∑ N W t k m t + 1 ( x t k , x ′ ) g t + 1 ( x t k , x ′ ) .
Because K t , b t + 1 , b t + 1 K_{t,b_{t+1},b_{t+1}} K t , b t + 1 , b t + 1 is reversible with respect to B t ( ⋅ ∣ b t + 1 ) B_t(\cdot\mid b_{t+1}) B t ( ⋅ ∣ b t + 1 ) , it follows that
W t b t m t + 1 ( x t b t , x ′ ) g t + 1 ( x t b t , x ′ ) K t , b t + 1 , b t + 1 ( b t , c t ) = W t c t m t + 1 ( x t c t , x ′ ) g t + 1 ( x t c t , x ′ ) K t , b t + 1 , b t + 1 ( c t , b t ) . W_t^{b_t}m_{t+1}(x_t^{b_t},x')g_{t+1}(x_t^{b_t},x')K_{t,b_{t+1},b_{t+1}}(b_t,c_t)
=
W_t^{c_t}m_{t+1}(x_t^{c_t},x')g_{t+1}(x_t^{c_t},x')K_{t,b_{t+1},b_{t+1}}(c_t,b_t). W t b t m t + 1 ( x t b t , x ′ ) g t + 1 ( x t b t , x ′ ) K t , b t + 1 , b t + 1 ( b t , c t ) = W t c t m t + 1 ( x t c t , x ′ ) g t + 1 ( x t c t , x ′ ) K t , b t + 1 , b t + 1 ( c t , b t ) .
The left-hand side is W t b t W_t^{b_t} W t b t times the factor of (10) at time t + 1 t+1 t + 1 times the factor K t , b t + 1 , b t + 1 ( b t , c t ) K_{t,b_{t+1},b_{t+1}}(b_t,c_t) K t , b t + 1 , b t + 1 ( b t , c t ) of the density above. On the right-hand side, m t + 1 ( x t c t , x ′ ) m_{t+1}(x_t^{c_t},x') m t + 1 ( x t c t , x ′ ) completes the product over n ≠ b t + 1 n\ne b_{t+1} n = b t + 1 , because c t = a t b t + 1 c_t=a_t^{b_{t+1}} c t = a t b t + 1 . The factor W t c t W_t^{c_t} W t c t cancels with the denominator of r t ( a t ) / ( N W t c t ) r_t(a_t)/(NW_t^{c_t}) r t ( a t ) / ( N W t c t ) . Similarly, m 1 ( x 1 b 1 ) m_1(x_1^{b_1}) m 1 ( x 1 b 1 ) completes the product over n ≠ b 1 n\ne b_1 n = b 1 . The density of ( x , a , b 1 : T ) (\mathbf{x},a,b_{1:T}) ( x , a , b 1 : T ) is therefore
g 1 ( x 1 b 1 ) Z N T ∏ n = 1 N m 1 ( x 1 n ) ∏ t = 1 T − 1 g t + 1 ( x t c t , x t + 1 b t + 1 ) W t b t r t ( a t ) × ∏ n = 1 N m t + 1 ( x t a t n , x t + 1 n ) K t , b t + 1 , b t + 1 ( c t , b t ) . \begin{aligned}
\frac{g_1(x_1^{b_1})}{ZN^T}\prod_{n=1}^{N}m_1(x_1^n)\prod_{t=1}^{T-1}\frac{g_{t+1}(x_t^{c_t},x_{t+1}^{b_{t+1}})}{W_t^{b_t}}r_t(a_t) \\
&\times\prod_{n=1}^{N} m_{t+1}\left(x_t^{a_t^n},x_{t+1}^n\right)K_{t,b_{t+1},b_{t+1}}\left(c_t,b_t\right).
\end{aligned} Z N T g 1 ( x 1 b 1 ) n = 1 ∏ N m 1 ( x 1 n ) t = 1 ∏ T − 1 W t b t g t + 1 ( x t c t , x t + 1 b t + 1 ) r t ( a t ) × n = 1 ∏ N m t + 1 ( x t a t n , x t + 1 n ) K t , b t + 1 , b t + 1 ( c t , b t ) .
By the definition of the weights, and because c t = a t b t + 1 c_t=a_t^{b_{t+1}} c t = a t b t + 1 ,
g 1 ( x 1 b 1 ) = W 1 b 1 ∑ i = 1 N g 1 ( x 1 i ) , g_1\left(x_1^{b_1}\right)=W_1^{b_1}\sum_{i=1}^{N}g_1\left(x_1^i\right), g 1 ( x 1 b 1 ) = W 1 b 1 i = 1 ∑ N g 1 ( x 1 i ) ,
g t + 1 ( x t a t b t + 1 , x t + 1 b t + 1 ) = W t + 1 b t + 1 ∑ i = 1 N g t + 1 ( x t a t i , x t + 1 i ) . g_{t+1}\left(x_t^{a_t^{b_{t+1}}},x_{t+1}^{b_{t+1}}\right)=W_{t+1}^{b_{t+1}}\sum_{i=1}^{N}g_{t+1}\left(x_t^{a_t^i},x_{t+1}^i\right). g t + 1 ( x t a t b t + 1 , x t + 1 b t + 1 ) = W t + 1 b t + 1 i = 1 ∑ N g t + 1 ( x t a t i , x t + 1 i ) .
The product of these potentials divided by W 1 b 1 ⋯ W T − 1 b T − 1 W_1^{b_1}\cdots W_{T-1}^{b_{T-1}} W 1 b 1 ⋯ W T − 1 b T − 1 is therefore W T b T W_T^{b_T} W T b T times the product of the sums, which gives (12) .
The density (12) is the product of a function of ( x , a ) (x,a) ( x , a ) and of
W T b T ∏ t = 1 T − 1 K t , b t + 1 , b t + 1 ( a t b t + 1 , b t ) , W_T^{b_T}\prod_{t=1}^{T-1}K_{t,b_{t+1},b_{t+1}}\left(a_t^{b_{t+1}},b_t\right), W T b T t = 1 ∏ T − 1 K t , b t + 1 , b t + 1 ( a t b t + 1 , b t ) ,
which is a probability distribution of b 1 : T b_{1:T} b 1 : T . Hence the marginal density of ( x , a ) (x,a) ( x , a ) does not depend on the selection rule. Conditionally on ( x , a ) (x,a) ( x , a ) , b T ∼ W T b_T\sim W_T b T ∼ W T and, for t = T − 1 , … , 1 t=T-1,\ldots,1 t = T − 1 , … , 1 , given also b t + 1 : T b_{t+1:T} b t + 1 : T , b t ∼ K t , b t + 1 , b t + 1 ( a t b t + 1 , ⋅ ) b_t\sim K_{t,b_{t+1},b_{t+1}}\left(a_t^{b_{t+1}},\cdot\right) b t ∼ K t , b t + 1 , b t + 1 ( a t b t + 1 , ⋅ ) . Conversely, by Lemma 5 , if ( x , a , b 1 : T ) (x,a,b_{1:T}) ( x , a , b 1 : T ) has the density (12) , then ( x 1 b 1 , … , x T b T ) ∼ π \left(x_1^{b_1},\ldots,x_T^{b_T}\right)\sim\pi ( x 1 b 1 , … , x T b T ) ∼ π . With multinomial resampling, potential functions of the current state, and the identity kernels, (12) is the extended distribution (6) , with b t = a t b t + 1 b_t=a_t^{b_{t+1}} b t = a t b t + 1 for t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] , as in the first part of Lemma 3. With the identity and the Gibbs kernels, it is the extended distribution of Finke et al. [17 ] for CSMC with ancestral tracing and with ancestor sampling, respectively.
Proposition 5. For any kernels K T K_T K T and K t , j , j ′ K_{t,j,j'} K t , j , j ′ as in Algorithm 2, the Markov kernel defined by Algorithm 2 is reversible with respect to π \pi π .
Proof. Let x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π and run Algorithm 2. With the Gibbs kernels, K t , b t + 1 , b t + 1 ( a t b t + 1 , b t ) = B t ( b t ∣ b t + 1 ) K_{t,b_{t+1},b_{t+1}}\left(a_t^{b_{t+1}},b_t\right)=B_t(b_t\mid b_{t+1}) K t , b t + 1 , b t + 1 ( a t b t + 1 , b t ) = B t ( b t ∣ b t + 1 ) . By Lemma 5 , conditionally on ( x , a ) (x,a) ( x , a ) , b T ∼ W T b_T\sim W_T b T ∼ W T and, for t = T − 1 , … , 1 t=T-1,\ldots,1 t = T − 1 , … , 1 , given also b t + 1 : T b_{t+1:T} b t + 1 : T , b t ∼ B t ( ⋅ ∣ b t + 1 ) b_t\sim B_t(\cdot\mid b_{t+1}) b t ∼ B t ( ⋅ ∣ b t + 1 ) . Let t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] . The kernels of steps (c) and (d) of Algorithm 1 depend on ( x , a ) (x,a) ( x , a ) only, so that, at the times s > t s>t s > t , they draw l s l_s l s given ( x , a ) (x,a) ( x , a ) , b s : T b_{s:T} b s : T , and l s + 1 : T l_{s+1:T} l s + 1 : T . Conditionally on ( x , a ) (x,a) ( x , a ) , b t + 1 : T b_{t+1:T} b t + 1 : T , and l t + 1 : T l_{t+1:T} l t + 1 : T , therefore, b t ∼ B t ( ⋅ ∣ b t + 1 ) b_t\sim B_t(\cdot\mid b_{t+1}) b t ∼ B t ( ⋅ ∣ b t + 1 ) and, given b t b_t b t , l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) l_t\sim K_{t,b_{t+1},l_{t+1}}(b_t,\cdot) l t ∼ K t , b t + 1 , l t + 1 ( b t , ⋅ ) . These are the first two sentences of Lemma 4, conditionally on ( x , a ) (x,a) ( x , a ) instead of x x x . The proof of Proposition 1 then applies with ( x , a ) (x,a) ( x , a ) in place of x x x .
Proposition 6. Let x ~ 1 : T \widetilde{x}_{1:T} x 1 : T be the output of Algorithm 2 started from x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π . Theorem 1, Corollary 1, and Propositions 2 and 3 hold with the probabilities (11) , with the distribution (12) in place of π ˉ \bar{\pi} π ˉ , and, in Proposition 2, with m s + 1 ( x , ⋅ ) g s + 1 ( x , ⋅ ) ≥ ε m s + 1 ( x ′ , ⋅ ) g s + 1 ( x ′ , ⋅ ) m_{s+1}(x,\cdot)g_{s+1}(x,\cdot)\ge\varepsilon m_{s+1}(x',\cdot)g_{s+1}(x',\cdot) m s + 1 ( x , ⋅ ) g s + 1 ( x , ⋅ ) ≥ ε m s + 1 ( x ′ , ⋅ ) g s + 1 ( x ′ , ⋅ ) in place of the condition on m s + 1 m_{s+1} m s + 1 .
Proof. Condition on ( x , a ) (x,a) ( x , a ) instead of x x x in § 4.1 and § 4.2 and in the proofs of these results in Section A, with P x , a P_{x,a} P x , a and E x , a E_{x,a} E x , a in place of P x P_x P x and E x E_x E x . The proofs use the first two sentences of Lemma 4, which hold conditionally on ( x , a ) (x,a) ( x , a ) by the proof of Proposition 5. They also use Proposition 1, which is replaced by Proposition 5, and the fact that the distribution of the conditioning variables does not depend on the selection rule. This holds for ( x , a ) (x,a) ( x , a ) , because steps (a) and (b) of Algorithm 2 do not depend on the kernels. In the proof of Proposition 2, the condition on m s + 1 g s + 1 m_{s+1}g_{s+1} m s + 1 g s + 1 gives B s ( i ∣ j ) ≥ ε W s i B_s(i\mid j)\ge\varepsilon W_s^i B s ( i ∣ j ) ≥ ε W s i by (11) , as before.
Proposition 7. Assume multinomial resampling, and that g t ( x t − 1 , x t ) g_t(x_{t-1},x_t) g t ( x t − 1 , x t ) does not depend on x t − 1 x_{t-1} x t − 1 for 2 ≤ t ≤ T 2\le t\le T 2 ≤ t ≤ T . Then, for x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π and any kernels as in Algorithm 1, the reference and the output have the same joint distribution under Algorithm 2 as under Algorithm 1.
Proof. Under these assumptions, W T \mathbf{W}_T W T and B t B_t B t are functions of x \mathbf{x} x , and so are the kernels. With multinomial resampling and the identity kernels, steps (a) and (b) of Algorithm 2 draw b t + 1 b_{t+1} b t + 1 uniformly on [ N ] [N] [ N ] , independently of the other variables, so that they generate ( x , a , b 1 : T ) (\mathbf{x},a,b_{1:T}) ( x , a , b 1 : T ) with the same distribution as steps (a) and (b) of Algorithm 1. By Lemma 5 , the marginal density of ( x , a ) (\mathbf{x},a) ( x , a ) is therefore the same under both algorithms. Under Algorithm 2, conditionally on ( x , a ) (\mathbf{x},a) ( x , a ) , and hence on x \mathbf{x} x , b T ∼ W T b_T \sim\mathbf{W}_T b T ∼ W T and b t ∼ B t ( ⋅ ∣ b t + 1 ) b_t \sim B_t(\cdot\mid b_{t+1}) b t ∼ B t ( ⋅ ∣ b t + 1 ) given b t + 1 : T b_{t+1:T} b t + 1 : T , by Lemma 5 . Under Algorithm 1, the same holds conditionally on x \mathbf{x} x , by Lemma 4. The variables ( x , b 1 : T ) (\mathbf{x},b_{1:T}) ( x , b 1 : T ) thus have the same distribution under both algorithms. So do ( x , b 1 : T , l 1 : T ) (\mathbf{x},b_{1:T},l_{1:T}) ( x , b 1 : T , l 1 : T ) , because both algorithms draw l 1 : T l_{1:T} l 1 : T given x \mathbf{x} x and b 1 : T b_{1:T} b 1 : T with the same kernels. The reference ( x 1 b 1 , … , x T b T ) (x^{b_1}_1,\ldots,x^{b_T}_T) ( x 1 b 1 , … , x T b T ) and the output ( x 1 l 1 , … , x T l T ) (x^{l_1}_1,\ldots,x^{l_T}_T) ( x 1 l 1 , … , x T l T ) are functions of these variables.
Backward passes from the ancestors
Algorithm 3 (CSMC with a backward pass from the ancestors). Given the reference trajectory x 1 : T x_{1:T} x 1 : T and the kernels K T K_T K T and K t , j , j K_{t,j,j} K t , j , j of AT, FM-AT, BS, FM-BS, or M-BS, with the probabilities (11) :
Run steps (a) and (b) of Algorithm 2, with c : = b t c := b_t c := b t in Algorithm 2.b.
Draw l T ∼ K T ( b T , ⋅ ) l_T \sim K_T(b_T,\cdot) l T ∼ K T ( b T , ⋅ ) .
For t = T − 1 , … , 1 t=T-1,\ldots,1 t = T − 1 , … , 1 , draw l t l_t l t from the kernel K t , l t + 1 , l t + 1 K_{t,l_{t+1},l_{t+1}} K t , l t + 1 , l t + 1 started from the ancestor a t l t + 1 a_t^{l_{t+1}} a t l t + 1 of the particle l t + 1 l_{t+1} l t + 1 .
Return x ~ 1 : T : = ( x 1 l 1 , … , x T l T ) \widetilde{x}_{1:T}:=(x^{l_1}_1,\ldots,x^{l_T}_T) x 1 : T := ( x 1 l 1 , … , x T l T ) .
Algorithm 3.a is the forward pass of CSMC with the resampling schemes r t r_t r t ([17 Algorithm 27] ). With multinomial resampling and potential functions of the current state, Algorithm 3 is the usual implementation of § 2 , with the forward pass of Algorithm 1.
Proposition 8. The Markov kernel defined by Algorithm 3 leaves π \pi π invariant. With the kernels of AT and FM-AT, it is reversible with respect to π \pi π .
Proof. Let x 1 : T ∼ π x_{1:T}\sim\pi x 1 : T ∼ π and run Algorithm 3. By Lemma 5 with the identity kernels, b T ∼ W T b_T\sim\mathbf{W}_T b T ∼ W T conditionally on ( x , a ) (\mathbf{x},a) ( x , a ) . Because K T K_T K T leaves W T \mathbf{W}_T W T invariant, l T ∼ W T l_T\sim\mathbf{W}_T l T ∼ W T conditionally on ( x , a ) (\mathbf{x},a) ( x , a ) . Because the marginal density of ( x , a ) (\mathbf{x},a) ( x , a ) in (12) does not depend on the kernels, Algorithm 3.c then gives ( x , a , l 1 : T ) (\mathbf{x},a,l_{1:T}) ( x , a , l 1 : T ) the density (12) , with l 1 : T l_{1:T} l 1 : T in place of b 1 : T b_{1:T} b 1 : T and the kernels K t , j , j K_{t,j,j} K t , j , j of the selection rule. By Lemma 5 , x ~ 1 : T ∼ π \widetilde{x}_{1:T}\sim\pi x 1 : T ∼ π . With the identity kernels of AT and FM-AT, l t = a t l t + 1 l_t=a_t^{l_{t+1}} l t = a t l t + 1 and b t = a t b t + 1 b_t=a_t^{b_{t+1}} b t = a t b t + 1 for t ∈ [ T − 1 ] t\in[T-1] t ∈ [ T − 1 ] . Conditionally on ( x , a ) (\mathbf{x},a) ( x , a ) , ( b 1 : T , l 1 : T ) (b_{1:T},l_{1:T}) ( b 1 : T , l 1 : T ) therefore has the probability W T b T K T ( b T , l T ) W_T^{b_T}K_T(b_T,l_T) W T b T K T ( b T , l T ) if these identities hold, and zero otherwise. By the reversibility of K T K_T K T , this probability does not change when b 1 : T b_{1:T} b 1 : T and l 1 : T l_{1:T} l 1 : T are exchanged. The reversibility then follows as in the proof of Proposition 1.
The proof uses Algorithm 3.a only through b T ∼ W T b_T\sim\mathbf{W}_T b T ∼ W T conditionally on ( x , a ) (\mathbf{x},a) ( x , a ) , which holds for all the kernels of Lemma 5 , so that the invariance also holds with ancestor sampling in Algorithm 3.a. By Lemma 5 , the backward pass of Algorithm 3 and the forward pass of Algorithm 2.b with the same kernels K t , j , j K_{t,j,j} K t , j , j both lead to the distribution (12) . This is the duality of backward and ancestor sampling of Finke [15 ] , here with forced moves. CM-BS does not have such an implementation, because its kernels for j ≠ j ′ j\ne j' j = j ′ start from the index b t b_t b t of the reference. Under Algorithm 2, b t ∼ B t ( ⋅ ∣ b t + 1 ) b_t\sim B_t(\cdot\mid b_{t+1}) b t ∼ B t ( ⋅ ∣ b t + 1 ) conditionally on ( x , a ) (\mathbf{x},a) ( x , a ) and b t + 1 : T b_{t+1:T} b t + 1 : T , by Lemma 5 , whereas, with c : = b t c:=b_t c := b t , b t = a t b t + 1 b_t=a_t^{b_{t+1}} b t = a t b t + 1 is a function of a a a and b t + 1 b_{t+1} b t + 1 .
Locally optimal proposals
This section reports the experiment of § 5 on the linear-Gaussian (LG) model with the particle filter which uses the locally optimal proposal (Doucet, Godsill and Andrieu [14 ] ), whose potential functions depend on the previous state.
Particle filter with the locally optimal proposal
The LG model is x 1 ∼ N ( 0 , σ 2 ( 1 − ρ 2 ) − 1 I d ) x_1 \sim\mathcal{N}(0,\sigma^2(1-\rho^2)^{-1}I_d) x 1 ∼ N ( 0 , σ 2 ( 1 − ρ 2 ) − 1 I d ) , x t ∣ x t − 1 ∼ N ( ρ x t − 1 , σ 2 I d ) x_t \mid x_{t-1} \sim\mathcal{N}(\rho x_{t-1},\sigma^2 I_d) x t ∣ x t − 1 ∼ N ( ρ x t − 1 , σ 2 I d ) , and y t ∣ x t ∼ N ( x t , σ 2 I d ) y_t \mid x_t \sim\mathcal{N}(x_t,\sigma^2 I_d) y t ∣ x t ∼ N ( x t , σ 2 I d ) . The particle filter with the locally optimal proposal is that of Section C, with multinomial resampling, for the model (10) in which m t ( x t − 1 , ⋅ ) m_t(x_{t-1},\cdot) m t ( x t − 1 , ⋅ ) , t ≥ 2 t \ge2 t ≥ 2 , is the density of the conditional distribution of x t x_t x t given x t − 1 x_{t-1} x t − 1 and y t y_t y t ,
N ( ρ x t − 1 + y t 2 , σ 2 2 I d ) \mathcal{N}\left(\frac{\rho x_{t-1}+y_t}{2},\frac{\sigma^2}{2}I_d\right) N ( 2 ρ x t − 1 + y t , 2 σ 2 I d )
and g t ( x t − 1 , x t ) g_t(x_{t-1},x_t) g t ( x t − 1 , x t ) is the density of y t y_t y t given x t − 1 x_{t-1} x t − 1 , which is the density of N ( ρ x t − 1 , 2 σ 2 I d ) \mathcal{N}(\rho x_{t-1},2\sigma^2 I_d) N ( ρ x t − 1 , 2 σ 2 I d ) at y t y_t y t , whereas m 1 m_1 m 1 is the density of the conditional distribution of x 1 x_1 x 1 given y 1 y_1 y 1 , N ( y 1 / ( 2 − ρ 2 ) , σ 2 ( 2 − ρ 2 ) − 1 I d ) \mathcal{N}(y_1/(2-\rho^2),\sigma^2(2-\rho^2)^{-1}I_d) N ( y 1 / ( 2 − ρ 2 ) , σ 2 ( 2 − ρ 2 ) − 1 I d ) , and g 1 g_1 g 1 is constant. Because m t ( x t − 1 , x t ) g t ( x t − 1 , x t ) m_t(x_{t-1},x_t)g_t(x_{t-1},x_t) m t ( x t − 1 , x t ) g t ( x t − 1 , x t ) is the transition density of the LG model times the density of y t y_t y t given x t x_t x t , while m 1 ( x 1 ) g 1 ( x 1 ) m_1(x_1)g_1(x_1) m 1 ( x 1 ) g 1 ( x 1 ) is proportional to the density of x 1 x_1 x 1 times that of y 1 y_1 y 1 given x 1 x_1 x 1 , the target distribution (10) is the smoothing distribution. The backward-sampling probability B t ( i ∣ j ) B_t(i \mid j) B t ( i ∣ j ) is therefore proportional to W t i W_t^i W t i times the density of N ( ρ x t i , σ 2 I d ) \mathcal{N}(\rho x_t^i,\sigma^2I_d) N ( ρ x t i , σ 2 I d ) at x t + 1 j x_{t+1}^j x t + 1 j , as for the bootstrap filter. The four selection rules use these probabilities with Algorithm 2, whose forward pass draws the ancestor index of each state of the reference by ancestor sampling. Their kernels start from the indices of the reference, as in Algorithm 1.d, because the ancestor a t + 1 b t + 1 a_{t+1}^{b_{t+1}} a t + 1 b t + 1 drawn by ancestor sampling need not be b t b_t b t . With multinomial resampling, the indices of the reference may be fixed, as in the experiment of § 5 .
Dependence of the ancestor indices on the proposal
The backward-sampling probabilities do not involve the proposal, but the conditional distribution of the ancestor indices given the particle positions does. With T = 2 T=2 T = 2 , for example, the distribution (12) with the identity kernels shows that, given the particle positions and the final index b 2 b_2 b 2 , the ancestor indices a 1 n a_1^n a 1 n , n ≠ b 2 n \ne b_2 n = b 2 , are independent, with probabilities proportional to m 2 ( x 1 i , x 2 n ) m_2(x_1^i,x_2^n) m 2 ( x 1 i , x 2 n ) , i ∈ [ N ] i \in[N] i ∈ [ N ] , the density of the proposal of x 2 n x_2^n x 2 n from x 1 i x_1^i x 1 i . The backward-sampling probability B 1 ( i ∣ n ) B_1(i \mid n) B 1 ( i ∣ n ) is instead proportional to the density of N ( ρ x 1 i , σ 2 I d ) \mathcal{N}(\rho x_1^i,\sigma^2I_d) N ( ρ x 1 i , σ 2 I d ) at x 2 n x_2^n x 2 n . These probabilities differ unless the density of y 2 y_2 y 2 given x 1 = x 1 i x_1=x_1^i x 1 = x 1 i does not depend on i i i . Moreover, the final index b 2 b_2 b 2 given the particle positions does not have the distribution W 2 \mathbf{W}_2 W 2 , which depends on the ancestor indices. The second part of Lemma 3 therefore fails, and so does Lemma 4 conditionally on the particle positions only. Under Algorithm 2, the first two sentences of Lemma 4 hold instead conditionally on the particle positions and the ancestor indices (proof of Proposition 5). Algorithm 2 is therefore reversible, and the four selection rules are ordered with it as in Theorem 1 and Corollary 1 (Propositions 5 and 6), which Section D.3 illustrates.
Update rates and ESJD
We repeat the experiment of § 5 on the LG model, with ρ = 0.9 \rho=0.9 ρ = 0.9 , σ = 1 \sigma=1 σ = 1 , T = 200 T=200 T = 200 , d ∈ { 1 , 3 } d \in\{1,3\} d ∈ { 1 , 3 } , and N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } N \in\{2,4,8,16,32,64\} N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } , with 10 6 10^6 1 0 6 data sets drawn from the model for each d d d and N N N , and with the locally optimal proposal. For each data set, the forward pass of Algorithm 2 is run once with the reference x 1 : T x_{1:T} x 1 : T , and the four selection rules are applied to the same particles.
Figure 2 shows the update rates and the ESJD of FM-BS, M-BS, and CM-BS relative to those of BS at each time step, while Table 2 shows their averages over the time steps. With the locally optimal proposal, the update rates of the four selection rules are larger than with the bootstrap filter of § 5 , for example those of BS with N = 2 N=2 N = 2 , increase from 0.310 to 0.418 for d = 1 d=1 d = 1 and from 0.132 to 0.302 for d = 3 d=3 d = 3 (Table 1 and Table 2 ). In agreement with Proposition 6, M-BS and CM-BS increase the update rates and the ESJD at every time step in Figure 2 , whereas, as for the bootstrap filter, the final forced move of FM-BS only matters at the last time steps. On average over the time steps, M-BS increases the update rates of BS by 29% for N = 2 N=2 N = 2 and by 2% to 4% for N = 8 N=8 N = 8 , and the ESJD by 23% to 26% for N = 2 N=2 N = 2 and by 2% to 4% for N = 8 N=8 N = 8 , while FM-BS increases both by less than 1%. CM-BS increases the update rates of BS by 49% to 66% for N = 2 N=2 N = 2 and by 17% to 19% for N = 8 N=8 N = 8 , and the ESJD by 43% to 50% for N = 2 N=2 N = 2 and by 12% to 15% for N = 8 N=8 N = 8 .
Figure 2. Update rates (top) and ESJD (bottom) of forced move plus backward sampling (FM-BS), Metropolized backward sampling (M-BS), and coupled Metropolized backward sampling (CM-BS), relative to those of backward sampling (BS), at each time step t t t , on the linear-Gaussian (LG) model with T = 200 T = 200 T = 200 and the locally optimal proposal: FM-BS with N = 2 N = 2 N = 2 (solid orange line) and N = 8 N = 8 N = 8 (dotted orange line), M-BS with N = 2 N = 2 N = 2 (solid green line) and N = 8 N = 8 N = 8 (dotted green line), and CM-BS with N = 2 N = 2 N = 2 (solid blue line) and N = 8 N = 8 N = 8 (dotted blue line), the four rules with Algorithm 2. The ratios are those of the averages over 10 6 10^6 1 0 6 data sets drawn from the model, with one iteration for each data set, started from the trajectory drawn with the data. The shaded bands extend two standard errors on each side of the ratios.
Table 2. Averages over the time steps of the update rates and of the ESJD, for the four selection rules and N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } N \in\{2, 4, 8, 16, 32, 64\} N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } , on the linear-Gaussian (LG) model with T = 200 T = 200 T = 200 and the locally optimal proposal, estimated as in Figure 2 . The standard errors are below 10 − 4 10^{-4} 1 0 − 4 for the update rates and below 0.1% of the ESJD.
Stratified resampling
We repeat the experiments of § 5 and of Section D with stratified resampling (Kitagawa, [25 ] ) instead of multinomial resampling, with Algorithm 2. In stratified resampling, a t n a_t^n a t n is the index i i i with U n ∈ ( W t 1 + ⋯ + W t i − 1 , W t 1 + ⋯ + W t i ] U_n \in(W_t^1 + \cdots+ W_t^{i-1}, W_t^1 + \cdots+ W_t^i] U n ∈ ( W t 1 + ⋯ + W t i − 1 , W t 1 + ⋯ + W t i ] , for independent uniforms U n U_n U n on [ ( n − 1 ) / N , n / N ) [(n - 1)/N, n/N) [( n − 1 ) / N , n / N ) , n ∈ [ N ] n \in[N] n ∈ [ N ] . It satisfies Definition 1 (Finke et al., [17 ] , Section 3.1.2), so that the reversibility and the orderings hold (Propositions 5 and 6). In Algorithm 2.b, with the conditional stratified resampling of Finke et al. [17 ] , b t + 1 = n b_{t+1} = n b t + 1 = n with probability proportional to the length of the intersection of [ ( n − 1 ) / N , n / N ) [(n - 1)/N, n/N) [( n − 1 ) / N , n / N ) with ( W t 1 + ⋯ + W t c − 1 , W t 1 + ⋯ + W t c ] (W_t^1 + \cdots+ W_t^{c-1}, W_t^1 + \cdots+ W_t^c] ( W t 1 + ⋯ + W t c − 1 , W t 1 + ⋯ + W t c ] , a t + 1 b t + 1 = c a_{t+1}^{b_{t+1}} = c a t + 1 b t + 1 = c , and the other ancestor indices are drawn as in stratified resampling. Because stratified resampling is not exchangeable, the indices of the reference are not fixed, and b 1 b_1 b 1 is drawn uniformly on [ N ] [N] [ N ] , as in Algorithm 2.a. As in Section D, the kernels start from the indices of the reference, and the four selection rules are applied to the same particles, for 10 6 10^6 1 0 6 data sets for each model and N N N .
In Table 3 , the averages over the time steps of M-BS and CM-BS exceed those of FM-BS, and those of CM-BS exceed those of M-BS, for all the models and numbers of particles. With N = 2 N=2 N = 2 , M-BS increases the update rates of BS by 35% to 45% with the bootstrap filter and by 28% with the locally optimal proposal, and CM-BS by 43% to 64% and by 47% to 63%, close to the increases with multinomial resampling. The update rates of BS are slightly smaller than with multinomial resampling (Table 1 and Table 3 ).
Table 3. Averages over the time steps of the update rates and of the ESJD with stratified resampling and Algorithm 2, for the four selection rules and N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } N \in\{2, 4, 8, 16, 32, 64\} N ∈ { 2 , 4 , 8 , 16 , 32 , 64 } , on the linear-Gaussian (LG) model with T = 200 T=200 T = 200 and the nonlinear (NL) model with T = 100 T=100 T = 100 with the bootstrap filter, and on the LG model with the locally optimal proposal, estimated as in Figure 1 . The standard errors are below 10 − 4 10^{-4} 1 0 − 4 for the update rates and below 0.1% of the ESJD.
Differences between the formalization and the paper
Overview
The results of the paper are formalized in the Lean proof assistant. The formalization is available at https://adriencorenflos.github.io/formalization/metropolized-CSMC . In order to reduce dependencies, we also provided a formal proof of Liu [29 ] , Tierney [32 ] , Lemma 3), and Dobrushin [13 ] as part of the process. The formalized proofs follow those of Sections A and C, except in the five steps of Sections F.2 to F.6. Instead of forcing the AI model to follow our proofs, we instead document here where it deviated (despite having been given our original proofs as input) as this may be of interest to some readers. The statements of the lemmas, propositions, and theorems are themselves faithful to the paper. Section F.7 gives the assumptions and conventions of the formalization, and Section F.8 the claims of the paper which are not formalized.
The forced move
In Lemma 1, the third part is derived from the first two without the Gibbs kernel and Tierney [32 ] . Because F p F_p F p is a Markov kernel which leaves p \mathrm{p} p invariant, the computation of the proof of Lemma 2, with q = p \mathrm{q}=\mathrm{p} q = p and F p F_p F p in place of C p , q C_{\mathrm{p},\mathrm{q}} C p , q , gives
⟨ φ , F p φ ⟩ p − p ( φ ) 2 = − 1 2 ∑ i ≠ j p i { F p ( i , j ) − p j } { φ ( i ) − φ ( j ) } 2 , \langle\varphi,F_p\varphi\rangle_{\mathrm{p}}-\mathrm{p}(\varphi)^2
= -\frac{1}{2}\sum_{i\ne j}p_i\{F_p(i,j)-p_j\}\{\varphi(i)-\varphi(j)\}^2, ⟨ φ , F p φ ⟩ p − p ( φ ) 2 = − 2 1 i = j ∑ p i { F p ( i , j ) − p j } { φ ( i ) − φ ( j ) } 2 ,
which is nonpositive by the second part.
The backward Markov chain of the indices
In Lemma 4, the conditional distributions are not derived one time step at a time, from the fact that ( b t + 1 : T , l t + 1 : T ) (b_{t+1:T},l_{t+1:T}) ( b t + 1 : T , l t + 1 : T ) is a function of b T b_T b T , of the ancestor indices at the times s > t s>t s > t , and of the draws at these times. Instead, the probability of ( b 1 : T , l 1 : T ) (b_{1:T},l_{1:T}) ( b 1 : T , l 1 : T ) given x \mathrm{x} x is computed as the sum over ( a , b T ) (a,b_T) ( a , b T ) of the probability of ( a , b T ) (a,b_T) ( a , b T ) given x \mathrm{x} x , from Lemma 3, times that of l 1 : T l_{1:T} l 1 : T in steps (c) and (d) of Algorithm 1, with b 1 : T b_{1:T} b 1 : T traced back from b T b_T b T . The sums over the vectors a 1 , … , a T − 1 a_1,\ldots,a_{T-1} a 1 , … , a T − 1 are taken one at a time. Each uses that, if a t n ∼ B t ( ⋅ ∣ n ) a_t^n\sim B_t(\cdot\mid n) a t n ∼ B t ( ⋅ ∣ n ) independently for n ∈ [ N ] n\in[N] n ∈ [ N ] , then a t j ∼ B t ( ⋅ ∣ j ) a_t^j\sim B_t(\cdot\mid j) a t j ∼ B t ( ⋅ ∣ j ) , independently of a t j ′ a_t^{j'} a t j ′ for j ′ ≠ j j'\ne j j ′ = j . The result is the probability
W T b T K T ( b T , l T ) × ∏ t = 1 T − 1 B t ( b t ∣ b t + 1 ) K t , b t + 1 , l t + 1 ( b t , l t ) . \begin{aligned}
W_T^{b_T}K_T(b_T,l_T) \\
&\times\prod_{t=1}^{T-1}B_t(b_t\mid b_{t+1})K_{t,b_{t+1},l_{t+1}}(b_t,l_t).
\end{aligned} W T b T K T ( b T , l T ) × t = 1 ∏ T − 1 B t ( b t ∣ b t + 1 ) K t , b t + 1 , l t + 1 ( b t , l t ) .
Its factors are the conditional distributions of Lemma 4. The same probability is obtained for the usual implementation of Algorithm 1.d, with the case split of our proof on l t + 1 = b t + 1 l_{t+1}=b_{t+1} l t + 1 = b t + 1 and l t + 1 ≠ b t + 1 l_{t+1}\ne b_{t+1} l t + 1 = b t + 1 .
The recursion of the expected products
In § 4.1 , the recursion (7) and the expression (8) are derived from the joint probabilities given x \mathrm{x} x , rather than from the expectations conditional on x \mathrm{x} x , b t + 1 = j b_{t+1}=j b t + 1 = j , and l t + 1 = j ′ l_{t+1}=j' l t + 1 = j ′ . By the probability of ( b 1 : T , l 1 : T ) (b_{1:T},l_{1:T}) ( b 1 : T , l 1 : T ) in Section F.3,
P x ( b t = i , l t = i ′ , b t + 1 = j , l t + 1 = j ′ ) = P x ( b t + 1 = j , l t + 1 = j ′ ) B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) . \mathbb{P}_{\mathrm{x}}(b_t=i,l_t=i',b_{t+1}=j,l_{t+1}=j')
=\mathbb{P}_{\mathrm{x}}(b_{t+1}=j,l_{t+1}=j')B_t(i\mid j)K_{t,j,j'}(i,i'). P x ( b t = i , l t = i ′ , b t + 1 = j , l t + 1 = j ′ ) = P x ( b t + 1 = j , l t + 1 = j ′ ) B t ( i ∣ j ) K t , j , j ′ ( i , i ′ ) .
Multiplying by φ ( i ) φ ( i ′ ) \varphi(i)\varphi(i') φ ( i ) φ ( i ′ ) and summing over i , i ′ , j , j ′ ∈ [ N ] i,i',j,j'\in[N] i , i ′ , j , j ′ ∈ [ N ] gives (7) . Multiplying by φ ( i , j ) φ ( i ′ , j ′ ) \varphi(i,j)\varphi(i',j') φ ( i , j ) φ ( i ′ , j ′ ) instead gives the expectation of f ( x t , x t + 1 ) f ( x ~ t , x ~ t + 1 ) f(x_t,x_{t+1})f(\widetilde{x}_t,\widetilde{x}_{t+1}) f ( x t , x t + 1 ) f ( x t , x t + 1 ) given x \mathrm{x} x in the proof of Corollary 1, as the sum over j , j ′ j,j' j , j ′ of P x ( b t + 1 = j , l t + 1 = j ′ ) \mathbb{P}_{\mathrm{x}}(b_{t+1}=j,l_{t+1}=j') P x ( b t + 1 = j , l t + 1 = j ′ ) times (8) .
The final forced move
In the proof of Proposition 2, the bound by the variance of ψ S \psi_S ψ S under W T W_T W T is derived without the Cauchy–Schwarz inequality. By the reversibility of F W T F_{W_T} F W T with respect to W T W_T W T ,
⟨ ψ S , F W T ψ S ⟩ W T = W T ( ψ S 2 ) \langle\psi_S,F_{W_T}\psi_S\rangle_{W_T}=W_T(\psi_S^2) ⟨ ψ S , F W T ψ S ⟩ W T = W T ( ψ S 2 )
− 1 2 ∑ j , j ′ W T j F W T ( j , j ′ ) { ψ S ( j ) − ψ S ( j ′ ) } 2 . -\frac{1}{2}\sum_{j,j'}W_T^{j}F_{W_T}(j,j')\{\psi_S(j)-\psi_S(j')\}^2. − 2 1 j , j ′ ∑ W T j F W T ( j , j ′ ) { ψ S ( j ) − ψ S ( j ′ ) } 2 .
Because F W T F\mathbf{W}_T F W T leaves W T \mathbf{W}_T W T invariant, the bound
{ ψ S ( j ) − ψ S ( j ′ ) } 2 ≤ 2 { ψ S ( j ) − W T ( ψ S ) } 2 + 2 { ψ S ( j ′ ) − W T ( ψ S ) } 2 \{\psi_S(j)-\psi_S(j')\}^2 \le2\{\psi_S(j)-\mathbf{W}_T(\psi_S)\}^2 + 2\{\psi_S(j')-\mathbf{W}_T(\psi_S)\}^2 { ψ S ( j ) − ψ S ( j ′ ) } 2 ≤ 2 { ψ S ( j ) − W T ( ψ S ) } 2 + 2 { ψ S ( j ′ ) − W T ( ψ S ) } 2
shows that the last term is at most twice the variance, so that W T ( ψ S ) 2 − ⟨ ψ S , F W T ψ S ⟩ W T \mathbf{W}_T(\psi_S)^2-\langle\psi_S,F\mathbf{W}_T\psi_S\rangle_{\mathbf{W}_T} W T ( ψ S ) 2 − ⟨ ψ S , F W T ψ S ⟩ W T is at most the variance.
Multinomial resampling and potential functions of the current state
In the proof of Proposition 7, the marginal densities of ( x , a ) (x,a) ( x , a ) under the two algorithms are compared directly. Steps (a) and (b) of Algorithm 2 with the identity kernels are not used. The sum of (12) with the Gibbs kernels over b 1 : T b_{1:T} b 1 : T is the function of ( x , a ) (x,a) ( x , a ) in the factorization of (12) after Lemma 5 , because the other factor is a probability distribution of b 1 : T b_{1:T} b 1 : T . With multinomial resampling and potential functions of the current state, this function is the sum of (6) over b T b_T b T , which is the marginal density of ( x , a ) (x,a) ( x , a ) under Algorithm 1, by Lemma 3.
The kernels of Algorithms 1 and 2 are assumed to be measurable functions of the particle positions and, for Algorithm 2, of the ancestor indices. The kernels of the six selection rules are proved to satisfy this assumption. The resampling schemes are assumed to be measurable functions of the particles and of their weights, and to satisfy the condition of Definition 1 for every probability vector of weights. The results on the update rates, in Theorem 1, Corollary 1, and Propositions 2, 3, and 6, assume that the diagonal of X 2 X^2 X 2 is measurable, so that { x ~ t ≠ x t } \{\tilde{x}_t \ne x_t\} { x ~ t = x t } is an event. Where the denominator of (2) or (11) vanishes, B t ( ⋅ ∣ j ) B_t(\mathord\cdot\mid j) B t ( ⋅ ∣ j ) is defined as W t \mathbf{W}_t W t .
All claims below are minor and affect the comparison or interpretation of the results, but not the nature of the main construction of the paper. The experiments of § 5 and of Sections D and E are not formalized, nor are the computations for the locally optimal proposal in Section D. Neither are some comparison remarks with other methods in § 1 and § 6 , such as the effect of the steps of Bunch and Godsill [4 ] on the update rates. The claims on fixing the indices of the reference, in § 2 and in Sections C and D, are not formalized as they are common knowledge in the field (and our proofs do not use this fact).
In § 3 , the description of the backward pass of BS as a Gibbs update of ( b T , a ) (b_T,a) ( b T , a ) given x x x is not formalized. In § 4.1 , the remarks after Theorem 1 and Corollary 1 are not formalized. These are the orderings of the lag-one autocorrelations and of the ESJD, the equality of the distributions of ( x T , x ~ T ) (x_T,\tilde{x}_T) ( x T , x ~ T ) under FM-BS and FM-AT and under BS and AT, the pairwise distinctness of the particles when X = R d X=\mathbb{R}^d X = R d and d x \mathrm{d}x d x is Lebesgue measure, which § 5 also uses, and the reversal of Lemma 2 for φ ( j , j ′ ) = − φ ( j ′ , j ) \varphi(j,j')=-\varphi(j',j) φ ( j , j ′ ) = − φ ( j ′ , j ) . In § 4.2 , the consequence of Proposition 2 with ε = 1 \varepsilon=1 ε = 1 for models which factorize across time is not formalized, nor is the interpretation of γ t ( j , j ′ ) \gamma_t(j,j') γ t ( j , j ′ ) as the decrease of a conditional probability. In § 4.3 , the probabilities P X ( l t = b t ) \mathbb{P}_{\mathbf{X}}(l_t=b_t) P X ( l t = b t ) with uniform probabilities W T \mathbf{W}_T W T and B t ( ⋅ ∣ j ) B_t(\mathord\cdot\mid j) B t ( ⋅ ∣ j ) are formalized as probabilities under the backward Markov chain of Lemma 4. Their limit as T − t T-t T − t grows is not formalized, nor are the interpretation of Proposition 4 as the independent Metropolis–Hastings sampler and the proportion of the time steps at which the moves of M-BS follow the Metropolis rule.
In Section C, the almost sure positivity of the denominator of (11) is not formalized. The formalized results do not use it, because of the convention of Section F.7. Only multinomial resampling is proved to satisfy Definition 1, whereas stratified, systematic, residual, and killing resampling are taken to satisfy it from Finke et al. [17 ] . The failure of the second part of Lemma 3 in this setting, of which Section D.2 gives an example, is not formalized. Neither is the distribution of ( b t + 1 , a t ) (b_{t+1},a_t) ( b t + 1 , a t ) in Algorithm 2.b with multinomial resampling. Finally, neither are the reductions, with multinomial resampling and potential functions of the current state, of (12) with the identity kernels to (6) , and of Algorithm 3 to the usual implementation of § 2 .