Skip to main content
QUICK REVIEW

[Paper Review] Quantifying Causal Effects on Query Answering in Databases

Babak Salimi, Leopoldo Bertossi|arXiv (Cornell University)|Mar 8, 2016
Scientific Computing and Data ManagementDecision Sciences16 references8 citations
TL;DR

This paper introduces causal effect as a novel, more intuitive measure for quantifying tuple contributions to query answers in databases, generalizing beyond monotone queries. It formalizes causal effect using counterfactual interventions and demonstrates that it better captures intuitive notions of influence—such as shorter path contributions—than causal responsibility, with strong theoretical grounding in Pearl’s causal inference framework and connections to Pearson correlation.

ABSTRACT

The notion of actual causation, as formalized by Halpern and Pearl, has been recently applied to relational databases, to characterize and compute actual causes for possibly unexpected answers to monotone queries. Causes take the form of database tuples, and can be ranked according to their causal responsibility, a numerical measure of their relevance as a cause to the query answer. In this work we revisit this notion, introducing and making a case for an alternative measure of causal contribution, that of causal effect. The measure generalizes actual causes, and can be applied beyond monotone queries. We show that causal effect provides intuitive and intended results.

Motivation & Objective

  • To address limitations of causal responsibility in ranking tuple contributions to query answers, especially in non-monotone or complex query scenarios.
  • To formalize a new measure—causal effect—that quantifies the direct influence of a tuple on a query result through counterfactual interventions.
  • To generalize actual causality beyond monotone queries by introducing a continuous, interpretable measure of causal contribution.
  • To establish theoretical and empirical connections between causal effect and established statistical measures like Pearson correlation.
  • To provide a more intuitive and scalable framework for causal explanations in database query answering.

Proposed method

  • Proposes causal effect as the expected change in query answer probability when a tuple is intervened upon (inserted or deleted), computed over all possible contingency sets of other tuples.
  • Defines causal effect using the formula $\mathcal{E}^{D}_{\tau,\mathcal{Q}} = \mathbb{E}[\mathcal{Q}(D \setminus \Gamma \cup \{\tau\})] - \mathbb{E}[\mathcal{Q}(D \setminus \Gamma)]$, where $\Gamma$ ranges over contingency sets.
  • Applies the method to both first-order (FO) and aggregate queries, showing it generalizes to linear and non-linear cases via multi-linear lineage and information-theoretic extensions.
  • Establishes a formal link between causal effect and Pearson correlation: $\mathcal{E}^{D}_{\tau,\mathcal{Q}} = \pm r_{\mathcal{Q},X_{\tau}} \cdot \frac{\sigma_{\mathcal{Q}}}{\sigma_{X_{\tau}}}$, depending on sign of $X_{\tau}$ in the query lineage.
  • Uses Datalog and recursive queries to demonstrate causal effect computation on path existence and other non-monotone queries.
  • Validates the approach on examples showing that tuples on shorter paths (e.g., direct edges) receive higher causal effect scores than those on longer paths.

Experimental results

Research questions

  • RQ1How can we define a more intuitive and generalizable measure of causal contribution for database tuples beyond causal responsibility?
  • RQ2Can causal effect capture the intuitive notion that tuples on shorter paths contribute more to query answers than those on longer paths?
  • RQ3How does causal effect relate to established statistical measures like Pearson correlation in the context of database queries?
  • RQ4Can causal effect be meaningfully extended to non-monotone and aggregate queries, where causal responsibility fails?
  • RQ5What is the formal relationship between causal effect and counterfactual interventions in query evaluation?

Key findings

  • In the path existence example, $t_1$ (direct edge) receives a causal effect of 0.65625, while $t_2$, $t_3$, and $t_4$ receive 0.21875, 0.21875, and 0.09375 respectively, correctly reflecting its greater contribution.
  • For aggregate queries, causal effect values are $\mathcal{E}^{D}_{R(450),\mathcal{Q}'} = 112.5$, $\mathcal{E}^{D}_{R(150),\mathcal{Q}'} = 37.5$, $\mathcal{E}^{D}_{R(100),\mathcal{Q}'} = 25$, and $\mathcal{E}^{D}_{R(-100),\mathcal{Q}'} = -25$, showing linear sensitivity to input changes.
  • Causal effect is mathematically linked to Pearson correlation: $\mathcal{E}^{D}_{\tau,\mathcal{Q}} = \pm r_{\mathcal{Q},X_{\tau}} \cdot \frac{\sigma_{\mathcal{Q}}}{\sigma_{X_{\tau}}}$, providing a normalized interpretation.
  • Causal effect generalizes the degree of causal contribution proposed in Salimi (2015), subsuming it as a special case.
  • The method successfully handles non-monotone queries like Datalog path queries, where causal responsibility fails to reflect intuitive rankings.
  • Causal effect captures linear influence via mean shifts in query outcomes, though higher-order moments may require information-theoretic extensions.

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.