Responsibility Measures for Conjunctive Queries with Negation
Meghyn Bienvenu, Diego Figueira, Pierre Lafourcade
TL;DR
This work extends responsibility measures from monotone queries to UCQ$^{\lnot}$ by introducing two explanatory paradigms: signed facts and positive supports. It shows how to adapt Shapley-based scores (MS-Shapley and drastic-Shapley) to UCQ$^{\lnot}$ via reductions to monotone counterparts on transformed queries, establishing data- and some combined-complexity results under structural restrictions. The paper proves tractability for many cases (e.g., AC0 data-complexity for signed/positive relevance, FP results for safe or guarded negation classes) and clarifies the relationships and trade-offs between signed-relevance, positive-relevance, and impact-based notions. It also situates WSMS as a broader framework that can accommodate other tractable weight functions, enabling flexible, scalable explanations for query results in the presence of negation with potential extension to exogenous facts.
Abstract
We contribute to the recent line of work on responsibility measures that quantify the contributions of database facts to obtaining a query result. In contrast to existing work which has almost exclusively focused on monotone queries, here we explore how to define responsibility measures for unions of conjunctive queries with negated atoms (UCQ${}^\lnot$). Starting from the question of what constitutes a reasonable notion of explanation or relevance for queries with negated atoms, we propose two approaches, one assigning scores to (positive) database facts and the other also considering negated facts. Our approaches, which are orthogonal to the previously studied score of Reshef et al., can be used to lift previously studied scores for monotone queries, known as drastic Shapley and weighted sums of minimal supports (WSMS), to UCQ$^\lnot$. We investigate the data and combined complexity of the resulting measures, notably showing that the WSMS measures are tractable in data complexity for all UCQ${}^\lnot$ queries and further establishing tractability in combined complexity for suitable classes of conjunctive queries with negation.
