[Paper Review] Black-Box Policy Search with Probabilistic Programs
This paper introduces Black-Box Policy Learning (BBPL), a method that represents policies as probabilistic programs and learns their parameters using black-box variational inference (BBVI) to perform stochastic gradient ascent on the marginal likelihood. The approach enables model-agnostic, automatic policy learning in complex sequential decision problems, demonstrating superior performance over baselines in the Canadian Traveler Problem, RockSample, and Guess Who domains.
In this work, we explore how probabilistic programs can be used to represent policies in sequential decision problems. In this formulation, a probabilistic program is a black-box stochastic simulator for both the problem domain and the agent. We relate classic policy gradient techniques to recently introduced black-box variational methods which generalize to probabilistic program inference. We present case studies in the Canadian traveler problem, Rock Sample, and a benchmark for optimal diagnosis inspired by Guess Who. Each study illustrates how programs can efficiently represent policies using moderate numbers of parameters.
Motivation & Objective
- To develop a general-purpose framework for representing and learning parametric policies in sequential decision problems.
- To bridge black-box variational inference (BBVI) with policy search, enabling automatic parameter learning without domain-specific algorithm design.
- To demonstrate that probabilistic programs can compactly represent complex policies while supporting efficient, model-agnostic learning.
- To evaluate the method on canonical reinforcement learning and optimal diagnosis problems, showing improved performance over standard baselines.
Proposed method
- Represent policies as stochastic programs with tunable parameters, using probabilistic programming syntax to define action selection strategies.
- Formulate policy learning as marginal likelihood maximization by treating the reward as a likelihood weight in a Bayesian model.
- Apply black-box variational inference (BBVI) to perform stochastic gradient ascent on the marginal likelihood, enabling end-to-end learning of policy parameters.
- Use inference amortization to enable efficient learning without requiring gradient computation through the policy’s internal logic.
- Implement the framework in a probabilistic programming system (Anglican), allowing automatic inference and parameter learning via gradient-based optimization.
- Leverage the structure of probabilistic programs to embed domain-specific assumptions, reducing search space while maintaining expressivity.
Experimental results
Research questions
- RQ1Can probabilistic programs be used to represent a broad class of parametric policies in a compact and expressive way?
- RQ2How can black-box variational inference be adapted to perform policy search in arbitrary stochastic simulators?
- RQ3Can this approach outperform standard policy gradient and heuristic baselines in structured decision problems with partial observability?
- RQ4To what extent can learned policies generalize across episodes by encoding domain knowledge through program structure?
- RQ5How does the method scale in terms of learning efficiency and performance on high-dimensional or complex policy spaces?
Key findings
- The BBPL method successfully learns effective policies in the Canadian Traveler Problem, achieving near-optimal performance by learning edge preferences that adapt to road blockages.
- In the RockSample domain, the learned policy demonstrated structured behavior—visiting the top-left rock before the top-middle one in the 5×5 case, and following a deterministic path along the leftmost rocks in the 10×10 case.
- In the Guess Who domain, the learned policy outperformed both random and myopic information-gain baselines, showing that even a simple heuristic policy with learned weights can surpass standard approaches.
- The method achieved convergence in reward with consistent performance across independent training runs, indicating robustness and stable learning.
- The use of probabilistic programs enabled concise policy representation and automatic parameter learning without hardcoding decision logic, demonstrating the framework’s generality and expressivity.
- The results suggest that combining probabilistic programming with BBVI provides a scalable and flexible alternative to traditional policy gradient methods in structured, partially observable environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.