Probabilistic Data Analysis with Probabilistic Programming

Feras Saad, Vikash MansinghkaarXiv 2016

Introduction

Modern data analysis is often fragmented across methodological silos. Researchers frequently find themselves choosing between "black-box" machine learning classifiers (e.g., Random Forests) and "white-box" probabilistic models (e.g., hierarchical Bayesian models). Integrating these disparate approaches—such as combining a causal physics simulation with a non-parametric clustering algorithm—typically requires bespoke, error-prone inference code.

In "Probabilistic Data Analysis with Probabilistic Programming," Saad and Mansinghka introduce Composable Generative Population Models (CGPMs). This framework provides a standardized software interface that allows diverse probabilistic models to be composed into a single unified network. By integrating CGPMs into BayesDB, the authors demonstrate that complex, hybrid data analysis tasks can be performed with significantly less code than standard workflows without sacrificing accuracy.

The CGPM Abstraction

The core innovation of this work is the CGPM, a computational abstraction for probabilistic models. Rather than treating a model solely as a mathematical formula, a CGPM is defined by a software contract requiring the implementation of three key operations:

  1. simulate: Generating samples from the model's distribution.
  2. logpdf: Evaluating the probability density of specific observations.
  3. infer: Updating internal states based on new data.
Plate notation of a Composable Generative Population Model (CGPM).

As shown in Figure 1, a CGPM $\mathcal{G}$ defines a generative process for a population. For each individual $r$, the model takes inputs $y_r$ and uses global parameters $\theta$ (governed by hyperparameters $\alpha$) to determine latent variables $z_r$ and observed outputs $x_r$. This standardization allows models as diverse as Random Forests, PCA modules, and VentureScript programs to be treated as interchangeable components. These components can be organized into a Directed Acyclic Graph (DAG), where the output of one model serves as the input to another.

This system is operationalized within BayesDB through two high-level languages: the Metamodeling Language (MML) for defining model schemas and the Bayesian Query Language (BQL) for asking probabilistic questions using SQL-like syntax.

Applications and Results

The framework was evaluated using several datasets, most notably the UCS Satellite Dataset, which contains features for over 1,100 satellites.

Hybrid Modeling and Anomaly Detection

A key strength of the CGPM approach is its ability to hybridize models. By composing a causal probabilistic program implementing Kepler’s Third Law with a non-parametric Bayesian model, the authors identified data-entry errors in the satellite dataset. For instance, the Orion6 satellite was flagged because its recorded orbital period deviated significantly from the physical constraints of its altitude. This hybrid model required fewer than 50 lines of code.

Efficiency and Accuracy

The authors report a roughly 10x reduction in code complexity compared to standard Python or MATLAB workflows for similar tasks. In high-dimensional regression benchmarks, the BayesDB/CGPM approach outperformed standard baselines like Ridge and Lasso regression. Furthermore, a hybrid "CrossCat + Random Forest" model reduced classification errors by 11% compared to a baseline generative model by better capturing complex, non-linear orbital categories.

Discussion and Future Work

While CGPMs offer a powerful abstraction for modular probabilistic modeling, several challenges remain. Current inference relies heavily on importance sampling, which may struggle with very deep or complex networks of models. Future work aims to incorporate more sophisticated Monte Carlo or variational inference strategies. Additionally, extending the interface to handle multi-row queries (e.g., identifying clusters of similar entities) and more complex data types like graphs and unstructured text remains a priority for the development of the framework.

By bridging the gap between discriminative machine learning and generative probabilistic programming, CGPMs provide a flexible and efficient path forward for complex data analysis.

Summary updated

BibTeX
@misc{saad2016probabilistic,
  author = {Feras Saad and Vikash Mansinghka},
  title = {{Probabilistic Data Analysis with Probabilistic Programming}},
  year = {2016},
  eprint = {1608.05347},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.05347},
}
Figure