[Paper Review] Deep Probabilistic Programming
Edward is a Turing-complete probabilistic programming language that treats inference as a first-class citizen, integrates with TensorFlow for speed, and supports flexible composition of modeling and inference methods including VI, MCMC, and GANs.
We propose Edward, a Turing-complete probabilistic programming language. Edward defines two compositional representations---random variables and inference. By treating inference as a first class citizen, on a par with modeling, we show that probabilistic programming can be as flexible and computationally efficient as traditional deep learning. For flexibility, Edward makes it easy to fit the same model using a variety of composable inference methods, ranging from point estimation to variational inference to MCMC. In addition, Edward can reuse the modeling representation as part of inference, facilitating the design of rich variational models and generative adversarial networks. For efficiency, Edward is integrated into TensorFlow, providing significant speedups over existing probabilistic systems. For example, we show on a benchmark logistic regression task that Edward is at least 35x faster than Stan and 6x faster than PyMC3. Further, Edward incurs no runtime overhead: it is as fast as handwritten TensorFlow.
Motivation & Objective
- Advance probabilistic programming by introducing a Turing-complete, compositional language that unifies modeling and inference.
- Enable reuse of model representations during inference to support expressive variational and GAN-based approaches.
- Integrate with computational graphs (TensorFlow) to achieve efficiencies comparable to hand-written code.
- Demonstrate flexibility across inference methods (VI, MCMC, MAP, GANs) and scalability to large data.
- Provide benchmarks and a public repository of pre-trained models (Probability Zoo).
Proposed method
- Define two core compositional representations: random variables (as graph-embedded objects with log-density and sampling) and inference (as first-class objects that modify posterior parameters).
- Embed probabilistic programs on computational graphs to enable rich model-deterministic hybrids and deep architectures.
- Support stochastic control flow and data subsampling to scale to massive data while maintaining graph-based inference.
- Provide a unified framework for multiple inference algorithms (variational inference, Monte Carlo, MAP, GAN-based methods) via modular Inference classes.
- Allow inference to be composed with modeling (e.g., variational EM with alternating E and M steps).
- Demonstrate end-to-end integration with TensorFlow for fast runtime and GPU acceleration (e.g., HMC on large-scale logistic regression).
Experimental results
Research questions
- RQ1Can a probabilistic programming language be made as flexible and efficient as deep learning by treating inference as a first-class citizen?
- RQ2How can probabilistic models be composed with inference and with each other to support advances like variational inference, VAEs, and GANs?
- RQ3What performance and scalability benefits arise from integrating a PPL with computational graphs like TensorFlow?
- RQ4How do various inference strategies compare within the same model on tasks such as VAEs and Bayesian RNNs?
- RQ5Can stochastic control flow and data subsampling be effectively integrated into a unified PPL framework?
Key findings
- Edward achieves substantial speedups over existing probabilistic systems on benchmarks (e.g., HMC and logistic regression).
- On a large logistic regression task, Edward is faster than Stan by about 35x and PyMC3 by about 6x when run on GPU, with no runtime overhead relative to hand-written TensorFlow.
- Variational and Monte Carlo inference methods can be composed and compared within the same model, enabling flexible experimentation with different objective functions and gradient estimators.
- Edward enables integration of modeling and inference inside a single computational graph, allowing reuse of representations across inference and modeling components.
- The probability zoo provides a community resource of pre-trained models and posterior factors to accelerate research and reproducibility.
- Experiments on VAEs and Bayesian RNNs illustrate the ease of building complex probabilistic programs with compositional inferences and dynamic control flow.
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.