arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.08898cs.DB
收藏

使用整数线性规划(ILP)和LP松弛的韧性与因果责任的统一方法

A Unified Approach for Resilience and Causal Responsibility with Integer Linear Programming (ILP) and LP Relaxations

Neha Makhija, Wolfgang Gatterbauer

AI总结:

提出一种统一的整数线性规划(ILP)方法解决数据库韧性与因果责任问题,证明在简单情况下LP松弛等价于ILP解并保证PTIME内求解,同时给出包语义二分法结果并解决PODS 2020开放猜想。

摘要:

韧性是各种逆向数据管理形式(如视图维护、删除传播和各种公平性干预)背后的关键算法问题之一:为了从查询中移除所有答案,需要从数据库中删除的最小元组数是多少?一个长期悬而未决的问题是确定哪些合取查询(CQs)能够保证在PTIME内解决该问题。我们通过提出一种统一的整数线性规划(ILP)公式,为该问题及相关的因果责任问题提供了新的见解。其统一性在于,它既能解决先前研究的限制情况(例如,在允许PTIME解的集合语义下的无自连接CQs),也能处理新情况(例如,在集合或包语义下的所有CQs)。其统一性还体现在所有查询和所有实例都采用相同的方法处理,且算法保证在简单情况下于PTIME内终止。我们证明,对于所有简单的无自连接CQs,我们编码的线性规划(LP)松弛与ILP解相同,因此标准ILP求解器保证在PTIME内返回解。我们的方法为新的变体和新的细粒度分析打开了大门:1)它在包语义下同样有效,并且我们给出了该问题空间中包语义的首个二分法结果。2)我们对因果责任的复杂性进行了更细粒度的分析。3)我们恢复了通常较难的查询中的简单实例,例如具有只读溯源的实例,以及因数据中的函数依赖而变简单的实例。4)我们解决了PODS 2020中的一个开放猜想。5)实验证实我们的结果确实预测了渐近运行时间,并且我们的通用ILP编码在处理PTIME情况时,有时甚至比先前提出的专用流算法求解得更快。

英文摘要:

Resilience is one of the key algorithmic problems underlying various forms of reverse data management (such as view maintenance, deletion propagation, and various interventions for fairness): What is the minimal number of tuples to delete from a database in order to remove all answers from a query? A long-open question is determining those conjunctive queries (CQs) for which this problem can be solved in guaranteed PTIME. We shed new light on this and the related problem of causal responsibility by proposing a unified Integer Linear Programming (ILP) formulation. It is unified in that it can solve both prior studied restrictions (e.g., self-join-free CQs under set semantics that allow a PTIME solution) and new cases (e.g., all CQs under set or bag semantics It is also unified in that all queries and all instances are treated with the same approach, and the algorithm is guaranteed to terminate in PTIME for the easy cases. We prove that, for all easy self-join-free CQs, the Linear Programming (LP) relaxation of our encoding is identical to the ILP solution and thus standard ILP solvers are guaranteed to return the solution in PTIME. Our approach opens up the door to new variants and new fine-grained analysis: 1) It also works under bag semantics and we give the first dichotomy result for bags semantics in the problem space. 2) We give a more fine-grained analysis of the complexity of causal responsibility. 3) We recover easy instances for generally hard queries, such as instances with read-once provenance and instances that become easy because of Functional Dependencies in the data. 4) We solve an open conjecture from PODS 2020. 5) Experiments confirm that our results indeed predict the asymptotic running times, and that our universal ILP encoding is at times even faster to solve for the PTIME cases than a prior proposed dedicated flow algorithm.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑