Learning Global Probabilistic Explanations

Frédéric Koriche, Louenas Bounia

TL;DR

Explaining a single prediction of a black-box model is computationally notorious, often leaving us with bloated rules or myopic approximations. By zooming out to ask which small handful of features drives a model's behavior on average across all inputs, this paper turns a computational nightmare into a tractable math problem. Using discrete Fourier analysis, the authors listen to the "frequencies" of a black-box classifier to uncover synergistic feature combinations that greedy algorithms completely miss.

What Problem Does This Paper Address?

Suppose a neural network denies a loan. A local explanation tells you why that specific applicant was rejected—say, their income was too low. Because humans can only juggle about four or five variables in working memory before hitting cognitive overload, we want concise explanations of size at most $k$. Unfortunately, finding the best $k$-feature local explanation is computationally brutal (NP-hard even for simple decision trees) and virtually impossible to approximate well.

What if we ask a global question instead? Which $k$ features, if we lock in their values, make the model's output as consistent and predictable as possible across the entire input distribution? Prior work tackled this using greedy forward selection (adding one helpful feature at a time) over small, fixed datasets. However, greedy methods lack look-ahead: if two features only matter when combined (like an XOR gate, or "High Income and Low Debt"), a greedy search sees zero benefit in picking either one alone and stalls out. Furthermore, sparse empirical datasets miss complex interactions hiding in the broader input space. The authors tackle the challenge of finding provably near-optimal global explanations over full-support discrete product distributions, accessing the classifier only as a black box.

Methods

The authors reframe explainability through the lens of signal processing. Just as a musical chord can be decomposed into individual sound frequencies, any function over discrete features can be broken down into a Fourier spectrum—a sum of basis functions capturing single features, pairs, triples, and higher-order interactions.

To turn this math into an algorithm—the Spectral Explainer (SE)—they combine standard learning-theory tools with novel extensions:

  • Orthonormal Bases (Standard): Using the Stieltjes procedure, they construct custom Fourier basis functions tailored to the marginal probability distributions of each discrete feature.
  • Integer Kushilevitz–Mansour (IKM) Algorithm (New Extension): Originally designed for uniform binary hypercubes, the authors extend the classic KM algorithm to arbitrary discrete alphabets and non-uniform product distributions. By querying the black-box model on strategically correlated pairs of inputs, IKM traverses a prefix tree to hunt down heavy Fourier coefficients while pruning dead-end branches. To prevent rare feature values from blowing up variance bounds, they integrate a Median-of-Means estimator.
Pseudocode of the Integer Kushilevitz–Mansour (IKM) tree-search algorithm for estimating heavy Fourier weights.
  • Pruning and Selection (Adapted): Inspired by Gopalan–Kalai–Klivans junta-learning, SE calculates the "restricted influence" of each variable up to degree $k$, throws out the uninfluential noise, and runs an exact search on the tiny surviving candidate pool.

Datasets

The authors test their explainer on two fronts:

  • Synthetic Benchmarks: Uniformly distributed discrete spaces featuring hidden parities (pure multi-feature XORs), noisy parities (5% flipped labels), and a newly designed Synergy Trap. The Synergy Trap pairs a mildly helpful "distractor" feature with a hidden parity—specifically engineered to bait greedy algorithms into a suboptimal local trap.
  • Real-World Benchmarks: Nine binary classification datasets from OpenML with 8 to 20 binarized features, including Breast Cancer (WI), Tic-Tac-Toe, COMPAS, Mushroom, and Credit-G. For each, the black box being explained is a trained neural network (one hidden layer of 100 ReLU units).

Key Insights and Ideas

  • Relevance is Fourier Energy: This is the core mathematical "aha!" moment. The global explanatory power of a feature subset $K$ is exact to the sum of squared Fourier coefficients ("spectral energy") supported on $K$. Finding the best explanation literally means capturing the loudest frequencies of the model.
  • Global is Easier than Local: Shifting from explaining one data point to explaining the average over the input space completely reshapes the complexity landscape. While the local version is intractable, the global version becomes fixed-parameter tractable (FPT) in the explanation size $k$, max alphabet size $c$, and accuracy $1/\epsilon$.
  • Beating the Curse of Alphabet Size: Even though a $d$-dimensional space with $c$ values per feature has $c^d$ possible frequencies, Parseval's identity caps the total spectral energy at 1. That means only a tiny, $c$-independent number of frequency branches can carry heavy weight at any tree depth, keeping query complexity polynomial in $d$ and $c^k$.

Key Results

  • Escaping the Synergy Trap: Across 40 synthetic runs, SE found the optimal synergistic feature set 100% of the time (0 error). The Greedy Explanation (GE) baseline took the bait, picking the lone distractor and stalling out at an error of 0.25 in 28 out of 30 runs (for $k \ge 3$).
  • Real-World Precision & Stability: Across all 270 runs on the nine OpenML neural networks, SE hit the exact mathematical optimum 246 times, versus 211 for GE. Better yet, SE is rock-solid: it returned the exact same explanation across repeated runs in all 45 (dataset, k) configurations, whereas GE was consistent in only 24.
  • Intuitive Explanations: On Tic-Tac-Toe ($k=3$), SE identified the center square and two corners—the exact squares participating in the maximum number of winning lines—whereas greedy selection frequently grabbed suboptimal corners.
  • The Speed Trade-off: Precision costs queries. While GE finishes in under a second, SE's query count scales with $c^{2k}/\epsilon^4$, taking between 4 and 41 minutes on 20-feature datasets at $k=5$ (even after calibrating sample sizes down by a factor of 100 from conservative theoretical bounds).

Limitations and Future Work

The authors highlight two main bottlenecks:

  1. Sample Complexity Scaling: Because sample sizes grow proportionally to $c^{2k}/\epsilon^4$, scaling to $d \approx 60$ takes hours. Furthermore, if a model's spectral energy is spread thinly across dozens of features, nothing survives the pruning step. Tighter, adaptive spectral estimators and solver-inspired pruning heuristics could help bridge the gap between conservative theory and fast practice.
  2. Independent Features Assumption: The framework assumes features are distributed independently (a product distribution). In reality, features like Age and Income correlate. Extending this integer Fourier machinery to correlated distributions—like Bayesian networks or probabilistic circuits—is a prime target for future work.

Summary updated

Abstract

Interpreting the predictions of complex black-box classifiers remains a central challenge in explainable artificial intelligence. While local explanations clarify individual predictions, there is a significant need for global probabilistic explanations that capture a model's overall behavior across the input distribution. Such an explanation is a small subset $K$ of features, whose relevance is measured by the expected probability, over a random input $\mathbf{x}$, that the classifier assigns the same label to $\mathbf{x}$ and to a random input agreeing with $\mathbf{x}$ on $K$. In this study, we investigate the task of identifying maximally relevant global explanations under a cardinality constraint, focusing on product distributions with full support on discrete feature spaces. We introduce a spectral explainer that leverages membership queries to the black-box classifier and employs Fourier-analytic, junta-learning methods to produce probably approximately correct (PAC) explanations. Our algorithm is fixed-parameter tractable with respect to the explanation size limit, maximum feature cardinality, and desired accuracy. Experiments on synthetic and real-world datasets confirm the theoretical guarantees and show that the spectral explainer outperforms a greedy baseline as the explanation size increases.
BibTeX
@inproceedings{koriche2026learning,
  author = {Frédéric Koriche and Louenas Bounia},
  title = {{Learning Global Probabilistic Explanations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=c2Ny586AOf},
}
Figure