Towards Rigorous Explainability by Feature Attribution

Olivier Létoffé, Xuanxiang Huang, Joao Marques-SilvaarXiv 2026

TL;DR

Despite its massive popularity, the ubiquitous explainability tool SHAP possesses severe theoretical flaws that can actively mislead human decision-makers by assigning zero importance to vital features and non-zero importance to completely irrelevant ones. This paper overviews a rigorous, logic-based alternative called nuSHAP, which leverages formal methods to guarantee that feature attribution scores accurately reflect true feature relevancy.

What Problem Does This Paper Address?

Feature attribution methods aim to explain machine learning (ML) models by assigning a numeric score to each feature, representing its relative importance to a specific prediction. The dominant framework for this is SHAP (Shapley Additive exPlanations), which adapts Shapley values from cooperative game theory.

However, the authors highlight a critical vulnerability: SHAP defines its game using an expected-value-based characteristic function. Because it averages predictions over data distributions, it can produce highly misleading results. For instance, a feature that is mathematically guaranteed to determine the output can receive a SHAP score of 0, while a completely irrelevant feature receives a non-zero score. This paper addresses this lack of rigor, demonstrating that these flaws persist across classification, regression, and even continuous or Lipschitz-continuous models.

Methods

To resolve these flaws, the authors propose shifting from probabilistic expectations to a logic-based framework. They introduce a new characteristic function, $v_a(S)$, defined as:

$$v_a(S) = \begin{cases} 1 & \text{if } S \text{ is a Weak Abductive Explanation (WAXp)} \\ 0 & \text{otherwise} \end{cases}$$

A subset of features $S$ is a WAXp if fixing their values guarantees that the model's prediction will remain unchanged, regardless of what values the remaining features take. This turns the explainability task into a simple game where the characteristic function is monotonic and binary.

Because computing exact corrected Shapley values is computationally hard (#P-complete), the authors implement this logic-based game into a practical tool called nuSHAP. nuSHAP utilizes the Castro, Gómez, and Tejada (CGT) approximation algorithm, which offers strong theoretical guarantees and checks the WAXp predicate efficiently (in polynomial time for several model families).

Datasets

The authors evaluated their approach against standard SHAP using:

  • Tabular Datasets: 10 classification datasets chosen from the PMLB benchmark (including adult, corral, iris, mux6, spambase, etc.).
  • Image Dataset: The MNIST dataset of handwritten digits (0–9) to evaluate performance on more complex, continuous-input models like Convolutional Neural Networks (CNNs).

Key Insights and Ideas

  • Unifying Paradigms: The paper elegantly bridges two historically distinct branches of explainable AI (XAI): feature selection (answering "Why?" via logic-based abductive explanations) and feature attribution (assigning relative importance scores).
  • Popularity $\neq$ Rigor: SHAP has been cited over 34,000 times, yet it fundamentally fails basic sanity checks like "Compliance with feature irrelevancy" (i.e., an irrelevant feature must get a score of 0).
  • Pervasive Failures: The flaws in standard SHAP are not edge cases restricted to discrete decision trees; they occur pervasively even in smooth, continuous, and differentiable models (as illustrated by the mathematical family outlined in Figure 5).

Key Results

The authors compared the feature importance rankings generated by standard SHAP and nuSHAP using Rank-Biased Overlap (RBO), a metric where 1 means identical rankings and 0 means complete disagreement.

  • Zero Correlation: The experiments revealed virtually no correlation between the feature rankings of SHAP and nuSHAP. For complex models like the CNN on MNIST, the mean RBO was 0.0, proving that SHAP's approximations provide entirely different explanations than a rigorous logic-based baseline.
  • Competitive Runtime: Despite utilizing rigorous formal checks, nuSHAP achieved average runtimes that were highly competitive with—and sometimes faster than—standard SHAP explainers (e.g., completing MNIST evaluations in 48.9 seconds compared to SHAP's 281.3 seconds).

Limitations and Future Work

The primary limitation acknowledged by the authors is that the exact computation of corrected SHAP scores remains an open research challenge due to its underlying complexity. While the CGT approximation algorithm provides excellent results with strong theoretical bounds, future work will focus on developing algorithms capable of calculating these logic-based feature attribution scores exactly and efficiently across a wider variety of machine learning architectures.

Summary updated

BibTeX
@misc{letoffe2026towards,
  author = {Olivier Létoffé and Xuanxiang Huang and Joao Marques-Silva},
  title = {{Towards Rigorous Explainability by Feature Attribution}},
  year = {2026},
  eprint = {2604.15898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.15898},
}
Figure