Challenges for View-Based Query Answering over Probabilistic XML

Bogdan Cautis, Evgeny Kharlamov

In modern data management, uncertainty is an inherent feature of information gathered from diverse sources like noisy web scraping, sensor networks, or imprecise schema matching. Probabilistic XML (p-XML) has emerged as a standard format for representing such uncertain hierarchical data. In a p-XML document, elements exist with specific probabilities, often governed by local dependencies like mutual exclusion.

The Problem: Beyond Data Retrieval

A common optimization in database systems is View-Based Query Answering. Instead of scanning a massive database for every request, the system leverages "views"—pre-calculated results of previous queries—to assemble the answer. While this technique is well-established for deterministic XML, p-XML introduces a significant layer of complexity.

In a probabilistic setting, a query result is not merely a set of nodes; it is a set of (node, probability) pairs. The core challenge, identified by Bogdan Cautis and Evgeny Kharlamov, is the "Probability Retrieval" problem: Can we calculate the correct probability of a query result using only the information and probabilities stored in the views?

A probabilistic XML document (P_PER) illustrating nodes with associated probabilities and structural dependencies like mutual exclusion (mux).

As shown in the figure above, p-XML documents use special nodes (like mux for mutual exclusion) to encode uncertainty. A view might capture the physical data needed for a query but "hide" the underlying probabilistic dependencies, making it impossible to reconstruct the correct final score for a result node.

Methodology: The Role of Independence

The authors investigate this problem under two semantic frameworks: Copy Semantics (where results are fresh copies without identifiers) and Persistent Node Identifiers (which allow for intersections of multiple views).

The central technical innovation is the concept of Probabilistic Independence ($q_1 \perp q_2$). This condition ensures that the existence of a match for one query does not influence the probability of a match for another. Independence acts as a bridge, allowing the system to use product-like formulas (multiplying or dividing probabilities) to derive answers from views.

A target query (q_RBON) and two views (v1_BON, v2_BON) used to illustrate how complex queries can be decomposed into simpler pre-computed components.

To operationalize this, the authors developed:

  1. An Independence Test: A polynomial-time method to verify if two tree-pattern queries are independent.
  2. Algorithm TPrewrite: A polynomial-time algorithm that searches for valid view-based rewritings. When independence conditions are met, it applies a specific formula to reconstruct target probabilities from the view's data.

Key Insights and Complexity

The research highlights an "Indistinguishability Trap": two different probabilistic documents can produce identical view results but yield different probabilities for the same query. This proves that in certain scenarios, the information required for a correct answer is fundamentally lost during view creation.

The complexity of finding a "probabilistically correct" rewriting diverges sharply from the deterministic case:

  • Tractability: For simple Tree-Pattern (TP) queries, finding a rewriting is possible in polynomial time.
  • Hardness: Deciding if a rewriting exists for intersections of queries ($TP^\cap$) is coNP-hard. Furthermore, selecting a set of independent views to answer a query is NP-hard.

Conclusion and Future Directions

While the authors provide a robust framework for simple tree patterns, the reliance on probabilistic independence remains a significant constraint. Real-world data often contains high correlations and "remote" dependencies—where an event in one branch affects a distant part of the tree—which current algorithms cannot yet handle. Future research aims to extend these techniques to more expressive query languages and more complex dependency models.

Summary updated

BibTeX
@inproceedings{cautis2011challenges,
  author = {Bogdan Cautis and Evgeny Kharlamov},
  title = {{Challenges for View-Based Query Answering over Probabilistic XML}},
  booktitle = {AMW},
  year = {2011},
}
Figure