Estimator benchmark

Six estimators (mc, complementary, neyman_cc, leverage, kernel_banzhaf, proxy) against exact values on five ten-player games, 50 seeds each. examples/estimator_comparison.ipynb (Examples) regenerates the figure and tables.

Setup

Reference games, 10 players, drawn with NumPy seed 0

Game

\(v(S)\)

additive

\(\sum_{i \in S} w_i\), with \(w_i \sim U(-1, 2)\)

pairwise

additive plus \(\sum_{i < j;\, i, j \in S} a_{ij}\), with \(a_{ij} \sim U(-1, 1)\)

airport

\(\max_{i \in S} c_i\), with \(c_i \sim U(1, 10)\)

weighted voting

1 if \(\sum_{i \in S} q_i > \tfrac{1}{2} \sum_i q_i\), else 0; votes \(q_i \in \{1, \dots, 5\}\)

unanimity

\(\sum_k b_k [T_k \subseteq S]\) over 12 random sets \(T_k\) of 1 to 4 players, with \(b_k \sim U(-1, 2)\)

  • Reference: exact values from all \(2^{10} = 1024\) coalitions.

  • Budget: \(\alpha n\) coalitions (budget.per_player: α); all but mc floor it at \(2n + 2 = 22\), i.e. \(\alpha = 2\).

  • rel. ℓ₂: \(\lVert \hat\phi - \phi \rVert_2 / \lVert \phi \rVert_2\).

  • top-5: share of the true top five by \(|\phi_i|\) that the estimate also ranks top five.

  • gap: \(|\sum_i \hat\phi_i - (v(N) - v(\emptyset))| / |v(N) - v(\emptyset)|\). Banzhaf values need not add up, so there it is no error.

  • spread: standard deviation of rel. ℓ₂ over seeds.

  • Cells average the five games and, except spread, the 50 seeds.

Results

Small multiples against the budget alpha from 2 to 32 on a log axis. Top row Shapley, bottom row Banzhaf. Relative l2 error mostly falls and top-5 overlap mostly rises; at alpha 4 top-5 dips for mc (both rows), complementary and neyman_cc. The Shapley efficiency gap of mc and neyman_cc falls towards zero while leverage stays at zero.

Mean over five games and 50 seeds; band: error ± spread; dotted line: the \(2n + 2\) floor. No Banzhaf gap panel. examples/estimator_comparison.ipynb, mllm-shap 0.11.3, seeds 0 to 49.

Shapley

Shapley estimand

estimator

α

rel. ℓ₂

top-5

gap

spread

mc

2

0.787

0.84

0.665

0.000

mc

4

0.562

0.73

0.234

0.159

mc

8

0.296

0.83

0.066

0.079

mc

16

0.170

0.88

0.027

0.042

mc

32

0.092

0.93

0.010

0.024

complementary

2

0.540

0.76

0.000

0.000

complementary

4

0.414

0.70

0.020

0.059

complementary

8

0.352

0.80

0.039

0.089

complementary

16

0.217

0.85

0.034

0.052

complementary

32

0.134

0.90

0.020

0.035

neyman_cc

2

0.540

0.76

0.000

0.000

neyman_cc

4

0.567

0.70

0.209

0.095

neyman_cc

8

0.426

0.74

0.065

0.098

neyman_cc

16

0.190

0.86

0.021

0.048

neyman_cc

32

0.109

0.92

0.009

0.023

leverage

2

1.249

0.75

0.000

0.694

leverage

4

0.537

0.84

0.000

0.142

leverage

8

0.270

0.90

0.000

0.077

leverage

16

0.150

0.94

0.000

0.035

leverage

32

0.081

0.96

0.000

0.019

proxy

2

0.746

0.67

0.012

0.261

proxy

4

0.465

0.76

0.024

0.117

proxy

8

0.222

0.85

0.009

0.071

proxy

16

0.107

0.93

0.004

0.028

proxy

32

0.054

0.97

0.001

0.013

Banzhaf

Banzhaf estimand

estimator

α

rel. ℓ₂

top-5

gap

spread

mc

2

1.527

0.84

0.665

0.000

mc

4

0.980

0.61

0.708

0.347

mc

8

0.442

0.74

0.530

0.121

mc

16

0.258

0.83

0.471

0.068

mc

32

0.152

0.89

0.450

0.037

kernel_banzhaf

2

1.072

0.75

0.055

0.713

kernel_banzhaf

4

0.362

0.86

0.218

0.098

kernel_banzhaf

8

0.177

0.92

0.330

0.047

kernel_banzhaf

16

0.100

0.95

0.382

0.027

kernel_banzhaf

32

0.061

0.97

0.408

0.017

proxy

2

0.730

0.67

0.193

0.192

proxy

4

0.462

0.75

0.259

0.123

proxy

8

0.242

0.85

0.309

0.068

proxy

16

0.128

0.92

0.368

0.033

proxy

32

0.070

0.95

0.404

0.018

Reading the results

  • leverage is under-determined at \(\alpha = 2\); use \(\alpha \geq 4\).

  • Shapley, lowest error from \(\alpha = 8\): proxy, then leverage (adds up at every budget), then mc (no extra dependency). neyman_cc beats complementary from \(\alpha = 16\).

  • Banzhaf: kernel_banzhaf is best from \(\alpha = 4\), proxy at \(\alpha = 2\); both beat mc.

  • Rankings depend on the game: rerun the notebook on a game like your prompts before fixing a budget.