Algorithm Search⌘K

Theoremresearch

Particle filter collapse in high dimensions

Also called particle filter weight collapse.

In a bootstrap particle filter with Gaussian log weights of standard deviation τ, one particle takes almost all the weight unless the number of particles grows like exp(τ²/2).

The weights of a bootstrap particle filter are proportional to the likelihood of each particle. When there are many independent observations, the log likelihood is a sum of many terms, so across the particles it is close to Gaussian with a variance τ2\tau^2 that grows with the number of observations. If the number of particles NN grows more slowly than exp⁡(c τ2)\exp(c\,\tau^2) for every c>0c > 0, the largest weight tends to 1 and the filter keeps only copies of one particle. Snyder, Bengtsson, Bickel and Anderson (2008) showed that the effective sample size stays useful only if log⁡N\log N grows like τ2\tau^2, so that NN grows like exp⁡(τ2/2)\exp(\tau^2/2), and Bengtsson, Bickel and Li (2008) gave the collapse in this form.

Statement

Setting. The log weights are ℓi=τzi\ell_i = \tau z_i, i=1,…,Ni = 1, \ldots, N, with z1,…,zNz_1, \ldots, z_N independent N(0,1)N(0, 1) and τ>0\tau > 0, and the normalized weights are wi=eℓi/∑meℓmw_i = e^{\ell_i}/\sum_m e^{\ell_m}. Let wmax⁡=max⁡iwiw_{\max} = \max_i w_i. This is the Gaussian model of the log likelihood: for pp independent observations with independent errors the log likelihood is a sum of pp independent terms, and by the central limit theorem it is close to Gaussian across the particles, with τ2\tau^2 of order pp.

Theorem (weight collapse). Let N→∞N \to \infty and τ→∞\tau \to \infty with (log⁡N)/τ2→0(\log N)/\tau^2 \to 0. Then wmax⁡→1w_{\max} \to 1 in probability.

Gaussian observations. Let the prior of the particles be N(0,B)N(0, B), let y=Hx+ϵy = Hx + \epsilon with ϵ∼N(0,R)\epsilon \sim N(0, R), and let λ12,…,λp2\lambda_1^2, \ldots, \lambda_p^2 be the eigenvalues of R−1/2HBH⊤R−1/2R^{-1/2}HBH^\top R^{-1/2}. The variance of the log likelihood over the particles, averaged over yy, is

τ2=∑j=1pλj2(1+32λj2).\tau^2 = \sum_{j=1}^p \lambda_j^2\Big(1 + \tfrac32\lambda_j^2\Big).

For B=IB = I, H=IH = I and R=IR = I in nn dimensions, τ2=52n\tau^2 = \tfrac52 n, which grows linearly with the dimension.

In plain words

A particle filter scores each guess of the state by how likely the measurements are if that guess were true. With many measurements the scores add up from many small parts, and the gaps between the guesses grow. The best guess then has a score so much higher than all others that it gets almost all the weight, and the filter in effect keeps one guess. To stop this, the number of guesses must grow exponentially with the number of independent measurements. For a weather model this number is far too large.

Proof

Let aN>0a_N > 0 solve N(1−Φ(aN))=1N(1 - \Phi(a_N)) = 1, where Φ\Phi is the standard normal distribution function and φ\varphi its density. Then aN→∞a_N \to \infty and aN2/(2log⁡N)→1a_N^2/(2\log N) \to 1, so the hypothesis gives aN/τ→0a_N/\tau \to 0. The proof uses the Mills ratio: 1−Φ(s)=φ(s)/s (1+o(1))1 - \Phi(s) = \varphi(s)/s\,(1 + o(1)) as s→∞s \to \infty.

Let M=max⁡iziM = \max_i z_i, attained at i∗i^\ast. Then wmax⁡=1/(1+S)w_{\max} = 1/(1 + S) with S=∑i≠i∗eτ(zi−M)S = \sum_{i \ne i^\ast} e^{\tau(z_i - M)}, and it is enough to show that S→0S \to 0 in probability. Fix ε>0\varepsilon > 0 and λ>0\lambda > 0, and let s=aN−λ/aNs = a_N - \lambda/a_N.

The level ss. By the Mills ratio, N(1−Φ(s))=φ(s)φ(aN)aNs(1+o(1))=eλ−λ2/(2aN2)(1+o(1))→eλN(1 - \Phi(s)) = \frac{\varphi(s)}{\varphi(a_N)}\frac{a_N}{s}(1 + o(1)) = e^{\lambda - \lambda^2/(2a_N^2)}(1 + o(1)) \to e^\lambda. So the number CC of the ziz_i above ss is binomial with mean μN→eλ\mu_N \to e^\lambda, and P(M≤s)=Φ(s)N→exp⁡(−eλ)P(M \le s) = \Phi(s)^N \to \exp(-e^\lambda). Choose λ\lambda so large that exp⁡(−eλ)<ε\exp(-e^\lambda) < \varepsilon.

The terms below ss. On the event M>sM > s,

∑i: zi≤seτ(zi−M)≤e−τs∑i=1Neτzi 1{zi≤s}=:T.\sum_{i:\, z_i \le s} e^{\tau(z_i - M)} \le e^{-\tau s} \sum_{i=1}^N e^{\tau z_i}\,\mathbf 1\{z_i \le s\} =: T .

Completing the square gives E[eτz1{z≤s}]=eτ2/2 Φ(s−τ)\mathbb E[e^{\tau z}\mathbf 1\{z \le s\}] = e^{\tau^2/2}\,\Phi(s - \tau). Since s/τ→0s/\tau \to 0, τ−s→∞\tau - s \to \infty, and the Mills ratio gives Φ(s−τ)≤φ(τ−s)/(τ−s)\Phi(s - \tau) \le \varphi(\tau - s)/(\tau - s). With e−τseτ2/2φ(τ−s)=φ(s)e^{-\tau s}e^{\tau^2/2}\varphi(\tau - s) = \varphi(s),

E[T]≤Nφ(s)τ−s=N(1−Φ(s)) s (1+o(1))τ−s→0,\mathbb E[T] \le \frac{N\varphi(s)}{\tau - s} = \frac{N(1 - \Phi(s))\,s\,(1 + o(1))}{\tau - s} \to 0,

because N(1−Φ(s))→eλN(1 - \Phi(s)) \to e^\lambda and s/τ→0s/\tau \to 0. By the Markov inequality, T→0T \to 0 in probability.

The terms above ss. Let EδE_\delta be the event that two of the values above ss lie within δ\delta of each other. Given CC, the values above ss are independent with the density φ(x)/(1−Φ(s))\varphi(x)/(1 - \Phi(s)) on (s,∞)(s, \infty), which is at most φ(s)/(1−Φ(s))=s(1+o(1))\varphi(s)/(1 - \Phi(s)) = s(1 + o(1)). So two given values are within δ\delta of each other with probability at most 2δs(1+o(1))2\delta s(1 + o(1)), and

P(Eδ)≤E[(C2)] 2δs (1+o(1))≤μN2 δs (1+o(1)),P(E_\delta) \le \mathbb E\Big[\binom C2\Big]\,2\delta s\,(1 + o(1)) \le \mu_N^2\,\delta s\,(1 + o(1)),

using E[C(C−1)]≤μN2\mathbb E[C(C - 1)] \le \mu_N^2 for a binomial CC. Take δ=η/aN\delta = \eta/a_N with η>0\eta > 0 so small that e2λη<εe^{2\lambda}\eta < \varepsilon. Then P(Eδ)<2εP(E_\delta) < 2\varepsilon for large NN. Outside EδE_\delta, every zi>sz_i > s with i≠i∗i \ne i^\ast satisfies zi≤M−δz_i \le M - \delta, so the terms above ss sum to at most C e−ητ/aNC\,e^{-\eta\tau/a_N}, and CC is bounded in probability while ητ/aN→∞\eta\tau/a_N \to \infty.

Together. Outside an event of probability at most 4ε4\varepsilon for large NN, S≤T+C e−ητ/aNS \le T + C\,e^{-\eta\tau/a_N}, and both terms tend to 0 in probability. Since ε\varepsilon is arbitrary, S→0S \to 0 and wmax⁡→1w_{\max} \to 1 in probability. □\square

The Gaussian variance. Rotate and scale so that R=IR = I and HBH⊤=diag(λj2)HBH^\top = \mathrm{diag}(\lambda_j^2); then ℓ=−12∑j(yj−vj)2\ell = -\tfrac12\sum_j (y_j - v_j)^2 up to a constant, with independent vj=(Hx)j∼N(0,λj2)v_j = (Hx)_j \sim N(0, \lambda_j^2) over the particles. For fixed yjy_j, yj−vj∼N(yj,λj2)y_j - v_j \sim N(y_j, \lambda_j^2), and the variance of the square of an N(m,σ2)N(m, \sigma^2) variable is 2σ4+4m2σ22\sigma^4 + 4m^2\sigma^2, so Var(ℓ∣y)=∑j(12λj4+yj2λj2)\mathrm{Var}(\ell \mid y) = \sum_j(\tfrac12\lambda_j^4 + y_j^2\lambda_j^2). Under the model E[yj2]=λj2+1\mathbb E[y_j^2] = \lambda_j^2 + 1, which gives ∑jλj2(1+32λj2)\sum_j \lambda_j^2(1 + \tfrac32\lambda_j^2). With λj=1\lambda_j = 1 each term is 52\tfrac52. □\square

Consequences

  • The number of particles must grow exponentially. For τ2=52n\tau^2 = \tfrac52 n, the theorem says that any N=eo(n)N = e^{o(n)} collapses, so a useful NN grows exponentially with the number of independent observations (a theorem).
  • The asymptotic rate. Snyder, Bengtsson, Bickel and Anderson (2008) derive E[1/wmax⁡]≈1+2log⁡N/τ\mathbb E[1/w_{\max}] \approx 1 + \sqrt{2\log N}/\tau for large NN (an asymptotic approximation, a heuristic for finite NN). To keep E[1/wmax⁡]\mathbb E[1/w_{\max}] at 1+κ1 + \kappa, log⁡N\log N must be about κ2τ2/2\kappa^2\tau^2/2, so NN grows like exp⁡(κ2τ2/2)\exp(\kappa^2\tau^2/2); κ=1\kappa = 1 gives exp⁡(τ2/2)\exp(\tau^2/2).
  • Weather models. Snyder and coworkers estimate from simulations that the Gaussian example with independent unit variances needs at least 101110^{11} particles for a 200-dimensional state (a measurement). Weather models have far more independent observations, so the global bootstrap filter cannot be used.
  • The ways out. The local particle filter bounds the number of observations in each weight. Proposal densities that use the observations, tempering, and Gaussian methods such as the ensemble Kalman filter are the other ways out (van Leeuwen and coworkers 2019).

Tightness

The condition (log⁡N)/τ2→0(\log N)/\tau^2 \to 0 is the right scale. If 2log⁡N/τ\sqrt{2\log N}/\tau stays at a fixed κ>0\kappa > 0, the approximation of Snyder and coworkers gives E[1/wmax⁡]→1+κ\mathbb E[1/w_{\max}] \to 1 + \kappa, so wmax⁡w_{\max} does not tend to 1 (a heuristic; Bengtsson, Bickel and Li study this boundary). A measurement with ℓi=τzi\ell_i = \tau z_i, the mean over 200 cases for N=100N = 100 and 40 cases for N=104N = 10^4:

NN τ\tau mean wmax⁡w_{\max} mean 1/wmax⁡1/w_{\max} 1+2log⁡N/τ1 + \sqrt{2\log N}/\tau
100 5 0.66 1.79 1.61
100 10 0.83 1.30 1.30
100 20 0.91 1.15 1.15
10410^4 10 0.65 1.81 1.43
10410^4 20 0.83 1.32 1.22
10410^4 40 0.96 1.06 1.11

The approximation is good once τ\tau is several times 2log⁡N\sqrt{2\log N}, and the collapse is slow: 10410^4 particles at τ=20\tau = 20 keep about the same largest weight as 100100 particles. The Gaussian model itself is also an approximation. For a small number of observations the log likelihood is skewed, and the collapse can be faster or slower than the model predicts.

History

Snyder, Bengtsson, Bickel and Anderson (2008) showed with asymptotic analysis and simulations that the ensemble size of the bootstrap particle filter must grow exponentially with the variance of the log likelihood, and gave the estimate of 101110^{11} particles for a 200-dimensional state. Bengtsson, Bickel and Li (2008) gave the collapse of the largest weight in very large systems in a probabilistic form. These results motivated the local particle filters and the proposal density methods reviewed by van Leeuwen and coworkers (2019).

References

  1. C. Snyder, T. Bengtsson, P. Bickel and J. Anderson, Obstacles to high-dimensional particle filtering, Monthly Weather Review 136(12) (2008) 4629-4640, the asymptotic largest weight 1 + sqrt(2 log N)/τ, the Gaussian example, and the estimate of at least 10^11 members for a 200-dimensional state in the abstract
  2. T. Bengtsson, P. Bickel and B. Li, Curse-of-dimensionality revisited, collapse of the particle filter in very large scale systems, in Probability and Statistics, Essays in Honor of David A. Freedman, IMS Collections 2 (2008), the collapse of the largest weight when the log likelihood variance grows faster than log N
  3. P. J. van Leeuwen, H. R. Künsch, L. Nerger, R. Potthast and S. Reich, Particle filters for high-dimensional geoscience applications, a review, Quarterly Journal of the Royal Meteorological Society 145(723) (2019) 2335-2365, the discussion of weight degeneracy and the methods that avoid it

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/AKHZXV/text.yaml