Towards Attributions of Input Variables in a Coalition

Xinhao Zheng, Huiqi Deng, Quanshi Zhang

TL;DR

This paper introduces a theoretical framework to solve the "partitioning problem" in Explainable AI (XAI), specifically for Shapley value-based attributions. By identifying that attribution conflicts—where a group’s importance doesn't equal the sum of its parts—are caused by specific internal AND-OR interactions, the authors propose new metrics to identify "faithful" coalitions of variables that a model treats as a single semantic unit.

What Problem Does This Paper Address?

When we try to explain why a model made a prediction, we often use attribution methods like Shapley values to assign "credit" to input variables (like pixels in an image or words in a sentence). However, a major hurdle remains: How do we define the basic unit of input?

Should we calculate the importance of individual pixels, or groups of pixels forming a "nose"? Should we look at single characters, or whole words? Currently, researchers choose these partitions arbitrarily. The authors point out a fundamental "attribution conflict": the importance score of a coalition (a group of variables) is rarely equal to the sum of the importance scores of its individual members.

Figure 1. (a)AND-OR interaction: Let the AI model encode three interactions S1 = {x1, x2}, S2 = {x1, x2, x3, x4, x5, x6} and S3 = {x5, x6}, respectively. In this way, the Shapley value of x1 can be decomposed as ϕ(x1) = 1/2 · I(S1) + 1/6 · I(S2). (b) Conflict of attributions: Let us consider another example with three interactions, w.r.t., S1 = {x1, x2, x3, x4}, S2 = {x1, x2}, and S3 = {x2, x3, x4}. The attribution of the coalition {x1, x2} is not equal to the sum of attributions of input variable x1 and x2, i.e., φ(S = {x1, x2}) ̸= ϕ(x1) + ϕ(x2).

As shown in Figure 1(b) above, the attribution of a coalition $\{x_1, x_2\}$ might not match $\phi(x_1) + \phi(x_2)$. Without understanding why this happens, we can't know if a chosen grouping is "faithful" to the model's internal logic.

Methods

The authors build their solution on the foundation of AND-OR interactions, which represent how a model combines variables non-linearly to produce an effect.

  1. Reformulation: They prove that standard metrics like Shapley and Banzhaf values are actually just specific ways of reallocating these internal AND-OR interaction effects back to individual variables.
  2. New Coalition Metric: They define a new attribution metric, $\varphi(S)$, for a coalition $S$. Unlike previous "engineering" approaches that try to force the conflict to zero, this metric is derived by allocating only the interactions that cover the entire coalition.
  3. Identifying the Conflict: The mathematical "aha!" moment is proving that the conflict arises specifically from interactions that involve partial members of a coalition. If a model has many interactions that use some, but not all, variables in a group, that group is a "weak" or "unfaithful" coalition.
  4. Faithfulness Metrics: They introduce three metrics—$R(i)$, $R'(i)$, and $Q(S)$—to quantify how much a model treats a group of variables as a single, inseparable unit.

Datasets

The researchers validated their theory across several domains:

  • Synthetic Data: Toy functions with ground-truth interactions to verify the math.
  • NLP: The SST-2 (Stanford Sentiment Treebank) dataset, using BERT-large and LLaMA models.
  • Computer Vision: MNIST (digits) and CIFAR-10 (objects) using VGG-11 and ResNet-20.
  • Game of Go: The KataGo value network, explaining complex "shape patterns" on the board.

Key Insights and Ideas

  • The Conflict is a Feature, Not a Bug: Previous work (like Faith-Shap) treated attribution conflict as an error to be minimized. This paper argues the conflict is a natural result of the model's internal interactions and uses it as a diagnostic tool.
  • Shared vs. Conflicting Components: Shapley values can be decomposed into a "shared" component (what the variable contributes as part of the coalition) and a "conflicting" component (what it contributes through partial interactions).
  • Faithful Coalitions = Semantic Units: A "faithful" coalition is one where the model's internal logic aligns with the grouping. For example, in NLP, a faithful coalition might be a multi-word phrase that the model treats as a single concept.

Key Results

  • Theoretical Accuracy: The authors' decomposition of Shapley values was verified experimentally with near-zero approximation errors (Table 2 & 3), proving the mathematical soundness of their interaction-based reformulation.
  • NLP Intuition: In sentiment analysis, the metrics correctly identified "mesmerizing performances" as a faithful coalition (high $Q(S)$), while "rivaling blair" (which splits the phrase "blair witch") was flagged as unfaithful.
  • Go Strategy: In the game of Go, the method identified "shape patterns" (coalitions of stones) that boosted or reduced advantage scores. These often aligned with professional human intuition, such as identifying the "shoulder-hit" pattern or "corner regular forms" (Dingshi).
Visualization of top-ranked coalitions in KataGo

Limitations and Future Work

  • Computational Complexity: Calculating all AND-OR interactions is computationally expensive, which limited the Go experiments to local board states of only 10 stones.
  • Human-AI Gap: The authors noted that some "faithful" coalitions learned by the model (like long-term statistical regularities in Go) don't always fit human tactical intuition, which is often based on short-term search.
  • Future Directions: The authors suggest that these metrics could be used to discover new knowledge by identifying patterns the model has learned that humans haven't yet categorized.

Summary updated

BibTeX
@inproceedings{zheng2025towards,
  author = {Xinhao Zheng and Huiqi Deng and Quanshi Zhang},
  title = {{Towards Attributions of Input Variables in a Coalition}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=h5TXCnnEyy},
}
Figure