---
title: 'WSMS: Weighted Sums of Minimal Supports'
url: https://www.emergentmind.com/topics/weighted-sums-of-minimal-supports-wsms
type: topic
---

# WSMS: Weighted Sums of Minimal Supports

Searching arXiv for the core WSMS paper and closely related follow-up work on negation and ontology-mediated query answering.
Weighted Sums of Minimal Supports (WSMS) is a family of responsibility measures for query answers in relational databases. It assigns a numerical score to an endogenous fact by summing contributions from the query’s minimal supports that contain that fact, with each support weighted as a function of its size. WSMS was introduced to revisit Shapley-value-based responsibility for monotone non-numeric queries, with the explicit goals of improving interpretability and obtaining better complexity behavior than the standard drastic Shapley construction. Subsequent work extended the framework to unions of conjunctive queries with negation and to ontology-mediated query answering, while preserving the central support-based viewpoint [2503.22358][2601.04868][2507.23191].

## 1. Responsibility analysis and the role of minimal supports

The basic setting is a finite relational database viewed as a set of ground facts. Responsibility analysis asks: given a query answer that holds in a database, how much did each input fact contribute to obtaining that answer? In the formulation underlying WSMS, the database is partitioned as \(D = D_n \cup D_x\), where \(D_n\) contains the endogenous facts among which responsibility is distributed and \(D_x\) contains exogenous background facts. For a non-Boolean query \(q\) with answer tuple \(a\), one reduces to the Boolean query \(q(a)\), since \(D \models q(a)\) iff \(a \in q(D)\). This reduction allows the framework to focus on Boolean monotone queries without loss of generality [2503.22358].

For a monotone Boolean query \(q\), a set \(S\) is a support if it suffices to make the query true, and it is a minimal support if no proper subset still suffices. In the endogenous/exogenous setting, the relevant supports are subsets \(S \subseteq D_n\) such that \(S \cup D_x \models q\), minimal under inclusion. The set of all minimal supports in a database \(D\) is denoted \(MS_D(q)\). A fact \(\alpha\) is relevant iff \(\alpha \in S\) for some \(S \in MS_D(q)\); otherwise it is irrelevant. These minimal supports are the semantic witnesses for the answer, and WSMS takes them as its primary explanatory objects rather than working through coalition averages over all fact subsets [2503.22358].

This support-based orientation was motivated by two criticisms of the standard drastic Shapley approach. First, computing drastic Shapley responsibility is FP-\(\#\)P-hard / \(\#\)P-hard in data complexity even for simple conjunctive queries. Second, the drastic wealth function distributes a fixed total wealth \(1\) whenever the answer holds, which can make a fact’s score sensitive to supports that do not contain that fact. WSMS replaces that global competition for fixed wealth with direct aggregation over the minimal supports that actually involve the fact under inspection [2503.22358].

## 2. Formal definition and weighting principles

The central definition uses a weight function
\[
w : \mathbb{N} \times \mathbb{N} \to \mathbb{R}.
\]
For an endogenous fact \(\alpha\), the WSMS score is
\[
\phi^{wsms}_w(D,q,\alpha)
=
\sum_{\substack{S \in MS(q)\\ \alpha \in S}} w(|S|,|D_n|)
\quad \text{if } D_x \not\models q,
\]
and \(0\) otherwise. The intended semantics is direct: enumerate all minimal supports containing \(\alpha\), attach to each such support a weight depending on its size and possibly on \(|D_n|\), and sum the resulting contributions [2503.22358].

For the main semantic results, the weight function is assumed to be positive and strictly decreasing in support size:
\[
k < \ell \implies w(k,n) > w(\ell,n)
\quad \text{for every } n.
\]
Thus smaller minimal supports receive larger per-support weight. A weight function is called tractable if it is computable in polynomial time. WSMS is deliberately not normalized to sum to \(1\) over all facts. Responsibility mass is not fixed independently of witness structure: if an answer has many minimal supports, there can be more total responsibility to distribute. This is a defining departure from drastic Shapley responsibility [2503.22358].

Several concrete weights are singled out. The inverse-size weight
\[
w^{inv}(k,s)=\frac{1}{k}
\]
yields the especially natural score
\[
\phi^{wsms}_{invw}(D,q,\alpha)
=
\sum_{\substack{S\in MS(q)\\ \alpha \in S}} \frac{1}{|S|}.
\]
Two additional weights were proposed to emphasize different orderings of explanatory preference:
\[
w_s(k,n)=2^{-kn}
\]
to prioritize smallest supports lexicographically, and
\[
w_{\#}(k,n)=1+w_s(k,n)
\]
to prioritize the number of minimal supports. The original analysis proves that \(w_s\) enforces preference for smaller smallest supports, while \(w_{\#}\) enforces preference for appearing in more minimal supports [2503.22358].

The resulting interpretation is compact. A fact receives a high WSMS score if it appears in many minimal supports, in small minimal supports, or both. In the motivating examples, a fact appearing in one singleton support outranks facts appearing only in one support of size \(2\), and a fact appearing in two size-\(2\) supports outranks a fact appearing in only one size-\(2\) support. Under \(w(k,n)=1/k\), these become exact numerical comparisons such as \(1\) versus \(1/2\), or \(1\) versus \(1/2\) again through \(2\cdot (1/2)\) versus \(1\cdot (1/2)\) [2503.22358].

## 3. Axiomatic behavior and relation to the Shapley value

WSMS was designed as a response to Shapley-based responsibility, but it is not anti-Shapley. The original analysis first isolates database analogues of classical Shapley axioms that remain compelling: \((Sym\text{-}db)\), requiring semantically equivalent facts in semantically equivalent queries to receive the same score, and \((Null\text{-}db)\), requiring irrelevant facts to receive \(0\) and relevant facts to receive positive score. It then motivates support-sensitive principles: \((MS1)\), that appearing in smaller minimal supports should increase responsibility, and \((MS2)\), that appearing in more minimal supports should increase responsibility. A concrete test axiom, \((MStest)\), formalizes these intuitions in a clean noninteracting configuration. If \(w\) is positive and strictly decreasing, then \(\phi^{wsms}_w\) satisfies \((Sym\text{-}db)\), \((Null\text{-}db)\), and \((MStest)\) [2503.22358].

The decisive conceptual result is that every WSMS measure is representable as a Shapley value for a suitably chosen cooperative game. For the inverse-size weight, the associated wealth function family is
\[
\xi^{ms}_{q,D_x}(D_n)
=
\sum_{S \in MS(q)} \frac{|S\cap D_n|}{|S|} \quad \text{if } D_x \not\models q,
\]
and \(0\) otherwise. On purely endogenous databases, this simplifies to
\[
\xi^{ms}_{q,\emptyset}(D_n)=|MS_{D_n}(q)|.
\]
The corresponding Shapley value satisfies
\[
Sh(D_n,\xi^{ms}_{q,D_x},\alpha)
=
\sum_{\substack{S\in MS_D(q)\\ \alpha\in S}} \frac{1}{|S|}
\]
when \(D_x \not\models q\), and \(0\) otherwise. This is the MS Shapley value [2503.22358].

More generally, for every WSMS \(\phi^{wsms}_w\) and every positive Shapley-like score \(S_c\), there exists a family \(\Xi_w=\{\xi^w_{q,D_x}\}\) such that
\[
\phi^{wsms}_w(D,q,\alpha)=S_c(D_n,\xi^w_{q,D_x},\alpha).
\]
The construction is explicit. For a set of minimal supports \(MS_D(q)\), one defines
\[
\xi^\gamma_{MS_D(q),D_x}(B)
=
\sum_{\substack{S\in MS_D(q)\\ S\subseteq B}} \gamma(S,D_x,D_n),
\]
and chooses \(\gamma\) so that the Shapley-like score of each singleton-support subgame contributes exactly \(w(|S|,|D_n|)\). The philosophical consequence is precise: the problematic element in drastic Shapley responsibility is not the Shapley value itself, but the drastic wealth function used to encode Boolean query truth [2503.22358].

## 4. Computational complexity and algorithmic methods

A central reason for introducing WSMS is that its computation reduces to counting minimal supports by size rather than averaging marginal contributions over exponentially many coalitions. For a tractable weight function \(w\), computing the score of a fact \(\alpha\) reduces to obtaining, for each \(k\), the number of size-\(k\) minimal supports containing \(\alpha\), and then summing
\[
\sum_k w(k,|D_n|)\cdot \#^{fms}_{q,\alpha}(k,D).
\]
Accordingly, if a query is bounded—meaning that the size of its minimal supports is bounded by a constant independent of the database—then WSMS is in \(\mathrm{FP}\). Since all UCQs are bounded, WSMS has polynomial-time data complexity for all UCQs. This sharply contrasts with drastic Shapley responsibility, which remains \(\#\)P-hard in data complexity even for simple conjunctive queries [2503.22358].

The paper also gives more refined results. For regular path queries, WSMS is in \(\mathrm{FP}\) on acyclic graph databases via dynamic programming that counts paths of a given size, but on arbitrary graphs there is a dichotomy: for reversible tractable weight functions, the problem is in \(\mathrm{FP}\) only when the language \(L\) is finite or \(\varepsilon \in L\) and \(c=d\), and is \(\#\)P-hard otherwise. For arbitrary monotone query classes whose evaluation lies in the polynomial hierarchy, there is a general upper bound
\[
SVC^w_C \in \mathrm{FP}^{\# P}.
\]
Thus WSMS is not uniformly easy in combined complexity [2503.22358].

For conjunctive queries, the combined-complexity picture is mixed. Counting minimal supports is \(\#\)P-hard already for acyclic conjunctive queries, yielding \(\#\)P-hardness of WSMS for acyclic CQs under reversible weights. On the positive side, self-join-free acyclic CQs are tractable because minimal supports and homomorphisms coincide, and more generally any class of CQs with bounded generalized hypertree width and bounded self-join width admits polynomial-time computation of both fixed-size minimal-support counts and WSMS. The underlying proof technique is structural: with self-joins, the analysis uses auxiliary CQs with equalities and disequalities, mergeable atoms, equivalence relations on mergeable terms, and homomorphism-counting algorithms for bounded-width classes [2503.22358].

The basic bounded-query algorithm is correspondingly simple: enumerate all subsets \(S\subseteq D_n\) up to the support-size bound, test whether \(S\cup D_x\models q\), test minimality, and add \(w(|S|,|D_n|)\) to the score of each \(\alpha \in S\). The tractable cases are therefore driven by efficient counting of minimal explanations of each size rather than by direct Shapley permutation summation [2503.22358].

## 5. Extensions to conjunctive queries with negation

Once negation is allowed, there is no single natural notion of support. For \(\mathrm{UCQ}^{\neg}\), two principled WSMS-style extensions were introduced: a signed-facts extension and a positive-facts extension. The signed construction transforms a query \(q\) into a monotone query \(q^\pm\) over a signed schema with positive relations \(+R\) and negative relations \(-R\), and transforms a database \(D\) into
\[
D^\pm = +D \cup \{-R(\bar c) : R(\bar c)\notin D \text{ over the active domain}\}.
\]
A signed support is any \(S\subseteq D^\pm\) such that \(S\models q^\pm\), and signed WSMS simply applies the monotone WSMS definition to these minimal signed supports. Responsibility is then assigned to signed facts, including absent tuples represented as negative facts [2601.04868].

The positive-facts extension scores only actual database facts. A subset \(S\subseteq D\) is a positive support if
\[
+S \cup -D^-[D] \models q^\pm,
\]
so the positive atoms are witnessed by \(S\) while the negated atoms are checked against absence in the full database context. The resulting positive WSMS sums \(w(|S|)\) over minimal positive supports containing the fact. For \(w(k)=1/k\), this yields the paper’s positive MS-Shapley measure. The two variants reflect different explanatory semantics: signed supports explain truth through presence and absence, whereas positive supports explain truth using only present tuples while validating negations against the ambient database [2601.04868].

These definitions were motivated by the failure of naive monotone-style supports under negation. A subinstance \(S\subseteq D\) may satisfy a non-monotone query only because some blocking fact is absent from \(S\) even though it is present in the full database. The signed and positive notions reject that behavior in different ways. The signed approach is computationally the cleaner of the two because it reduces directly to monotone WSMS on \(q^\pm\) and \(D^\pm\). The positive approach is semantically stricter when only actual tuples are to be scored [2601.04868].

In complexity terms, both extensions preserve an important tractability result: signed MS/WSMS is polynomial-time computable in data complexity for all \(\mathrm{UCQ}^{\neg}\), and positive MS/WSMS is polynomial-time computable in data complexity for all \(\mathrm{UCQ}^{\neg}\) as well. In combined complexity, signed WSMS is tractable for classes of \(\mathrm{CQ}^{\neg}\) with bounded negative arity, bounded generalized hypertree width, and bounded self-join width; positive WSMS is tractable for classes with bounded generalized hypertree width, no mergeable atoms, and bounded negative arity, and also for guarded \(\mathrm{CQ}^{\neg}\) classes with bounded generalized hypertree width and no mergeable atoms. All these upper bounds extend from MS-Shapley to WSMS with tractable weights [2601.04868].

| Variant | Support notion | Scored objects |
|---|---|---|
| Original WSMS | Minimal supports of monotone \(q\) in \(D\) | Facts \(\alpha \in D\) |
| Signed WSMS | Minimal signed supports of \(q^\pm\) in \(D^\pm\) | Signed facts \(\alpha \in D^\pm\) |
| Positive WSMS | Minimal positive supports in ambient \(D\) | Facts \(\alpha \in D\) |

## 6. Ontology-mediated query answering, tradeoffs, and scope

WSMS has also been transferred to ontology-mediated query answering (OMQA), where the ABox is treated as the fact set and the ontology-mediated query \(Q=(T,q)\) replaces the plain database query. A subset \(A'\subseteq A\) is a support if \(A' \models (T,q)\), and is minimal if no proper subset still entails the answer under the fixed ontology \(T\). In this setting, ontology reasoning can fundamentally change support structure through indirect entailment, anonymous canonical-model elements, and interactions between query atoms mediated by the ontology [2507.23191].

The main positive data-complexity result is that WSMS is in \(\mathrm{FP}\) for every tractable weight function and every Boolean OMQ that is \(\mathrm{UCQ}^{\neq}\)-rewritable. This implies polynomial data complexity for important DL-Lite settings. The reason is the same bounded-support phenomenon seen in the plain database setting: if the OMQ rewrites into a \(\mathrm{UCQ}^{\neq}\), then minimal supports are bounded in size. The paper also shows that fixed-size minimal-support counting can be reduced to finitely many homomorphism-counting queries, so WSMS for UCQ-rewritable OMQs can be implemented via short SQL `select count(*)` queries evaluated in parallel [2507.23191].

The negative side is equally sharp. If the ontology language can express an axiom such as
\[
\exists r.A \sqsubseteq A,
\]
then there exists an atomic OMQ for which WSMS is \(\#P\)-hard in data complexity, by simulating reachability. In combined complexity, intractability appears already for atomic queries if the ontology language supports conjunction, and also for acyclic self-join-free UCQs even without any ontology. On the positive side, atomic OMQs over DLs with singleton supports—especially \(\text{DL-Lite}_{\mathcal R}\)—remain tractable, and a substantial tractable fragment is obtained for interaction-free DL-Lite conjunctive queries of bounded treewidth [2507.23191].

These developments clarify the main tradeoff in the WSMS program. Relative to drastic Shapley responsibility, WSMS gains semantic locality and, in many important settings, significantly better data complexity. The tradeoff is that WSMS deliberately ignores higher-order interaction structure among minimal supports that coalition-based measures can capture. The original formulation does not claim that drastic Shapley is unreasonable; rather, it presents WSMS as a different, support-centered notion of responsibility that is often simpler and more tractable. In the original monotone presentation, extending the framework beyond monotone queries was left for future work; subsequent work on \(\mathrm{UCQ}^{\neg}\) shows that such extensions are possible, but only after making explicit choices about what should count as a support in the presence of negation [2503.22358][2601.04868].

Source: https://www.emergentmind.com/topics/weighted-sums-of-minimal-supports-wsms