Skip to content

v1.9.0 (2026-12-03)

Latest

Choose a tag to compare

@mmschlk mmschlk released this 03 Dec 05:42
· 1 commit to main since this release
fc94eab

v1.9.0 (2026-12-03)

GraphSHAP-IQ for Graph Neural Networks #550

Adds GraphSHAP-IQ in shapiq.graph for exact Shapley values and interactions of the nodes of graph neural networks (Muschalik et al., 2025).

  • GraphExplainer explains torch_geometric models with a graph-level output, and shapiq.Explainer picks it automatically for models with message passing layers.
  • As for trees, a graph is converted into an internal representation, the GraphModel (edges, node features, and the radius of the receptive fields). The new GraphBaselineImputer, a BaselineImputer whose players are the nodes, gives absent nodes the baseline node features.
  • GraphSHAPIQ computes the values of any game that is local on a graph without needing torch. With max_interaction_size, it approximates them with fewer evaluations while keeping them efficient.
  • shapiq_games and shapiq_benchmark gain graph games: shapiq_games.GraphGame, the GraphComputer of their exact values with GraphSHAP-IQ (chosen by default_computer for games that are local on the graph), and GraphSetup, which trains a GCN, GIN, or GAT on a TUDataset graph classification dataset (load_graph_dataset, e.g. "MUTAG" or "PROTEINS"). Their exact values are feasible for graphs far beyond the 25 players of brute force.
  • torch_geometric graphs and models need the new extra shapiq[graph].
image

New Features

  • adds approximator="exact" to TabularExplainer, AgnosticExplainer, TabPFNExplainer, and shapiq.Explainer, which computes the exact values with ExactComputer for all indices. It evaluates all 2**n_features coalitions per explanation and ignores the budget, so it is meant for a small number of features. "auto" is unchanged. #634, #320
  • adds scatter_2d_plot for pairwise interactions. beeswarm_plot, scatter_plot, and scatter_2d_plot now also take an InteractionValuesBatch directly. #613

Breaking Changes

  • removes "CHII" from ProxySHAP (and from approximator="proxyshap" of the explainers). Code that asks ProxySHAP for index="CHII" now raises at construction. Only tree proxies could compute it, not the linear proxy or the MSR residual adjustment. ProxySHAP and ProxySPEX now support the same indices, those of the MoebiusConverter. For "CHII" estimates, use SHAPIQ or SVARMIQ (see the fix below). #637

Bugfixes

  • fixes the "CHII" estimates of SHAPIQ and SVARMIQ, which were wrong even with a budget of all 2**n coalitions. The Monte Carlo approximators weighted the discrete derivatives with s / t, the coefficient of the Moebius representation of the chaining interaction index, instead of its cardinal-index weight s * (s + t - 1)! * (n - s - t)! / n!. #643
  • fixes SPEX and Sparse with index="k-SII" aggregating the values twice. The MoebiusConverter already returned k-SII values, but they were labelled with the approximation index "SII" and aggregated to k-SII a second time. #665
  • fixes BaselineImputer with a baseline given directly (a vector or a single row) keeping an empty_prediction of 0. The game was not centered, and explanations of TabularExplainer with such a baseline had a baseline value of 0. #646
  • fixes SPEX and Sparse ignoring random_state. The sparse transform drew its random queries from numpy's global random state, so the same random_state gave different results. The global state is now seeded from random_state for the transform and restored afterwards, so seeded runs are reproducible but differ from earlier seeded runs. #645
  • fixes shapiq.Explainer crashing with a TypeError for every shapiq.Game (e.g. DummyGame or ImageClassifier). It now passes the game on to AgnosticExplainer and warns that data and class_index are ignored for games. AgnosticExplainer now validates index and max_order like TabularExplainer (warning on mismatches such as index="SV", max_order=2), and .index/.max_order report the validated values instead of always "SV" and 1. #638
  • fixes ProxySHAP and ProxySPEX accepting indices they cannot compute (e.g. "kADD-SHAP") and failing only in approximate(). Both now declare their valid_indices and reject other indices at construction. #637
  • fixes bar_plot dropping the first feature for explanations without a base value (e.g. min_order=1). #636
  • fixes waterfall_plot highlighting only the last feature value of an interaction label. Previously, only the text after the last = of a label was drawn in black, so for Age=25 x Sex=m only m stood out. Now the text after each feature's = is black, and the text before it and the x separators are gray (for labels without =, the names are black and the separators gray). The feature_names docstring now recommends feature=value labels (e.g. "Age=25", with abbreviate=False), which highlight the value, instead of the previous advice of value=feature labels (e.g. "25=Age"), which highlighted the name. Both formats still render, since the part after = is always the black one. #663

All PRs

  • Docs: center the landing page logo on small screens, at twice the size by @mmschlk in #628
  • Docs: a finger on a logo player pulls it instead of scrolling the page by @mmschlk in #629
  • Docs: a hero image of SigLIP 2 explained as in FIxLIP, in the README and on the landing page by @mmschlk in #630
  • Docs: use California housing in the LightGBM example instead of OpenML by @mmschlk in #635
  • Add scatter_2d_plot for pairwise interactions by @raashish1601 in #613
  • Docs: add the example "Games from Machine Learning Models" by @mmschlk in #632
  • Fix bar_plot dropping the first feature without a baseline by @mmschlk in #636
  • Explainers: compute exact values with approximator="exact" by @mmschlk in #634
  • Proxy approximators: reject unsupported indices at construction by @mmschlk in #637
  • Docs: timeline lanes for fANOVA, gradients and regional explanations, and a clean bibliography by @mmschlk in #639
  • Fix shapiq.Explainer crashing for every shapiq.Game by @mmschlk in #638
  • Code quality: run the ruff of uv.lock in pre-commit, and fix its findings by @mmschlk in #640
  • CI: run the full matrix only when a pull request needs it by @mmschlk in #641
  • Fix SPEX ignoring random_state, and log the CPU on Windows runners by @mmschlk in #645
  • Bump pypa/gh-action-pypi-publish from 1.14.2 to 1.14.3 by @dependabot[bot] in #644
  • Fix BaselineImputer not setting empty_prediction with a vector. by @mmschlk in #646
  • Docs: an interactive FIxLIP explanation on the landing page by @mmschlk in #642
  • GraphShapIQ Implementation by @Proman9000 in #550
  • Fix the CHII weight of the Monte Carlo approximators (SHAPIQ, SVARMIQ) by @flyingdoubleG in #643
  • Docs: the new shapiq logo by @mmschlk in #647
  • Docs: the stacked logo in the README by @mmschlk in #648
  • Docs: the shapiq logo v2 and its rings-and-bands animation by @mmschlk in #652
  • Docs: the orders demo, from the Shapley values to the full decomposition by @mmschlk in #655
  • Docs: the orders demo's plot in Safari, and no flicker on the card by @mmschlk in #656
  • Orders demo: a map of the houses, a card that can be inspected, and three photos up to order 10 by @mmschlk in #657
  • docs(fixlip demo): inline info box and stable caption layout by @mmschlk in #658
  • FIxLIP demo: a write-up that explains the demo step by step by @mmschlk in #660
  • ci(build): build Apple Silicon wheels on macos-15 by @mmschlk in #662
  • FIxLIP demo page: plain scrolling, no jump on load, Definition 1 as in the paper by @mmschlk in #661
  • Fixed interactions labels in waterfall plots by @martinrohbeck in #663
  • Fix double k-SII aggregation in Sparse/SPEX approximator by @chenyangsu in #665
  • Changelog for v1.9.0 by @mmschlk in #664

New Contributors

Full Changelog: v1.8.0...v1.9.0