<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Tractable Responsibility Measures for Ontology-Mediated Query Answering (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Meghyn Bienvenu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Diego Figueira</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pierre Lafourcade</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Univ. Bordeaux</institution>
          ,
          <addr-line>CNRS, Bordeaux INP, LaBRI, UMR 5800, F-33400, Talence</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2025</year>
      </pub-date>
      <abstract>
        <p>summarizes our KR 2025 paper on the complexity of computing such responsibility scores in ontologymediated query answering, focusing on a very recently introduced family of Shapley-value-based responsibility measures defined in terms of weighted sums of minimal supports.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Ontology-mediated query answering</kwd>
        <kwd>Responsibility measures</kwd>
        <kwd>Quantitative explanations of query answers</kwd>
        <kwd>Shapley value</kwd>
        <kwd>Complexity analysis</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The question of how to explain query answers has received significant attention in both the database
and ontology settings. Qualitative notions of explanation, based e.g. on minimal supports or proofs, have
been more extensively explored, in particular in the ontology setting, cf. [
        <xref ref-type="bibr" rid="ref1 ref2 ref3 ref4 ref5">1, 2, 3, 4, 5</xref>
        ]. However, there
has been recent interest in quantitative notions of explanation based upon responsibility measures, which
assign scores to the dataset facts to quantify their respective contributions to obtaining a given answer.
Prior work on responsibility measures for query answers has predominantly focused on the so-called
‘drastic Shapley value’ [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7, 8, 9, 10, 11, 12, 13</xref>
        ]. This measure, which originates from cooperative game
theory, was motivated by the appealing theoretical characterization of the Shapley value as being the
only wealth distribution mechanism respecting certain guarantees, known as ‘Shapley axioms’ [14].
      </p>
      <p>
        Unfortunately, the computation of the drastic Shapley value is generally intractable (#P-hard in
data complexity), even in the absence of ontologies and for very simple (conjunctive) queries [
        <xref ref-type="bibr" rid="ref6">6, 11</xref>
        ].
Furthermore, it has recently been argued in [15] that: (i) not all Shapley axioms yield desirable properties
when translated into the query answering setting, and (ii) the genuinely desirable properties for
responsibility measures of query answers do not pinpoint a single best score function. In light of this,
[15] has very recently proposed a family of responsibility measures, based on weighted sums of minimal
supports (WSMS), where the score of a fact is defined as a weighted sum of the sizes of the query’s
minimal supports containing it. The cited work shows that WSMS satisfy several desirable properties
and that they enjoy more favourable computational properties compared to the drastic Shapley value in
the database setting. Furthermore, it has been proven that WSMS can also be defined as the Shapley
value of suitable cooperative games.
      </p>
      <p>The positive results for WSMS in the database setting motivate us to investigate the complexity of
computing WSMS responsibility scores in the more challenging setting of ontology-mediated query
answering (OMQA) [16, 17, 18]. For this first study of WSMS in the OMQA setting, we focus on
description logic (DL) ontologies [19], paying particular attention to DLs of the DL-Lite family [20],
which are the most commonly adopted in OMQA, due to their favourable computational properties. We
thus consider ontology-mediated queries (OMQs) of the form ( , ), where  is formulated in a DL and
 is a conjunctive query (CQ) or atomic query (AQ).</p>
      <p>In what follows, we introduce the considered responsibility measures and briefly summarize the
obtained results. We assume familiarity with basic notions in databases, DLs, and OMQA.</p>
    </sec>
    <sec id="sec-2">
      <title>Responsibility Measures for Query Answers</title>
      <p>Although we shall be interested in employing responsibility measures to quantify the contribution
of facts to obtaining an answer ⃗ to a query (⃗), it will actually be more convenient to consider the
equivalent task of quantifying contributions to satisfying the associated Boolean query (⃗) (obtained
by instantiating the free variables ⃗ of  with ⃗).</p>
      <p>We shall further focus on monotone Boolean queries, defined in the database setting as queries  such
that 1 |=  ⇒ 2 |=  whenever 1 ⊆  2. Such queries notably include the class of
homomorphismclosed queries, which covers most well-known classes of OMQs. Note that a natural qualitative approach
to explaining why a monotone Boolean query  holds in a database  is to consider the set MS() of
minimal supports of  in , defined as the inclusion-minimal subsets ′ ⊆  such that ′ |= .</p>
      <p>Our focus will be on providing quantitative explanations in the form of responsibility measures, which
are functions that assign a score to every fact in the data, reflecting their contributions to making the
query hold. Such measures have been formally defined, in the database setting, as ternary functions 
that take as input a database , a (Boolean) query  and a fact  ∈ , and output a numerical value. As
this definition is extremely permissive, [ 15, §4.1] identifies a set of desirable properties that  ought
to satisfy. While the formal definitions are rather technical and outside the scope of this paper, these
properties intuitively state: (Sym-db) if two facts are interchangeable w.r.t. the query, they should have
equal responsibility; (Null-db) if a fact  ∈  is irrelevant in the sense that  ∪ { } |=  if  |=  for all
 ⊆  , then (, ,  ) = 0, otherwise (, ,  ) &gt; 0; and (MS1) (resp. (MS2)) all other things being
equal, a fact that appears in smaller (resp. more) minimal supports should have higher responsibility.</p>
      <p>The notions of responsibility measures and minimal supports straightforwardly translate into the
OMQA setting: take the ABox as the database and use an OMQ ( , ) for the query.</p>
    </sec>
    <sec id="sec-3">
      <title>Shapley-Based Responsibility Measures</title>
      <p>The responsibility measures considered in our work are based on the Shapley value. Originally defined
in [14], it takes as input a cooperative game consisting of a finite set  of players and a wealth function
 : 2 → Q that assigns a value to each coalition (ie, set) of players, with  (∅) = 0. The Shapley value
then assigns to each player  ∈  a value Sh(, ,  ) that should be seen as a ‘fair share’ of the total
wealth  ( ) of the game that should be awarded to a player  based upon the respective contributions
of all players.</p>
      <p>To obtain a responsibility measure from the Shapley value, one needs to model the input instance
(, ) as a cooperative game (,  ). The set  contains the elements that will receive a score, hence it
should naturally be the set  itself. As for the wealth function, it must assign a numerical score to every
database, reflecting in some way the satisfaction of the query. Formally, one needs to provide a wealth
function family Ξ⋆ which associates a wealth function  ⋆ with each query . A responsibility measure
can be straightforwardly obtained by applying the Shapley value to the game (,  ⋆ ): (, ,  ) :=
Sh(,  ⋆ ,  ).</p>
      <p>
        The first wealth function family that was considered in the literature is Ξdr, defined by:  dr() := 1
if  |=  and 0 otherwise [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], which gives rise to the drastic Shapley value Sh(,  dr,  ). In fact, Ξdr
was until recently the only wealth function used to define Shapley-based responsibility measures for
Boolean queries. Very recently, however, a new family of responsibility measures called weighted sums
of minimal supports (WSMSs) has been defined as:
wsms(, ,  ) :=
      </p>
      <p>∑︁
∈MS()
 ∈
(||, ||)
based upon some weight function  : N × N → Q [15]. It has been shown that all such measures
can be equivalently defined via the Shapley value: for every weight function , there exists a wealth
function family Ξ such that wsms(, ,  ) = Sh(,  ,  ) [15, Proposition 4.4].</p>
      <p>The wealth function family Ξms := Ξ induced by the inverse weight function  : (, ) ↦→ 1/ is of
particular interest as its wealth function  ms() is simply the number of minimal supports for  in ,

hasIngr 0

hasGrnsh 3
ℎ
hasIn1gr
hasIn4gr
hasIngr
6

Seafood

Seafood
ℎ
5
7
⋆ 0 1, 2
dr
ms
which constitutes a very natural measure of how ‘robust’ the entailment  |=  is. Observe however
that the weight function  can be adjusted to suit the needs of particular settings by giving more or
less weight to the size of the minimal supports relative to their numbers (intuitively tuning the relative
importance of (MS1) and (MS2)).</p>
      <p>The Shapley values obtained from Ξdr and from Ξ (for any positive and non-decreasing ) yield
responsibility measures that satisfy the properties (Sym-db)–(MS2) [15, Propositions B.1 and B.2]. As
the following example illustrates, however, these measures do not always coincide, as the properties do
not identify a unique ‘reasonable’ responsibility measure.</p>
      <p>Example 1. Consider the DL-Litecore KB (,  ) whose TBox  contains the following axioms:
∃hasIng.FishBased ⊑ FishBased, hasGrnsh ⊑ hasIng, Seafood ⊑ FishBased, Fish ⊑ FishBased
and whose ABox  is depicted in Figure 1. We take the query  := FishBased(). There
are 3 minimal supports for the OMQ  := ( , ) in : {1, 2}, {3, 4, 5} and {3, 6, 7}. Although
the properties (Sym-db)–(MS2) enforce many conditions, they do not restrict the relative values of 1
and 3. Indeed, we can observe in Figure 1 that Sh(,  dr, 1) &gt; Sh(,  dr, 3), but Sh(,  ms, 1) &lt;
Sh(,  ms, 3). Note for example that Sh(,  ms, 3) = 1/3 + 1/3 since 3 is in two minimal supports, both
of size 3, and hence each contributing 1/3.</p>
      <p>Following [15], for any wealth function family Ξ⋆ and class  of queries, we denote by SVC⋆ the

problem of computing Sh(,  ⋆ ,  ) given any database , fact  ∈ , and query  ∈ . We also
consider the problem SVC⋆ associated with a single fixed query . Our focus in this paper will be on
the case Ξ⋆ = Ξ for some weight function , in particular Ξms, in which case we will speak of WSMS
computation. Moreover, we shall study these tasks in the OMQA setting, so  will be a class (ℒ, ) of
OMQs, and  will be a particular OMQ .</p>
    </sec>
    <sec id="sec-4">
      <title>Summary of Contributions</title>
      <p>
        Our results show that the good computational behaviour of WSMS in the database setting [15]
extends to some relevant classes of OMQs. This is in sharp contrast to the intractability of the drastic
Shapley measure considered in the database [
        <xref ref-type="bibr" rid="ref6">6, 11</xref>
        ] and ontology [13] settings. More precisely, WSMS
computation is tractable in data complexity for UCQ̸=-rewritable OMQs:
UCQ̸=-rewritable. In particular, SVC(DL-Liteℛ,UCQ) enjoys FP data complexity.
      </p>
      <p>Theorem 1. SVC ∈ FP for every tractable weight function  and every Boolean OMQ  that is
We show in fact that WSMS computation for such OMQs can be implemented using relational database
systems via simple SQL queries.</p>
      <p>We also identify DL constructs that render WSMS computation intractable. In particular, we show
that the data complexity becomes #P-hard for classes of OMQs capturing reachability:
Theorem 2. Let  be a reversible tractable weight function, and ℒ be any DL that can express the axiom
∃. ⊑ . Then, there exists an OMQ  ∈ (ℒ, AQ) such that SVC is #P-hard.</p>
      <p>Furthermore, the presence of concept conjunction, present in lightweight DLs like as ℰ ℒ and Horn
dialects of DL-Lite, leads to #P-hardness in combined complexity, again already for AQs.</p>
      <p>For common DL-Lite dialects that do not admit conjunction, we obtain tractable combined complexity
for OMQs based upon atomic queries. Furthermore, by means of careful analysis, we are able to identify
classes of structurally restricted conjunctive queries that admit tractable WSMS computation, via
reduction to the atomic case. We omit the formal definition of interaction-free OMQs, but intuitively
they disallow undesirable interactions between query atoms and suitably generalize the self-join-free
condition employed in the database setting.</p>
      <p>Theorem 3. Let  be a tractable weight function and  be a subclass of interaction-free OMQs from
(DL-Liteℛ, CQ) such that { | ( , ) ∈ } has bounded treewidth. Then SVC is in FP for combined
complexity.</p>
      <p>The preceding theorem cannot be obtained by simply rewriting the OMQ and applying results from
the database setting (indeed, there are no known tractability results for UCQs). Instead, it is necessary
to exploit properties of canonical models of DL-Liteℛ KBs. It is an interesting open question whether
Theorem 3 can be extended to linear existential rule ontologies.</p>
      <sec id="sec-4-1">
        <title>Acknowledgments</title>
        <p>The authors have been partially supported by ANR AI Chair INTENDED (ANR-19-CHIA-0014).</p>
      </sec>
      <sec id="sec-4-2">
        <title>Declaration on Generative AI</title>
        <p>The authors have not employed any Generative AI tools.
[8] M. Khalil, B. Kimelfeld, The complexity of the shapley value for regular path queries, in:
International Conference on Database Theory (ICDT), volume 255 of Leibniz International Proceedings in
Informatics (LIPIcs), Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2023, pp. 11:1–11:19. URL:
https://doi.org/10.4230/LIPIcs.ICDT.2023.11. doi:10.4230/LIPICS.ICDT.2023.11.
[9] A. Kara, D. Olteanu, D. Suciu, From shapley value to model counting and back, Proceedings of
the ACM on Management of Data (PACMMOD) 2 (2024) 79. URL: https://doi.org/10.1145/3651142.
doi:10.1145/3651142.
[10] A. Reshef, B. Kimelfeld, E. Livshits, The impact of negation on the complexity of the shapley value
in conjunctive queries, in: ACM Symposium on Principles of Database Systems (PODS), ACM, 2020,
pp. 285–297. URL: https://doi.org/10.1145/3375395.3387664. doi:10.1145/3375395.3387664.
[11] M. Bienvenu, D. Figueira, P. Lafourcade, When is Shapley value computation a matter of counting?,
Proceedings of the ACM on Management of Data (PACMMOD) 2 (2024) 105. URL: https://doi.org/
10.1145/3651606. doi:10.1145/3651606.
[12] P. Karmakar, M. Monet, P. Senellart, S. Bressan, Expected Shapley-Like Scores of Boolean functions:
Complexity and Applications to Probabilistic Databases, Proc. ACM Manag. Data 2 (2024) 92:1–
92:26. doi:10.1145/3651593.
[13] M. Bienvenu, D. Figueira, P. Lafourcade, Shapley value computation in ontology-mediated query
answering, in: Principles of Knowledge Representation and Reasoning (KR), 2024. doi:10.24963/
KR.2024/15.
[14] L. S. Shapley, A value for n-person games, in: Contributions to the Theory of Games II, Princeton</p>
        <p>University Press, 1953, pp. 307–317.
[15] M. Bienvenu, D. Figueira, P. Lafourcade, Shapley revisited: Tractable responsibility measures
for query answers, 2025. URL: https://arxiv.org/abs/2503.22358. arXiv:2503.22358, preprint
available at https://arxiv.org/abs/2503.22358. To appear in PODS 2025.
[16] A. Poggi, D. Lembo, D. Calvanese, G. De Giacomo, M. Lenzerini, R. Rosati, Linking data to
ontologies, in: Journal on Data Semantics X, 2008, pp. 133–173.
[17] M. Bienvenu, M. Ortiz, Ontology-Mediated Query Answering with Data-Tractable Description
Logics, in: Tutorial Lectures of the Reasoning Web (RW) Summer School, volume 9203 of Lecture
Notes in Computer Science, 2015, pp. 218–307.
[18] G. Xiao, D. Calvanese, R. Kontchakov, D. Lembo, A. Poggi, R. Rosati, M. Zakharyaschev,
Ontologybased data access: A survey, in: International Joint Conference on Artificial Intelligence (IJCAI),
2018, pp. 5511–5519.
[19] F. Baader, I. Horrocks, C. Lutz, U. Sattler, An Introduction to Description Logic, Cambridge</p>
        <p>University Press, 2017.
[20] D. Calvanese, G. De Giacomo, D. Lembo, M. Lenzerini, R. Rosati, Tractable reasoning and eficient
query answering in description logics: The DL-Lite family, Journal of Automated Reasoning (JAR)
(2007).
[21] A. Escofier, Le guide culinaire : aide-mémoire de cuisine pratique, Bibliothèque Professionnelle,
1903.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Borgida</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rodriguez-Muro</surname>
          </string-name>
          ,
          <article-title>Explanation in the DL-Lite family of description logics</article-title>
          ,
          <source>in: Proceedings of the International Conference: On the Move to Meaningful Internet Systems (OTM)</source>
          ,
          <year>2008</year>
          , pp.
          <fpage>1440</fpage>
          -
          <lpage>1457</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C.</given-names>
            <surname>Alrabbaa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Borgwardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Koopmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kovtunova</surname>
          </string-name>
          ,
          <article-title>Explaining ontology-mediated query answers using proofs over universal models</article-title>
          ,
          <source>in: Proceedings of the International Joint Conference on Rules and Reasoning (RuleML+RR)</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>167</fpage>
          -
          <lpage>182</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bienvenu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Bourgaux</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Goasdoué</surname>
          </string-name>
          ,
          <article-title>Computing and explaining query answers over inconsistent DL-Lite knowledge bases</article-title>
          ,
          <source>Journal of Artificial Intelligence Research (JAIR) 64</source>
          (
          <year>2019</year>
          )
          <fpage>563</fpage>
          -
          <lpage>644</lpage>
          . URL: https://doi.org/10.1613/jair.1.11395. doi:
          <volume>10</volume>
          .1613/JAIR.1.11395.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>İ.</given-names>
            <surname>İ. Ceylan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Lukasiewicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Malizia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Vaicenavicius</surname>
          </string-name>
          ,
          <article-title>Explanations for query answers under existential rules</article-title>
          ,
          <source>in: International Joint Conference on Artificial Intelligence (IJCAI)</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>1639</fpage>
          -
          <lpage>1646</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>İ.</given-names>
            <surname>İ. Ceylan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Lukasiewicz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Malizia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Vaicenavicius</surname>
          </string-name>
          ,
          <article-title>Explanations for ontology-mediated query answering in description logics</article-title>
          ,
          <source>in: Proceedings of the European Conference on Artificial Intelligence (ECAI)</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>672</fpage>
          -
          <lpage>679</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>E.</given-names>
            <surname>Livshits</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. E.</given-names>
            <surname>Bertossi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Kimelfeld</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Sebag</surname>
          </string-name>
          ,
          <article-title>The Shapley value of tuples in query answering</article-title>
          ,
          <source>Logical Methods in Computer Science (LMCS) 17</source>
          (
          <year>2021</year>
          ). doi:
          <volume>10</volume>
          .46298/LMCS-
          <volume>17</volume>
          (
          <issue>3</issue>
          :22)
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Deutch</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Frost</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Kimelfeld</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Monet</surname>
          </string-name>
          ,
          <article-title>Computing the shapley value of facts in query answering</article-title>
          ,
          <source>in: ACM SIGMOD International Conference on Management of Data (SIGMOD)</source>
          , ACM,
          <year>2022</year>
          , pp.
          <fpage>1570</fpage>
          -
          <lpage>1583</lpage>
          . URL: https://doi.org/10.1145/3514221.3517912. doi:
          <volume>10</volume>
          .1145/3514221. 3517912.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>