WSMS: Weighted Sums of Minimal Supports
- Weighted Sums of Minimal Supports (WSMS) is a framework that assigns responsibility scores to facts by aggregating weights from their minimal supports for a query answer.
- WSMS improves over traditional Shapley methods by using support-specific weights that prioritize smaller and more numerous supports, enhancing transparency and computational efficiency.
- Extensions of WSMS address unions with negation and ontology-mediated query answering, striking a balance between robust explanatory semantics and tractable data complexity.
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 (Bienvenu et al., 28 Mar 2025, Bienvenu et al., 8 Jan 2026, Bienvenu et al., 31 Jul 2025).
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 , where contains the endogenous facts among which responsibility is distributed and contains exogenous background facts. For a non-Boolean query with answer tuple , one reduces to the Boolean query , since iff . This reduction allows the framework to focus on Boolean monotone queries without loss of generality (Bienvenu et al., 28 Mar 2025).
For a monotone Boolean query , a set 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 0 such that 1, minimal under inclusion. The set of all minimal supports in a database 2 is denoted 3. A fact 4 is relevant iff 5 for some 6; 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 (Bienvenu et al., 28 Mar 2025).
This support-based orientation was motivated by two criticisms of the standard drastic Shapley approach. First, computing drastic Shapley responsibility is FP-7P-hard / 8P-hard in data complexity even for simple conjunctive queries. Second, the drastic wealth function distributes a fixed total wealth 9 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 (Bienvenu et al., 28 Mar 2025).
2. Formal definition and weighting principles
The central definition uses a weight function
0
For an endogenous fact 1, the WSMS score is
2
and 3 otherwise. The intended semantics is direct: enumerate all minimal supports containing 4, attach to each such support a weight depending on its size and possibly on 5, and sum the resulting contributions (Bienvenu et al., 28 Mar 2025).
For the main semantic results, the weight function is assumed to be positive and strictly decreasing in support size: 6 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 7 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 (Bienvenu et al., 28 Mar 2025).
Several concrete weights are singled out. The inverse-size weight
8
yields the especially natural score
9
Two additional weights were proposed to emphasize different orderings of explanatory preference: 0 to prioritize smallest supports lexicographically, and
1
to prioritize the number of minimal supports. The original analysis proves that 2 enforces preference for smaller smallest supports, while 3 enforces preference for appearing in more minimal supports (Bienvenu et al., 28 Mar 2025).
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 4, and a fact appearing in two size-5 supports outranks a fact appearing in only one size-6 support. Under 7, these become exact numerical comparisons such as 8 versus 9, or 0 versus 1 again through 2 versus 3 (Bienvenu et al., 28 Mar 2025).
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: 4, requiring semantically equivalent facts in semantically equivalent queries to receive the same score, and 5, requiring irrelevant facts to receive 6 and relevant facts to receive positive score. It then motivates support-sensitive principles: 7, that appearing in smaller minimal supports should increase responsibility, and 8, that appearing in more minimal supports should increase responsibility. A concrete test axiom, 9, formalizes these intuitions in a clean noninteracting configuration. If 0 is positive and strictly decreasing, then 1 satisfies 2, 3, and 4 (Bienvenu et al., 28 Mar 2025).
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
5
and 6 otherwise. On purely endogenous databases, this simplifies to
7
The corresponding Shapley value satisfies
8
when 9, and 0 otherwise. This is the MS Shapley value (Bienvenu et al., 28 Mar 2025).
More generally, for every WSMS 1 and every positive Shapley-like score 2, there exists a family 3 such that
4
The construction is explicit. For a set of minimal supports 5, one defines
6
and chooses 7 so that the Shapley-like score of each singleton-support subgame contributes exactly 8. 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 (Bienvenu et al., 28 Mar 2025).
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 9, computing the score of a fact 0 reduces to obtaining, for each 1, the number of size-2 minimal supports containing 3, and then summing
4
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 5. Since all UCQs are bounded, WSMS has polynomial-time data complexity for all UCQs. This sharply contrasts with drastic Shapley responsibility, which remains 6P-hard in data complexity even for simple conjunctive queries (Bienvenu et al., 28 Mar 2025).
The paper also gives more refined results. For regular path queries, WSMS is in 7 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 8 only when the language 9 is finite or 0 and 1, and is 2P-hard otherwise. For arbitrary monotone query classes whose evaluation lies in the polynomial hierarchy, there is a general upper bound
3
Thus WSMS is not uniformly easy in combined complexity (Bienvenu et al., 28 Mar 2025).
For conjunctive queries, the combined-complexity picture is mixed. Counting minimal supports is 4P-hard already for acyclic conjunctive queries, yielding 5P-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 (Bienvenu et al., 28 Mar 2025).
The basic bounded-query algorithm is correspondingly simple: enumerate all subsets 6 up to the support-size bound, test whether 7, test minimality, and add 8 to the score of each 9. The tractable cases are therefore driven by efficient counting of minimal explanations of each size rather than by direct Shapley permutation summation (Bienvenu et al., 28 Mar 2025).
5. Extensions to conjunctive queries with negation
Once negation is allowed, there is no single natural notion of support. For 0, two principled WSMS-style extensions were introduced: a signed-facts extension and a positive-facts extension. The signed construction transforms a query 1 into a monotone query 2 over a signed schema with positive relations 3 and negative relations 4, and transforms a database 5 into
6
A signed support is any 7 such that 8, 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 (Bienvenu et al., 8 Jan 2026).
The positive-facts extension scores only actual database facts. A subset 9 is a positive support if
00
so the positive atoms are witnessed by 01 while the negated atoms are checked against absence in the full database context. The resulting positive WSMS sums 02 over minimal positive supports containing the fact. For 03, 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 (Bienvenu et al., 8 Jan 2026).
These definitions were motivated by the failure of naive monotone-style supports under negation. A subinstance 04 may satisfy a non-monotone query only because some blocking fact is absent from 05 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 06 and 07. The positive approach is semantically stricter when only actual tuples are to be scored (Bienvenu et al., 8 Jan 2026).
In complexity terms, both extensions preserve an important tractability result: signed MS/WSMS is polynomial-time computable in data complexity for all 08, and positive MS/WSMS is polynomial-time computable in data complexity for all 09 as well. In combined complexity, signed WSMS is tractable for classes of 10 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 11 classes with bounded generalized hypertree width and no mergeable atoms. All these upper bounds extend from MS-Shapley to WSMS with tractable weights (Bienvenu et al., 8 Jan 2026).
| Variant | Support notion | Scored objects |
|---|---|---|
| Original WSMS | Minimal supports of monotone 12 in 13 | Facts 14 |
| Signed WSMS | Minimal signed supports of 15 in 16 | Signed facts 17 |
| Positive WSMS | Minimal positive supports in ambient 18 | Facts 19 |
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 20 replaces the plain database query. A subset 21 is a support if 22, and is minimal if no proper subset still entails the answer under the fixed ontology 23. 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 (Bienvenu et al., 31 Jul 2025).
The main positive data-complexity result is that WSMS is in 24 for every tractable weight function and every Boolean OMQ that is 25-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 26, 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 (Bienvenu et al., 31 Jul 2025).
The negative side is equally sharp. If the ontology language can express an axiom such as
27
then there exists an atomic OMQ for which WSMS is 28-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 29—remain tractable, and a substantial tractable fragment is obtained for interaction-free DL-Lite conjunctive queries of bounded treewidth (Bienvenu et al., 31 Jul 2025).
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 30 shows that such extensions are possible, but only after making explicit choices about what should count as a support in the presence of negation (Bienvenu et al., 28 Mar 2025, Bienvenu et al., 8 Jan 2026).