Histograms and Wavelets on Probabilistic Data

Graham Cormode, Minos N. Garofalakis

This paper, authored by Graham Cormode and Minos Garofalakis, tackles a fundamental challenge in modern data management: how to summarize data when you aren't 100% sure what that data actually is.

TL;DR

The authors provide the first formal framework and optimal algorithms for building histogram and wavelet synopses over probabilistic data. By extending deterministic data reduction techniques to the "possible worlds" semantics of uncertain databases, they demonstrate that specialized probabilistic algorithms significantly outperform naive approaches like sampling or simple averaging.

What Problem Does This Paper Address?

In the real world, data is messy. Sensor readings are noisy, record linkage tools produce matches with varying confidence levels, and data integration often involves guesswork. To handle this, researchers have developed probabilistic databases, where instead of a single "ground truth" table, the data represents a distribution over many "possible worlds."

The challenge is that these databases are massive and computationally expensive to query (often #P-hard). In traditional databases, we solve this using synopses—compact summaries like histograms or wavelets that allow for fast, approximate answers. However, standard synopsis techniques assume data is deterministic. If you just take the "average" of your uncertain data and build a histogram on that, you lose the underlying variance and risk producing highly inaccurate results, especially when dealing with relative error metrics.

Methods

The paper focuses on two primary types of synopses:

  1. Histograms: The goal is to partition the data into $B$ "buckets" to minimize an error metric. The authors show that the "Principle of Optimality" still holds for expected costs, allowing them to use Dynamic Programming (DP). The core innovation lies in how they efficiently calculate the "cost" of a bucket across all possible worlds. They provide solutions for several error metrics:
  2. Cumulative metrics: Sum-Squared Error (SSE), Sum-Relative Error, etc.
  3. Maximum metrics: Maximum-Absolute Error (MAE) and Maximum-Absolute Relative Error (MARE).
  4. They utilize precomputed prefix-sum arrays to ensure that once the data is processed, the cost of any potential bucket can be found in $O(1)$ or $O(\log |V|)$ time.
  5. Wavelets: For Sum-Squared Error (SSE), the authors prove a surprising and elegant result: the optimal probabilistic wavelet synopsis is simply the standard Haar wavelet transform performed on the expected values of the data. However, for non-SSE metrics (like relative error), they adapt more complex DP algorithms that traverse the wavelet coefficient tree.

Datasets

The authors evaluated their algorithms using two main sources:

  • Real-world data: The MystiQ project dataset, which contains approximately 127,000 probabilistic tuples representing potential links between a movie database and an e-commerce inventory.
  • Synthetic data: Generated using the MayBMS extension to the standard TPC-H benchmark, specifically the lineitem-partkey relation, where uncertainty is modeled as uniform probability over a set of values.

Key Insights and Ideas

  • The Failure of Naive Sampling: You cannot simply sample a few "possible worlds," build synopses for them, and average them. Synopses are structural (bucket boundaries, specific coefficients), and averaging them is often meaningless.
  • Linearity of Expectation is a Power Tool: For cumulative error metrics (like SSE), the fact that the expectation of a sum is the sum of expectations allows the authors to decompose complex probabilistic costs into manageable pieces that look very similar to deterministic costs.
  • Relative Error is the Hardest: The paper highlights that while "expected value" approaches work okay for absolute error, they fail miserably for relative error. This is because relative error is highly sensitive to the specific values in the distribution's tail, which simple averaging ignores.

Key Results

  • Superior Accuracy: In experiments on the MystiQ data, the proposed probabilistic histograms consistently achieved lower error than "Expectation" (building a synopsis on the average values) and "Sampled World" (building a synopsis on one random instance) methods.
  • Efficiency: The time complexity for building these optimal probabilistic histograms is $O(m + Bn^2)$, where $n$ is the domain size and $B$ is the number of buckets. This is asymptotically the same as the best-known algorithms for deterministic data, meaning the added "uncertainty" doesn't necessarily come with a massive computational penalty.
  • Wavelet Simplicity: The discovery that SSE-optimal wavelets only require the expected values provides a very high-performance path for systems that prioritize squared-error objectives.

Limitations and Future Work

  • Dimensionality: The paper focuses primarily on one-dimensional data distributions. Extending these optimal DP approaches to multi-dimensional histograms is notoriously difficult due to the "curse of dimensionality."
  • Query Workloads: The current models assume a uniform workload (all points are equally likely to be queried). The authors suggest that incorporating non-uniform query distributions into the error metrics is a vital next step.
  • Unrestricted Wavelets: While the paper touches on it, a deeper exploration of "unrestricted" wavelet synopses (where coefficient values can be tweaked away from their standard DWT values to further reduce error) in a probabilistic context remains open.

Summary updated

BibTeX
@inproceedings{cormode2009histograms,
  author = {Graham Cormode and Minos N. Garofalakis},
  title = {{Histograms and Wavelets on Probabilistic Data}},
  booktitle = {ICDE},
  year = {2009},
  doi = {10.1109/icde.2009.74},
}
Figure