ESENSC: A Polynomial-Time Axiomatic Alternative to SHAP

Kazuhiro Hiraki, Shinichi Ishihara, Takumi Kongo, Junnosuke ShinoNeurIPS 2026

TL;DR

When we ask why a black-box machine learning model made a specific prediction, SHAP is the gold standard for dividing credit among input features—except its exact calculation takes exponential time ($2^n$), grinding to a halt as dimensions grow. This paper introduces ESENSC, a closed-form, deterministic alternative drawn from cooperative game theory that computes feature attributions in linear time ($2n+2$ evaluations). Better yet, it isn't just a fast heuristic: it comes with rigorous mathematical guarantees and matches exact SHAP closer than popular sampling-based approximations.

What Problem Does This Paper Address?

Imagine a team of $n$ players working together to win a prize, and you want to split the payout fairly based on each person's contribution. In explainable AI (XAI), the "players" are input features, and the "payout" is how much a model's prediction deviates from its average baseline.

SHAP solves this using Shapley values from game theory, checking how every possible subset ("coalition") of features performs. It’s mathematically ironclad, but checking every coalition requires $2^n$ evaluations. With 16 features, that's 65,536 checks; with 512, it exceeds the number of atoms in the observable universe.

To survive high dimensions, practitioners rely on sampling approximations like Kernel SHAP or Permutation SHAP. However, these approximations introduce random variance, require tuning evaluation budgets, and lose the clean theoretical guarantees that made SHAP attractive in the first place. Meanwhile, simpler game-theoretic rules fail in XAI because feature contributions can be both positive and negative, causing weird math bugs like dividing by near-zero numbers or giving credit to completely useless features.

Methods

The authors formalize attribution as an XAI–TU (Transferable Utility) game and explore two fast game-theoretic concepts: Proportional Allocation (PA) and Equal Surplus (ES).

First, they show PA rules suffer from "order-reversal" when positive and negative contributions mix, and propose a sign-preserving fix called PARPA. However, their star player is ESENSC, built by combining two classical rules:

  1. Equal Surplus (ES): Give each feature what it achieves completely alone, compared to knowing nothing.
  2. Egalitarian Nonseparable Contribution (ENSC): Give each feature what the full model loses when that single feature is removed.

Averaging these two boundary checks takes just $2n+2$ evaluations. Naive averaging, however, splits leftover prediction value among all features—violating the null-player property (which dictates that a completely useless feature must get zero credit).

What's new: ESENSC fixes this by identifying "boundary-active" features (those with a non-zero effect at either Step 1 or Step 2) and dividing the remaining residual surplus equally only among them. The authors also prove an axiomatic theorem: for $n \ge 4$ features, ESENSC is the unique rule satisfying five specific axioms, including an "information parsimony" budget capping the rule at $2n+2$ coalition checks.

Datasets

  • California Housing dataset: A standard 8-feature regression benchmark (predicting median house values). To test high-dimensional scaling, the authors augmented the 8 real features with synthetic standard-normal noise features, scaling inputs up to $n = 512$.
  • HELOC dataset: Mentioned as supplementary evaluation in the appendix.

Key Insights and Ideas

  • Linear budgets still yield strong axioms: You don't need exponential compute to have principled math. By explicitly baking a computational limit ($2n+2$ evaluations) into their axioms, the authors prove you can preserve core SHAP properties (efficiency, null-player, pairwise interaction splitting) in linear time.
  • Exact match on simple interactions: Using Harsanyi dividends (a way of decomposing multi-way synergies), the authors note ESENSC is mathematically identical to exact SHAP whenever feature interactions are at most pairwise ("2-additive" games). Differences only emerge in 3-way or higher-order feature synergies!
  • Why proportional rules blow up in XAI: Even after fixing sign-reversals with PARPA, proportional methods remain wildly unstable. Why? In XAI, one feature might push a prediction up by $+10$ while another pulls it down by $-9$. Their sum ($+1$) goes in the denominator of proportional formulas—creating massive, artificial multiplier spikes.

Key Results

Tested on Feedforward Neural Networks and XGBoost, ESENSC shines in both accuracy and speed:

Figure 1: NAD values (deviation from exact SHAP) on the California Housing dataset. The left two panels correspond to Neural Network and the right two panels correspond to XGBoost.
  • Magnitude Accuracy: Measured by Normalized Attribution Distance (NAD) up to 16 features (where exact SHAP is computable), ESENSC stays remarkably close to exact SHAP—under 0.01 on Neural Networks and around 0.04–0.06 on XGBoost. It noticeably outperforms Kernel SHAP, ES, ENSC, and even TreeSHAP on XGBoost, while PA-type methods spike erratically.
  • Feature Ranking: ESENSC achieves near-perfect Mean Rank Correlation (MRC) with exact SHAP—exceeding 0.99 across both Neural Networks and XGBoost—matching Permutation SHAP and beating Kernel SHAP and TreeSHAP.
  • Massive Speedup: Exact SHAP takes ~1,800–2,000 seconds at just 16 features. Scaling up to 512 features, ESENSC finishes in roughly 100 seconds, vastly outpacing Kernel SHAP (~800–1,200s) and Permutation SHAP (~250–350s), with zero sampling variance.

Limitations and Future Work

  • Blind spots in deep synergies: Because ESENSC only inspects coalitions of size $0, 1, n-1,$ and $n$, it ignores intermediate-sized groups. Consequently, complex 3-way (or higher) feature interactions can be underrepresented, and a feature that only activates inside mid-sized groups could be mistakenly treated as boundary-inactive and given zero credit.
  • Discontinuity: Because the set of "boundary-active" features can suddenly change if a tiny marginal effect crosses zero, ESENSC is not strictly continuous everywhere.
  • Future directions: Extending ESENSC beyond tabular data (such as images or text) and systematically mapping out real-world model conditions where ESENSC and SHAP diverge.

Summary updated

BibTeX
@inproceedings{hiraki2026esensc,
  author = {Kazuhiro Hiraki and Shinichi Ishihara and Takumi Kongo and Junnosuke Shino},
  title = {{ESENSC: A Polynomial-Time Axiomatic Alternative to SHAP}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=EOUyLpw8l7},
}
Figure