Skip to main content
QUICK REVIEW

[Paper Review] From Causes for Database Queries to Repairs and Model-Based Diagnosis and Back

Babak Salimi, Leopoldo Bertossi|arXiv (Cornell University)|Dec 14, 2014
Scientific Computing and Data ManagementDecision Sciences61 references13 citations
TL;DR

This paper establishes a bidirectional connection between causality in database query answers, database repairs under denial constraints, and consistency-based diagnosis. By reinterpreting causality problems as diagnosis tasks and leveraging repair computation techniques, the authors derive new algorithmic and complexity results for identifying actual causes and their responsibilities in conjunctive queries, including fixed-parameter tractable algorithms and complexity classifications in data complexity.

ABSTRACT

In this work we establish and investigate connections between causality for query answers in databases, database repairs wrt. denial constraints, and consistency-based diagnosis. The first two are relatively new problems in databases, and the third one is an established subject in knowledge representation. We show how to obtain database repairs from causes and the other way around. Causality problems are formulated as diagnosis problems, and the diagnoses provide causes and their responsibilities. The vast body of research on database repairs can be applied to the newer problem of determining actual causes for query answers and their responsibilities. These connections, which are interesting per se, allow us, after a transition -inspired by consistency-based diagnosis- to computational problems on hitting sets and vertex covers in hypergraphs, to obtain several new algorithmic and complexity results for causality in databases.

Motivation & Objective

  • To establish formal connections between causality in database query answers, database repairs under denial constraints, and consistency-based diagnosis.
  • To show that computing actual causes and their responsibilities can be reduced to diagnosis reasoning problems.
  • To leverage existing algorithms and complexity results from repairs and diagnosis to derive new findings for causality in databases.
  • To enable the application of repair-based techniques—such as hitting sets and vertex covers in hypergraphs—to causality problems.

Proposed method

  • Reformulate causality problems as consistency-based diagnosis tasks by modeling the database as a system description and the query result as an unexpected observation.
  • Use the logical reconstruction of the database and query to map actual causation to diagnosis, where causes correspond to minimal diagnoses.
  • Reduce the computation of causes and responsibilities to hitting set and vertex cover problems in hypergraphs, derived from denial constraints and query structures.
  • Apply known complexity results from diagnosis and repair theory to infer complexity classifications for causality problems in data complexity.
  • Develop algorithms for computing causes and responsibilities by exploiting the duality between repairs and diagnoses, particularly for unions of conjunctive queries.
  • Utilize answer set programming (ASP) to specify and reason about S-repairs and C-repairs, enabling integration with abductive and diagnostic reasoning.

Experimental results

Research questions

  • RQ1How can actual causes for conjunctive query answers be systematically related to database repairs under denial constraints?
  • RQ2What is the precise computational relationship between causality, diagnosis, and repair problems in databases?
  • RQ3Can techniques from consistency-based diagnosis be used to derive new complexity results for causality in databases?
  • RQ4How do responsibility measures for causes relate to minimal hitting sets and vertex covers in hypergraphs derived from denial constraints?
  • RQ5Can endogenous repairs—based only on updates to endogenous tuples—be used to prefer or filter causes in a way that reflects user control over data sources?

Key findings

  • A precise characterization is established between actual causes for a boolean conjunctive query and subset- or cardinality-repairs of the underlying database instance.
  • Computing actual causes and their responsibilities can be reduced to solving diagnosis problems, enabling the application of existing diagnosis algorithms and complexity results.
  • The paper derives fixed-parameter tractable algorithms for causality problems, particularly when parameterized by the size of contingency sets or hypergraph structures.
  • Complexity results for causality are obtained in data complexity, showing that determining actual causes and their responsibilities is in NP and co-NP, respectively, under certain conditions.
  • The connection between causality and repairs allows for the use of hitting set and vertex cover techniques to analyze and compute causes efficiently in specific cases.
  • Endogenous repairs—based solely on changes to endogenous tuples—are shown to be a viable preference mechanism for filtering or prioritizing causes in causal explanations.

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.