[Paper Review] Learning Proposals for Probabilistic Programs with Inference Combinators
This paper introduces inference combinators—composable, user-programmable operators for constructing properly-weighted importance samplers in probabilistic programs. By enabling neural proposal learning via variational objectives, the framework supports correct-by-construction amortized inference methods, demonstrated through advanced techniques like annealing and Gibbs sampling.
We develop operators for construction of proposals in probabilistic programs, which we refer to as inference combinators. Inference combinators define a grammar over importance samplers that compose primitive operations such as application of a transition kernel and importance resampling. Proposals in these samplers can be parameterized using neural networks, which in turn can be trained by optimizing variational objectives. The result is a framework for user-programmable variational methods that are correct by construction and can be tailored to specific models. We demonstrate the flexibility of this framework by implementing advanced variational methods based on amortized Gibbs sampling and annealing.
Motivation & Objective
- Address the challenge of designing flexible, reusable, and correct inference strategies for structured probabilistic models.
- Overcome the difficulty of implementing advanced MCMC and importance sampling methods in probabilistic programming systems due to model-specific structural dependencies.
- Enable user-programmable variational inference by formalizing a grammar of inference combinators that compose to form valid samplers.
- Support end-to-end training of neural proposal networks using variational objectives to improve posterior approximation in complex models.
- Demonstrate the framework's flexibility by implementing state-of-the-art inference methods such as annealed and Gibbs-based samplers.
Proposed method
- Define inference combinators as first-class constructs that compose primitive operations like transition kernels, proposal assignment, and importance resampling.
- Formalize semantics ensuring all samplers generated by the combinators produce properly weighted samples under the target density.
- Integrate neural networks as parameterized proposals within the combinator framework, enabling differentiable training via variational objectives.
- Use nested variational inference to minimize KL divergence between the true posterior and the learned proposal distribution.
- Implement the framework in Probabilistic Torch, supporting control flow, recursion, and higher-order functions with tractable conditional densities.
- Design specialized proposal networks for video object tracking, using convolutional preprocessing and MLP encoders for position and object feature inference.
Experimental results
Research questions
- RQ1How can we design a composable, user-extensible language for inference strategies that guarantees correctness in importance sampling?
- RQ2Can inference combinators enable the implementation of advanced variational inference methods such as annealing and Gibbs sampling in a principled way?
- RQ3To what extent can neural proposal networks trained via variational objectives improve posterior approximation in structured probabilistic programs?
- RQ4How does the framework support generalization to models with different numbers of objects and time steps beyond the training distribution?
- RQ5What is the impact of using model-structure-aware proposals (e.g., conditional on reconstructed objects) on inference quality in sequential modeling tasks?
Key findings
- The inference combinator framework ensures that all constructed samplers are properly weighted under the target density, guaranteeing correctness by construction.
- The framework successfully implements advanced inference methods such as annealing and amortized Gibbs sampling, demonstrating flexibility beyond standard variational inference.
- Proposals trained with variational objectives generalize to test instances with up to D=5 objects and T=100 time steps, exceeding the training setup of D=3 and T=10.
- Conditional proposals that incorporate reconstructed object images (via convolutional features) improve localization accuracy for object positions in video sequences.
- The use of spatial transformers to crop frames based on predicted locations enables effective feature extraction for object representation learning.
- The MLP encoder architecture for proposal parameters achieves stable training and effective posterior approximation through hierarchical feature processing and non-linear transformations.
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.