Skip to main content
QUICK REVIEW

[论文解读] Probabilistic Query Evaluation with Bag Semantics

Martin Grohe, Peter Lindner|arXiv (Cornell University)|Jan 27, 2022
Logic, Reasoning, and KnowledgeComputer Science被引用 1
一句话总结

本文研究在具有无界多重性的元组独立概率数据库上,针对无自连接的合取查询在多重集语义下的概率查询评估。它建立了复杂性二分法:计算答案多重性概率(即 Pr(多重性 ≤ k))要么在多项式时间内可解,要么为 ♯P-难;而期望值在满足温和表示假设下对合取查询的并集可高效计算。

ABSTRACT

We study the complexity of evaluating queries on probabilistic databases under bag semantics. We focus on self-join free conjunctive queries, and probabilistic databases where occurrences of different facts are independent, which is the natural generalization of tuple-independent probabilistic databases to the bag semantics setting. For set semantics, the data complexity of this problem is well understood, even for the more general class of unions of conjunctive queries: it is either in polynomial time, or #P-hard, depending on the query (Dalvi & Suciu, JACM 2012). A reasonably general model of bag probabilistic databases may have unbounded multiplicities. In this case, the probabilistic database is no longer finite, and a careful treatment of representation mechanisms is required. Moreover, the answer to a Boolean query is a probability distribution over (possibly all) non-negative integers, rather than a probability distribution over { true, false }. Therefore, we discuss two flavors of probabilistic query evaluation: computing expectations of answer tuple multiplicities, and computing the probability that a tuple is contained in the answer at most k times for some parameter k. Subject to mild technical assumptions on the representation systems, it turns out that expectations are easy to compute, even for unions of conjunctive queries. For query answer probabilities, we obtain a dichotomy between solvability in polynomial time and #P-hardness for self-join free conjunctive queries.

研究动机与目标

  • 形式化具有无界多重性的元组独立概率数据库在多重集语义下的概率查询评估。
  • 解决由于多重集语义下元组多重性无界而引发的无限概率空间问题。
  • 区分两个关键计算问题:计算期望多重性与计算元组在答案中出现次数至多为 k 次的概率。
  • 在温和表示假设下,为答案计数概率建立复杂性二分法。
  • 将已知的集合语义结果扩展至多重集语义,特别是针对无自连接的合取查询。

提出的方法

  • 提出一种在多重集语义下对元组独立概率数据库的形式化模型,其中事实多重性为 ℕ-值的随机变量。
  • 定义两个核心计算问题:EXPECTATIONRep(Q) 用于计算期望多重性,PQERep(Q, k) 用于计算 Pr(多重性 ≤ k)。
  • 使用多项式时间图灵归约,证明 PQERep(Q, 0) 可归约为 PQERep(Q, k)(当 k > 0 时)。
  • 应用有限差分与生成函数,计算查询答案多重性为零的概率。
  • 利用连通分量与典型数据库的结构,分离子查询并分析其对整体多重性分布的贡献。
  • 采用切比雪夫不等式与矩计算,通过多项式时间可计算的期望与方差对答案计数概率进行估计。

实验结果

研究问题

  • RQ1在多重集语义下,计算元组在查询答案中出现次数至多为 k 次的概率,其数据复杂度为何?
  • RQ2在多重集语义下,概率查询评估的复杂性在期望计算与概率计算之间有何差异?
  • RQ3在无自连接的合取查询中,答案计数概率是否存在多项式时间可解与 ♯P-难之间的二分法?
  • RQ4能否通过多项式时间图灵归约,将 PQERep(Q, k) 的复杂度简化为基例(如 k=0)?
  • RQ5表示系统如何影响在多重集语义下概率查询评估的可 tractability?

主要发现

  • 在满足温和表示假设下,合取查询并集的答案元组多重性的期望值可在多项式时间内计算。
  • 答案多重性分布的方差也可在多项式时间内计算,从而可通过切比雪夫不等式实现概率估计。
  • PQERep(Q, k) 存在二分法:计算答案多重性至多为 k 的概率,要么在多项式时间内可解,要么为 ♯P-难,具体取决于查询结构。
  • 对于无自连接的层次化布尔合取查询,PQERep(Q, k) 可在多项式时间内求解。
  • 对于非层次化查询,若表示系统允许 (0,1) 区间内的概率,则 PQERep(Q, k) 为 ♯P-难,扩展了集合语义下的先前难解结果。
  • 从 PQERep(Q, 0) 到 PQERep(Q, k)(k > 0)的归约可在多项式时间内完成,从而可利用对更高 k 值的预言机访问来求解基例。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。