PClean: Bayesian Data Cleaning at Scale with Domain-Specific Probabilistic Programming

Alexander K. Lew, Monica Agrawal, David Sontag, Vikash K. Mansinghka
7/23/2020
cs.LGcs.AIstat.CO
bayesian

Official code: probcomp/PClean (232 stars, Julia, Apache-2.0, last commit 2025-09-25).

Abstract

Data cleaning is naturally framed as probabilistic inference in a generative model of ground-truth data and likely errors, but the diversity of real-world error patterns and the hardness of inference make Bayesian approaches difficult to automate. We present PClean, a probabilistic programming language (PPL) for leveraging dataset-specific knowledge to automate Bayesian cleaning.

Show full abstract

Compared to general-purpose PPLs, PClean tackles a restricted problem domain, enabling three modeling and inference innovations: (1) a non-parametric model of relational database instances, which users' programs customize; (2) a novel sequential Monte Carlo inference algorithm that exploits the structure of PClean's model class; and (3) a compiler that generates near-optimal SMC proposals and blocked-Gibbs rejuvenation kernels based on the user's model and data. We show empirically that short (< 50-line) PClean programs can: be faster and more accurate than generic PPL inference on data-cleaning benchmarks; match state-of-the-art data-cleaning systems in terms of accuracy and runtime (unlike generic PPL inference in the same runtime); and scale to real-world datasets with millions of records.

View on arXivView PDF

Code Implementations(1)

probcomp/PCleanOfficial100%
Apache-2.0

A domain-specific probabilistic programming language for scalable Bayesian data cleaning

23235JuliaSep 30, 20191 years agoApache-2.0
bayesian-inferencedata-cleaningdata-cleansingprobabilistic-graphical-modelsprobabilistic-programming

Similar Papers

Cite this paper

@article{lew2020pclean,
  title  = {PClean: Bayesian Data Cleaning at Scale with Domain-Specific Probabilistic Programming},
  author = {Alexander K. Lew and Monica Agrawal and David Sontag and Vikash K. Mansinghka},
  year   = {2020},
  eprint = {2007.11838},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2007.11838}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2007.11838.svg)](https://codeofpaper.com/paper/2007.11838)

Discussion