[Paper Review] The Complexity of Causality and Responsibility for Query Answers and non-Answers
This paper formalizes causality and responsibility for query answers and non-answers using Halpern and Pearl's framework, showing that causality for conjunctive queries can be computed in PTIME via relational algebra with negation, while responsibility is either in PTIME (via max-flow reduction) or NP-complete, and is logspace-complete in the PTIME case, implying it cannot be expressed in relational algebra. The key contribution is a complexity dichotomy for responsibility and efficient computation methods for causality and select PTIME responsibility cases.
An answer to a query has a well-defined lineage expression (alternatively called how-provenance) that explains how the answer was derived. Recent work has also shown how to compute the lineage of a non-answer to a query. However, the cause of an answer or non-answer is a more subtle notion and consists, in general, of only a fragment of the lineage. In this paper, we adapt Halpern, Pearl, and Chockler's recent definitions of causality and responsibility to define the causes of answers and non-answers to queries, and their degree of responsibility. Responsibility captures the notion of degree of causality and serves to rank potentially many causes by their relative contributions to the effect. Then, we study the complexity of computing causes and responsibilities for conjunctive queries. It is known that computing causes is NP-complete in general. Our first main result shows that all causes to conjunctive queries can be computed by a relational query which may involve negation. Thus, causality can be computed in PTIME, and very efficiently so. Next, we study computing responsibility. Here, we prove that the complexity depends on the conjunctive query and demonstrate a dichotomy between PTIME and NP-complete cases. For the PTIME cases, we give a non-trivial algorithm, consisting of a reduction to the max-flow computation problem. Finally, we prove that, even when it is in PTIME, responsibility is complete for LOGSPACE, implying that, unlike causality, it cannot be computed by a relational query.
Motivation & Objective
- To define and formalize causality and responsibility for query answers and non-answers in a database context.
- To study the computational complexity of computing causes and degrees of responsibility for conjunctive queries.
- To determine whether causality and responsibility can be expressed using relational algebra or require more expressive formalisms.
- To establish a dichotomy in complexity for responsibility: PTIME vs. NP-complete, depending on the query structure.
- To provide efficient algorithms for causality and for PTIME responsibility cases, including a max-flow reduction.
Proposed method
- Adapts Halpern and Pearl’s causality framework to database queries, distinguishing endogenous and exogenous tuples.
- Defines a cause as a minimal set of endogenous tuples whose change would alter the query result.
- Introduces responsibility as a measure of degree of causality, ranking causes by their contribution.
- Reduces causality computation to a relational query with negation, enabling PTIME evaluation.
- For responsibility, reduces PTIME cases to maximum flow computation via a 4-partite graph construction.
- Proves that even when in PTIME, responsibility is logspace-complete, ruling out relational algebra expressibility.
Experimental results
Research questions
- RQ1What is the computational complexity of computing causes for conjunctive queries, and can it be expressed in relational algebra?
- RQ2How does responsibility for query answers or non-answers vary with query structure, and what determines whether it is in PTIME or NP-complete?
- RQ3Can causality be computed efficiently, and is it expressible in relational algebra with negation?
- RQ4Is responsibility for conjunctive queries expressible in relational algebra, and what is its precise complexity class when in PTIME?
- RQ5What is the relationship between responsibility and max-flow computation in the context of query causality?
Key findings
- Causality for conjunctive queries can be computed in PTIME using a relational query with negation, making it efficiently computable.
- Responsibility for conjunctive queries is either in PTIME or NP-complete, depending on the query structure, establishing a complexity dichotomy.
- For PTIME responsibility cases, the problem reduces to maximum flow computation, enabling efficient algorithmic solutions.
- Even when responsibility is in PTIME, it is complete for logspace, implying it cannot be expressed in relational algebra.
- For non-answers, the contingency set size is bounded by the query size, making responsibility trivial in data complexity.
- The paper provides a reduction from vertex cover to responsibility, proving NP-hardness for certain conjunctive queries.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.