Papers
Topics
Authors
Recent
Search
2000 character limit reached

HyperSHAP: Game-Theoretic HPO Analysis

Updated 13 January 2026
  • The paper introduces HyperSHAP as a game-theoretic framework that uses Shapley values to decompose hyperparameter optimization performance into main effects and interactions.
  • It employs specific explanation games—ablation, tunability, and sensitivity—to measure contributions and detect optimizer biases with both local and global analysis.
  • Empirical evaluations demonstrate that lower-order (pairwise or third-order) interactions robustly capture HPO dynamics, enabling improved hyperparameter space reduction and optimizer selection.

HyperSHAP is a game-theoretic framework for quantifying and explaining hyperparameter importance and interaction structure in hyperparameter optimization (HPO). It leverages Shapley values—originally formulated for cooperative game theory—to provide both local (per-configuration) and global (dataset-averaged) decompositions of HPO performance into additive main effects and interactions. The framework supports diverse analyses, including ablation, tunability, optimizer bias, and dynamic adaptation of the configuration space in multi-objective optimization (Wever et al., 3 Feb 2025, Theodorakopoulos et al., 6 Jan 2026).

1. Shapley Values and Interaction Indices in HPO

HyperSHAP models hyperparameters as players in a cooperative game, with the "payoff" defined via an explanation game ν:2NR\nu:2^{N}\rightarrow\mathbb{R} over coalitions SNS\subseteq N (where NN indexes the set of hyperparameters). The Shapley value ϕi(ν)\phi_i(\nu) uniquely allocates additive credit to each hyperparameter ii for the overall gain and satisfies efficiency, symmetry, linearity, and dummy axioms. Alternative expressions for the Shapley value include:

  • Permutation form:

ϕi(ν)=πPerm(N)1n![ν(Sπ(i){i})ν(Sπ(i))]\phi_i(\nu) = \sum_{\pi\in\text{Perm}(N)} \frac{1}{n!}\left[\nu(S_\pi(i)\cup\{i\}) - \nu(S_\pi(i))\right]

where Sπ(i)={jN:π(j)<π(i)}S_\pi(i) = \{j\in N: \pi(j)<\pi(i)\}.

  • Subset form:

ϕi(ν)=SN{i}S!(nS1)!n![ν(S{i})ν(S)]\phi_i(\nu) = \sum_{S\subseteq N\setminus\{i\}} \frac{|S|!(n-|S|-1)!}{n!}\left[\nu(S\cup\{i\})-\nu(S)\right]

Pairwise Shapley interaction indices ϕi,j(ν)\phi_{i,j}(\nu) capture non-additive effects:

ϕi,j(ν)=SN{i,j}S!(nS2)!2(n1)!(ν(S{i,j})ν(S{i})ν(S{j})+ν(S))\phi_{i,j}(\nu) = \sum_{S\subseteq N\setminus\{i,j\}} \frac{|S|!(n - |S| - 2)!}{2(n-1)!}\left(\nu(S\cup\{i,j\}) - \nu(S\cup\{i\}) - \nu(S\cup\{j\}) + \nu(S)\right)

Higher-order interactions up to order SNS\subseteq N0 can be defined, with SNS\subseteq N1 recovering the full Möbius transform across SNS\subseteq N2 pure interactions.

2. HyperSHAP Explanation Games: Ablation, Tunability, and Sensitivity

Several specific explanation games are constructed:

  • Ablation Game (SNS\subseteq N3): Measures the contribution of SNS\subseteq N4 by evaluating the performance of a target configuration SNS\subseteq N5 relative to a baseline SNS\subseteq N6, with only parameters in SNS\subseteq N7 set to SNS\subseteq N8. This quantifies ablation-style, post-hoc attributions:

SNS\subseteq N9

  • Tunability Game (NN0): Captures the maximal benefit of tuning NN1, holding other parameters at the baseline:

NN2

This game is monotone in NN3, and Shapley values decompose the total tunability gain from NN4 to the global optimum.

  • Sensitivity Game (NN5): Based on variance decomposition, often yielding different attributions from tunability, especially when domains differ.

The Shapley decomposition satisfies the efficiency property:

NN6

where for the tunability game, NN7 and NN8.

3. Global and Local Explanations: Algorithms and Computational Aspects

HyperSHAP distinguishes between local explanations (per specific configuration or trial) and global explanations (averaged over datasets or configurations):

  • Local: Fixes NN9 and applies the ablation game.
  • Global: Aggregates results from ablation or tunability games across datasets or multiple configurations.

For global tunability explanations, the following algorithmic outline is used: ϕi(ν)=πPerm(N)1n![ν(Sπ(i){i})ν(Sπ(i))]\phi_i(\nu) = \sum_{\pi\in\text{Perm}(N)} \frac{1}{n!}\left[\nu(S_\pi(i)\cup\{i\}) - \nu(S_\pi(i))\right]5 Sampling-based Shapley estimators and k-additive truncation (with ϕi(ν)\phi_i(\nu)0) using the Faithful Shapley Interaction Index (FSII) are employed to reduce computational cost for large ϕi(ν)\phi_i(\nu)1 (Wever et al., 3 Feb 2025).

4. Empirical Evaluation: Benchmarks, Interactions, and Optimizer Insights

HyperSHAP has demonstrated utility across benchmarks such as:

  • lcbench (Auto-PyTorch CNN tuning on 34 vision datasets)
  • rbv2_ranger (random-forest tuning on 119 tasks)
  • PD1 (transformers and image-classifier tuning)
  • JAHS-Bench-201 (joint architecture+HPO tasks)

Key empirical findings include:

  • Higher-order Möbius interactions exist but are robustly summarized by pairwise or third-order interactions (ϕi(ν)\phi_i(\nu)2 at ϕi(ν)\phi_i(\nu)3), with lower-order effects typically dominating.
  • Negative pairwise ϕi(ν)\phi_i(\nu)4 values often identify redundancy, indicating that two hyperparameters both provide improvements but not in a fully additive manner.
  • The "optimizer bias" game, comparing surrogate-based tunability to actual optimizer performance, identifies synergistic effects missed by specific optimizers (e.g., independent tuning yields zero ϕi(ν)\phi_i(\nu)5 but nonzero ϕi(ν)\phi_i(\nu)6).
  • Downstream, restricting HPO runs to top hyperparameters as identified by HyperSHAP outperforms selections by functional-ANOVA or variance-based methods in anytime performance (Wever et al., 3 Feb 2025).

5. Scalability, Approximation, and Computational Complexity

Computing exact Shapley attributions for ϕi(ν)\phi_i(\nu)7 hyperparameters requires ϕi(ν)\phi_i(\nu)8 evaluations per value function, which is intractable for ϕi(ν)\phi_i(\nu)9. HyperSHAP addresses this with:

  • Surrogate-based HPO (e.g., YAHPO-Gym) for efficient performance simulation.
  • Random search approximations for ii0 in tunability games.
  • Monte-Carlo estimators for the Shapley value, sampling coalitions or permutations instead of full enumeration.
  • Restricting to ii1-additive (typically ii2 or ii3) interactions for practical computation; for ii4–ii5, full enumeration remains feasible.

Typical computational times range from 5–125 s (ablation), 350–30,000 s (tunability), and up to 10,000 s for multi-dataset tunability, given single-CPU operation and sampling-based estimators (Wever et al., 3 Feb 2025).

6. Dynamic Importance in Multi-Objective Optimization

HyperSHAP has been adapted for dynamic importance estimation in multi-objective optimization (MOO), as in HPI-ParEGO (Theodorakopoulos et al., 6 Jan 2026). In this context:

  • Each hyperparameter is a player in a cooperative game where the payoff is improvement in a surrogate-predicted scalarized objective (via ParEGO scalarization).
  • At each ParEGO iteration, HyperSHAP samples subsets ii6, estimates marginal contributions of each ii7 to improvement, and aggregates these to derive an importance vector ii8.
  • The configuration space is dynamically reduced by fixing hyperparameters with low ii9, determined via a "Symmetric-0.8" schedule (aggressive reduction during the middle third of trials).
  • Empirical evaluation on PyMOO (ZDT1–4, ZDT6) and YAHPO-Gym (LCBench and rbv2_ranger) demonstrates faster convergence and improved Pareto front quality relative to standard ParEGO, MO-TPE, NSGA-II, and DE baselines.

The computational overhead of HyperSHAP in HPI-ParEGO scales as ϕi(ν)=πPerm(N)1n![ν(Sπ(i){i})ν(Sπ(i))]\phi_i(\nu) = \sum_{\pi\in\text{Perm}(N)} \frac{1}{n!}\left[\nu(S_\pi(i)\cup\{i\}) - \nu(S_\pi(i))\right]0, where ϕi(ν)=πPerm(N)1n![ν(Sπ(i){i})ν(Sπ(i))]\phi_i(\nu) = \sum_{\pi\in\text{Perm}(N)} \frac{1}{n!}\left[\nu(S_\pi(i)\cup\{i\}) - \nu(S_\pi(i))\right]1 is the Monte-Carlo sample count and ϕi(ν)=πPerm(N)1n![ν(Sπ(i){i})ν(Sπ(i))]\phi_i(\nu) = \sum_{\pi\in\text{Perm}(N)} \frac{1}{n!}\left[\nu(S_\pi(i)\cup\{i\}) - \nu(S_\pi(i))\right]2 the number of hyperparameters. This is substantially lower than that of real function evaluations (Theodorakopoulos et al., 6 Jan 2026).

7. Assumptions, Limitations, and Generalization

HyperSHAP's validity depends on several assumptions:

  • The baseline configuration ϕi(ν)=πPerm(N)1n![ν(Sπ(i){i})ν(Sπ(i))]\phi_i(\nu) = \sum_{\pi\in\text{Perm}(N)} \frac{1}{n!}\left[\nu(S_\pi(i)\cup\{i\}) - \nu(S_\pi(i))\right]3 must be representative; alternatives with marginal or conditional baselines are possible.
  • The surrogate model for performance prediction should approximate the true learner’s performance with sufficient fidelity.
  • The monotonicity of the tunability game is required for nonnegativity and interpretability of ϕi(ν)=πPerm(N)1n![ν(Sπ(i){i})ν(Sπ(i))]\phi_i(\nu) = \sum_{\pi\in\text{Perm}(N)} \frac{1}{n!}\left[\nu(S_\pi(i)\cup\{i\}) - \nu(S_\pi(i))\right]4.
  • Approximate attributions rely on adequate sampling; very high-dimensional settings may require further truncation or alternative approaches.

A plausible implication is that the Faithful Shapley Interaction Index (FSII) approach, combined with aggressive configuration space adaptation, enables scalable application of HyperSHAP even in the presence of many objectives or large parameter sets.


References:

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to HyperSHAP.