TL;DR
Finding the absolute smallest set of features that provably guarantees a neural network's prediction is usually computationally impossible due to exponential worst-case complexity. This paper introduces a novel algorithm specifically for Neural Additive Models (NAMs) that slashes this complexity from exponential to logarithmic. The result is a fast, mathematically guaranteed way to generate the smallest possible explanations, making NAMs highly trustworthy for safety-critical applications.
The Challenge: Provable Explanations
In high-stakes domains like healthcare or finance, it isn't enough for an AI explanation to "look right"—it needs to be mathematically guaranteed. A gold standard in formal Explainable AI (XAI) is finding a provably sufficient explanation: a subset of input features that, if kept fixed, guarantees the model's prediction will not change, no matter what happens to the other features.
Naturally, we want the smallest possible subset of features that provides this guarantee, known as a cardinally-minimal explanation. However, for standard neural networks, finding this globally smallest subset requires an exponential number of NP-hard verification queries. Because this is computationally intractable, prior research has settled for finding subset-minimal explanations—a weaker, "local minimum" guarantee where removing any single feature breaks the explanation, but the overall set might still be much larger than necessary.
This paper asks: can we achieve the gold-standard cardinally-minimal explanations efficiently if we use a more inherently interpretable neural network architecture?
The Solution: Exploiting NAM Structure
The authors focus on Neural Additive Models (NAMs). In a NAM, each input feature is passed through its own small, independent neural network (a univariate component), and their outputs are simply summed together to make the final prediction.
The authors exploit this additive structure to design a two-stage algorithm that avoids verifying the entire massive network over and over:
- Parallel Interval Importance Sorting: Instead of looking at the whole model, the algorithm looks at each feature's tiny univariate network independently. Using a neural network verifier and binary search, it calculates the absolute worst-case shift each feature could cause toward flipping the model's prediction. This allows the algorithm to perfectly sort the features by their "importance" (their potential to change the outcome).
- Logarithmic Explanation Search: Because the features are now perfectly sorted by their worst-case impact, the algorithm doesn't need to check every possible combination of features. It simply performs a binary search over the sorted list to find the exact cut-off point where the top features form a sufficient explanation.
What's new: This reduces the number of full-model verification queries from $O(2^n)$ (exponential) to $O(\log n)$ (logarithmic), making the impossible possible.
Key Insights and Ideas
- Structure is a computational superpower: By restricting the architecture to NAMs, an intractable problem becomes highly tractable. The additive nature allows the algorithm to isolate features and parallelize the hardest mathematical proofs.
- Solving a harder problem, faster: Because the algorithm is so efficient, it actually finds the globally smallest (cardinally-minimal) explanation faster than previous algorithms could find a locally smallest (subset-minimal) one.
- Sampling is dangerous for XAI: Standard ways to interpret NAMs involve sampling the univariate functions to plot them visually. The authors show this discretization can easily miss sharp peaks or extrema. If you rely on sampling, you might think a feature is safe to ignore, but an adversarial or edge-case input could hit a hidden peak and flip the prediction. Formal verification catches these hidden behaviors.
Key Results
The authors evaluated their approach on standard tabular benchmarks commonly used in the NAM literature, including Breast Cancer, CREDIT, and FICO HELOC datasets.
- Massive Speedups & Smaller Explanations: On the Breast Cancer dataset, the new method found explanations of size 4.00 in ~35 seconds. In contrast, standard subset-minimal baselines found much larger explanations (size ~16.5) and took vastly longer (~635 seconds).
- 100% Sufficiency Guarantee: The authors compared their formal verification approach to a purely sampling-based approach. On the CREDIT and FICO HELOC datasets, the sampling-based explanations failed to actually guarantee the prediction 68% and 74% of the time, respectively. The proposed method guarantees 100% sufficiency by design.
Limitations and Future Work
Like all formal XAI methods, this approach relies on backend neural network verifiers (they used $\alpha$-$\beta$-CROWN). While the algorithm drastically reduces the number of queries, the speed is still bottlenecked by how fast the verifier can process the individual networks. Additionally, complete verifiers can sometimes struggle with numeric tolerances and timeout restrictions during the binary search phase.
The authors view this as a first step toward designing highly expressive models that are built from the ground up to support efficient, provable explanations. Future work will likely explore extending these logarithmic verification techniques to other interpretable neural network families.
Summary updated