Skip to main content
QUICK REVIEW

[Paper Review] PClean: Bayesian Data Cleaning at Scale with Domain-Specific Probabilistic Programming

Alexander K. Lew, Monica Agrawal|arXiv (Cornell University)|Jul 23, 2020
Data Quality and ManagementDecision Sciences4 citations
TL;DR

PClean is a domain-specific probabilistic programming language that enables scalable, accurate Bayesian data cleaning by combining a non-parametric generative model of relational databases with a novel sequential Monte Carlo inference algorithm and a smart compiler for optimized proposals. It achieves state-of-the-art accuracy and speed on real-world datasets with millions of records using concise (<50-line) user programs.

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. 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 (&lt; 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.

Motivation & Objective

  • Address the challenge of automating data cleaning in real-world datasets with diverse, complex error patterns.
  • Overcome the limitations of general-purpose probabilistic programming languages (PPLs) in scalability and inference efficiency for data cleaning tasks.
  • Enable users to specify concise, domain-specific models of data and likely errors using a high-level language.
  • Develop a compilation pipeline that generates near-optimal inference proposals and rejuvenation kernels tailored to the user’s model and data.
  • Achieve both high accuracy and fast runtime on large-scale datasets, matching or exceeding state-of-the-art systems.

Proposed method

  • Define a non-parametric prior over latent relational database instances, allowing flexible modeling of unknown numbers of entities and their relationships.
  • Design a sequential Monte Carlo (SMC) inference algorithm that initializes plausible latent databases and uses data-driven proposals to guide sampling.
  • Implement a novel rejuvenation mechanism using blocked Gibbs sampling and Particle Gibbs to correct errors in object-level states.
  • Compile user-defined models into optimized proposal distributions by exploiting conditional independence and sufficient statistics.
  • Introduce observation hashing to accelerate reference slot resolution by indexing observed attribute values and limiting candidate targets.
  • Support hybrid discrete-continuous modeling by separating discrete and continuous variable proposals and using preferred values to constrain search space.

Experimental results

Research questions

  • RQ1Can a domain-specific PPL achieve both high accuracy and scalability in Bayesian data cleaning on real-world datasets with millions of records?
  • RQ2How can inference efficiency be improved in non-parametric relational models through model-aware proposal generation?
  • RQ3To what extent can a compiler-generated, data-driven proposal strategy outperform generic PPL inference in terms of speed and accuracy?
  • RQ4How do techniques like observation hashing and preferred values reduce computational cost in large-scale data cleaning?
  • RQ5Can a principled Bayesian framework match or exceed discriminative, state-of-the-art data-cleaning systems in both runtime and F1 score?

Key findings

  • PClean programs of fewer than 50 lines achieve higher accuracy and faster runtime than generic PPL inference on standard data-cleaning benchmarks.
  • PClean matches or exceeds the accuracy and runtime of state-of-the-art data-cleaning systems (e.g., HoloClean, Dallachiesat et al.) on real-world datasets with up to 2.2 million rows.
  • The proposal compiler generates locally optimal SMC proposals when discrete variables are fully constrained, and suboptimal but efficient proposals when continuous variables or preferred values are involved.
  • Observation hashing reduces the cost of reference slot resolution to O(|W|) time per object, enabling efficient scaling to large datasets with many latent entities.
  • Particle Gibbs rejuvenation significantly improves acceptance rates for continuous variables when proposals are poor, enhancing convergence and accuracy.
  • The system scales to real-world datasets with millions of records, demonstrating practical viability beyond synthetic or small-scale benchmarks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.