Particle Filter-based Policy Gradient in POMDPs

Pierre-Arnaud Coquelin, Romain Deguest, Rémi MunosNeurIPS 2008

TL;DR

This paper introduces a robust method for calculating policy gradients in Partially Observable Markov Decision Processes (POMDPs) where the policy relies on a Particle Filter to estimate the hidden state. The authors identify that standard finite-difference methods suffer from "variance explosion" due to the discrete nature of particle resampling. To solve this, they propose a Common-indices Finite Difference (CIFD) method that uses likelihood ratios to ensure smooth, low-variance gradient estimates.

The Challenge of Resampling

In many real-world scenarios, such as robotics, agents do not know the exact state of the world and must rely on noisy observations. This environment is modeled as a POMDP. To make informed decisions, agents often use a Particle Filter (PF) to maintain a "belief state"—a collection of particles representing the most likely current states.

Graphical model of the POMDP with a Particle Filter

If we want to improve a policy using Policy Gradient methods, we need to know how a tiny change in the policy parameters ($\theta$) affects the overall performance measure ($J$). A common way to estimate this is through Finite Differences (FD): comparing the results of $\theta + h$ and $\theta - h$.

However, Particle Filters involve a "resampling" step where particles are duplicated or discarded based on their weights. This step is inherently discontinuous. A tiny change in $\theta$ can cause the filter to pick a completely different set of particles, leading to a massive jump in the estimated performance. As the step size $h$ gets smaller, the variance of the gradient estimate "explodes," making standard optimization impossible.

The CIFD Method

To overcome this variance explosion, the authors propose the Common-indices Finite Difference (CIFD) algorithm. The key innovations include:

  1. Index Coupling: Instead of letting the $\theta + h$ and $\theta - h$ trajectories resample independently, the algorithm forces them to use the exact same selection indices as a reference trajectory (the base $\theta$ trajectory).
  2. Likelihood Ratio Correction: Because forcing the same indices on different parameters introduces bias, the authors apply a likelihood ratio (importance sampling weight) to the particles. This ratio accounts for how much more (or less) likely a particle path is under the perturbed parameters compared to the original ones.
  3. Pathwise Sensitivity: By coupling the trajectories and using likelihood ratios, the performance measure becomes a smooth function of $\theta$. This allows the variance to remain stable ($O(1/N)$) even as the step size $h$ approaches zero.

This approach sits between a "naive" finite difference and Infinitesimal Perturbation Analysis (IPA), providing the stability of IPA without requiring the programmer to analytically derive derivatives for every component of the complex system.

Experiments & Results

The paper evaluates the CIFD method using a synthetic 2D Robot Navigation Task. The robot must reach the origin $(0,0)$ but only receives noisy measurements of its squared distance to the goal. Its policy dictates whether to move directly toward the goal or move orthogonally to improve its self-localization (since moving sideways can sometimes provide better distance-change information).

Performance and Gradient estimates across parameter theta

Key Insights

  • Variance Stability: In the robot experiment, with a tiny step size ($h = 10^{-6}$), the Naive FD method produced a variance of 6980 (completely unusable). In contrast, the proposed CIFD method maintained a stable variance of 0.0188.
  • Bias Control: The CIFD method demonstrated an asymptotic bias of $O(h^2)$, similar to standard centered finite difference schemes, but without the associated variance penalty.
  • The Exploration-Localization Trade-off: The method successfully identified the optimal trade-off parameter for the robot navigation task. As shown in the performance estimates, the optimal policy isn't the "greedy" one that always goes straight to the goal. Instead, the best policy (around $\theta \approx 0.3$) involves a slight orthogonal movement that helps the Particle Filter localize the robot more accurately, leading to better long-term performance.

Limitations and Future Work

  • Computational Complexity: The current implementation requires simulating three populations of particles (plus, minus, and reference) per derivative. For a policy with $K$ parameters, this scales to $K+1$ populations, which could become computationally expensive for high-dimensional parameter spaces.
  • Comparison to IPA: While CIFD is easier to implement than IPA, IPA only requires one population of particles. The authors suggest that their "common indices" idea could be used to derive a formal IPA estimator, which would be more efficient but harder to code.
  • Scaling: The experiments were conducted on a relatively simple 2D task. Further research is needed to see how well this method scales to high-dimensional state spaces or more complex neural network-based policies.

Summary updated

BibTeX
@inproceedings{coquelin2008particle,
  author = {Pierre-Arnaud Coquelin and Romain Deguest and Rémi Munos},
  title = {{Particle Filter-based Policy Gradient in POMDPs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2008},
  url = {https://openreview.net/forum?id=SyNZPwW_WS},
}
Figure