Tuple Inconsistency Measures: Towards Explaining Query Answers | AGIDaily
AGI Daily
资讯日报词条论文人物新创
返回论文列表
1. 引言2. 预备知识3. 元组不一致性度量3.1 细粒度元组不一致性度量4. 应用:解释查询答案5. 计算复杂度分析5.1 元组度量的复杂度5.2 答案度量的复杂度6. 实验评估6.1 元组不一致性度量的评估6.2 ICQA 度量的评估7. 相关工作与结论致谢参考文献
返回论文列表
目录

Tuple Inconsistency Measures: Towards Explaining Query Answers

收录于 IJCAI-ECAI 2026 Distinguished Paper Award;Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, Main Track, pages 3864–3871;DOI 10.24963/ijcai.2026/430
打开论文来源

Tuple Inconsistency Measures: Towards Explaining Query Answers

Yurun Gu^{1}, Badran Raddaoui^{1}, Yue Ma^{2}, Aikaterini Tzompanaki^{3} and Nicole Bidoit^{2}

^{1}SAMOVAR, Télécom SudParis, Institut Polytechnique de Paris, Palaiseau, France

^{2}LISN, Université Paris-Saclay, Gif-sur-Yvette, France

^{3}ETIS, CY Cergy-Paris University, ENSEA, CNRS, UMR8051

{yurun.gu, badran.raddaoui}@telecom-sudparis.eu, {ma, nicole.bidoit}@lisn.fr, aikaterini.tzompanaki@cyu.fr

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence (IJCAI-26), pages 3864–3871.

Abstract

摘要

In this paper, we introduce novel tuple inconsistency measures that quantify the extent to which individual tuples contribute to violations of denial constraints in inconsistent databases. Then, we formally show that one of the proposed measures fully satisfies a set of well-motivated axiomatic properties. As an application, we lift tuple inconsistency to the level of query answers, obtaining a principled framework for measuring and explaining the inconsistency inherent in query results. We further investigate the computational complexity of tuple and answer inconsistency measures under denial constraints, identifying tractable cases that make their application to real-world data feasible. Finally, our experimental study on varying dataset and inconsistency settings demonstrates that, in comparison to existing methods, the proposed measures yield more fine-grained and informative assessments of inconsistency in databases.

本文提出一组新的元组不一致性度量,用来量化不一致数据库中各条元组对否认约束(denial constraints)违反的贡献程度。随后我们形式化地证明,其中一种度量能够完全满足一组动机充分的公理性质。作为应用,我们把元组不一致性提升到查询答案一层,得到一个有原则的框架,用以度量并解释查询结果中固有的不一致性。我们还研究了否认约束下元组度量与答案度量的计算复杂度,找出若干可在真实数据上落地的可处理情形。最后,在多种数据集与不一致性设置上的实验表明,与已有方法相比,本文度量能对数据库中的不一致性给出更细、也更有信息量的评估。

1 Introduction

1. 引言

In real-world applications, databases often violate semantic requirements, especially under rapid data growth and integration. These requirements are formalized as integrity constraints (e.g., functional dependencies, denial constraints) that encode domain knowledge. Constraint violations lead to data inconsistencies, yet fully repairing a database is often impractical due to the exponential number of possible repairs. To assess the severity of violations or guide repair selection, quantitative metrics known as inconsistency measures are employed [Livshits et al., 2021b; Issa et al., 2020].

在真实应用中,数据库常常违反语义要求,在数据快速增长与集成时尤其如此。这些要求被形式化为完整性约束(例如函数依赖、否认约束),用来编码领域知识。约束被违反就会产生数据不一致,但候选修复的数量是指数级的,彻底修复往往并不现实。为了评估违反有多严重,或为修复挑选提供线索,人们使用一类称为不一致性度量(inconsistency measures)的定量指标 [Livshits et al., 2021b; Issa et al., 2020]。

Inconsistency measures, recently studied in the database literature, can be broadly categorized into three classes. The first quantifies conflicts of an entire database [Parisi and Grant, 2020; Livshits et al., 2021b; Parisi and Grant, 2023], providing a global data quality assessment that distinguishes data sources, but cannot capture how individual tuples contribute to overall inconsistency. The second, tuple measures, evaluates each tuple's participation in constraint violations [Issa et al., 2020; Livshits and Kimelfeld, 2022] and is particularly valuable for tasks such as tuple ranking and data cleaning. The third class, query answer measures, quantifies the inconsistency associated with individual query answers [Issa et al., 2020]. The first two classes of inconsistency measures have been extensively studied in knowledge representation [Hunter and Konieczny, 2010; Mu, 2018; Raddaoui et al., 2024; Kuhlmann et al., 2025; Straßer et al., 2025], and the third is specific for databases and applications, e.g., [Corea and Thimm, 2020; Ribeiro and Thimm, 2021; Corea et al., 2024].

数据库文献中近期讨论的不一致性度量,大致可分为三类。第一类度量整个数据库的冲突 [Parisi and Grant, 2020; Livshits et al., 2021b; Parisi and Grant, 2023],能给出区分数据源的全局质量评估,但看不出单条元组对整体不一致的贡献。第二类是元组度量,评估每条元组对约束违反的参与程度 [Issa et al., 2020; Livshits and Kimelfeld, 2022],对元组排序和数据清洗一类任务尤其有用。第三类是查询答案度量,量化与单个查询答案相关联的不一致性 [Issa et al., 2020]。前两类在知识表示中已有大量研究 [Hunter and Konieczny, 2010; Mu, 2018; Raddaoui et al., 2024; Kuhlmann et al., 2025; Straßer et al., 2025],第三类则更针对数据库及其应用,例如 [Corea and Thimm, 2020; Ribeiro and Thimm, 2021; Corea et al., 2024]。

This paper focuses on the second and third aforementioned classes. Our goal is to systematically analyze and compare different inconsistency measures, both theoretically and empirically. Based on existing and new desiderata, we show that current measures are either too coarse-grained or fail to meet some intuitive logical properties. To address these shortcomings, we propose a class of fine-grained inconsistency measures and ultimately identify a measure that satisfies all the axiomatic properties. Moreover, our answer inconsistency measures investigate how much query results inherit conflicts from the underlying database, which complements the only existing proposal in this category [Issa et al., 2020].

本文关注上述第二类和第三类。我们的目标是从理论和实证两方面系统分析并比较不同的不一致性度量。依据已有和新提出的合理性要求,我们表明现有度量要么颗粒度过粗,要么无法满足某些直观的逻辑性质。针对这些不足,我们提出一类细粒度度量,并最终找出一种满足全部公理性质的度量。此外,我们的答案不一致性度量考察查询结果在多大程度上继承了底层数据库的冲突,这对这一类别中目前仅有的方案 [Issa et al., 2020] 构成补充。

Our contributions are fourfold: We propose three novel tuple inconsistency measures and prove that one of them, IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​, satisfies all properties expected from a reasonable measure (Section 3). Building on these tuple measures, we develop an extensible framework to quantify the inconsistency of query answers using different answer explainability methods. We further show that a subset of these measures satisfies the proposed criteria for answer-level inconsistency (Section 4). We present a data complexity analysis of both tuple and answer measures, identifying tractable cases that facilitate practical deployment (Section 5). We perform a comparative experimental evaluation to show the feasibility of our tuple and answer inconsistency measures. In particular, we show that IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ and ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​ provide useful discrimination for tuples and answers, respectively, w.r.t. their inconsistency levels, while exhibiting promising scalability (Section 6).

本文的贡献有四方面:我们提出三种新的元组不一致性度量,并证明其中的 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 满足合理度量所应具备的全部性质(第 3 节)。在这些元组度量之上,我们建立一个可扩展的框架,用不同的答案可解释性方法来量化查询答案的不一致性,并进一步表明其中一部分度量满足我们为答案层不一致性提出的判据(第 4 节)。我们对元组度量与答案度量做了数据复杂度分析,找出有助于实际部署的可处理情形(第 5 节)。我们还做了对比实验,说明这些元组度量与答案度量是可行的。特别地,IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 与 ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​ 分别能对元组和答案的不一致性水平给出有用的区分,并表现出有前景的可扩展性(第 6 节)。

2 Preliminaries

2. 预备知识

A database schema S\mathcal{S}S defines the structural design of a database and it specifies a finite set of relation schemas. Each relation schema RRR is associated with a type type(R)\mathit{type}(R)type(R), a finite set of attributes {R.A1,…,R.An}\{R.A_1, \ldots, R.A_n\}{R.A1​,…,R.An​}, where each attribute is prefixed by the relation name. The arity of a relation RRR is its type cardinality. A tuple ttt is a sequence of attribute-value pairs (A1:a1,…,An:an)(A_1 : a_1, \ldots, A_n : a_n)(A1​:a1​,…,An​:an​).

数据库模式 S\mathcal{S}S 规定数据库的结构设计,并给出有限个关系模式。每个关系模式 RRR 关联一个类型 type(R)\mathit{type}(R)type(R),即有限属性集 {R.A1,…,R.An}\{R.A_1, \ldots, R.A_n\}{R.A1​,…,R.An​},其中每个属性都以关系名为前缀。关系 RRR 的元数是其类型的基数。一条元组 ttt 是一串属性–值对 (A1:a1,…,An:an)(A_1 : a_1, \ldots, A_n : a_n)(A1​:a1​,…,An​:an​)。

A database instance (or database) I\mathcal{I}I over a schema S\mathcal{S}S maps each relation R∈SR \in \mathcal{S}R∈S to a finite set of tuples of type(R)\mathit{type}(R)type(R), denoted I∣R\mathcal{I}|_RI∣R​. We treat I\mathcal{I}I as a set of tuples with possibly different types. We assume all attributes share a common domain dom\mathit{dom}dom, a countably infinite set of constants. The active domain of I\mathcal{I}I, denoted dom(I)\mathit{dom}(\mathcal{I})dom(I), is the set of constants appearing in I\mathcal{I}I. A valuation ν\nuν over I\mathcal{I}I for a vector/tuple of variables x⃗=(x1,…,xn)\vec{x} = (x_1, \ldots, x_n)x=(x1​,…,xn​) is a tuple (a1,…,an)(a_1, \ldots, a_n)(a1​,…,an​) such that each ν(xi)=ai∈dom(I)\nu(x_i) = a_i \in \mathit{dom}(\mathcal{I})ν(xi​)=ai​∈dom(I). We use R(x⃗)R(\vec{x})R(x) to denote a relational atom, where x⃗\vec{x}x matches the arity of RRR.

模式 S\mathcal{S}S 上的数据库实例(或称数据库)I\mathcal{I}I,把每个关系 R∈SR \in \mathcal{S}R∈S 映射到一组 type(R)\mathit{type}(R)type(R) 类型的有限元组,记作 I∣R\mathcal{I}|_RI∣R​。我们把 I\mathcal{I}I 看作一个可能含有不同类型元组的集合。假定所有属性共享同一个论域 dom\mathit{dom}dom,即一个可数无穷的常量集。I\mathcal{I}I 的活跃域记为 dom(I)\mathit{dom}(\mathcal{I})dom(I),是出现在 I\mathcal{I}I 中的常量集合。I\mathcal{I}I 上对变量向量/元组 x⃗=(x1,…,xn)\vec{x} = (x_1, \ldots, x_n)x=(x1​,…,xn​) 的一个赋值 ν\nuν,是一个元组 (a1,…,an)(a_1, \ldots, a_n)(a1​,…,an​),满足每个 ν(xi)=ai∈dom(I)\nu(x_i) = a_i \in \mathit{dom}(\mathcal{I})ν(xi​)=ai​∈dom(I)。我们用 R(x⃗)R(\vec{x})R(x) 表示关系原子,其中 x⃗\vec{x}x 与 RRR 的元数相符。

A condition is a comparison f(x⃗)⋆g(x⃗)f(\vec{x}) \star g(\vec{x})f(x)⋆g(x), where fff and ggg are functions (constant and string function included), and ⋆\star⋆ is a classical comparator, for instance among =,≠,≤,≥,<,>=, \neq, \leq, \geq, <, >=,=,≤,≥,<,>. Conditions are used in denial constraints as follows:

条件是形如 f(x⃗)⋆g(x⃗)f(\vec{x}) \star g(\vec{x})f(x)⋆g(x) 的比较,其中 fff 和 ggg 是函数(包括常值和字符串函数),⋆\star⋆ 是经典比较符,例如 =,≠,≤,≥,<,>=, \neq, \leq, \geq, <, >=,=,≤,≥,<,> 之一。条件按如下方式用在否认约束中:

Definition 1. A denial constraint δ\deltaδ has the form ∀x⃗ ¬[R1(u⃗1)∧⋯∧Rk(u⃗k)∧ϕ(x⃗)]\forall \vec{x}\, \neg[R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_k) \wedge \phi(\vec{x})]∀x¬[R1​(u1​)∧⋯∧Rk​(uk​)∧ϕ(x)] where u⃗i\vec{u}_iui​ (1≤i≤k1 \leq i \leq k1≤i≤k) is a tuple of variables, x⃗\vec{x}x captures all the variables appearing in u⃗1,…,u⃗k\vec{u}_1, \ldots, \vec{u}_ku1​,…,uk​, and ϕ(x⃗)=C1∧…∧Cl\phi(\vec{x}) = C_1 \wedge \ldots \wedge C_lϕ(x)=C1​∧…∧Cl​ (l≥1l \geq 1l≥1) is a conjunction of conditions over x⃗\vec{x}x. Moreover, for any i,ji,ji,j s.t. 1≤i≠j≤k1 \leq i \neq j \leq k1≤i=j≤k, the tuples u⃗i\vec{u}_iui​ and u⃗j\vec{u}_juj​ do not share variables. We write Δ\DeltaΔ for a set of denial constraints.

定义 1. 一条否认约束 δ\deltaδ 具有形式 ∀x⃗ ¬[R1(u⃗1)∧⋯∧Rk(u⃗k)∧ϕ(x⃗)]\forall \vec{x}\, \neg[R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_k) \wedge \phi(\vec{x})]∀x¬[R1​(u1​)∧⋯∧Rk​(uk​)∧ϕ(x)],其中 u⃗i\vec{u}_iui​(1≤i≤k1 \leq i \leq k1≤i≤k)是变量元组,x⃗\vec{x}x 涵盖出现在 u⃗1,…,u⃗k\vec{u}_1, \ldots, \vec{u}_ku1​,…,uk​ 中的全部变量,而 ϕ(x⃗)=C1∧…∧Cl\phi(\vec{x}) = C_1 \wedge \ldots \wedge C_lϕ(x)=C1​∧…∧Cl​(l≥1l \geq 1l≥1)是关于 x⃗\vec{x}x 的条件合取。此外,对任意满足 1≤i≠j≤k1 \leq i \neq j \leq k1≤i=j≤k 的 i,ji,ji,j,u⃗i\vec{u}_iui​ 与 u⃗j\vec{u}_juj​ 不共享变量。我们用 Δ\DeltaΔ 表示一组否认约束。

Given a database I\mathcal{I}I and a set of denial constraints Δ\DeltaΔ, conjunctive queries can be used to check the consistency of I\mathcal{I}I w.r.t. Δ\DeltaΔ, and more generally for posing queries over I\mathcal{I}I.

给定数据库 I\mathcal{I}I 和否认约束集 Δ\DeltaΔ,可以用合取查询来检查 I\mathcal{I}I 相对于 Δ\DeltaΔ 是否一致,更一般地也可以在 I\mathcal{I}I 上提出查询。

Definition 2. A conjunctive query q(y⃗)q(\vec{y})q(y​) is defined as an expression of the form R1(u⃗1)∧⋯∧Rk(u⃗k)∧ϕ(x⃗)R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_k) \wedge \phi(\vec{x})R1​(u1​)∧⋯∧Rk​(uk​)∧ϕ(x) subject to the same conditions as in Definition 1, where y⃗\vec{y}y​ is a subvector of variables in x⃗\vec{x}x. The result q(y⃗)q(\vec{y})q(y​) over an instance I\mathcal{I}I, i.e., the set of query answers, is: q(y⃗)(I)={ν(y⃗)∣∀i∈[1,k], ν(ui)∈Ri, and ∀j∈[1,l], Cj(ν(x⃗)) is true}q(\vec{y})(\mathcal{I}) = \{\nu(\vec{y}) \mid \forall i \in [1, k],\, \nu(u_i) \in R_i,\ \text{and}\ \forall j \in [1, l],\, C_j(\nu(\vec{x}))\ \text{is true}\}q(y​)(I)={ν(y​)∣∀i∈[1,k],ν(ui​)∈Ri​, and ∀j∈[1,l],Cj​(ν(x)) is true} for valuations ν\nuν of x⃗\vec{x}x over I\mathcal{I}I and conditions CjC_jCj​ in ϕ\phiϕ.

定义 2. 合取查询 q(y⃗)q(\vec{y})q(y​) 定义为形如 R1(u⃗1)∧⋯∧Rk(u⃗k)∧ϕ(x⃗)R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_k) \wedge \phi(\vec{x})R1​(u1​)∧⋯∧Rk​(uk​)∧ϕ(x) 的表达式,并满足定义 1 中的同样条件,其中 y⃗\vec{y}y​ 是 x⃗\vec{x}x 中变量的一个子向量。它在实例 I\mathcal{I}I 上的结果,即查询答案集,为:q(y⃗)(I)={ν(y⃗)∣∀i∈[1,k], ν(ui)∈Ri, 且 ∀j∈[1,l], Cj(ν(x⃗)) 为真}q(\vec{y})(\mathcal{I}) = \{\nu(\vec{y}) \mid \forall i \in [1, k],\, \nu(u_i) \in R_i,\ \text{且}\ \forall j \in [1, l],\, C_j(\nu(\vec{x}))\ \text{为真}\}q(y​)(I)={ν(y​)∣∀i∈[1,k],ν(ui​)∈Ri​, 且 ∀j∈[1,l],Cj​(ν(x)) 为真},其中 ν\nuν 是 x⃗\vec{x}x 在 I\mathcal{I}I 上的赋值,CjC_jCj​ 是 ϕ\phiϕ 中的条件。

When used for finding conflicting tuples, Definition 2 is derived by negating the expression in Definition 1. For simplicity, we denote by q(I)q(\mathcal{I})q(I) the set of answers returned by the query q(y⃗)q(\vec{y})q(y​) when evaluated over the instance I\mathcal{I}I. The query q(y⃗)q(\vec{y})q(y​) is called a boolean query when y⃗\vec{y}y​ is empty. Given a denial constraint δ∈Δ\delta \in \Deltaδ∈Δ, we write qδq^\deltaqδ for the boolean query associated with δ\deltaδ in the obvious manner. I\mathcal{I}I satisfies δ\deltaδ, denoted I⊨δ\mathcal{I} \models \deltaI⊨δ, if qδ(I)q^\delta(\mathcal{I})qδ(I) is empty. We also write I⊨Δ\mathcal{I} \models \DeltaI⊨Δ if I\mathcal{I}I satisfies all constraints in Δ\DeltaΔ. We now introduce two key concepts for reasoning about inconsistencies in Symbolic AI: minimal inconsistent sets and minimal correction sets [Reiter, 1987].

若用来寻找冲突元组,定义 2 可由定义 1 中的表达式取否定得到。为简便起见,我们把查询 q(y⃗)q(\vec{y})q(y​) 在实例 I\mathcal{I}I 上求值得到的答案集记为 q(I)q(\mathcal{I})q(I)。当 y⃗\vec{y}y​ 为空时,称 q(y⃗)q(\vec{y})q(y​) 为布尔查询。给定否认约束 δ∈Δ\delta \in \Deltaδ∈Δ,我们按自然方式把与 δ\deltaδ 相应的布尔查询写作 qδq^\deltaqδ。I\mathcal{I}I 满足 δ\deltaδ,记作 I⊨δ\mathcal{I} \models \deltaI⊨δ,当且仅当 qδ(I)q^\delta(\mathcal{I})qδ(I) 为空。若 I\mathcal{I}I 满足 Δ\DeltaΔ 中的全部约束,我们也写 I⊨Δ\mathcal{I} \models \DeltaI⊨Δ。下面引入符号人工智能中用于推理不一致性的两个关键概念:极小不一致集与极小修正集 [Reiter, 1987]。

Definition 3. A subset I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I is a minimal inconsistent set for I\mathcal{I}I w.r.t. δ∈Δ\delta \in \Deltaδ∈Δ if I′⊭δ\mathcal{I}' \not\models \deltaI′⊨δ and ∀I′′⊂I′, I′′⊨δ\forall \mathcal{I}'' \subset \mathcal{I}',\, \mathcal{I}'' \models \delta∀I′′⊂I′,I′′⊨δ. A subset I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I is a minimal inconsistent set for I\mathcal{I}I w.r.t. Δ\DeltaΔ if I′⊭Δ\mathcal{I}' \not\models \DeltaI′⊨Δ and ∀I′′⊂I′, I′′⊨Δ\forall \mathcal{I}'' \subset \mathcal{I}',\, \mathcal{I}'' \models \Delta∀I′′⊂I′,I′′⊨Δ.

定义 3. 子集 I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I 是 I\mathcal{I}I 相对于 δ∈Δ\delta \in \Deltaδ∈Δ 的极小不一致集,当且仅当 I′⊭δ\mathcal{I}' \not\models \deltaI′⊨δ,并且 ∀I′′⊂I′, I′′⊨δ\forall \mathcal{I}'' \subset \mathcal{I}',\, \mathcal{I}'' \models \delta∀I′′⊂I′,I′′⊨δ。子集 I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I 是 I\mathcal{I}I 相对于 Δ\DeltaΔ 的极小不一致集,当且仅当 I′⊭Δ\mathcal{I}' \not\models \DeltaI′⊨Δ,并且 ∀I′′⊂I′, I′′⊨Δ\forall \mathcal{I}'' \subset \mathcal{I}',\, \mathcal{I}'' \models \Delta∀I′′⊂I′,I′′⊨Δ。

Definition 4. A subset I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I is a minimal correction set for I\mathcal{I}I and Δ\DeltaΔ if I∖I′⊨Δ\mathcal{I} \setminus \mathcal{I}' \models \DeltaI∖I′⊨Δ and ∀t∈I′, (I∖I′)∪{t}⊭Δ\forall t \in \mathcal{I}',\, (\mathcal{I} \setminus \mathcal{I}') \cup \{t\} \not\models \Delta∀t∈I′,(I∖I′)∪{t}⊨Δ.

定义 4. 子集 I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I 是 I\mathcal{I}I 与 Δ\DeltaΔ 的极小修正集,当且仅当 I∖I′⊨Δ\mathcal{I} \setminus \mathcal{I}' \models \DeltaI∖I′⊨Δ,并且 ∀t∈I′, (I∖I′)∪{t}⊭Δ\forall t \in \mathcal{I}',\, (\mathcal{I} \setminus \mathcal{I}') \cup \{t\} \not\models \Delta∀t∈I′,(I∖I′)∪{t}⊨Δ。

The set of all minimal correction sets for I\mathcal{I}I w.r.t. Δ\DeltaΔ is denoted by MIC(I,Δ)\mathrm{MIC}(\mathcal{I}, \Delta)MIC(I,Δ). The set of all minimal inconsistent sets for I\mathcal{I}I w.r.t. δ\deltaδ (resp. Δ\DeltaΔ) is denoted by MIS(I,δ)\mathrm{MIS}(\mathcal{I}, \delta)MIS(I,δ) (resp. MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ)). We write ⨄δ∈ΔMIS(I,δ)\biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)⨄δ∈Δ​MIS(I,δ) for the multiset union of all minimal inconsistent subsets for I\mathcal{I}I w.r.t. δ∈Δ\delta \in \Deltaδ∈Δ. Given a tuple t∈It \in \mathcal{I}t∈I, we define MIS(t,I,Δ)={M∈MIS(I,Δ)∣t∈M}\mathrm{MIS}(t, \mathcal{I}, \Delta) = \{M \in \mathrm{MIS}(\mathcal{I}, \Delta) \mid t \in M\}MIS(t,I,Δ)={M∈MIS(I,Δ)∣t∈M}, and MIC(t,I,Δ)={M∈MIC(I,Δ)∣t∈M}\mathrm{MIC}(t, \mathcal{I}, \Delta) = \{M \in \mathrm{MIC}(\mathcal{I}, \Delta) \mid t \in M\}MIC(t,I,Δ)={M∈MIC(I,Δ)∣t∈M}.

I\mathcal{I}I 相对于 Δ\DeltaΔ 的全部极小修正集记为 MIC(I,Δ)\mathrm{MIC}(\mathcal{I}, \Delta)MIC(I,Δ)。I\mathcal{I}I 相对于 δ\deltaδ(相应地,相对于 Δ\DeltaΔ)的全部极小不一致集记为 MIS(I,δ)\mathrm{MIS}(\mathcal{I}, \delta)MIS(I,δ)(相应地,MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ))。我们用 ⨄δ∈ΔMIS(I,δ)\biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)⨄δ∈Δ​MIS(I,δ) 表示 I\mathcal{I}I 相对于各 δ∈Δ\delta \in \Deltaδ∈Δ 的全部极小不一致子集的多重并。给定元组 t∈It \in \mathcal{I}t∈I,定义 MIS(t,I,Δ)={M∈MIS(I,Δ)∣t∈M}\mathrm{MIS}(t, \mathcal{I}, \Delta) = \{M \in \mathrm{MIS}(\mathcal{I}, \Delta) \mid t \in M\}MIS(t,I,Δ)={M∈MIS(I,Δ)∣t∈M},以及 MIC(t,I,Δ)={M∈MIC(I,Δ)∣t∈M}\mathrm{MIC}(t, \mathcal{I}, \Delta) = \{M \in \mathrm{MIC}(\mathcal{I}, \Delta) \mid t \in M\}MIC(t,I,Δ)={M∈MIC(I,Δ)∣t∈M}。

A tuple t∈It \in \mathcal{I}t∈I is called free w.r.t. Δ\DeltaΔ if ttt does not belong to any set M∈MIS(I,δ)M \in \mathrm{MIS}(\mathcal{I}, \delta)M∈MIS(I,δ) for any δ∈Δ\delta \in \Deltaδ∈Δ. We write Free(I,Δ)\mathrm{Free}(\mathcal{I}, \Delta)Free(I,Δ) for the set of free tuples in I\mathcal{I}I given Δ\DeltaΔ.

若元组 t∈It \in \mathcal{I}t∈I 对任意 δ∈Δ\delta \in \Deltaδ∈Δ 都不属于任何 M∈MIS(I,δ)M \in \mathrm{MIS}(\mathcal{I}, \delta)M∈MIS(I,δ),则称 ttt 相对于 Δ\DeltaΔ 是自由的。给定 Δ\DeltaΔ,把 I\mathcal{I}I 中的自由元组集记为 Free(I,Δ)\mathrm{Free}(\mathcal{I}, \Delta)Free(I,Δ)。

Example 1. Consider a database with relations R1R_1R1​, R2R_2R2​, R3R_3R3​ containing PhD candidate information as given in Figure 1. Tuples are assigned unique identifiers, i.e., t1,…,t15t_1, \ldots, t_{15}t1​,…,t15​. We consider the following denial constraints:

例子 1. 考虑一个含有关系 R1R_1R1​、R2R_2R2​、R3R_3R3​ 的数据库,其中存放博士候选人信息,如图 1 所示。元组被赋予唯一标识符,即 t1,…,t15t_1, \ldots, t_{15}t1​,…,t15​。我们考虑如下否认约束:

δ1:¬[R1(x1,y,z)∧R2(x2,v,u)∧x1=x2∧z≥u]\delta_1 : \neg[R_1(x_1, y, z) \wedge R_2(x_2, v, u) \wedge x_1 = x_2 \wedge z \geq u]δ1​:¬[R1​(x1​,y,z)∧R2​(x2​,v,u)∧x1​=x2​∧z≥u]

δ2:¬[R1(x1,y,z)∧R2(x2,v,u)∧x1=x2∧u−z<3∧z>2020]\delta_2 : \neg[R_1(x_1, y, z) \wedge R_2(x_2, v, u) \wedge x_1 = x_2 \wedge u - z < 3 \wedge z > 2020]δ2​:¬[R1​(x1​,y,z)∧R2​(x2​,v,u)∧x1​=x2​∧u−z<3∧z>2020]

δ3:¬[R1(x1,y,z)∧R2(x2,w,r)∧R3(x3,v,u)∧x1=x2∧x1=x3∧y>v∧r−u<1]\delta_3 : \neg[R_1(x_1, y, z) \wedge R_2(x_2, w, r) \wedge R_3(x_3, v, u) \wedge x_1 = x_2 \wedge x_1 = x_3 \wedge y > v \wedge r - u < 1]δ3​:¬[R1​(x1​,y,z)∧R2​(x2​,w,r)∧R3​(x3​,v,u)∧x1​=x2​∧x1​=x3​∧y>v∧r−u<1]

Intuitively, the constraint δ1\delta_1δ1​ ensures that graduation must occur after admission; δ2\delta_2δ2​ imposes a condition on students admitted after 2020, preventing them from graduating within three years; and δ3\delta_3δ3​ disallows graduating the same year as candidacy when the qualification grade is lower than the admission grade. We have MIS(I,Δ)={{t1,t6},{t2,t6},{t5,t9},{t5,t10},{t4,t8,t13}}\mathrm{MIS}(\mathcal{I}, \Delta) = \{\{t_1, t_6\}, \{t_2, t_6\}, \{t_5, t_9\}, \{t_5, t_{10}\}, \{t_4, t_8, t_{13}\}\}MIS(I,Δ)={{t1​,t6​},{t2​,t6​},{t5​,t9​},{t5​,t10​},{t4​,t8​,t13​}}. Observe that {t5,t10,t14}∉MIS(I,Δ)\{t_5, t_{10}, t_{14}\} \notin \mathrm{MIS}(\mathcal{I}, \Delta){t5​,t10​,t14​}∈/MIS(I,Δ), but {t5,t10,t14}∈⨄δ∈ΔMIS(I,δ)\{t_5, t_{10}, t_{14}\} \in \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta){t5​,t10​,t14​}∈⨄δ∈Δ​MIS(I,δ) since it belongs to MIS(I,δ3)\mathrm{MIS}(\mathcal{I}, \delta_3)MIS(I,δ3​), while its subset {t5,t10}\{t_5, t_{10}\}{t5​,t10​} already violates δ2\delta_2δ2​. This shows that MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) is not always ⨄δ∈ΔMIS(I,δ)\biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)⨄δ∈Δ​MIS(I,δ) (see Proposition 1).

直观上,δ1\delta_1δ1​ 要求毕业必须晚于入学;δ2\delta_2δ2​ 对 2020 年之后入学的学生施加条件,禁止他们在三年内毕业;δ3\delta_3δ3​ 则禁止在资格考试成绩低于入学成绩的情况下于候选当年毕业。我们有 MIS(I,Δ)={{t1,t6},{t2,t6},{t5,t9},{t5,t10},{t4,t8,t13}}\mathrm{MIS}(\mathcal{I}, \Delta) = \{\{t_1, t_6\}, \{t_2, t_6\}, \{t_5, t_9\}, \{t_5, t_{10}\}, \{t_4, t_8, t_{13}\}\}MIS(I,Δ)={{t1​,t6​},{t2​,t6​},{t5​,t9​},{t5​,t10​},{t4​,t8​,t13​}}。注意 {t5,t10,t14}∉MIS(I,Δ)\{t_5, t_{10}, t_{14}\} \notin \mathrm{MIS}(\mathcal{I}, \Delta){t5​,t10​,t14​}∈/MIS(I,Δ),但 {t5,t10,t14}∈⨄δ∈ΔMIS(I,δ)\{t_5, t_{10}, t_{14}\} \in \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta){t5​,t10​,t14​}∈⨄δ∈Δ​MIS(I,δ),因为它属于 MIS(I,δ3)\mathrm{MIS}(\mathcal{I}, \delta_3)MIS(I,δ3​),而其子集 {t5,t10}\{t_5, t_{10}\}{t5​,t10​} 已经违反了 δ2\delta_2δ2​。这说明 MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) 并不总是等于 ⨄δ∈ΔMIS(I,δ)\biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)⨄δ∈Δ​MIS(I,δ)(见命题 1)。

Proposition 1. MIS(I,Δ)⊆⨄δ∈ΔMIS(I,δ)\mathrm{MIS}(\mathcal{I}, \Delta) \subseteq \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)MIS(I,Δ)⊆⨄δ∈Δ​MIS(I,δ).

命题 1. MIS(I,Δ)⊆⨄δ∈ΔMIS(I,δ)\mathrm{MIS}(\mathcal{I}, \Delta) \subseteq \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)MIS(I,Δ)⊆⨄δ∈Δ​MIS(I,δ)。

Given a query q(y⃗)q(\vec{y})q(y​), [Buneman et al., 2001] introduced the concept of why-provenance to formally explain the answers of q(y⃗)q(\vec{y})q(y​) by tracing the lineage of the results.

给定查询 q(y⃗)q(\vec{y})q(y​),[Buneman et al., 2001] 引入了 why-出处(why-provenance)的概念,通过追溯结果的谱系来形式化地解释 q(y⃗)q(\vec{y})q(y​) 的答案。

Definition 5. The why-provenance of an answer tuple ans∈q(I)\mathrm{ans} \in q(\mathcal{I})ans∈q(I), denoted by WhyP(I,q,ans)\mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})WhyP(I,q,ans), is the set of minimal (w.r.t. set inclusion) subsets I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I such that ans∈q(I′)\mathrm{ans} \in q(\mathcal{I}')ans∈q(I′).

定义 5. 答案元组 ans∈q(I)\mathrm{ans} \in q(\mathcal{I})ans∈q(I) 的 why-出处,记为 WhyP(I,q,ans)\mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})WhyP(I,q,ans),是满足 ans∈q(I′)\mathrm{ans} \in q(\mathcal{I}')ans∈q(I′) 的、在集合包含关系下极小的子集 I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I 所构成的集合。

Example 2 (Example 1 contd.). Consider the query qex(x):R1(x,y,z)∧R2(x,y1,z1)∧R3(x,y2,z2)q_{ex}(x) : R_1(x, y, z) \wedge R_2(x, y_1, z_1) \wedge R_3(x, y_2, z_2)qex​(x):R1​(x,y,z)∧R2​(x,y1​,z1​)∧R3​(x,y2​,z2​). The last table in Table 1 lists the query result with its provenance.

例子 2(续例子 1)。考虑查询 qex(x):R1(x,y,z)∧R2(x,y1,z1)∧R3(x,y2,z2)q_{ex}(x) : R_1(x, y, z) \wedge R_2(x, y_1, z_1) \wedge R_3(x, y_2, z_2)qex​(x):R1​(x,y,z)∧R2​(x,y1​,z1​)∧R3​(x,y2​,z2​)。表 1 中的最后一张表列出了查询结果及其出处。

Table 1: PhD Candidate database and query answer provenance of qexq_{ex}qex​ from the running example.

R1R_1R1​: Admission

StudID Grade Year
t1t_1t1​ 1 90 2018
t2t_2t2​ 1 85 2019
t3t_3t3​ 2 92 2021
t4t_4t4​ 3 90 2020
t5t_5t5​ 4 92 2021

R2R_2R2​: Defense

StudID Grade Year
t6t_6t6​ 1 90 2017
t7t_7t7​ 2 95 2024
t8t_8t8​ 3 89 2023
t9t_9t9​ 4 89 2023
t10t_{10}t10​ 4 82 2023

R3R_3R3​: Qualification

StudID Grade Year
t11t_{11}t11​ 1 90 2016
t12t_{12}t12​ 2 92 2024
t13t_{13}t13​ 3 87 2023
t14t_{14}t14​ 4 60 2023
t15t_{15}t15​ 4 91 2023

Answers

Answers (StudID) Provenance
1 {{t1,t6,t11},{t2,t6,t11}}\{\{t_1, t_6, t_{11}\}, \{t_2, t_6, t_{11}\}\}{{t1​,t6​,t11​},{t2​,t6​,t11​}}
2 {{t3,t7,t12}}\{\{t_3, t_7, t_{12}\}\}{{t3​,t7​,t12​}}
3 {{t4,t8,t13}}\{\{t_4, t_8, t_{13}\}\}{{t4​,t8​,t13​}}
4 {{t5,t9,t14},{t5,t9,t15},{t5,t10,t14},{t5,t10,t15}}\{\{t_5, t_9, t_{14}\}, \{t_5, t_9, t_{15}\}, \{t_5, t_{10}, t_{14}\}, \{t_5, t_{10}, t_{15}\}\}{{t5​,t9​,t14​},{t5​,t9​,t15​},{t5​,t10​,t14​},{t5​,t10​,t15​}}

表 1:运行示例中的博士候选人数据库,以及 qexq_{ex}qex​ 的查询答案出处。

R1R_1R1​: Admission(入学)

StudID Grade Year
t1t_1t1​ 1 90 2018
t2t_2t2​ 1 85 2019
t3t_3t3​ 2 92 2021
t4t_4t4​ 3 90 2020
t5t_5t5​ 4 92 2021

R2R_2R2​: Defense(答辩)

StudID Grade Year
t6t_6t6​ 1 90 2017
t7t_7t7​ 2 95 2024
t8t_8t8​ 3 89 2023
t9t_9t9​ 4 89 2023
t10t_{10}t10​ 4 82 2023

R3R_3R3​: Qualification(资格考试)

StudID Grade Year
t11t_{11}t11​ 1 90 2016
t12t_{12}t12​ 2 92 2024
t13t_{13}t13​ 3 87 2023
t14t_{14}t14​ 4 60 2023
t15t_{15}t15​ 4 91 2023

答案

答案(StudID) 出处
1 {{t1,t6,t11},{t2,t6,t11}}\{\{t_1, t_6, t_{11}\}, \{t_2, t_6, t_{11}\}\}{{t1​,t6​,t11​},{t2​,t6​,t11​}}
2 {{t3,t7,t12}}\{\{t_3, t_7, t_{12}\}\}{{t3​,t7​,t12​}}
3 {{t4,t8,t13}}\{\{t_4, t_8, t_{13}\}\}{{t4​,t8​,t13​}}
4 {{t5,t9,t14},{t5,t9,t15},{t5,t10,t14},{t5,t10,t15}}\{\{t_5, t_9, t_{14}\}, \{t_5, t_9, t_{15}\}, \{t_5, t_{10}, t_{14}\}, \{t_5, t_{10}, t_{15}\}\}{{t5​,t9​,t14​},{t5​,t9​,t15​},{t5​,t10​,t14​},{t5​,t10​,t15​}}

3 Tuple Inconsistency Measures

3. 元组不一致性度量

Tuple inconsistency measures quantify the degree to which an individual tuple contributes to denial constraint violations in a database instance. Existing approaches generally distinguish between absolute and relative measures [Besnard and Grant, 2020]; in this work we focus on absolute measures.

元组不一致性度量量化单条元组对数据库实例中否认约束违反的贡献程度。已有方法通常区分绝对度量与相对度量 [Besnard and Grant, 2020];本文关注绝对度量。

Let I\mathbb{I}I denote the set of all database instances over a given schema S\mathcal{S}S, and define I‾={(t,I,Δ)∣I∈I, t∈I}\underline{\mathbb{I}} = \{(t, \mathcal{I}, \Delta) \mid \mathcal{I} \in \mathbb{I},\, t \in \mathcal{I}\}I​={(t,I,Δ)∣I∈I,t∈I}.

设 I\mathbb{I}I 表示给定模式 S\mathcal{S}S 上的全部数据库实例之集,并定义 I‾={(t,I,Δ)∣I∈I, t∈I}\underline{\mathbb{I}} = \{(t, \mathcal{I}, \Delta) \mid \mathcal{I} \in \mathbb{I},\, t \in \mathcal{I}\}I​={(t,I,Δ)∣I∈I,t∈I}。

Definition 6. A tuple inconsistency measure is a function IM\mathrm{IM}IM on I‾\underline{\mathbb{I}}I​ that associates a real value to each tuple t∈It \in \mathcal{I}t∈I w.r.t. a set of denial constraints Δ\DeltaΔ, i.e., IM:I‾→R0+\mathrm{IM} : \underline{\mathbb{I}} \to \mathbb{R}_0^+IM:I​→R0+​.

定义 6. 元组不一致性度量是 I‾\underline{\mathbb{I}}I​ 上的一个函数 IM\mathrm{IM}IM,它相对于否认约束集 Δ\DeltaΔ,为每条元组 t∈It \in \mathcal{I}t∈I 赋予一个实数值,即 IM:I‾→R0+\mathrm{IM} : \underline{\mathbb{I}} \to \mathbb{R}_0^+IM:I​→R0+​。

Intuitively, the more a tuple ttt participates in violations of denial constraints, the higher the value IM(t,I,Δ)\mathrm{IM}(t, \mathcal{I}, \Delta)IM(t,I,Δ) it receives. Usually, we expect IM\mathrm{IM}IM to satisfy a few basic properties: IM(t,I,Δ)=0\mathrm{IM}(t, \mathcal{I}, \Delta) = 0IM(t,I,Δ)=0 if I⊨Δ\mathcal{I} \models \DeltaI⊨Δ or if t∈Free(I,Δ)t \in \mathrm{Free}(\mathcal{I}, \Delta)t∈Free(I,Δ), and that IM\mathrm{IM}IM is always finite in all cases, i.e., IM(t,I,Δ)<∞\mathrm{IM}(t, \mathcal{I}, \Delta) < \inftyIM(t,I,Δ)<∞. While these properties (also known as rationality postulates) are typically easy to satisfy, other intuitive criteria become challenging. We adapt to the database setting the following four important desiderata from [Raddaoui et al., 2024]:

直观上,元组 ttt 对否认约束违反的参与越多,它得到的 IM(t,I,Δ)\mathrm{IM}(t, \mathcal{I}, \Delta)IM(t,I,Δ) 就应越高。通常我们期望 IM\mathrm{IM}IM 满足若干基本性质:若 I⊨Δ\mathcal{I} \models \DeltaI⊨Δ 或 t∈Free(I,Δ)t \in \mathrm{Free}(\mathcal{I}, \Delta)t∈Free(I,Δ),则 IM(t,I,Δ)=0\mathrm{IM}(t, \mathcal{I}, \Delta) = 0IM(t,I,Δ)=0;并且 IM\mathrm{IM}IM 在一切情形下都取有限值,即 IM(t,I,Δ)<∞\mathrm{IM}(t, \mathcal{I}, \Delta) < \inftyIM(t,I,Δ)<∞。这些性质(也称合理性公设)通常容易满足,但另一些直观判据则更具挑战。我们把 [Raddaoui et al., 2024] 中如下四条重要要求改写到数据库设定上:

Free Tuple Independence (FI): If t′∈Free(I∪{t′},Δ)t' \in \mathrm{Free}(\mathcal{I} \cup \{t'\}, \Delta)t′∈Free(I∪{t′},Δ), for any t∈It \in \mathcal{I}t∈I it holds that IM(t,I,Δ)=IM(t,I∪{t′},Δ)\mathrm{IM}(t, \mathcal{I}, \Delta) = \mathrm{IM}(t, \mathcal{I} \cup \{t'\}, \Delta)IM(t,I,Δ)=IM(t,I∪{t′},Δ). That is, adding a free tuple to the database instance does not change the inconsistency score of existing tuples.

自由元组独立性(FI): 若 t′∈Free(I∪{t′},Δ)t' \in \mathrm{Free}(\mathcal{I} \cup \{t'\}, \Delta)t′∈Free(I∪{t′},Δ),则对任意 t∈It \in \mathcal{I}t∈I 都有 IM(t,I,Δ)=IM(t,I∪{t′},Δ)\mathrm{IM}(t, \mathcal{I}, \Delta) = \mathrm{IM}(t, \mathcal{I} \cup \{t'\}, \Delta)IM(t,I,Δ)=IM(t,I∪{t′},Δ)。也就是说,向数据库实例加入一条自由元组,不应改变已有元组的不一致性得分。

Positivity (PO): If t∈MIS(I,δ)t \in \mathrm{MIS}(\mathcal{I}, \delta)t∈MIS(I,δ) for some δ∈Δ\delta \in \Deltaδ∈Δ, then IM(t,I,Δ)>0\mathrm{IM}(t, \mathcal{I}, \Delta) > 0IM(t,I,Δ)>0. This ensures that tuples involved in constraint violations receive a positive inconsistency score, in contrast to free tuples, whose inconsistency measure is zero.

正性(PO): 若对某个 δ∈Δ\delta \in \Deltaδ∈Δ 有 t∈MIS(I,δ)t \in \mathrm{MIS}(\mathcal{I}, \delta)t∈MIS(I,δ),则 IM(t,I,Δ)>0\mathrm{IM}(t, \mathcal{I}, \Delta) > 0IM(t,I,Δ)>0。这保证参与约束违反的元组得到正的不一致性得分,而自由元组的度量值为零。

Centrality Conflict (CC): If t,t′∈It, t' \in \mathcal{I}t,t′∈I such that I∖{t}⊨Δ\mathcal{I} \setminus \{t\} \models \DeltaI∖{t}⊨Δ and I∖{t′}⊭Δ\mathcal{I} \setminus \{t'\} \not\models \DeltaI∖{t′}⊨Δ, then IM(t,I,Δ)>IM(t′,I,Δ)\mathrm{IM}(t, \mathcal{I}, \Delta) > \mathrm{IM}(t', \mathcal{I}, \Delta)IM(t,I,Δ)>IM(t′,I,Δ). If removing ttt resolves all inconsistencies but removing t′t't′ does not, then ttt should have a higher inconsistency value. This property distinguishes tuples whose removal suffices to restore consistency from those whose removal does not.

中心冲突(CC): 若 t,t′∈It, t' \in \mathcal{I}t,t′∈I 满足 I∖{t}⊨Δ\mathcal{I} \setminus \{t\} \models \DeltaI∖{t}⊨Δ 且 I∖{t′}⊭Δ\mathcal{I} \setminus \{t'\} \not\models \DeltaI∖{t′}⊨Δ,则 IM(t,I,Δ)>IM(t′,I,Δ)\mathrm{IM}(t, \mathcal{I}, \Delta) > \mathrm{IM}(t', \mathcal{I}, \Delta)IM(t,I,Δ)>IM(t′,I,Δ)。若删掉 ttt 就能消除全部不一致,删掉 t′t't′ 却不能,则 ttt 应有更高的不一致性取值。这条性质用来区分“删掉即可恢复一致”的元组与删掉仍不足以恢复一致的元组。

Data Monotonicity (DM): For any t∈I′⊆It \in \mathcal{I}' \subseteq \mathcal{I}t∈I′⊆I, it holds that IM(t,I′,Δ)≤IM(t,I,Δ)\mathrm{IM}(t, \mathcal{I}', \Delta) \leq \mathrm{IM}(t, \mathcal{I}, \Delta)IM(t,I′,Δ)≤IM(t,I,Δ). Adding tuples to a database cannot reduce the inconsistency value of a tuple. The rationale is that violations can only increase when database grows; hence, IM\mathrm{IM}IM should be monotone w.r.t. instance extension.

数据单调性(DM): 对任意 t∈I′⊆It \in \mathcal{I}' \subseteq \mathcal{I}t∈I′⊆I,都有 IM(t,I′,Δ)≤IM(t,I,Δ)\mathrm{IM}(t, \mathcal{I}', \Delta) \leq \mathrm{IM}(t, \mathcal{I}, \Delta)IM(t,I′,Δ)≤IM(t,I,Δ)。向数据库加入元组,不能降低某条元组的不一致性取值。理由是:数据库变大时,违反只可能增加;因此 IM\mathrm{IM}IM 应对实例扩充保持单调。

Now, we show that these properties pose substantial challenges for the tuple measure IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ [Issa et al., 2020] as well as for several measures adapted from Symbolic AI [Hunter and Konieczny, 2010; Ribeiro and Thimm, 2021; Raddaoui et al., 2024].

下面我们说明,这些性质对元组度量 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ [Issa et al., 2020],以及对若干从符号人工智能改写过来的度量 [Hunter and Konieczny, 2010; Ribeiro and Thimm, 2021; Raddaoui et al., 2024],都构成不小的挑战。

Definition 7 (IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ [Issa et al., 2020]). The Constraint-based Bag Semantics tuple inconsistency measure (IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​) of a tuple t∈It \in \mathcal{I}t∈I is defined as IMCBM(t,I,Δ)=∑δ∈Δ1t∈⋃MIS(I,δ)\mathrm{IM}_{\mathrm{CBM}}(t, \mathcal{I}, \Delta) = \sum_{\delta \in \Delta} \mathbb{1}_{t \in \bigcup \mathrm{MIS}(\mathcal{I}, \delta)}IMCBM​(t,I,Δ)=∑δ∈Δ​1t∈⋃MIS(I,δ)​, where 1A\mathbb{1}_A1A​ returns 111 if the logical assertion AAA holds, and 000 otherwise.

定义 7(IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ [Issa et al., 2020])。元组 t∈It \in \mathcal{I}t∈I 的基于约束的包语义(Constraint-based Bag Semantics)元组不一致性度量(IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​)定义为 IMCBM(t,I,Δ)=∑δ∈Δ1t∈⋃MIS(I,δ)\mathrm{IM}_{\mathrm{CBM}}(t, \mathcal{I}, \Delta) = \sum_{\delta \in \Delta} \mathbb{1}_{t \in \bigcup \mathrm{MIS}(\mathcal{I}, \delta)}IMCBM​(t,I,Δ)=∑δ∈Δ​1t∈⋃MIS(I,δ)​,其中若逻辑断言 AAA 成立,则 1A\mathbb{1}_A1A​ 返回 111,否则返回 000。

Proposition 2. IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ satisfies all the properties except CC.

命题 2. IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 满足除 CC 以外的全部性质。

Definition 8 (KB Tuple Measure). The knowledge base (KB) tuple inconsistency measures of a tuple t∈It \in \mathcal{I}t∈I are defined as:

定义 8(知识库元组度量)。元组 t∈It \in \mathcal{I}t∈I 的知识库(KB)元组不一致性度量定义如下:

  • IMd(t,I,Δ)=0\mathrm{IM}_d(t, \mathcal{I}, \Delta) = 0IMd​(t,I,Δ)=0 if MIS(t,I,Δ)=∅\mathrm{MIS}(t, \mathcal{I}, \Delta) = \emptysetMIS(t,I,Δ)=∅; and 111 otherwise.
  • 若 MIS(t,I,Δ)=∅\mathrm{MIS}(t, \mathcal{I}, \Delta) = \emptysetMIS(t,I,Δ)=∅,则 IMd(t,I,Δ)=0\mathrm{IM}_d(t, \mathcal{I}, \Delta) = 0IMd​(t,I,Δ)=0;否则为 111。
  • IMdr(t,I,Δ)=max⁡{1/∣M∣∣M∈MIC(t,I,Δ)}\mathrm{IM}_{\mathrm{dr}}(t, \mathcal{I}, \Delta) = \max\{1/|M| \mid M \in \mathrm{MIC}(t, \mathcal{I}, \Delta)\}IMdr​(t,I,Δ)=max{1/∣M∣∣M∈MIC(t,I,Δ)} if MIC(t,I,Δ)≠∅\mathrm{MIC}(t, \mathcal{I}, \Delta) \neq \emptysetMIC(t,I,Δ)=∅; and 000 otherwise.
  • 若 MIC(t,I,Δ)≠∅\mathrm{MIC}(t, \mathcal{I}, \Delta) \neq \emptysetMIC(t,I,Δ)=∅,则 IMdr(t,I,Δ)=max⁡{1/∣M∣∣M∈MIC(t,I,Δ)}\mathrm{IM}_{\mathrm{dr}}(t, \mathcal{I}, \Delta) = \max\{1/|M| \mid M \in \mathrm{MIC}(t, \mathcal{I}, \Delta)\}IMdr​(t,I,Δ)=max{1/∣M∣∣M∈MIC(t,I,Δ)};否则为 000。
  • IM#(t,I,Δ)=∣MIS(t,I,Δ)∣\mathrm{IM}_{\#}(t, \mathcal{I}, \Delta) = |\mathrm{MIS}(t, \mathcal{I}, \Delta)|IM#​(t,I,Δ)=∣MIS(t,I,Δ)∣
  • IMP(t,I,Δ)=∣⋃M∈MIS(t,I,Δ)M∣\mathrm{IM}_P(t, \mathcal{I}, \Delta) = |\bigcup_{M \in \mathrm{MIS}(t, \mathcal{I}, \Delta)} M|IMP​(t,I,Δ)=∣⋃M∈MIS(t,I,Δ)​M∣
  • IMMIS(t,I,Δ)=∑M∈MIS(t,I,Δ)1∣M∣\mathrm{IM}_{\mathrm{MIS}}(t, \mathcal{I}, \Delta) = \sum_{M \in \mathrm{MIS}(t, \mathcal{I}, \Delta)} \frac{1}{|M|}IMMIS​(t,I,Δ)=∑M∈MIS(t,I,Δ)​∣M∣1​

Proposition 3. All KB tuple measures satisfy FI, but not PO.

命题 3. 所有知识库元组度量都满足 FI,但不满足 PO。

Next, we extend the Shapley tuple measure, originally proposed by [Livshits and Kimelfeld, 2022] in the context of functional dependencies, to the setting of denial constraints.

接下来,我们把 [Livshits and Kimelfeld, 2022] 原先在函数依赖设定下提出的 Shapley 元组度量,推广到否认约束设定。

Definition 9. The Shapley tuple inconsistency measure of a tuple t∈It \in \mathcal{I}t∈I is defined as follows: IMshaph(t,I,Δ)=∑I′⊆(I∖{t})[∣I′∣!⋅(∣I∣−∣I′∣−1)!∣I∣!×(h(I′∪{t},Δ)−h(I′,Δ))]\mathrm{IM}^{h}_{\mathrm{shap}}(t, \mathcal{I}, \Delta) = \sum_{\mathcal{I}' \subseteq (\mathcal{I} \setminus \{t\})} \Bigl[ \frac{|\mathcal{I}'|! \cdot (|\mathcal{I}| - |\mathcal{I}'| - 1)!}{|\mathcal{I}|!} \times \bigl(h(\mathcal{I}' \cup \{t\}, \Delta) - h(\mathcal{I}', \Delta)\bigr) \Bigr]IMshaph​(t,I,Δ)=∑I′⊆(I∖{t})​[∣I∣!∣I′∣!⋅(∣I∣−∣I′∣−1)!​×(h(I′∪{t},Δ)−h(I′,Δ))], where h(I,Δ)h(\mathcal{I}, \Delta)h(I,Δ) is an inconsistency measure for the database I\mathcal{I}I w.r.t. Δ\DeltaΔ. We consider two variants of hhh: hMIS(I,Δ)=∣MIS(I,Δ)∣h_{\mathrm{MIS}}(\mathcal{I}, \Delta) = |\mathrm{MIS}(\mathcal{I}, \Delta)|hMIS​(I,Δ)=∣MIS(I,Δ)∣ and hP(I,Δ)=∣⋃M∈MIS(I,Δ)M∣h_P(\mathcal{I}, \Delta) = |\bigcup_{M \in \mathrm{MIS}(\mathcal{I}, \Delta)} M|hP​(I,Δ)=∣⋃M∈MIS(I,Δ)​M∣, resulting in two Shapley tuple measures, denoted IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ and IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​.

定义 9. 元组 t∈It \in \mathcal{I}t∈I 的 Shapley 元组不一致性度量定义如下:IMshaph(t,I,Δ)=∑I′⊆(I∖{t})[∣I′∣!⋅(∣I∣−∣I′∣−1)!∣I∣!×(h(I′∪{t},Δ)−h(I′,Δ))]\mathrm{IM}^{h}_{\mathrm{shap}}(t, \mathcal{I}, \Delta) = \sum_{\mathcal{I}' \subseteq (\mathcal{I} \setminus \{t\})} \Bigl[ \frac{|\mathcal{I}'|! \cdot (|\mathcal{I}| - |\mathcal{I}'| - 1)!}{|\mathcal{I}|!} \times \bigl(h(\mathcal{I}' \cup \{t\}, \Delta) - h(\mathcal{I}', \Delta)\bigr) \Bigr]IMshaph​(t,I,Δ)=∑I′⊆(I∖{t})​[∣I∣!∣I′∣!⋅(∣I∣−∣I′∣−1)!​×(h(I′∪{t},Δ)−h(I′,Δ))],其中 h(I,Δ)h(\mathcal{I}, \Delta)h(I,Δ) 是数据库 I\mathcal{I}I 相对于 Δ\DeltaΔ 的不一致性度量。我们考虑 hhh 的两种变体:hMIS(I,Δ)=∣MIS(I,Δ)∣h_{\mathrm{MIS}}(\mathcal{I}, \Delta) = |\mathrm{MIS}(\mathcal{I}, \Delta)|hMIS​(I,Δ)=∣MIS(I,Δ)∣ 以及 hP(I,Δ)=∣⋃M∈MIS(I,Δ)M∣h_P(\mathcal{I}, \Delta) = |\bigcup_{M \in \mathrm{MIS}(\mathcal{I}, \Delta)} M|hP​(I,Δ)=∣⋃M∈MIS(I,Δ)​M∣,从而得到两种 Shapley 元组度量,分别记为 IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ 和 IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​。

Note that [Livshits and Kimelfeld, 2022] showed that these two choices of hhh yield tractable measures. The same tractability result also holds for denial constraints (see Section 5).

需要说明的是,[Livshits and Kimelfeld, 2022] 已经证明这两种 hhh 的选择都会得到可处理的度量。同样的可处理性结果对否认约束也成立(见第 5 节)。

Proposition 4. IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ and IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ satisfy CC and DM, but violate PO and FI.

命题 4. IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ 与 IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ 满足 CC 和 DM,但违反 PO 和 FI。

Violating some of these four desiderata may lead to counter-intuitive behavior, as illustrated in the next example.

违反这四条要求中的若干条,可能导致反直觉的行为,如下例所示。

Example 3 (Example 1 contd.). Given I={R1,R2,R3}\mathcal{I} = \{R_1, R_2, R_3\}I={R1​,R2​,R3​}, one can observe that I\mathcal{I}I is inconsistent w.r.t. δi\delta_iδi​ (1≤i≤31 \leq i \leq 31≤i≤3) with MIS(I,δ1)={{t1,t6},{t2,t6}}\mathrm{MIS}(\mathcal{I}, \delta_1) = \{\{t_1, t_6\}, \{t_2, t_6\}\}MIS(I,δ1​)={{t1​,t6​},{t2​,t6​}}, MIS(I,δ2)={{t5,t9},{t5,t10}}\mathrm{MIS}(\mathcal{I}, \delta_2) = \{\{t_5, t_9\}, \{t_5, t_{10}\}\}MIS(I,δ2​)={{t5​,t9​},{t5​,t10​}}, and MIS(I,δ3)={{t4,t8,t13},{t5,t9,t14},{t5,t9,t15},{t5,t10,t14},{t5,t10,t15}}\mathrm{MIS}(\mathcal{I}, \delta_3) = \{\{t_4, t_8, t_{13}\}, \{t_5, t_9, t_{14}\}, \{t_5, t_9, t_{15}\}, \{t_5, t_{10}, t_{14}\}, \{t_5, t_{10}, t_{15}\}\}MIS(I,δ3​)={{t4​,t8​,t13​},{t5​,t9​,t14​},{t5​,t9​,t15​},{t5​,t10​,t14​},{t5​,t10​,t15​}}. We have IMCBM(t5,I,δ2)=IMCBM(t9,I,δ2)=IMCBM(t10,I,δ2)=2\mathrm{IM}_{\mathrm{CBM}}(t_5, \mathcal{I}, \delta_2) = \mathrm{IM}_{\mathrm{CBM}}(t_9, \mathcal{I}, \delta_2) = \mathrm{IM}_{\mathrm{CBM}}(t_{10}, \mathcal{I}, \delta_2) = 2IMCBM​(t5​,I,δ2​)=IMCBM​(t9​,I,δ2​)=IMCBM​(t10​,I,δ2​)=2, indicating that t5t_5t5​, t9t_9t9​, and t10t_{10}t10​ have the same contribution to the violation of δ2\delta_2δ2​ according to IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​. However, removing t5t_5t5​ makes I\mathcal{I}I consistent with δ2\delta_2δ2​, whereas removing t9t_9t9​ (or t10t_{10}t10​) does not. The same situation arises for t1t_1t1​, t2t_2t2​, and t6t_6t6​ w.r.t. δ1\delta_1δ1​, illustrating the impact of the failure of CC for IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​. Moreover, we have IM(t14,I,Δ)=IM(t15,I,Δ)=0\mathrm{IM}(t_{14}, \mathcal{I}, \Delta) = \mathrm{IM}(t_{15}, \mathcal{I}, \Delta) = 0IM(t14​,I,Δ)=IM(t15​,I,Δ)=0 for any measure IM\mathrm{IM}IM defined in Definitions 8 and 9, in violation of PO.

例子 3(续例子 1)。给定 I={R1,R2,R3}\mathcal{I} = \{R_1, R_2, R_3\}I={R1​,R2​,R3​},可以看到 I\mathcal{I}I 相对于 δi\delta_iδi​(1≤i≤31 \leq i \leq 31≤i≤3)是不一致的,其中 MIS(I,δ1)={{t1,t6},{t2,t6}}\mathrm{MIS}(\mathcal{I}, \delta_1) = \{\{t_1, t_6\}, \{t_2, t_6\}\}MIS(I,δ1​)={{t1​,t6​},{t2​,t6​}},MIS(I,δ2)={{t5,t9},{t5,t10}}\mathrm{MIS}(\mathcal{I}, \delta_2) = \{\{t_5, t_9\}, \{t_5, t_{10}\}\}MIS(I,δ2​)={{t5​,t9​},{t5​,t10​}},以及 MIS(I,δ3)={{t4,t8,t13},{t5,t9,t14},{t5,t9,t15},{t5,t10,t14},{t5,t10,t15}}\mathrm{MIS}(\mathcal{I}, \delta_3) = \{\{t_4, t_8, t_{13}\}, \{t_5, t_9, t_{14}\}, \{t_5, t_9, t_{15}\}, \{t_5, t_{10}, t_{14}\}, \{t_5, t_{10}, t_{15}\}\}MIS(I,δ3​)={{t4​,t8​,t13​},{t5​,t9​,t14​},{t5​,t9​,t15​},{t5​,t10​,t14​},{t5​,t10​,t15​}}。我们有 IMCBM(t5,I,δ2)=IMCBM(t9,I,δ2)=IMCBM(t10,I,δ2)=2\mathrm{IM}_{\mathrm{CBM}}(t_5, \mathcal{I}, \delta_2) = \mathrm{IM}_{\mathrm{CBM}}(t_9, \mathcal{I}, \delta_2) = \mathrm{IM}_{\mathrm{CBM}}(t_{10}, \mathcal{I}, \delta_2) = 2IMCBM​(t5​,I,δ2​)=IMCBM​(t9​,I,δ2​)=IMCBM​(t10​,I,δ2​)=2,按 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 来看,t5t_5t5​、t9t_9t9​ 和 t10t_{10}t10​ 对违反 δ2\delta_2δ2​ 的贡献相同。然而,删掉 t5t_5t5​ 会使 I\mathcal{I}I 与 δ2\delta_2δ2​ 一致,删掉 t9t_9t9​(或 t10t_{10}t10​)却不能。t1t_1t1​、t2t_2t2​ 与 t6t_6t6​ 相对于 δ1\delta_1δ1​ 也有同样情形,这正说明 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 不满足 CC 会带来什么后果。此外,对定义 8 和定义 9 中的任意度量 IM\mathrm{IM}IM,都有 IM(t14,I,Δ)=IM(t15,I,Δ)=0\mathrm{IM}(t_{14}, \mathcal{I}, \Delta) = \mathrm{IM}(t_{15}, \mathcal{I}, \Delta) = 0IM(t14​,I,Δ)=IM(t15​,I,Δ)=0,这违反了 PO。

In what follows, we introduce new tuple inconsistency measures to investigate whether the four postulates are compatible, i.e., jointly satisfiable by a tuple measure.

下文我们引入新的元组不一致性度量,考察这四条公设是否相容,也就是能否被同一种元组度量同时满足。

3.1 Fine-Grained Tuple Inconsistency Measures

3.1 细粒度元组不一致性度量

To address the limitations of existing tuple inconsistency measures, we introduce a novel family of measures that employ the internal structure of denial constraints to more accurately assess each tuple's contribution to constraint violations.

为弥补已有元组不一致性度量的不足,我们提出一类新度量,利用否认约束的内部结构,更准确地评估每条元组对约束违反的贡献。

Condition-based Inconsistency Measure

条件型不一致性度量

Our first tuple inconsistency measure is designed to capture both the frequency with which a tuple appears in minimal inconsistent subsets of the database and the number of distinct constraint conditions it violates within each such subset.

我们的第一种元组不一致性度量,既要刻画一条元组出现在数据库极小不一致子集中的频次,也要刻画它在每个这样的子集里违反了多少条不同的约束条件。

Definition 10 (IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​). The condition-based inconsistency measure of ttt w.r.t. Δ\DeltaΔ is defined as:

IMCIM(t,I,Δ)=∑δ∈Δ∑M∈MIS(I,δ)∑1≤i≤l1t∈⋃MIS(M,δCi),\mathrm{IM}_{\mathrm{CIM}}(t, \mathcal{I}, \Delta) = \sum_{\delta \in \Delta} \sum_{M \in \mathrm{MIS}(\mathcal{I}, \delta)} \sum_{1 \leq i \leq l} \mathbb{1}_{t \in \bigcup \mathrm{MIS}(M, \delta_{C_i})},IMCIM​(t,I,Δ)=δ∈Δ∑​M∈MIS(I,δ)∑​1≤i≤l∑​1t∈⋃MIS(M,δCi​​)​,

where δCi=∀x⃗ ¬[R1(u⃗1)∧⋯∧Rk(u⃗l)∧Ci(x⃗)]\delta_{C_i} = \forall \vec{x}\, \neg[R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_l) \wedge C_i(\vec{x})]δCi​​=∀x¬[R1​(u1​)∧⋯∧Rk​(ul​)∧Ci​(x)] for a given δ=∀x⃗ ¬[R1(u⃗1)∧⋯∧Rk(u⃗l)∧C1(x⃗)∧⋯∧Cl(x⃗)]\delta = \forall \vec{x}\, \neg[R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_l) \wedge C_1(\vec{x}) \wedge \cdots \wedge C_l(\vec{x})]δ=∀x¬[R1​(u1​)∧⋯∧Rk​(ul​)∧C1​(x)∧⋯∧Cl​(x)].

定义 10(IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​)。ttt 相对于 Δ\DeltaΔ 的条件型不一致性度量定义为:

IMCIM(t,I,Δ)=∑δ∈Δ∑M∈MIS(I,δ)∑1≤i≤l1t∈⋃MIS(M,δCi),\mathrm{IM}_{\mathrm{CIM}}(t, \mathcal{I}, \Delta) = \sum_{\delta \in \Delta} \sum_{M \in \mathrm{MIS}(\mathcal{I}, \delta)} \sum_{1 \leq i \leq l} \mathbb{1}_{t \in \bigcup \mathrm{MIS}(M, \delta_{C_i})},IMCIM​(t,I,Δ)=δ∈Δ∑​M∈MIS(I,δ)∑​1≤i≤l∑​1t∈⋃MIS(M,δCi​​)​,

其中,对给定的 δ=∀x⃗ ¬[R1(u⃗1)∧⋯∧Rk(u⃗l)∧C1(x⃗)∧⋯∧Cl(x⃗)]\delta = \forall \vec{x}\, \neg[R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_l) \wedge C_1(\vec{x}) \wedge \cdots \wedge C_l(\vec{x})]δ=∀x¬[R1​(u1​)∧⋯∧Rk​(ul​)∧C1​(x)∧⋯∧Cl​(x)],有 δCi=∀x⃗ ¬[R1(u⃗1)∧⋯∧Rk(u⃗l)∧Ci(x⃗)]\delta_{C_i} = \forall \vec{x}\, \neg[R_1(\vec{u}_1) \wedge \cdots \wedge R_k(\vec{u}_l) \wedge C_i(\vec{x})]δCi​​=∀x¬[R1​(u1​)∧⋯∧Rk​(ul​)∧Ci​(x)]。

Before evaluating IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​, we require every denial constraint to be in a reduced form, obtained by grouping the conditions of a constraint into one condition for "equal" variables (e.g., x1=x2∧x2=x3x_1=x_2 \wedge x_2=x_3x1​=x2​∧x2​=x3​ is rewritten as x1=x2=x3x_1=x_2=x_3x1​=x2​=x3​), to ensure that syntactically different but logically equivalent constraints induce the same IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ value.

在计算 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 之前,我们要求每条否认约束都处于归约形式:把约束中关于“相等”变量的条件归并成一条(例如把 x1=x2∧x2=x3x_1=x_2 \wedge x_2=x_3x1​=x2​∧x2​=x3​ 改写成 x1=x2=x3x_1=x_2=x_3x1​=x2​=x3​),以保证语法不同但逻辑等价的约束会得到相同的 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 值。

Table 2: Comparison of non-zero tuple inconsistency measures.

Tuple IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​
t1t_1t1​ 1 2 1/4×2=1/21/4 \times 2 = 1/21/4×2=1/2 1/21/21/2
t2t_2t2​ 1 2 1/4×2=1/21/4 \times 2 = 1/21/4×2=1/2 1/21/21/2
t4t_4t4​ 1 2 3/20×5=3/43/20 \times 5 = 3/43/20×5=3/4 1/31/31/3
t5t_5t5​ 2 14 1/2×2+3/20×5=7/41/2 \times 2 + 3/20 \times 5 = 7/41/2×2+3/20×5=7/4 7/37/37/3
t6t_6t6​ 1 4 1/2×2=11/2 \times 2 = 11/2×2=1 111
t8t_8t8​ 1 2 3/20×5=3/43/20 \times 5 = 3/43/20×5=3/4 1/31/31/3
t9t_9t9​ 2 6 1/4×2+1/10×5=11/4 \times 2 + 1/10 \times 5 = 11/4×2+1/10×5=1 7/67/67/6
t10t_{10}t10​ 2 6 1/4×2+1/10×5=11/4 \times 2 + 1/10 \times 5 = 11/4×2+1/10×5=1 7/67/67/6
t13t_{13}t13​ 1 3 3/20×5=3/43/20 \times 5 = 3/43/20×5=3/4 1/31/31/3
t14t_{14}t14​ 1 6 1/10×5=1/21/10 \times 5 = 1/21/10×5=1/2 2/32/32/3
t15t_{15}t15​ 1 6 1/10×5=1/21/10 \times 5 = 1/21/10×5=1/2 2/32/32/3

表 2:非零元组不一致性度量的比较。

元组 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​
t1t_1t1​ 1 2 1/4×2=1/21/4 \times 2 = 1/21/4×2=1/2 1/21/21/2
t2t_2t2​ 1 2 1/4×2=1/21/4 \times 2 = 1/21/4×2=1/2 1/21/21/2
t4t_4t4​ 1 2 3/20×5=3/43/20 \times 5 = 3/43/20×5=3/4 1/31/31/3
t5t_5t5​ 2 14 1/2×2+3/20×5=7/41/2 \times 2 + 3/20 \times 5 = 7/41/2×2+3/20×5=7/4 7/37/37/3
t6t_6t6​ 1 4 1/2×2=11/2 \times 2 = 11/2×2=1 111
t8t_8t8​ 1 2 3/20×5=3/43/20 \times 5 = 3/43/20×5=3/4 1/31/31/3
t9t_9t9​ 2 6 1/4×2+1/10×5=11/4 \times 2 + 1/10 \times 5 = 11/4×2+1/10×5=1 7/67/67/6
t10t_{10}t10​ 2 6 1/4×2+1/10×5=11/4 \times 2 + 1/10 \times 5 = 11/4×2+1/10×5=1 7/67/67/6
t13t_{13}t13​ 1 3 3/20×5=3/43/20 \times 5 = 3/43/20×5=3/4 1/31/31/3
t14t_{14}t14​ 1 6 1/10×5=1/21/10 \times 5 = 1/21/10×5=1/2 2/32/32/3
t15t_{15}t15​ 1 6 1/10×5=1/21/10 \times 5 = 1/21/10×5=1/2 2/32/32/3

Example 4 shows that IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ effectively addresses the issue highlighted in Example 3. However, this observation does not hold in general, as shown by Proposition 5.

例子 4 表明,IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 有效回应了例子 3 中指出的问题。不过这一观察并不普遍成立,见命题 5。

Example 4 (Examples 1 and 3 contd.). Let us focus on Column 2 and 3 of Table 2. Tuple t5t_5t5​ receives the highest IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ score 141414, as it is involved in multiple violations of both δ2\delta_2δ2​ and δ3\delta_3δ3​, and it contributes to a greater number of violated conditions than any other tuple. In contrast, t9t_9t9​ and t10t_{10}t10​ make weaker overall contributions to inconsistency, despite their participation in violation of both δ2\delta_2δ2​ and δ3\delta_3δ3​. This behavior cannot be captured by IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​, since IMCBM(t5,I,Δ)=IMCBM(t9,I,Δ)=IMCBM(t10,I,Δ)=2\mathrm{IM}_{\mathrm{CBM}}(t_5, \mathcal{I}, \Delta) = \mathrm{IM}_{\mathrm{CBM}}(t_9, \mathcal{I}, \Delta) = \mathrm{IM}_{\mathrm{CBM}}(t_{10}, \mathcal{I}, \Delta) = 2IMCBM​(t5​,I,Δ)=IMCBM​(t9​,I,Δ)=IMCBM​(t10​,I,Δ)=2.

例子 4(续例子 1 与例子 3)。请看表 2 的第 2、第 3 列。元组 t5t_5t5​ 得到最高的 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 分数 141414,因为它多次参与对 δ2\delta_2δ2​ 和 δ3\delta_3δ3​ 的违反,并且对所违反条件的贡献也比其他任何元组都多。相比之下,t9t_9t9​ 和 t10t_{10}t10​ 虽然同样参与了对 δ2\delta_2δ2​ 和 δ3\delta_3δ3​ 的违反,总体贡献却更弱。IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 捕捉不到这种差别,因为 IMCBM(t5,I,Δ)=IMCBM(t9,I,Δ)=IMCBM(t10,I,Δ)=2\mathrm{IM}_{\mathrm{CBM}}(t_5, \mathcal{I}, \Delta) = \mathrm{IM}_{\mathrm{CBM}}(t_9, \mathcal{I}, \Delta) = \mathrm{IM}_{\mathrm{CBM}}(t_{10}, \mathcal{I}, \Delta) = 2IMCBM​(t5​,I,Δ)=IMCBM​(t9​,I,Δ)=IMCBM​(t10​,I,Δ)=2。

Proposition 5. IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ satisfies FI, PO and DM, but fails CC.

命题 5. IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 满足 FI、PO 和 DM,但不满足 CC。

Responsibility-based Inconsistency Measure

责任型不一致性度量

Proposition 5 shows that condition-level granularity is insufficient to distinguish tuples whose removal restores consistency from those that do not, as required by the CC property. To address this limitation, we introduce a novel measure inspired by causality theory [Meliou et al., 2010], enabling a more precise individual tuple inconsistency quantification.

命题 5 表明,仅有条件层的粒度,还不足以按 CC 的要求,把“删掉即可恢复一致”的元组与不能的元组区分开。为弥补这一不足,我们引入一种受因果理论启发的新度量 [Meliou et al., 2010],以便更精确地量化单条元组的不一致性。

Given a denial constraint δ\deltaδ and its corresponding boolean query qδq^\deltaqδ, we consider the responsibility measure as defined in the context of query explainability [Meliou et al., 2010]. We first recall some additional concepts. A tuple t∈It \in \mathcal{I}t∈I is a counterfactual cause for an answer ans\mathrm{ans}ans to a query qqq if ans∈q(I)\mathrm{ans} \in q(\mathcal{I})ans∈q(I) and ans∉q(I∖{t})\mathrm{ans} \notin q(\mathcal{I} \setminus \{t\})ans∈/q(I∖{t}). A set Γ⊆I\Gamma \subseteq \mathcal{I}Γ⊆I is a contingency set for ttt if ttt becomes a counterfactual cause for ans\mathrm{ans}ans in I∖Γ\mathcal{I} \setminus \GammaI∖Γ. Using these notions, we define the responsibility of a tuple t∈It \in \mathcal{I}t∈I for violating δ\deltaδ as: ρ(t,δ)=(1+min⁡Γ(t,qδ)∣Γ(t,qδ)∣)−1\rho(t, \delta) = \bigl(1 + \min_{\Gamma(t, q^\delta)} |\Gamma(t, q^\delta)|\bigr)^{-1}ρ(t,δ)=(1+minΓ(t,qδ)​∣Γ(t,qδ)∣)−1, where Γ(t,qδ)\Gamma(t, q^\delta)Γ(t,qδ) ranges over all contingency sets for which ttt is a counterfactual cause of the true answer to qδq^\deltaqδ. Notice that, if a tuple ttt does not violate a constraint δ\deltaδ, there is no contingency set for ttt, and we set ρ(t,δ)=0\rho(t, \delta) = 0ρ(t,δ)=0.

给定否认约束 δ\deltaδ 及其相应的布尔查询 qδq^\deltaqδ,我们采用查询可解释性中定义的责任度量 [Meliou et al., 2010]。先补充几个概念。元组 t∈It \in \mathcal{I}t∈I 是查询 qqq 的答案 ans\mathrm{ans}ans 的反事实原因,当且仅当 ans∈q(I)\mathrm{ans} \in q(\mathcal{I})ans∈q(I) 且 ans∉q(I∖{t})\mathrm{ans} \notin q(\mathcal{I} \setminus \{t\})ans∈/q(I∖{t})。集合 Γ⊆I\Gamma \subseteq \mathcal{I}Γ⊆I 是 ttt 的权变集,当且仅当在 I∖Γ\mathcal{I} \setminus \GammaI∖Γ 中 ttt 成为 ans\mathrm{ans}ans 的反事实原因。据此,我们把元组 t∈It \in \mathcal{I}t∈I 对违反 δ\deltaδ 的责任定义为:ρ(t,δ)=(1+min⁡Γ(t,qδ)∣Γ(t,qδ)∣)−1\rho(t, \delta) = \bigl(1 + \min_{\Gamma(t, q^\delta)} |\Gamma(t, q^\delta)|\bigr)^{-1}ρ(t,δ)=(1+minΓ(t,qδ)​∣Γ(t,qδ)∣)−1,其中 Γ(t,qδ)\Gamma(t, q^\delta)Γ(t,qδ) 取遍使 ttt 成为 qδq^\deltaqδ 的真答案之反事实原因的全部权变集。注意,若元组 ttt 并不违反约束 δ\deltaδ,则不存在它的权变集,此时令 ρ(t,δ)=0\rho(t, \delta) = 0ρ(t,δ)=0。

Using the notion of responsibility, we now define our tuple inconsistency measure that accounts for both how frequently a tuple is involved in denial constraint violations and the strength of its contribution to each such violation.

借助责任这一概念,我们定义如下元组不一致性度量:既计入一条元组参与否认约束违反的频次,也计入它对每次违反的贡献强度。

Definition 11 (IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​). The responsibility-based inconsistency measure of ttt w.r.t. Δ\DeltaΔ is defined as: IMRIM(t,I,Δ)=∑δ∈Δρ′(t,δ)×∣MIS(I,δ)∣\mathrm{IM}_{\mathrm{RIM}}(t, \mathcal{I}, \Delta) = \sum_{\delta \in \Delta} \rho'(t, \delta) \times |\mathrm{MIS}(\mathcal{I}, \delta)|IMRIM​(t,I,Δ)=∑δ∈Δ​ρ′(t,δ)×∣MIS(I,δ)∣ where ρ′(t,δ)=ρ(t,δ)/∑t′∈⋃MIS(I,δ)ρ(t′,δ)\rho'(t, \delta) = \rho(t, \delta) / \sum_{t' \in \bigcup \mathrm{MIS}(\mathcal{I}, \delta)} \rho(t', \delta)ρ′(t,δ)=ρ(t,δ)/∑t′∈⋃MIS(I,δ)​ρ(t′,δ).

定义 11(IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​)。ttt 相对于 Δ\DeltaΔ 的责任型不一致性度量定义为:IMRIM(t,I,Δ)=∑δ∈Δρ′(t,δ)×∣MIS(I,δ)∣\mathrm{IM}_{\mathrm{RIM}}(t, \mathcal{I}, \Delta) = \sum_{\delta \in \Delta} \rho'(t, \delta) \times |\mathrm{MIS}(\mathcal{I}, \delta)|IMRIM​(t,I,Δ)=∑δ∈Δ​ρ′(t,δ)×∣MIS(I,δ)∣,其中 ρ′(t,δ)=ρ(t,δ)/∑t′∈⋃MIS(I,δ)ρ(t′,δ)\rho'(t, \delta) = \rho(t, \delta) / \sum_{t' \in \bigcup \mathrm{MIS}(\mathcal{I}, \delta)} \rho(t', \delta)ρ′(t,δ)=ρ(t,δ)/∑t′∈⋃MIS(I,δ)​ρ(t′,δ)。

Table 3: Properties of tuple inconsistency measures.

IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ / IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ IMP\mathrm{IM}_{P}IMP​ / IMd\mathrm{IM}_{d}IMd​ IMdr\mathrm{IM}_{\mathrm{dr}}IMdr​ IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ / IM#\mathrm{IM}_{\#}IM#​
FI ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓
PO ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ⊗\otimes⊗ ⊗\otimes⊗ ⊗\otimes⊗
CC ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ✓\checkmark✓
DM ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓

表 3:元组不一致性度量的性质。

IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ / IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ IMP\mathrm{IM}_{P}IMP​ / IMd\mathrm{IM}_{d}IMd​ IMdr\mathrm{IM}_{\mathrm{dr}}IMdr​ IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ / IM#\mathrm{IM}_{\#}IM#​
FI ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓
PO ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ⊗\otimes⊗ ⊗\otimes⊗ ⊗\otimes⊗
CC ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ✓\checkmark✓
DM ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓ ✓\checkmark✓ ✓\checkmark✓ ⊗\otimes⊗ ✓\checkmark✓

Example 5 (Example 1 contd.). As illustrated in Table 2, the measure IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ assigns identical inconsistency values to tuples t2t_2t2​ and t4t_4t4​, i.e., IMCIM(t2,I,Δ)=IMCIM(t4,I,Δ)=2\mathrm{IM}_{\mathrm{CIM}}(t_2, \mathcal{I}, \Delta) = \mathrm{IM}_{\mathrm{CIM}}(t_4, \mathcal{I}, \Delta) = 2IMCIM​(t2​,I,Δ)=IMCIM​(t4​,I,Δ)=2. However, by IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ we have IMRIM(t2,I,Δ)=1/2<3/4=IMRIM(t4,I,Δ)\mathrm{IM}_{\mathrm{RIM}}(t_2, \mathcal{I}, \Delta) = 1/2 < 3/4 = \mathrm{IM}_{\mathrm{RIM}}(t_4, \mathcal{I}, \Delta)IMRIM​(t2​,I,Δ)=1/2<3/4=IMRIM​(t4​,I,Δ), thereby providing a more nuanced and informative differentiation.

例子 5(续例子 1)。如表 2 所示,度量 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 给元组 t2t_2t2​ 和 t4t_4t4​ 相同的不一致性取值,即 IMCIM(t2,I,Δ)=IMCIM(t4,I,Δ)=2\mathrm{IM}_{\mathrm{CIM}}(t_2, \mathcal{I}, \Delta) = \mathrm{IM}_{\mathrm{CIM}}(t_4, \mathcal{I}, \Delta) = 2IMCIM​(t2​,I,Δ)=IMCIM​(t4​,I,Δ)=2。但按 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 则有 IMRIM(t2,I,Δ)=1/2<3/4=IMRIM(t4,I,Δ)\mathrm{IM}_{\mathrm{RIM}}(t_2, \mathcal{I}, \Delta) = 1/2 < 3/4 = \mathrm{IM}_{\mathrm{RIM}}(t_4, \mathcal{I}, \Delta)IMRIM​(t2​,I,Δ)=1/2<3/4=IMRIM​(t4​,I,Δ),从而给出更细致、也更有信息量的区分。

Proposition 6. IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ satisfies FI, PO, and CC, but fails DM.

命题 6. IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 满足 FI、PO 和 CC,但不满足 DM。

Proposition 6 highlights a key advantage of IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ over IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ and IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ measures, namely that it satisfies CC. However, it still fails to satisfy DM.

命题 6 凸显了 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 相对 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 和 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 的一个关键优势,即它满足 CC。不过它仍不满足 DM。

Provenance-based Inconsistency Measure

出处型不一致性度量

In this section, we present a tuple measure that satisfies all the properties studied in this paper (see Table 3). The intuition behind this new measure is that it quantifies the violation of a tuple with each constraint δ\deltaδ by using the sizes of minimal inconsistent sets containing it. More formally:

本节给出一种满足本文所讨论全部性质的元组度量(见表 3)。这一新度量的直观想法是:针对每条约束 δ\deltaδ,用包含该元组的极小不一致集的大小,来量化该元组的违反程度。更形式地:

Definition 12 (IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​). The provenance-based inconsistency measure of ttt w.r.t. Δ\DeltaΔ is defined as: IMPIM(t,I,Δ)=∑M∈⨄δ∈ΔMIS(I,δ)1∣M∣⋅1t∈M\mathrm{IM}_{\mathrm{PIM}}(t, \mathcal{I}, \Delta) = \sum_{M \in \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)} \frac{1}{|M|} \cdot \mathbb{1}_{t \in M}IMPIM​(t,I,Δ)=∑M∈⨄δ∈Δ​MIS(I,δ)​∣M∣1​⋅1t∈M​.

定义 12(IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​)。ttt 相对于 Δ\DeltaΔ 的出处型不一致性度量定义为:IMPIM(t,I,Δ)=∑M∈⨄δ∈ΔMIS(I,δ)1∣M∣⋅1t∈M\mathrm{IM}_{\mathrm{PIM}}(t, \mathcal{I}, \Delta) = \sum_{M \in \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)} \frac{1}{|M|} \cdot \mathbb{1}_{t \in M}IMPIM​(t,I,Δ)=∑M∈⨄δ∈Δ​MIS(I,δ)​∣M∣1​⋅1t∈M​。

Example 6. By Table 2, IMPIM(t2,I,Δ)=1/2\mathrm{IM}_{\mathrm{PIM}}(t_2, \mathcal{I}, \Delta) = 1/2IMPIM​(t2​,I,Δ)=1/2 and IMPIM(t14,I,Δ)=2/3\mathrm{IM}_{\mathrm{PIM}}(t_{14}, \mathcal{I}, \Delta) = 2/3IMPIM​(t14​,I,Δ)=2/3, even though these two tuples receive the same IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ value. Specifically, t2t_2t2​ violates δ1\delta_1δ1​ and t14t_{14}t14​ violates δ3\delta_3δ3​; however, t2t_2t2​ appears in only one set in MIS(I,δ1)\mathrm{MIS}(\mathcal{I}, \delta_1)MIS(I,δ1​), whereas t14t_{14}t14​ occurs in two sets in MIS(I,δ3)\mathrm{MIS}(\mathcal{I}, \delta_3)MIS(I,δ3​). This difference explains the discrepancy in their IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ values. Tuple t5t_5t5​, which violates two constraints and occurs in 6 sets in ⨄δ∈ΔMIS(I,δ)\biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)⨄δ∈Δ​MIS(I,δ), receives the highest inconsistency value.

例子 6. 由表 2,IMPIM(t2,I,Δ)=1/2\mathrm{IM}_{\mathrm{PIM}}(t_2, \mathcal{I}, \Delta) = 1/2IMPIM​(t2​,I,Δ)=1/2,而 IMPIM(t14,I,Δ)=2/3\mathrm{IM}_{\mathrm{PIM}}(t_{14}, \mathcal{I}, \Delta) = 2/3IMPIM​(t14​,I,Δ)=2/3,尽管这两条元组的 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 值相同。具体来说,t2t_2t2​ 违反 δ1\delta_1δ1​,t14t_{14}t14​ 违反 δ3\delta_3δ3​;但 t2t_2t2​ 只出现在 MIS(I,δ1)\mathrm{MIS}(\mathcal{I}, \delta_1)MIS(I,δ1​) 的一个集合中,而 t14t_{14}t14​ 出现在 MIS(I,δ3)\mathrm{MIS}(\mathcal{I}, \delta_3)MIS(I,δ3​) 的两个集合中。这一差别解释了它们 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 值的不同。元组 t5t_5t5​ 违反两条约束,并出现在 ⨄δ∈ΔMIS(I,δ)\biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)⨄δ∈Δ​MIS(I,δ) 的 6 个集合中,因而得到最高的不一致性取值。

It is important to highlight the key distinction between IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ and IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ (Definition 8) is that IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ overlooks certain "iceberg" violations that cannot be detected in MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) (see Example 1). This limitation prevents IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ from ensuring PO, a requirement that IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ does meet.

需要强调 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 与 IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​(定义 8)的关键差别:IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ 会忽略某些无法在 MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) 中检出的“冰山”式违反(见例子 1)。这一局限使 IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ 无法保证 PO,而 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 能够满足这一要求。

Proposition 7. IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ satisfies FI, PO, CC, and DM.

命题 7. IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 满足 FI、PO、CC 和 DM。

4 Application: Explaining Query Answers

4. 应用:解释查询答案

Building on tuple inconsistency measures, we propose a formal framework that quantifies the InConsistency of a Query Answer (ICQA) by systematically aggregating the inconsistencies of its contributing tuples. This aggregation is parameterized by a tuple inconsistency measure, and (ii) an answer explainability method, for a versatile family of instantiations. Our framework generalizes the only existing proposal for quantifying inconsistency of query answers [Issa et al., 2020].

在元组不一致性度量的基础上,我们提出一个形式化框架,通过对贡献元组的不一致性做系统聚合,来量化查询答案的不一致性(InConsistency of a Query Answer,ICQA)。这一聚合由一种元组不一致性度量,以及(ii)一种答案可解释性方法来参数化,从而得到一族灵活的实例。我们的框架推广了目前仅有的、用于量化查询答案不一致性的方案 [Issa et al., 2020]。

Given a conjunctive query qqq and ans∈q(I)\mathrm{ans} \in q(\mathcal{I})ans∈q(I) over a database I\mathcal{I}I subject to a set of denial constraints Δ\DeltaΔ, our generic inconsistency measurement for query answers is denoted by ICQAXIM(q,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q,ans,I,Δ), where XXX specifies the answer explanation method and IM\mathrm{IM}IM denotes the tuple inconsistency measure. Below, we define several instantiations of this framework. For ease of notation, we denote ICQAXIM(q,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q,ans,I,Δ) simply as ICQAXIM\mathrm{ICQA}^{\mathrm{IM}}_{X}ICQAXIM​ whenever the context allows. We start by our first instantiation of ICQA, based on provenance.

给定合取查询 qqq 以及受否认约束集 Δ\DeltaΔ 约束的数据库 I\mathcal{I}I 上的答案 ans∈q(I)\mathrm{ans} \in q(\mathcal{I})ans∈q(I),我们把查询答案的一般不一致性度量记为 ICQAXIM(q,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q,ans,I,Δ),其中 XXX 标明答案解释方法,IM\mathrm{IM}IM 表示元组不一致性度量。下面给出该框架的几种实例。为书写简便,在上下文允许时,把 ICQAXIM(q,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q,ans,I,Δ) 简写为 ICQAXIM\mathrm{ICQA}^{\mathrm{IM}}_{X}ICQAXIM​。我们先给出 ICQA 的第一种实例,它基于出处。

Definition 13. The provenance based ICQA for an answer ans\mathrm{ans}ans to a query qqq over the database I\mathcal{I}I, denoted ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​, is: ICQAProvIM=∑M∈WhyP(I,q,ans)∑t∈MIM(t,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}} = \sum_{M \in \mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})} \sum_{t \in M} \mathrm{IM}(t, \mathcal{I}, \Delta)ICQAProvIM​=∑M∈WhyP(I,q,ans)​∑t∈M​IM(t,I,Δ).

定义 13. 数据库 I\mathcal{I}I 上查询 qqq 的答案 ans\mathrm{ans}ans 的出处型 ICQA,记为 ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​,定义为:ICQAProvIM=∑M∈WhyP(I,q,ans)∑t∈MIM(t,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}} = \sum_{M \in \mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})} \sum_{t \in M} \mathrm{IM}(t, \mathcal{I}, \Delta)ICQAProvIM​=∑M∈WhyP(I,q,ans)​∑t∈M​IM(t,I,Δ)。

In Definition 13, the outer summation over M∈WhyP(I,q,ans)M \in \mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})M∈WhyP(I,q,ans) explicitly aggregates across all the derivations of the answer ans\mathrm{ans}ans. Using summation rather than a max-operator ensures that the measure reflects the cumulative inconsistency contributions of all supporting derivations, instead of being dominated by a single most inconsistent derivation. In this way, ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ captures a more complete provenance picture and enables finer discrimination among answers. Note that the inconsistency measure proposed by [Issa et al., 2020] is a special case of Definition 13 by instantiating the tuple measure with IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​, as detailed below.

在定义 13 中,外层对 M∈WhyP(I,q,ans)M \in \mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})M∈WhyP(I,q,ans) 的求和,明确地跨答案 ans\mathrm{ans}ans 的全部推导做聚合。采用求和而不是 max 算子,是为了让度量反映所有支持性推导的累计不一致性贡献,而不是被单一的、最不一致的那条推导所主导。这样,ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ 能抓住更完整的出处图景,也更能细地区分不同答案。需要指出,[Issa et al., 2020] 提出的不一致性度量,是把元组度量实例化为 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 后定义 13 的特例,详见下文。

Proposition 8. Let CBM\mathrm{CBM}CBM be the answer measure defined in [Issa et al., 2020] (Definition 4). It holds CBM=ICQAProvIMCBM\mathrm{CBM} = \mathrm{ICQA}^{\mathrm{IM}_{\mathrm{CBM}}}_{\mathrm{Prov}}CBM=ICQAProvIMCBM​​.

命题 8. 设 CBM\mathrm{CBM}CBM 为 [Issa et al., 2020](定义 4)中的答案度量。则有 CBM=ICQAProvIMCBM\mathrm{CBM} = \mathrm{ICQA}^{\mathrm{IM}_{\mathrm{CBM}}}_{\mathrm{Prov}}CBM=ICQAProvIMCBM​​。

Shapley values [Shapley, 1953] are useful in various settings, including knowledge representation and databases [Hunter and Konieczny, 2010; Livshits and Kimelfeld, 2022]. As a second instantiation of our ICQA framework, we adapt Shapley values for inconsistent query answers.

Shapley 值 [Shapley, 1953] 在多种设定中都很有用,包括知识表示和数据库 [Hunter and Konieczny, 2010; Livshits and Kimelfeld, 2022]。作为 ICQA 框架的第二种实例,我们把 Shapley 值改写到不一致的查询答案上。

Definition 14. The Shapley based ICQA for an answer ans\mathrm{ans}ans to a query qqq over the database I\mathcal{I}I, denoted ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​, is:

ICQAshapIM=1∣I∣!∑t∈IIM(t,I,Δ)(∑I′∈πI∖{t}∇v)\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}} = \frac{1}{|\mathcal{I}|!} \sum_{t \in \mathcal{I}} \mathrm{IM}(t, \mathcal{I}, \Delta) \left( \sum_{\mathcal{I}' \in \pi_{\mathcal{I} \setminus \{t\}}} \nabla v \right)ICQAshapIM​=∣I∣!1​t∈I∑​IM(t,I,Δ)​I′∈πI∖{t}​∑​∇v​

where πI∖{t}\pi_{\mathcal{I} \setminus \{t\}}πI∖{t}​ denotes all permutations of tuples in I∖{t}\mathcal{I} \setminus \{t\}I∖{t}, the marginal ∇v=v(I′∪{t})−v(I′)\nabla v = v(\mathcal{I}' \cup \{t\}) - v(\mathcal{I}')∇v=v(I′∪{t})−v(I′) with the wealth function v(⋅)v(\cdot)v(⋅) returns 111 if ans∈q(⋅)\mathrm{ans} \in q(\cdot)ans∈q(⋅), and 000 otherwise.

定义 14. 数据库 I\mathcal{I}I 上查询 qqq 的答案 ans\mathrm{ans}ans 的 Shapley 型 ICQA,记为 ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​,定义为:

ICQAshapIM=1∣I∣!∑t∈IIM(t,I,Δ)(∑I′∈πI∖{t}∇v)\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}} = \frac{1}{|\mathcal{I}|!} \sum_{t \in \mathcal{I}} \mathrm{IM}(t, \mathcal{I}, \Delta) \left( \sum_{\mathcal{I}' \in \pi_{\mathcal{I} \setminus \{t\}}} \nabla v \right)ICQAshapIM​=∣I∣!1​t∈I∑​IM(t,I,Δ)​I′∈πI∖{t}​∑​∇v​

其中 πI∖{t}\pi_{\mathcal{I} \setminus \{t\}}πI∖{t}​ 表示 I∖{t}\mathcal{I} \setminus \{t\}I∖{t} 中元组的全部排列,边际 ∇v=v(I′∪{t})−v(I′)\nabla v = v(\mathcal{I}' \cup \{t\}) - v(\mathcal{I}')∇v=v(I′∪{t})−v(I′),财富函数 v(⋅)v(\cdot)v(⋅) 在 ans∈q(⋅)\mathrm{ans} \in q(\cdot)ans∈q(⋅) 时返回 111,否则返回 000。

Notably, unlike the formulation of [Livshits et al., 2021a], our value function v(⋅)v(\cdot)v(⋅) is defined w.r.t. each individual answer rather than the complete query result set.

值得注意的是,与 [Livshits et al., 2021a] 的表述不同,我们的价值函数 v(⋅)v(\cdot)v(⋅) 是针对单个答案定义的,而不是针对完整的查询结果集。

The final ICQA instantiation combines responsibility with tuple measures to quantify answer inconsistency.

最后一种 ICQA 实例把责任与元组度量结合起来,用以量化答案的不一致性。

Definition 15. The responsibility based ICQA for an answer ans\mathrm{ans}ans to a query qqq over the database I\mathcal{I}I, denoted ICQARespIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Resp}}ICQARespIM​, is: ICQARespIM=∑t∈⋃WhyP(I,q,ans)ρ(t)⋅IM(t,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Resp}} = \sum_{t \in \bigcup \mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})} \rho(t) \cdot \mathrm{IM}(t, \mathcal{I}, \Delta)ICQARespIM​=∑t∈⋃WhyP(I,q,ans)​ρ(t)⋅IM(t,I,Δ), where ρ(t)=1/(1+min⁡Γt∣Γt∣)\rho(t) = 1/(1 + \min_{\Gamma_t} |\Gamma_t|)ρ(t)=1/(1+minΓt​​∣Γt​∣) with Γt\Gamma_tΓt​ the contingency set of ttt.

定义 15. 数据库 I\mathcal{I}I 上查询 qqq 的答案 ans\mathrm{ans}ans 的责任型 ICQA,记为 ICQARespIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Resp}}ICQARespIM​,定义为:ICQARespIM=∑t∈⋃WhyP(I,q,ans)ρ(t)⋅IM(t,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Resp}} = \sum_{t \in \bigcup \mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})} \rho(t) \cdot \mathrm{IM}(t, \mathcal{I}, \Delta)ICQARespIM​=∑t∈⋃WhyP(I,q,ans)​ρ(t)⋅IM(t,I,Δ),其中 ρ(t)=1/(1+min⁡Γt∣Γt∣)\rho(t) = 1/(1 + \min_{\Gamma_t} |\Gamma_t|)ρ(t)=1/(1+minΓt​​∣Γt​∣),Γt\Gamma_tΓt​ 是 ttt 的权变集。

To assess the suitability of measures for quantifying query-answer inconsistency, we introduce the following properties.

为了评估度量是否适于量化查询答案的不一致性,我们引入以下性质。

Blamelessness: ICQAXIM(q,ans,I,Δ)=0\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta) = 0ICQAXIM​(q,ans,I,Δ)=0 if and only if ⋃M∈WhyP(q,ans,I)M∩⋃M′∈⨄δ∈ΔMIS(I,δ)M′=∅\bigcup_{M \in \mathrm{WhyP}(q, \mathrm{ans}, \mathcal{I})} M \cap \bigcup_{M' \in \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)} M' = \emptyset⋃M∈WhyP(q,ans,I)​M∩⋃M′∈⨄δ∈Δ​MIS(I,δ)​M′=∅. Only answers with violation-free provenance are blameless (i.e., score 000). Otherwise, they have a positive ICQAXIM\mathrm{ICQA}^{\mathrm{IM}}_{X}ICQAXIM​ score.

无咎性(Blamelessness): ICQAXIM(q,ans,I,Δ)=0\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta) = 0ICQAXIM​(q,ans,I,Δ)=0 当且仅当 ⋃M∈WhyP(q,ans,I)M∩⋃M′∈⨄δ∈ΔMIS(I,δ)M′=∅\bigcup_{M \in \mathrm{WhyP}(q, \mathrm{ans}, \mathcal{I})} M \cap \bigcup_{M' \in \biguplus_{\delta \in \Delta} \mathrm{MIS}(\mathcal{I}, \delta)} M' = \emptyset⋃M∈WhyP(q,ans,I)​M∩⋃M′∈⨄δ∈Δ​MIS(I,δ)​M′=∅。只有出处中不含违反的答案才是无咎的(即得分为 000)。否则,它们具有正的 ICQAXIM\mathrm{ICQA}^{\mathrm{IM}}_{X}ICQAXIM​ 得分。

Additivity: For two queries q1(y⃗)q_1(\vec{y})q1​(y​), q2(y⃗)q_2(\vec{y})q2​(y​) of the same arity, if ans∈q1(I)∩q2(I)\mathrm{ans} \in q_1(\mathcal{I}) \cap q_2(\mathcal{I})ans∈q1​(I)∩q2​(I), then ICQAXIM(q1∨q2,ans,I,Δ)≤ICQAXIM(q1,ans,I,Δ)+ICQAXIM(q2,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q_1 \vee q_2, \mathrm{ans}, \mathcal{I}, \Delta) \leq \mathrm{ICQA}^{\mathrm{IM}}_{X}(q_1, \mathrm{ans}, \mathcal{I}, \Delta) + \mathrm{ICQA}^{\mathrm{IM}}_{X}(q_2, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q1​∨q2​,ans,I,Δ)≤ICQAXIM​(q1​,ans,I,Δ)+ICQAXIM​(q2​,ans,I,Δ). Combining queries should not increase the inconsistency of an answer beyond the sum of individual inconsistencies. Indeed, the provenance of q1∨q2q_1 \vee q_2q1​∨q2​ is the union of the provenances of q1q_1q1​ and q2q_2q2​, introducing no additional sources of inconsistency.

可加性(Additivity): 对两个元数相同的查询 q1(y⃗)q_1(\vec{y})q1​(y​)、q2(y⃗)q_2(\vec{y})q2​(y​),若 ans∈q1(I)∩q2(I)\mathrm{ans} \in q_1(\mathcal{I}) \cap q_2(\mathcal{I})ans∈q1​(I)∩q2​(I),则 ICQAXIM(q1∨q2,ans,I,Δ)≤ICQAXIM(q1,ans,I,Δ)+ICQAXIM(q2,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q_1 \vee q_2, \mathrm{ans}, \mathcal{I}, \Delta) \leq \mathrm{ICQA}^{\mathrm{IM}}_{X}(q_1, \mathrm{ans}, \mathcal{I}, \Delta) + \mathrm{ICQA}^{\mathrm{IM}}_{X}(q_2, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q1​∨q2​,ans,I,Δ)≤ICQAXIM​(q1​,ans,I,Δ)+ICQAXIM​(q2​,ans,I,Δ)。把查询合在一起,不应使一个答案的不一致性超过各自不一致性之和。事实上,q1∨q2q_1 \vee q_2q1​∨q2​ 的出处是 q1q_1q1​ 与 q2q_2q2​ 出处的并,并不会引入额外的不一致来源。

In particular, additivity ensures that answers with a score 000 for both queries retain a score 000 under their disjunction.

特别地,可加性保证:若一个答案在两个查询上都得 000 分,则在它们的析取下仍得 000 分。

Monotonicity: For any I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I, ICQAXIM(q,ans,I′,Δ)≤ICQAXIM(q,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}', \Delta) \leq \mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q,ans,I′,Δ)≤ICQAXIM​(q,ans,I,Δ). Intuitively, monotonicity ensures that an answer cannot become more inconsistent after removing tuples from I\mathcal{I}I. This is desired because inconsistency stems from constraint violations, and removing data from the database can only eliminate or reduce such violations.

单调性(Monotonicity): 对任意 I′⊆I\mathcal{I}' \subseteq \mathcal{I}I′⊆I,有 ICQAXIM(q,ans,I′,Δ)≤ICQAXIM(q,ans,I,Δ)\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}', \Delta) \leq \mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta)ICQAXIM​(q,ans,I′,Δ)≤ICQAXIM​(q,ans,I,Δ)。直观上,单调性保证:从 I\mathcal{I}I 中删去元组后,一个答案不会变得更不一致。这是合理的,因为不一致性来自约束违反,而从数据库中删去数据只会消除或减弱这类违反。

Proposition 9. ICQAXIM\mathrm{ICQA}^{\mathrm{IM}}_{X}ICQAXIM​ satisfies Blamelessness for any explainability method XXX and tuple inconsistency measure IM\mathrm{IM}IM. Moreover, ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ satisfies Additivity for any IM\mathrm{IM}IM, and Monotonicity if IM\mathrm{IM}IM satisfies Data Monotonicity.

命题 9. 对任意可解释性方法 XXX 和任意元组不一致性度量 IM\mathrm{IM}IM,ICQAXIM\mathrm{ICQA}^{\mathrm{IM}}_{X}ICQAXIM​ 都满足无咎性。此外,对任意 IM\mathrm{IM}IM,ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ 都满足可加性;若 IM\mathrm{IM}IM 满足数据单调性,则它还满足单调性。

5 Computational Complexity Analysis

5. 计算复杂度分析

We study the following complexity problems, given k≥0k \geq 0k≥0:

TUPLE-MEASURE: is IM(t,I,Δ)>k\mathrm{IM}(t, \mathcal{I}, \Delta) > kIM(t,I,Δ)>k?

ANSWER-MEASURE: is ICQAXIM(q,ans,I,Δ)>k\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta) > kICQAXIM​(q,ans,I,Δ)>k?

给定 k≥0k \geq 0k≥0,我们研究如下复杂度问题:

TUPLE-MEASURE:是否 IM(t,I,Δ)>k\mathrm{IM}(t, \mathcal{I}, \Delta) > kIM(t,I,Δ)>k?

ANSWER-MEASURE:是否 ICQAXIM(q,ans,I,Δ)>k\mathrm{ICQA}^{\mathrm{IM}}_{X}(q, \mathrm{ans}, \mathcal{I}, \Delta) > kICQAXIM​(q,ans,I,Δ)>k?

For each denial constraint δ∈Δ\delta \in \Deltaδ∈Δ, we assume that MIS(I,δ)\mathrm{MIS}(\mathcal{I}, \delta)MIS(I,δ) is given; it can be computed efficiently by evaluating the conjunctive query qδq^\deltaqδ associated to δ\deltaδ.

对每条否认约束 δ∈Δ\delta \in \Deltaδ∈Δ,我们假定 MIS(I,δ)\mathrm{MIS}(\mathcal{I}, \delta)MIS(I,δ) 已经给出;它可以通过求值与 δ\deltaδ 相应的合取查询 qδq^\deltaqδ 来高效计算。

To facilitate our analysis, we introduce the following terms:

(I) MisConstant: ∣MIS(I,Δ)∣<c|\mathrm{MIS}(\mathcal{I}, \Delta)| < c∣MIS(I,Δ)∣<c for some constant ccc,

(II) FixedSize-Disj: for each Mi≠Mj∈MIS(I,Δ)M_i \neq M_j \in \mathrm{MIS}(\mathcal{I}, \Delta)Mi​=Mj​∈MIS(I,Δ), ∣Mi∣=∣Mj∣|M_i| = |M_j|∣Mi​∣=∣Mj​∣ and ∣Mi∩Mj∣≤1|M_i \cap M_j| \leq 1∣Mi​∩Mj​∣≤1.

为便于分析,我们引入以下术语:

(I)MisConstant: 存在常数 ccc,使得 ∣MIS(I,Δ)∣<c|\mathrm{MIS}(\mathcal{I}, \Delta)| < c∣MIS(I,Δ)∣<c;

(II)FixedSize-Disj: 对每个 Mi≠Mj∈MIS(I,Δ)M_i \neq M_j \in \mathrm{MIS}(\mathcal{I}, \Delta)Mi​=Mj​∈MIS(I,Δ),有 ∣Mi∣=∣Mj∣|M_i| = |M_j|∣Mi​∣=∣Mj​∣ 且 ∣Mi∩Mj∣≤1|M_i \cap M_j| \leq 1∣Mi​∩Mj​∣≤1。

5.1 Complexity of Tuple Measures

5.1 元组度量的复杂度

[Livshits and Kimelfeld, 2022] prove that IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ and IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ are in PTime for functional dependencies. Our next result extends this to denial constraints for which either MisConstant or FixedSize-Disj holds. Indeed, if Δ\DeltaΔ contains only functional dependencies, then MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) satisfies FixedSize-Disj as ∣Mi∣=2|M_i| = 2∣Mi​∣=2, which implies ∣Mi∩Mj∣≤1|M_i \cap M_j| \leq 1∣Mi​∩Mj​∣≤1.

[Livshits and Kimelfeld, 2022] 证明,在函数依赖下 IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ 与 IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ 属于 PTime。下面的结果把这一点推广到满足 MisConstant 或 FixedSize-Disj 的否认约束。事实上,若 Δ\DeltaΔ 只含函数依赖,则 MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) 满足 FixedSize-Disj,因为 ∣Mi∣=2|M_i| = 2∣Mi​∣=2,从而 ∣Mi∩Mj∣≤1|M_i \cap M_j| \leq 1∣Mi​∩Mj​∣≤1。

Proposition 10. IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ and IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ are PTime if MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) satisfies MisConstant. Moreover, IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ is PTime if FixedSize-Disj holds.

命题 10. 若 MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) 满足 MisConstant,则 IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ 与 IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ 是 PTime 的。此外,若 FixedSize-Disj 成立,则 IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ 是 PTime 的。

The case of IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ follows analogously to [Livshits and Kimelfeld, 2022]. For IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​, the minimal inconsistent subsets contributing to its value are of size two for functional dependencies, whereas they can be of arbitrary size for denial constraints. We can prove that deciding such subsets remains polynomial under MisConstant and FixedSize-Disj.

IMshapP\mathrm{IM}^{P}_{\mathrm{shap}}IMshapP​ 的情形可按与 [Livshits and Kimelfeld, 2022] 类似的方式得到。对 IMshapMIS\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}IMshapMIS​ 而言,在函数依赖下,对其取值有贡献的极小不一致子集大小为二,而在否认约束下它们可以是任意大小。我们可以证明,在 MisConstant 和 FixedSize-Disj 下,判定这类子集仍是多项式时间的。

Proposition 11. IM\mathrm{IM}IM is in PTime for IM∈{IMd,IM#,IMP,IMMIS}\mathrm{IM} \in \{\mathrm{IM}_d, \mathrm{IM}_{\#}, \mathrm{IM}_P, \mathrm{IM}_{\mathrm{MIS}}\}IM∈{IMd​,IM#​,IMP​,IMMIS​}, and coNP-Complete for IMdr\mathrm{IM}_{\mathrm{dr}}IMdr​ unless ∣MIC(I,Δ)∣<c|\mathrm{MIC}(\mathcal{I}, \Delta)| < c∣MIC(I,Δ)∣<c for a constant ccc.

命题 11. 当 IM∈{IMd,IM#,IMP,IMMIS}\mathrm{IM} \in \{\mathrm{IM}_d, \mathrm{IM}_{\#}, \mathrm{IM}_P, \mathrm{IM}_{\mathrm{MIS}}\}IM∈{IMd​,IM#​,IMP​,IMMIS​} 时,IM\mathrm{IM}IM 属于 PTime;对 IMdr\mathrm{IM}_{\mathrm{dr}}IMdr​,除非存在常数 ccc 使得 ∣MIC(I,Δ)∣<c|\mathrm{MIC}(\mathcal{I}, \Delta)| < c∣MIC(I,Δ)∣<c,否则它是 coNP-完全 的。

Given MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ), IMd\mathrm{IM}_dIMd​, IM#\mathrm{IM}_{\#}IM#​, IMP\mathrm{IM}_PIMP​ and IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ are computed by scanning the set MIS\mathrm{MIS}MIS. For IMdr\mathrm{IM}_{\mathrm{dr}}IMdr​, MIC\mathrm{MIC}MIC corresponds to minimal hitting sets of MIS(t,I,Δ)\mathrm{MIS}(t, \mathcal{I}, \Delta)MIS(t,I,Δ); deciding the existence of a bounded one is NP-complete, yielding coNP-completeness. If ∣MIC∣|\mathrm{MIC}|∣MIC∣ is bounded, enumeration is polynomial.

给定 MIS(I,Δ)\mathrm{MIS}(\mathcal{I}, \Delta)MIS(I,Δ) 后,IMd\mathrm{IM}_dIMd​、IM#\mathrm{IM}_{\#}IM#​、IMP\mathrm{IM}_PIMP​ 和 IMMIS\mathrm{IM}_{\mathrm{MIS}}IMMIS​ 都可以通过扫描集合 MIS\mathrm{MIS}MIS 来计算。对 IMdr\mathrm{IM}_{\mathrm{dr}}IMdr​ 而言,MIC\mathrm{MIC}MIC 对应于 MIS(t,I,Δ)\mathrm{MIS}(t, \mathcal{I}, \Delta)MIS(t,I,Δ) 的极小击中集;判定是否存在有界的极小击中集是 NP-完全的,从而得到 coNP-完全性。若 ∣MIC∣|\mathrm{MIC}|∣MIC∣ 有界,则枚举是多项式时间的。

Proposition 12. IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ and IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ are PTime, and IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ is NP-hard.

命题 12. IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 与 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 是 PTime 的,而 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 是 NP-困难 的。

IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ and IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ are computable by polynomial scans on violation sets. NP-hardness of IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ follows from the causal responsibility for conjunctive queries [Meliou et al., 2010].

IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 与 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 都可以通过对违反集合做多项式次扫描来计算。IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 的 NP-困难性来自合取查询上的因果责任 [Meliou et al., 2010]。

5.2 Complexity of Answer Measures

5.2 答案度量的复杂度

Recall that an ICQA measure depends on the tuple measure and on the aggregation method of each tuple contribution to the query answer. For conjunctive queries with equality comparisons only, the following tractability result holds.

回顾一下,ICQA 度量依赖于元组度量,以及把各元组贡献聚合到查询答案的方法。对只含等值比较的合取查询,有如下可处理性结果。

Proposition 13. ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ has the same complexity as IM\mathrm{IM}IM. In particular, ICQAProvy\mathrm{ICQA}^{y}_{\mathrm{Prov}}ICQAProvy​ are in PTime for y∈{IMshapMIS,IMshapP}y \in \{\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}, \mathrm{IM}^{P}_{\mathrm{shap}}\}y∈{IMshapMIS​,IMshapP​}.

命题 13. ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ 与 IM\mathrm{IM}IM 具有相同的复杂度。特别地,当 y∈{IMshapMIS,IMshapP}y \in \{\mathrm{IM}^{\mathrm{MIS}}_{\mathrm{shap}}, \mathrm{IM}^{P}_{\mathrm{shap}}\}y∈{IMshapMIS​,IMshapP​} 时,ICQAProvy\mathrm{ICQA}^{y}_{\mathrm{Prov}}ICQAProvy​ 属于 PTime。

ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ aggregates tuple scores over WhyP(I,q,ans)\mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})WhyP(I,q,ans), which is PTime computable. Since aggregation is linear, the complexity matches that of IM\mathrm{IM}IM.

ICQAProvIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Prov}}ICQAProvIM​ 在 WhyP(I,q,ans)\mathrm{WhyP}(\mathcal{I}, q, \mathrm{ans})WhyP(I,q,ans) 上聚合元组得分,而后者是 PTime 可计算的。由于聚合是线性的,复杂度与 IM\mathrm{IM}IM 一致。

Proposition 14. For a hierarchical boolean conjunctive query without self-joins (see [Livshits et al., 2021a]), the complexity of ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​ matches that of the underlying measure IM\mathrm{IM}IM. Otherwise, it is FP#P\mathrm{FP}^{\#\mathrm{P}}FP#P-complete.

命题 14. 对无自连接的层次布尔合取查询(见 [Livshits et al., 2021a]),ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​ 的复杂度与底层度量 IM\mathrm{IM}IM 一致。否则,它是 FP#P\mathrm{FP}^{\#\mathrm{P}}FP#P-完全的。

The computation reduces to the Shapley value of a Boolean query q′q'q′ induced by ans\mathrm{ans}ans. By [Livshits and Kimelfeld, 2022], this is PTime for hierarchical queries without self-joins and FP#P\mathrm{FP}^{\#\mathrm{P}}FP#P-complete otherwise; the overall complexity follows.

该计算可化归为答案 ans\mathrm{ans}ans 所诱导的布尔查询 q′q'q′ 的 Shapley 值。据 [Livshits and Kimelfeld, 2022],这对无自连接的层次查询是 PTime 的,否则是 FP#P\mathrm{FP}^{\#\mathrm{P}}FP#P-完全的;总体复杂度由此得出。

Proposition 15. ICQARespIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Resp}}ICQARespIM​ is NP-hard in general, regardless IM\mathrm{IM}IM. It becomes PTime for linear queries when combined with tractable IM\mathrm{IM}IM (see Propositions 10,11,12).

命题 15. ICQARespIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{Resp}}ICQARespIM​ 在一般情况下是 NP-困难的,与 IM\mathrm{IM}IM 无关。当查询是线性的,并与可处理的 IM\mathrm{IM}IM 搭配时,它变为 PTime(见命题 10、11、12)。

This result follows from [Meliou et al., 2010], where responsibility is NP-hard in general and tractable for linear queries; combining with tractable IM\mathrm{IM}IM yields the result.

这一结果来自 [Meliou et al., 2010]:责任在一般情况下是 NP-困难的,对线性查询则可处理;再与可处理的 IM\mathrm{IM}IM 结合,即得本结论。

6 Experimental Evaluation

6. 实验评估

The experiments are designed to assess three aspects of the proposed inconsistency measures. First, we examine their ability to discriminate among tuples w.r.t. their involvement in violations under varying inconsistency ratios and different sets of constraints. Second, we analyze the propagation of tuple inconsistency to query answers under multiple aggregation methods, assessing whether the resulting ICQA scores remain meaningful and stable. Third, we investigate the computational efficiency and scalability of the different measures.

实验旨在从三个方面评估所提出的不一致性度量。第一,在不同的不一致性比例和不同的约束集合下,考察它们按元组对违反的参与程度进行区分的能力。第二,分析在多种聚合方法下,元组不一致性如何传导到查询答案,并评估所得 ICQA 得分是否仍然有意义且稳定。第三,考察不同度量的计算效率与可扩展性。

All experiments are conducted on macOS 15.6.1 (M1 Max, 32GB RAM) with Python 3.11.14, DuckDB 1.4.3 as a DBMS, and TPC-H (https://www.tpc.org/tpch/) dbgen v3.0.1 for datasets generation. The source code of our experiments is available at https://github.com/yrGnote/tuple-measure-icqa.

全部实验在 macOS 15.6.1(M1 Max,32GB 内存)上进行,使用 Python 3.11.14,以 DuckDB 1.4.3 作为 DBMS,并用 TPC-H(https://www.tpc.org/tpch/)的 dbgen v3.0.1 生成数据集。实验源代码见 https://github.com/yrGnote/tuple-measure-icqa。

Datasets. First, we generate database instances with scale factors SF∈{0.01,0.05,0.1}\mathrm{SF} \in \{0.01, 0.05, 0.1\}SF∈{0.01,0.05,0.1}, yielding 'clean' datasets with 86.8k, 432.8k and 866.6k tuples, respectively. Second, we define two sets of denial constraints over the TPC-H schema, namely Δ1={δ1,δ2}\Delta_1=\{\delta_1, \delta_2\}Δ1​={δ1​,δ2​} and Δ2={δ1,δ2,δ3,δ4}\Delta_2=\{\delta_1, \delta_2, \delta_3, \delta_4\}Δ2​={δ1​,δ2​,δ3​,δ4​}, where:

数据集。 首先,我们用规模因子 SF∈{0.01,0.05,0.1}\mathrm{SF} \in \{0.01, 0.05, 0.1\}SF∈{0.01,0.05,0.1} 生成数据库实例,得到分别含 86.8k、432.8k 和 866.6k 条元组的“干净”数据集。其次,我们在 TPC-H 模式上定义两组否认约束,即 Δ1={δ1,δ2}\Delta_1=\{\delta_1, \delta_2\}Δ1​={δ1​,δ2​} 和 Δ2={δ1,δ2,δ3,δ4}\Delta_2=\{\delta_1, \delta_2, \delta_3, \delta_4\}Δ2​={δ1​,δ2​,δ3​,δ4​},其中:

δ1:¬(L(ko,kp,ks,dship,dreceipt,dcmt,sl)∧dreceipt<dship)\delta_1 : \neg\bigl(L(k_o, k_p, k_s, d_{\mathrm{ship}}, d_{\mathrm{receipt}}, d_{\mathrm{cmt}}, s_l) \wedge d_{\mathrm{receipt}} < d_{\mathrm{ship}}\bigr)δ1​:¬(L(ko​,kp​,ks​,dship​,dreceipt​,dcmt​,sl​)∧dreceipt​<dship​)

δ2:¬(L(ko′,kp,ks,dship,dreceipt,dcommit,sl)∧O(ko,dorder,so)∧ko=ko′∧dcommit<dorder)\delta_2 : \neg\bigl(L(k'_o, k_p, k_s, d_{\mathrm{ship}}, d_{\mathrm{receipt}}, d_{\mathrm{commit}}, s_l) \wedge O(k_o, d_{\mathrm{order}}, s_o) \wedge k_o = k'_o \wedge d_{\mathrm{commit}} < d_{\mathrm{order}}\bigr)δ2​:¬(L(ko′​,kp​,ks​,dship​,dreceipt​,dcommit​,sl​)∧O(ko​,dorder​,so​)∧ko​=ko′​∧dcommit​<dorder​)

δ3:¬(O(ko,dorder,so)∧L(ko′,kp,ks,dship,drecp,dcmt,sl)∧ko=ko′∧so=‘F’∧sl≠‘F’)\delta_3 : \neg\bigl(O(k_o, d_{\mathrm{order}}, s_o) \wedge L(k'_o, k_p, k_s, d_{\mathrm{ship}}, d_{\mathrm{recp}}, d_{\mathrm{cmt}}, s_l) \wedge k_o = k'_o \wedge s_o = \text{`F'} \wedge s_l \neq \text{`F'}\bigr)δ3​:¬(O(ko​,dorder​,so​)∧L(ko′​,kp​,ks​,dship​,drecp​,dcmt​,sl​)∧ko​=ko′​∧so​=‘F’∧sl​=‘F’)

δ4:¬(L(ko,kp,ks,dship,drecpt,dcmt,sl)∧PS(kp′,ks′,qavl)∧P(kp′′)∧kp=kp′=kp′′∧ks=ks′∧qavl<0)\delta_4 : \neg\bigl(L(k_o, k_p, k_s, d_{\mathrm{ship}}, d_{\mathrm{recpt}}, d_{\mathrm{cmt}}, s_l) \wedge PS(k'_p, k'_s, q_{\mathrm{avl}}) \wedge P(k''_p) \wedge k_p = k'_p = k''_p \wedge k_s = k'_s \wedge q_{\mathrm{avl}} < 0\bigr)δ4​:¬(L(ko​,kp​,ks​,dship​,drecpt​,dcmt​,sl​)∧PS(kp′​,ks′​,qavl​)∧P(kp′′​)∧kp​=kp′​=kp′′​∧ks​=ks′​∧qavl​<0)

Figure 1: Distribution of tuple inconsistency measures.

Figure 1: Distribution of tuple inconsistency measures.

图 1:元组不一致性度量的分布。

Starting from the three clean TPC-H instances, we inject synthetic violations of Δ1\Delta_1Δ1​ and Δ2\Delta_2Δ2​, choosing to modify each time, a single attribute appearing in the condition of each δ\deltaδ as follows: for δ1\delta_1δ1​, we decrease the receipt date to enforce dreceipt<dshipd_{\mathrm{receipt}} < d_{\mathrm{ship}}dreceipt​<dship​; for δ2\delta_2δ2​ we set dcommit=dorder−1d_{\mathrm{commit}} = d_{\mathrm{order}} - 1dcommit​=dorder​−1; for δ3\delta_3δ3​, we flip the lineitem status attribute sls_lsl​ from F to O and for δ4\delta_4δ4​, we assign a negative available quantity qavlq_{\mathrm{avl}}qavl​. Violations are injected on a sampled subset of tuples with ratios in {0.01%,0.05%,0.1%}\{0.01\%, 0.05\%, 0.1\%\}{0.01%,0.05%,0.1%}, and sampling is repeated using 10 random seeds (affecting only tuple selection). Combining the 3 database scale factors (SF∈{0.01,0.05,0.1}\mathrm{SF}\in\{0.01, 0.05, 0.1\}SF∈{0.01,0.05,0.1}), the 2 constraint subsets (Δ1,Δ2\Delta_1, \Delta_2Δ1​,Δ2​), the 3 inconsistency ratios (0.01%,0.05%,0.1%0.01\%, 0.05\%, 0.1\%0.01%,0.05%,0.1%), and the 10 random sampling seeds, we finally obtain 180 test databases. We compute MIS\mathrm{MIS}MIS for each δ\deltaδ by executing the SQL query qδq^\deltaqδ (see Section 2).

从三个干净的 TPC-H 实例出发,我们向 Δ1\Delta_1Δ1​ 和 Δ2\Delta_2Δ2​ 注入合成违反,每次只修改出现在各 δ\deltaδ 条件中的一个属性,做法如下:对 δ1\delta_1δ1​,减小收货日期以强制 dreceipt<dshipd_{\mathrm{receipt}} < d_{\mathrm{ship}}dreceipt​<dship​;对 δ2\delta_2δ2​,令 dcommit=dorder−1d_{\mathrm{commit}} = d_{\mathrm{order}} - 1dcommit​=dorder​−1;对 δ3\delta_3δ3​,把 lineitem 状态属性 sls_lsl​ 从 F 翻成 O;对 δ4\delta_4δ4​,把可用数量 qavlq_{\mathrm{avl}}qavl​ 设为负数。违反被注入到按 {0.01%,0.05%,0.1%}\{0.01\%, 0.05\%, 0.1\%\}{0.01%,0.05%,0.1%} 比例抽样的元组子集上,抽样用 10 个随机种子重复(种子只影响元组挑选)。把 3 种数据库规模因子(SF∈{0.01,0.05,0.1}\mathrm{SF}\in\{0.01, 0.05, 0.1\}SF∈{0.01,0.05,0.1})、2 组约束子集(Δ1,Δ2\Delta_1, \Delta_2Δ1​,Δ2​)、3 种不一致性比例(0.01%,0.05%,0.1%0.01\%, 0.05\%, 0.1\%0.01%,0.05%,0.1%)以及 10 个随机抽样种子组合起来,最终得到 180 个测试库。对每条 δ\deltaδ,我们通过执行 SQL 查询 qδq^\deltaqδ 来计算 MIS\mathrm{MIS}MIS(见第 2 节)。

6.1 Evaluation of Tuple Inconsistency Measures

6.1 元组不一致性度量的评估

We evaluate our three tuple inconsistency measures introduced in Section 3.1 and the competitor IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ over all 180 databases. While IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​, IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​, and IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ are obtained by direct computation over the set of MIS\mathrm{MIS}MIS, for IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ the contingency set for each tuple ttt and each constraint equals to a minimum hitting set problem over the set of MIS\mathrm{MIS}MIS that does not contain ttt. We use the CP-SAT solver for computing minimum hitting sets [Perron et al., 2023]. Time-limited solving gives a feasible solution and thus an approximate IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ value.

我们在全部 180 个数据库上评估第 3.1 节提出的三种元组不一致性度量,以及对照方法 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​。IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​、IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 和 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 都可以直接在 MIS\mathrm{MIS}MIS 集合上计算;对 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 而言,每个元组 ttt 和每条约束的权变集,等价于在不含 ttt 的 MIS\mathrm{MIS}MIS 集合上求最小击中集。我们用 CP-SAT 求解器计算最小击中集 [Perron et al., 2023]。限时求解给出可行解,从而得到近似的 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 值。

Measure Value Distribution. Figure 1 compares the distributions of all non-zero scored tuples from all databases w.r.t. the different tuple measures. The values of IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ are highly concentrated at 111, with a small fraction at 222. In contrast, IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ has a distribution with high density near the origin with a wide dynamic range, resulting from multiplying the number of violated conditions with the number of MIS\mathrm{MIS}MIS the tuple participates in. The measures IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ and IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ lie between IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ and IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​: both retain variation in the scores (as opposed to IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​), while avoiding the heavy heads of IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​. Among the four measures, IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ shows the most balanced distributional footprint (frequency and CDF). IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ also has a smooth CDF, but is not as efficient as IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​.

度量值分布。 图 1 比较了全部数据库中所有非零得分元组在不同元组度量下的分布。IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 的取值高度集中在 111,只有一小部分为 222。相比之下,IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 的分布在原点附近密度很高,同时又有很宽的动态范围,这是因为把所违反条件的数目与该元组所参与的 MIS\mathrm{MIS}MIS 数目相乘。IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 与 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 位于 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 和 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 之间:二者都保留了得分上的变化(这是 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 所没有的),同时又避免了 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 过重的头部。在这四种度量中,IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 的分布形态(频数与 CDF)最为均衡。IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 的 CDF 也很平滑,但效率不如 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​。

To further quantify a measure's discrimination ability, we compute its (Gini coef/std) over all non-zero tuples across 180 databases. The results are: IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ (0.001/0.030.001/0.030.001/0.03), IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ (0.25/2.810.25/2.810.25/2.81), IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ (0.16/0.210.16/0.210.16/0.21), and IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ (0.23/0.420.23/0.420.23/0.42). The measure IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ is not very informative, IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ is quite unstable, and IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ is conservative. Interestingly, IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ provides the best balance between discrimination and dispersion.

为进一步量化度量的区分能力,我们在 180 个数据库的全部非零元组上计算(基尼系数 / 标准差)。结果是:IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​(0.001/0.030.001/0.030.001/0.03),IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​(0.25/2.810.25/2.810.25/2.81),IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​(0.16/0.210.16/0.210.16/0.21),以及 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​(0.23/0.420.23/0.420.23/0.42)。IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 信息量不大,IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 相当不稳定,IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 则偏保守。有意思的是,IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 在区分力与分散程度之间给出了最好的平衡。

Figure 2: Distribution of $\mathrm{ICQA}^{\mathrm{PIM}}_{X}$ with $X \in {\mathrm{Prov}, \mathrm{shap}, \mathrm{Resp}}$.

Figure 2: Distribution of ICQAXPIM\mathrm{ICQA}^{\mathrm{PIM}}_{X}ICQAXPIM​ with X∈Prov,shap,RespX \in {\mathrm{Prov}, \mathrm{shap}, \mathrm{Resp}}X∈Prov,shap,Resp.

图 2:ICQAXPIM\mathrm{ICQA}^{\mathrm{PIM}}_{X}ICQAXPIM​ 在 X∈{Prov,shap,Resp}X \in \{\mathrm{Prov}, \mathrm{shap}, \mathrm{Resp}\}X∈{Prov,shap,Resp} 下的分布。

Ranking Comparison. We further compare the four tuple measures through their induced inconsistent tuple rankings. For this, we use the Spearman's correlation ρ\rhoρ between two rankings. On the database with the setting sf0.1\mathrm{sf}0.1sf0.1-Δ1\Delta_1Δ1​-0.1%0.1\%0.1%-seed01\mathrm{seed}01seed01, IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ and IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ are almost rank-equivalent (ρ≈0.99\rho \approx 0.99ρ≈0.99), IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ is nearly independent from the other measures (ρ≈0.07\rho \approx 0.07ρ≈0.07), and IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ induces an almost reversed ordering w.r.t. IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ and IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ (ρ≈−0.98\rho \approx -0.98ρ≈−0.98). Only two tuples appear in all four rankings, suggesting that they are consistently identified as central contributors to inconsistency. The variation in the rankings of the other tuples reflects their different modes of involvement in inconsistencies.

排序比较。 我们进一步通过四种元组度量所诱导的不一致元组排序来比较它们。为此,我们使用两个排序之间的 Spearman 相关 ρ\rhoρ。在设置为 sf0.1\mathrm{sf}0.1sf0.1-Δ1\Delta_1Δ1​-0.1%0.1\%0.1%-seed01\mathrm{seed}01seed01 的数据库上,IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 与 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 几乎排序等价(ρ≈0.99\rho \approx 0.99ρ≈0.99),IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 与其他度量几乎无关(ρ≈0.07\rho \approx 0.07ρ≈0.07),而 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 相对 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 和 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 几乎给出颠倒的次序(ρ≈−0.98\rho \approx -0.98ρ≈−0.98)。只有两条元组出现在全部四个排序中,说明它们被一致地识别为不一致性的核心贡献者。其他元组排序上的差异,则反映了它们参与不一致的方式不同。

Efficiency. Across the 180 databases, the average runtimes (std) are 0.00170.00170.0017s (0.00200.00200.0020) for IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​, 0.00320.00320.0032s (0.00260.00260.0026) for IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​, 0.00190.00190.0019s (0.00280.00280.0028) for IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​, and 15.165315.165315.1653s (32.690932.690932.6909) for IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​. IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​, IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​, and IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ are consistently fast and scalable, in contrast to IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​. Overall, IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ has the best quality-versus-efficiency trade-off.

效率。 在 180 个数据库上,平均运行时间(标准差)分别为:IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ 为 0.00170.00170.0017 秒(0.00200.00200.0020),IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 为 0.00320.00320.0032 秒(0.00260.00260.0026),IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 为 0.00190.00190.0019 秒(0.00280.00280.0028),IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 为 15.165315.165315.1653 秒(32.690932.690932.6909)。与 IMRIM\mathrm{IM}_{\mathrm{RIM}}IMRIM​ 形成对照的是,IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​、IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 和 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 始终很快,也可扩展。总体而言,IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 在质量与效率之间的权衡最好。

6.2 Evaluation of ICQA Measures

6.2 ICQA 度量的评估

Our goal now is to assess whether the answer level ICQA scores constitute an indicator for distinguishing inconsistent answers, and how different aggregations and tuple measures jointly affect the distributional footprint, score resolution, and ranking of answers. Note that for Shapley-based ICQA, exact values are computed by enumerating all coalitions when ∣I′∣≤12|\mathcal{I}'| \leq 12∣I′∣≤12; otherwise, they are approximated via Monte Carlo sampling with 10,00010{,}00010,000 permutations using a fixed seed.

接下来,我们要评估答案层的 ICQA 得分能否作为区分不一致答案的指标,以及不同聚合方式与元组度量如何共同影响答案的分布形态、得分分辨率和排序。需要说明:对基于 Shapley 的 ICQA,当 ∣I′∣≤12|\mathcal{I}'| \leq 12∣I′∣≤12 时通过枚举全部联盟来计算精确值;否则用固定种子、以 10,00010{,}00010,000 个排列做蒙特卡洛抽样来近似。

We evaluate 5 SPJ queries over the TPC-H schema, with increasing structural complexity, ranging from single-table selections to multi-way joins involving up to 5 relations. For each query, 12 instantiated answer measures are computed over all 180 databases. Each instantiation yields a distribution over query answers, reflecting both the degree of inconsistency in the data and the selectivity of the measure.

我们在 TPC-H 模式上评估 5 条结构复杂度递增的 SPJ 查询,从单表选择直到涉及最多 5 个关系的多路连接。对每条查询,在全部 180 个数据库上计算 12 种实例化的答案度量。每种实例都会在查询答案上给出一个分布,既反映数据中的不一致性程度,也反映该度量的选择性。

Figure 2 presents normalized ICQA distributions (histograms and CDFs) for different aggregations combined with IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​, our most successful tuple inconsistency measure, based also on the previous experiments. Similar patterns are observed for the other three tuple measures. We observe that the explainability methods Prov and Resp concentrate ICQA mass on a few discrete values, resulting in steep CDF jumps and poor ranking discrimination. In contrast, shap yields high density near the origin distributions but with gradual CDF growth, thereby enabling more fine-grained differentiation.

图 2 给出了不同聚合方式与 IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​(根据此前实验,也是我们最成功的元组不一致性度量)搭配时,归一化后的 ICQA 分布(直方图与 CDF)。对其余三种元组度量,我们也观察到类似形态。可以看到,可解释性方法 Prov 和 Resp 会把 ICQA 的质量集中在少数几个离散取值上,CDF 出现陡峭跳变,排序区分力较差。相比之下,shap 的分布在原点附近密度较高,但 CDF 爬升更平缓,因而能够做出更细的区分。

The total time for computing all four tuple inconsistency measures for all tuples is 2730.982730.982730.98 seconds. Given the values for the tuple measures, the total time for computing ICQA over all answers for the five queries is: 17.1317.1317.13s for ICQAProv\mathrm{ICQA}_{\mathrm{Prov}}ICQAProv​, 25.1225.1225.12s for ICQAshap\mathrm{ICQA}_{\mathrm{shap}}ICQAshap​, and 1118.771118.771118.77s for ICQAResp\mathrm{ICQA}_{\mathrm{Resp}}ICQAResp​. Thus, ICQAProv\mathrm{ICQA}_{\mathrm{Prov}}ICQAProv​ and ICQAshap\mathrm{ICQA}_{\mathrm{shap}}ICQAshap​ are quite fast, given the precomputed tuple measures. Considering both efficiency and discrimination, shap is the best aggregation method for ICQA.

为全部元组计算全部四种元组不一致性度量,总耗时为 2730.982730.982730.98 秒。在元组度量已经算好的前提下,对五条查询的全部答案计算 ICQA 的总时间分别是:ICQAProv\mathrm{ICQA}_{\mathrm{Prov}}ICQAProv​ 为 17.1317.1317.13 秒,ICQAshap\mathrm{ICQA}_{\mathrm{shap}}ICQAshap​ 为 25.1225.1225.12 秒,ICQAResp\mathrm{ICQA}_{\mathrm{Resp}}ICQAResp​ 为 1118.771118.771118.77 秒。因此,在预计算好元组度量之后,ICQAProv\mathrm{ICQA}_{\mathrm{Prov}}ICQAProv​ 和 ICQAshap\mathrm{ICQA}_{\mathrm{shap}}ICQAshap​ 都相当快。综合效率与区分力,shap 是 ICQA 最好的聚合方法。

7 Related Work and Conclusions

7. 相关工作与结论

For tuple measures, both the Shapley-based approach [Livshits et al., 2021a] and the KB measures [Raddaoui et al., 2024] compute a tuple's average marginal contribution to constraint violations, providing finer granularity than IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ [Issa et al., 2020]. However, they still treat all tuples and constraints uniformly. Our approach advances this line of work by introducing provenance- and responsibility-based measures capturing nuanced violation weights at the tuple level, for more precise inconsistency scores. In particular, IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ satisfies all the desired properties, admits PTime computation, and shows promising empirical performance. Moreover, unlike [Ribeiro and Thimm, 2021], which reveals implicit inconsistencies via logical reasoning, our IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ measure focuses on explicit inconsistencies, a design that aligns with the absence of implicit derivations in typical databases.

就元组度量而言,基于 Shapley 的方法 [Livshits et al., 2021a] 和知识库度量 [Raddaoui et al., 2024] 都计算元组对约束违反的平均边际贡献,颗粒度细于 IMCBM\mathrm{IM}_{\mathrm{CBM}}IMCBM​ [Issa et al., 2020]。不过它们仍把所有元组和约束一视同仁。我们的方法沿这条路线往前走了一步:引入出处型和责任型度量,在元组层捕捉更细致的违反权重,从而得到更精确的不一致性得分。特别地,IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 满足全部期望性质,可在多项式时间内计算,并在实验中表现良好。此外,与通过逻辑推理揭示隐式不一致的 [Ribeiro and Thimm, 2021] 不同,我们的 IMCIM\mathrm{IM}_{\mathrm{CIM}}IMCIM​ 聚焦于显式不一致,这一设计与典型数据库中不存在隐式推导这一点是对齐的。

For query answer measures, Shapley-based approaches have been applied to evaluate tuples' marginal contributions to query results, ranging from basic expectation of query answer counts [Reshef et al., 2020; Livshits et al., 2021a] to generalized weighted expected sums of minimal supports [Bienvenu et al., 2025]. Moreover, [Meliou et al., 2010] proposes to explain query (non)-answers based on actual causes and responsibility of tuples. In contrast, measuring inconsistency in an answer remains largely unaddressed. The closest approach ranks answers by inconsistency [Issa et al., 2020], which we include as a specific instance of our ICQA framework. Notably, our framework yields tractable measures (e.g. ICQAProvPIM\mathrm{ICQA}^{\mathrm{PIM}}_{\mathrm{Prov}}ICQAProvPIM​) that fulfill desirable criteria. Our experiments show that the IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ and ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​ measures provide useful discrimination for tuples and answers, respectively, while showing promising scalability.

就查询答案度量而言,基于 Shapley 的方法已被用来评估元组对查询结果的边际贡献,从查询答案计数的基本期望 [Reshef et al., 2020; Livshits et al., 2021a],到极小支持的广义加权期望和 [Bienvenu et al., 2025]。此外,[Meliou et al., 2010] 提出依据元组的实际原因与责任来解释查询(非)答案。相比之下,度量一个答案中的不一致性,在很大程度上仍很少被讨论。最接近的做法是按不一致性给答案排序 [Issa et al., 2020],我们把它作为 ICQA 框架的一个具体实例纳入。值得注意的是,我们的框架能给出满足期望判据、并且可处理的度量(例如 ICQAProvPIM\mathrm{ICQA}^{\mathrm{PIM}}_{\mathrm{Prov}}ICQAProvPIM​)。实验表明,IMPIM\mathrm{IM}_{\mathrm{PIM}}IMPIM​ 与 ICQAshapIM\mathrm{ICQA}^{\mathrm{IM}}_{\mathrm{shap}}ICQAshapIM​ 分别能为元组和答案提供有用的区分,同时也表现出有前景的可扩展性。

Acknowledgments

致谢

This work is supported by the National French Agency, under the EXPIDA-ANR-22-CE23-0017 project.

本工作得到法国国家科研署项目 EXPIDA-ANR-22-CE23-0017 的资助。

References

参考文献

[Besnard and Grant, 2020] Philippe Besnard and John Grant. Relative inconsistency measures. Artificial Intelligence (AIJ), 280:103231, 2020.

[Bienvenu et al., 2025] Meghyn Bienvenu, Diego Figueira, and Pierre Lafourcade. Shapley revisited: Tractable responsibility measures for query answers. Proceedings of the ACM on Management of Data, 3(2):1–26, 2025.

[Buneman et al., 2001] Peter Buneman, Sanjeev Khanna, and Tan Wang-Chiew. Why and where: A characterization of data provenance. In ICDT, pages 316–330, 2001.

[Corea and Thimm, 2020] Carl Corea and Matthias Thimm. Towards inconsistency measurement in business rule bases. In ECAI, pages 704–711, 2020.

[Corea et al., 2024] Carl Corea, Isabelle Kuhlmann, Matthias Thimm, and John Grant. Paraconsistent reasoning for inconsistency measurement in declarative process specifications. Inf. Syst., 122:102347, 2024.

[Hunter and Konieczny, 2010] Anthony Hunter and Sébastien Konieczny. On the measure of conflicts: Shapley inconsistency values. Artificial Intelligence, 174(14):1007–1026, 2010.

[Issa et al., 2020] Ousmane Issa, Angela Bonifati, and Farouk Toumani. Evaluating Top-k queries with inconsistency degrees. PVLDB, 13(12):2146–2158, 2020.

[Kuhlmann et al., 2025] Isabelle Kuhlmann, Anna Gessler, Vivien Laszlo, and Matthias Thimm. Comparison of SAT-based and ASP-based algorithms for inconsistency measurement. J. Artif. Intell. Res., 82:563–685, 2025.

[Livshits and Kimelfeld, 2022] Ester Livshits and Benny Kimelfeld. The shapley value of inconsistency measures for functional dependencies. Logical Methods in Computer Science, 18, 2022.

[Livshits et al., 2021a] Ester Livshits, Leopoldo E. Bertossi, Benny Kimelfeld, and Moshe Sebag. The shapley value of tuples in query answering. Log. Methods Comput. Sci., 17(3), 2021.

[Livshits et al., 2021b] Ester Livshits, Rina Kochirgan, Segev Tsur, Ihab F. Ilyas, Benny Kimelfeld, and Sudeepa Roy. Properties of inconsistency measures for databases. In SIGMOD, page 1182–1194, 2021.

[Meliou et al., 2010] Alexandra Meliou, Wolfgang Gatterbauer, Katherine F. Moore, and Dan Suciu. The complexity of causality and responsibility for query answers and non-answers. CoRR, abs/1009.2021, 2010.

[Mu, 2018] Kedian Mu. Measuring inconsistency with constraints for propositional knowledge bases. Artificial Intelligence, 259:52–90, 2018.

[Parisi and Grant, 2020] Francesco Parisi and John Grant. On measuring inconsistency in relational databases with denial constraints. In ECAI, pages 857–864, 2020.

[Parisi and Grant, 2023] Francesco Parisi and John Grant. On measuring inconsistency in definite and indefinite databases with denial constraints. Artificial Intelligence, 318:103884, 2023.

[Perron et al., 2023] Laurent Perron, Frédéric Didier, and Steven Gay. The CP-SAT-LP solver (invited talk). In CP, pages 3:1–3:2, 2023.

[Raddaoui et al., 2024] Badran Raddaoui, Christian Straßer, and Saïd Jabbour. Towards a principle-based framework for assessing the contribution of formulas on the conflicts of knowledge bases. In IJCAI, pages 3541–3548, 2024.

[Reiter, 1987] Raymond Reiter. A theory of diagnosis from first principles. Artif. Intell., 32(1):57–95, 1987.

[Reshef et al., 2020] Alon Reshef, Benny Kimelfeld, and Ester Livshits. The impact of negation on the complexity of the shapley value in conjunctive queries. In PODS, pages 285–297, 2020.

[Ribeiro and Thimm, 2021] Jandson S. Ribeiro and Matthias Thimm. Consolidation via tacit culpability measures: Between explicit and implicit degrees of culpability. In KR, pages 529–538, 2021.

[Shapley, 1953] Lloyd S Shapley. A value for n-person games. In Contributions to the Theory of Games II, pages 307–317. Princeton University Press, 1953.

[Straßer et al., 2025] Christian Straßer, Badran Raddaoui, and Saïd Jabbour. Decomposing inconsistencies: Marginal contributions and pooling techniques. In IJCAI, pages 4687–4695, 2025.