Skip to main content
QUICK REVIEW

[Paper Review] Unifying Causality, Diagnosis, Repairs and View-Updates in Databases

Leopoldo Bertossi, Babak Salimi|arXiv (Cornell University)|May 16, 2014
Logic, Reasoning, and KnowledgeComputer Science26 references5 citations
TL;DR

This paper unifies causality in query answers, database repairs, model-based diagnosis, and view updates by demonstrating that actual causes for query results can be computed as diagnoses in a consistency-based or abductive framework, and that repairs can be derived from causes. The key contribution is a formal equivalence between causality and diagnosis problems, enabling cross-fertilization of techniques across data management and knowledge representation domains.

ABSTRACT

In this work we establish and point out connections between the notion of query-answer causality in databases and database repairs, model-based diagnosis in its consistency-based and abductive versions, and database updates through views. The mutual relationships among these areas of data management and knowledge representation shed light on each of them and help to share notions and results they have in common. In one way or another, these are all approaches to uncertainty management, which becomes even more relevant in the context of big data that have to be made sense of.

Motivation & Objective

  • To establish formal connections between causality in query answers and database repairs, model-based diagnosis, and view updates.
  • To demonstrate that actual causes for conjunctive query answers can be computed as diagnoses in consistency-based or abductive diagnosis frameworks.
  • To show that repairs under denial constraints can be derived from causal reasoning, and vice versa.
  • To enable the transfer of algorithms and complexity results between causality, diagnosis, and repair computation.
  • To provide a unified theoretical foundation for uncertainty management in data-intensive systems, especially in big data contexts.

Proposed method

  • Formalizes causality in databases using counterfactual and actual causes with contingency sets, restricting causes to endogenous tuples.
  • Reduces the problem of computing actual causes to consistency-based diagnosis by modeling the database as a system specification and the query result as an observation.
  • Applies abductive diagnosis to characterize causes as minimal sets of hypotheses (e.g., tuple insertions/deletions) that explain the query result.
  • Uses abductive frameworks to compute responsibility as the inverse of the number of minimal diagnosis sets, reflecting relative causality strength.
  • Establishes reductions between causality computation and both subset-based and cardinality-based repairs under denial constraints.
  • Leverages answer set programming (ASP) and logical formalisms to model and compute repairs and view updates, especially in secrecy-preserving settings.

Experimental results

Research questions

  • RQ1How can actual causes for conjunctive query answers be formally characterized using model-based diagnosis?
  • RQ2What is the precise relationship between causality in query answers and database repairs under denial constraints?
  • RQ3Can abductive diagnosis be used to compute both causes and their responsibilities in a uniform framework?
  • RQ4How do view updates relate to causality and repairs, particularly in the context of integrity constraint violations?
  • RQ5To what extent can techniques from diagnosis and repair be transferred to improve causality computation in large-scale databases?

Key findings

  • Actual causes for conjunctive query answers correspond exactly to minimal diagnoses in a consistency-based diagnosis framework where the database is the system specification and the query result is the observation.
  • The responsibility of a tuple as an actual cause is inversely proportional to the number of minimal diagnosis sets that include it, with each minimal diagnosis set corresponding to a contingency set.
  • For the example with query ans ← R(x,y), S(y), two minimal diagnoses exist: {S(a₁), R(a₂,a₁)} and {S(a₃), R(a₃,a₃)}, each of size 2, so the responsibility of each actual cause is 1/2.
  • Computing actual causes and their responsibilities is reducible to solving diagnosis problems, and vice versa, enabling shared algorithms and complexity results.
  • View updates, especially deletion propagation, are formally linked to causality and repairs, particularly when views capture integrity constraint violations.
  • Database repairs under denial constraints can be computed via causality reasoning, and conversely, causality computation can be reduced to repair computation, establishing a bidirectional equivalence.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.