Exact estimation¶
ExactEstimator scores every coalition and hands the
payoffs to an estimand plugin: ground truth for sampling estimators on short prompts.
Enumeration scope¶
\(n\) players need all \(2^n\) coalitions: 64 for “Cancel my old phone plan
today”, over a million at \(n = 20\). ExplainRunner scores
\(v(N)\) from the base generation (the unmasked prompt’s output) at no extra call. With
the full table Shapley values add up exactly (Shapley values and axioms).
Estimand delegation¶
The plugin (Shapley, Banzhaf or a semivalue) weights the marginal contributions. Samplers
use the same plugins, so exact is their reference.
Legacy parity¶
Shapley values match PreciseShapExplainer of
legacy MLLM-Shap on additive games; both
use the full \(2^n\) table. Other differences: Coming from legacy MLLM-Shap.
Further reading¶
Estimand definitions: Estimands: Shapley vs Banzhaf
Cooperative-game foundations: Cooperative games
Usage: Using the exact estimator
API:
ExactEstimator