[Paper Review] Using probabilistic programs as proposals
This paper introduces 'proposal programs'—probabilistic programs that encode user knowledge about posterior distributions to improve Monte Carlo inference. By combining domain-specific heuristics (e.g., RANSAC) with neural networks, these programs generate efficient, consistent proposals for importance sampling and Metropolis-Hastings, enabling offline optimization via stochastic gradient descent while preserving asymptotic consistency.
Monte Carlo inference has asymptotic guarantees, but can be slow when using generic proposals. Handcrafted proposals that rely on user knowledge about the posterior distribution can be efficient, but are difficult to derive and implement. This paper proposes to let users express their posterior knowledge in the form of proposal programs, which are samplers written in probabilistic programming languages. One strategy for writing good proposal programs is to combine domain-specific heuristic algorithms with neural network models. The heuristics identify high probability regions, and the neural networks model the posterior uncertainty around the outputs of the algorithm. Proposal programs can be used as proposal distributions in importance sampling and Metropolis-Hastings samplers without sacrificing asymptotic consistency, and can be optimized offline using inference compilation. Support for optimizing and using proposal programs is easily implemented in a sampling-based probabilistic programming runtime. The paper illustrates the proposed technique with a proposal program that combines RANSAC and neural networks to accelerate inference in a Bayesian linear regression with outliers model.
Motivation & Objective
- To address the challenge of designing efficient proposal distributions in Monte Carlo inference that are both accurate and scalable.
- To enable users to express domain-specific knowledge about posterior structure through executable probabilistic programs, rather than hand-coding proposal distributions.
- To provide a formal framework for using these programs as proposal distributions in importance sampling and Metropolis-Hastings without sacrificing asymptotic consistency.
- To develop an offline optimization procedure using stochastic gradient descent to train proposal program parameters.
- To demonstrate the practical effectiveness of combining heuristic algorithms with neural networks in proposal programs for accelerating inference in complex models.
Proposed method
- Proposal programs are defined as probabilistic programs with designated output choices and internal random choices, where proposal probabilities are estimated during execution.
- The method supports using these programs as proposal distributions in importance sampling and Metropolis-Hastings, with theoretical guarantees of asymptotic consistency.
- A stochastic gradient descent algorithm is proposed for offline learning of proposal program parameters, using a Monte Carlo variational objective.
- The approach combines randomized heuristic algorithms (e.g., RANSAC) to identify high-probability regions of the posterior and neural networks to model uncertainty around those regions.
- Implementation is supported in sampling-based probabilistic programming runtimes, with example code in Gen.jl, a Julia-based probabilistic language.
- The framework allows for nested inference and alternative trace distributions to improve proposal probability estimation, leveraging existing inference machinery.
Experimental results
Research questions
- RQ1Can probabilistic programs be used as proposal distributions in Monte Carlo inference while preserving asymptotic consistency?
- RQ2How can domain-specific heuristic algorithms be integrated with neural networks within a proposal program to improve sampling efficiency?
- RQ3What optimization procedure enables effective offline training of proposal program parameters using stochastic gradient descent?
- RQ4How does the number of internal replicates in the simulation and assessment procedure affect the efficiency of Monte Carlo inference with proposal programs?
- RQ5Can proposal programs be implemented efficiently in a sampling-based probabilistic programming runtime without modifying the underlying inference engine?
Key findings
- Proposal programs maintain asymptotic consistency in importance sampling and Metropolis-Hastings algorithms, even when using estimated proposal probabilities instead of exact ones.
- The proposed offline optimization via stochastic gradient descent enables efficient learning of proposal program parameters, improving convergence speed and accuracy in practice.
- Combining RANSAC with neural networks in a proposal program significantly accelerates inference in a Bayesian linear regression model with outliers.
- The method supports arbitrary internal random choices within proposal programs, allowing complex, structured proposal distributions independent of the target model’s structure.
- The framework is extensible and can be integrated into existing probabilistic programming systems with minimal changes to the runtime.
- Future work suggests that nested inference and alternative trace distributions can further improve proposal probability estimation and sampling efficiency.
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.