Path Finding under Uncertainty through Probabilistic Inference

David Tolpin, Brooks Paige, Frank D. WoodarXiv 2015

Abstract

We introduce a new approach to solving path-finding problems under uncertainty by representing them as probabilistic models and applying domain-independent inference algorithms to the models. This approach separates problem representation from the inference algorithm and provides a framework for efficient learning of path-finding policies. We evaluate the new approach on the Canadian Traveler Problem, which we formulate as a probabilistic model, and show how probabilistic inference allows high performance stochastic policies to be obtained for this problem.

Introduction

In traditional planning under uncertainty, the objective is to identify a policy that maximizes expected rewards or minimizes costs in environments where outcomes are stochastic. Historically, this has necessitated specialized algorithms such as Reinforcement Learning (e.g., Q-learning) or complex heuristic searches like Monte Carlo Tree Search (MCTS).

The primary challenge with these methods is their reliance on domain-specific implementations; changing the problem often requires a complete rewrite of the solver. This research explores a different paradigm: treating planning as a generic inference problem. By representing the environment as a probabilistic model, we can leverage domain-independent inference engines to identify optimal paths, effectively decoupling the modeling of the problem from the algorithm used to solve it.

Methodology

The authors utilize the framework of Probabilistic Programming, which extends standard programming with the ability to draw random values from distributions (DRAW) and condition values based on observations (OBSERVE).

The core technical contribution is the establishment of a duality between path-finding and Maximum A-Posteriori (MAP) inference. Specifically, the log-probability of a program execution path (a "trace") is mapped directly to the negated cost of a path in a graph. To learn a policy, the authors propose a generic algorithm:

  1. Sample a problem instance (e.g., determining which roads are blocked).
  2. Sample a candidate policy from a prior distribution.
  3. Execute the agent using that policy and calculate the total travel cost.
  4. Use an OBSERVE statement to weight the probability of that policy by $e^{-cost}$.
  5. Perform inference (using Lightweight Metropolis-Hastings) to find the mode of the distribution—the policy that consistently results in the lowest costs.

Experimental Setup: The Canadian Traveller Problem

The approach was evaluated using the Canadian Traveller Problem (CTP), a PSPACE-hard path-finding challenge. In CTP, an agent must reach a destination in a graph where edges may be blocked, but the status of an edge is only revealed when the agent reaches one of its endpoints.

Synthetic CTP instances were generated by placing 20 or 50 nodes randomly on a unit square using a Poisson distribution. These nodes were connected via Delaunay triangulation, with edge weights assigned based on Euclidean distance and traversability probabilities ($p$) ranging from 0.35 to 1.0.

Key Results and Policy Visualization

The learned policies demonstrated significant performance gains, achieving a 50–80% improvement in travel cost compared to a uniform stochastic baseline. As shown in the convergence plots, the policies for both 20-node and 50-node configurations converged relatively quickly, typically within 1,000 iterations of the inference algorithm.

Average travel cost decreases and converges as the number of samples increases for different graph sizes and edge probabilities.

A unique advantage of this probabilistic approach is the ability to visualize the learned stochastic policies. Rather than a single deterministic path, the inference engine produces a probability distribution over actions at each node.

Visualization of a learned stochastic policy where edge widths represent the probability of choosing a particular path under uncertainty.

In the visualization above, thicker edges represent higher confidence in a particular move. This provides an intuitive understanding of how the agent navigates uncertainty, prioritizing paths that are more likely to be traversable or lead to lower overall costs.

Discussion and Future Work

This work demonstrates that the "Cost-Probability Bridge"—defining the probability of a policy as proportional to $e^{-cost}$—guarantees that the most likely policy is the one minimizing expected cost. This separation of concerns allows researchers to focus on the generative model of the problem while the inference engine handles optimization.

However, limitations remain. The current implementation focuses on "offline" learning, where a policy is chosen before the journey begins. Future work could explore "online" learning to update policies as new information is gathered. Additionally, while the method scales to 50 nodes, larger state spaces may require more sophisticated inference algorithms than basic Metropolis-Hastings. Finally, the "cost scale" hyperparameter currently requires manual tuning to optimize convergence speed.

Summary updated

BibTeX
@misc{tolpin2015path,
  author = {David Tolpin and Brooks Paige and Frank D. Wood},
  title = {{Path Finding under Uncertainty through Probabilistic Inference}},
  year = {2015},
  eprint = {1502.07314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1502.07314},
}
Figure