NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Explainable AI needs formalization

Stefan Haufe, Rick Wilming, Benedict Clark, Rustam Zhumagambetov, Ahcène Boubekki, Jörg Martin, Danny Panknin

TL;DR

Current Explainable AI (XAI) methods often fail because they lack formal problem definitions, leading to "explanations" that highlight features with zero statistical association to the target. The authors argue for a shift from an "algorithm-first" paradigm to a requirement-driven development process that ensures XAI tools actually serve their intended purposes, such as model diagnostics or scientific discovery.

What Problem Does This Paper Address?

We are increasingly deploying machine learning (ML) in high-stakes domains like medicine and finance, driven by regulations like the European AI Act that demand interpretability. The field of XAI has stepped up to provide these "human-understandable" descriptions. However, the authors argue that XAI is currently in a state of crisis.

The core issue is a lack of formalization. Most XAI methods are developed "algorithm-first"—someone creates a clever way to attribute importance to features, and then researchers try to find uses for it. This has led to a fundamental gap: popular methods (like SHAP or LIME) often attribute high importance to "suppressor variables"—features that have no statistical relationship with the target variable but are used by the model to cancel out noise in other features. If a doctor or engineer misinterprets these suppressors as being predictive or causal, the consequences could be disastrous.

Methods

The paper provides a theoretical critique of the current XAI landscape and proposes a new path forward.

  1. The Statistical Association Property (SAP): The authors introduce the SAP as a necessary formal criterion. A method possesses SAP if a non-zero importance score ($e_j$) for a feature ($x_j$) implies a statistical association with the target ($y$).
  2. Theoretical Analysis of Suppressors: Using minimal 2D classification examples, the authors prove that Bayes-optimal models can assign arbitrarily high weights to features that are independent of the target.
  3. A Requirement-Driven Framework: They propose a six-step systematic process for XAI development:
  4. Assess use-case-specific information needs.
  5. Define formal requirements and XAI problems.
  6. Design methods to solve those specific problems.
  7. Perform theoretical analysis against formal requirements.
  8. Empirically validate using ground-truth benchmarks.
  9. Optimize for secondary desiderata like robustness.

Datasets

The paper primarily uses synthetic "minimal examples" to demonstrate theoretical failures.

  • Example A: A 2D classification problem where one feature ($X_1$) is correlated with the target, and a second feature ($X_2$) is independent of the target but correlated with the noise in $X_1$.
  • Example B: A generative model ($X_1 = Y - X_2$) where $X_2$ is independent of $Y$.

The authors also reference several existing benchmarks used to validate their claims, including GECOBench (gender-controlled text), synthetic brain lesions in MRI data, and CLEVR-XAI.

Key Insights and Ideas

  • The Suppressor Trap: Models often use features not because they carry information about the target, but to "denoise" other features. Current XAI methods cannot distinguish between these two roles.
  • Faithfulness is Not Correctness: A common metric for XAI is "faithfulness"—does the explanation accurately reflect what the model is doing? The authors argue that a method can be perfectly faithful to a model's internal logic while being completely "incorrect" for a user who needs to know which features actually relate to the real-world outcome.
  • The Causal Necessity: You cannot meaningfully interpret a model's behavior without knowing the causal structure of the training data. As shown in Figure 1, the same model weights can have entirely different meanings depending on whether a feature is a predictor or a suppressor.
Causal structure and data distributions showing how suppressor variables $X_2$ can appear important despite having no class-related information.
  • Human Judgment is a Flawed Baseline: Validating XAI by asking humans if an explanation "makes sense" is dangerous. Humans are prone to confirmation bias and may trust an incorrect explanation if it aligns with their existing (potentially wrong) beliefs.

Key Results

The most striking result is a "hall of shame" (Table 1) of popular XAI methods that systematically fail the Statistical Association Property (SAP).

Table 1: Summary of the results of Kindermans et al. [21] and Wilming et al. [22]. Various popular feature attribution methods systematically attribute non-zero importance to suppressor variables that have no statistical association to the target variable. For Shapley values, this property may depend on the chosen value function.

The authors demonstrate that methods including Shapley Values, SHAP, LIME, Integrated Gradients, and LRP all fail to reliably distinguish between features that are statistically associated with the target and those that are merely used for denoising. This failure prohibits using these methods for scientific discovery or identifying intervention targets.

Limitations and Future Work

The authors acknowledge that formalization is difficult. Specifically:

  • Identifiability: Some formal requirements (like identifying causal recourse) may require perfect knowledge of the data-generating process, which is rarely available in the real world.
  • Consensus: Defining "correctness" requires interdisciplinary agreement between ML developers, domain experts, and regulators.

Future work should focus on developing use-case-specific formal specifications and creating objective metrics that move beyond simple "faithfulness" to address the actual information needs of stakeholders.

Summary updated

BibTeX
@misc{haufe2024explainable,
  author = {Stefan Haufe and Rick Wilming and Benedict Clark and Rustam Zhumagambetov and Ahcène Boubekki and Jörg Martin and Danny Panknin},
  title = {{Explainable AI needs formalization}},
  year = {2024},
  eprint = {2409.14590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.14590},
}
Figure