Skip to main content
QUICK REVIEW

[Paper Review] Query-Answer Causality in Databases: Abductive Diagnosis and View-Updates

Babak Salimi, Leopoldo Bertossi|arXiv (Cornell University)|Jun 13, 2015
Logic, Reasoning, and KnowledgeComputer Science29 references9 citations
TL;DR

This paper establishes formal connections between query-answer causality in databases, abductive diagnosis, and the view-update problem, enabling new complexity results for causality in Datalog and recursive queries. By leveraging abductive diagnosis frameworks, it extends causality beyond first-order monotone queries to richer query classes, proving tractability for weakly linear queries and NP-completeness for view-conditioned causality.

ABSTRACT

Causality has been recently introduced in databases, to model, characterize and possibly compute causes for query results (answers). Connections between query causality and consistency-based diagnosis and database repairs (wrt. integrity constrain violations) have been established in the literature. In this work we establish connections between query causality and abductive diagnosis and the view-update problem. The unveiled relationships allow us to obtain new complexity results for query causality -the main focus of our work- and also for the two other areas.

Motivation & Objective

  • To formalize connections between query-answer causality and abductive diagnosis in relational databases.
  • To extend causality analysis from first-order monotone queries to Datalog and recursive queries via abductive reasoning.
  • To derive new complexity results for causality problems by relating them to view-update and diagnosis problems.
  • To establish tractability for the minimum source-side-effect problem in weakly linear queries, generalizing prior results.
  • To unify causality, diagnosis, and view-updates under a common theoretical framework for improved reasoning in uncertain and inconsistent data.

Proposed method

  • Formalizing actual causation in databases using counterfactual dependence, based on Halpern-Pearl’s model.
  • Mapping query causality to abductive diagnosis by framing causes as abductive explanations for query answers.
  • Reducing causality problems to abductive diagnosis problems in logic programming, enabling extension to Datalog and recursive queries.
  • Using the view-update problem as a bridge: abducing base relations that explain view contents, linking to causality via side-effect minimization.
  • Applying complexity-theoretic reductions: NP-completeness of view-conditioned causality and FP^NP(log n)-hardness of responsibility computation.
  • Leveraging maximum flow reductions from prior work to prove tractability for weakly linear queries, generalizing chain-join results.

Experimental results

Research questions

  • RQ1How can abductive diagnosis be used to formalize and extend causality in Datalog and recursive queries?
  • RQ2What is the complexity of the view-conditioned causality decision problem for conjunctive queries?
  • RQ3Can the minimum source-side-effect problem be solved tractably for weakly linear queries, and how does this generalize prior results?
  • RQ4What are the connections between query causality, abductive diagnosis, and the view-update problem in database systems?
  • RQ5How do existing complexity results for consistency-based diagnosis and repairs transfer to causality and view-updates?

Key findings

  • The view-conditioned causality decision problem (VC-causality) is NP-complete for conjunctive queries (CQs), extending to union of conjunctive queries (UCQs).
  • Computing the size of a solution to the minimum source-side-effect problem is FP^NP(log n)-hard, indicating high computational complexity.
  • The minimum source-side-effect decision problem is tractable for weakly linear queries, generalizing prior tractability results for linear and chain-join queries.
  • The tractability result for weakly linear queries extends the maximum flow-based approach from linear queries to a broader class, including non-chain-join queries.
  • The paper establishes a formal link between causality, abductive diagnosis, and view-updates, enabling cross-fertilization of complexity results across these domains.
  • Causality for Datalog queries can be formulated and analyzed via abductive diagnosis, extending the scope of causality beyond first-order monotone queries.

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.