Explaining Decisions in ML Models: a Parameterized Complexity Analysis (Part I)

Sebastian Ordyniak, Giacomo Paesani, Mateusz Rychlicki, Stefan Szeider · DOI

Introduction

As machine learning systems are increasingly integrated into high-stakes decision-making processes—ranging from healthcare to legal sentencing—the "right to an explanation" has transitioned from a moral desideratum to a legal mandate, exemplified by the EU AI Act. However, a critical gap exists in our mathematical understanding of explainability: we lack a rigorous framework to determine which models can be efficiently explained and under what conditions. This paper addresses this gap by applying the lens of parameterized complexity to transparent machine learning models.

The Computational Challenge: Transparency vs. Tractability

A common misconception in Explainable AI (XAI) is that "white-box" models, such as decision trees or sets, are inherently easy to explain because their internal logic is visible. This research demonstrates that transparency does not guarantee tractability. Even when every rule is accessible, the task of finding a "minimal explanation"—the smallest set of features responsible for a specific decision—is often NP-hard.

Methodology: Parameterized Complexity

To move beyond a binary "hard vs. easy" classification, the authors employ Parameterized Complexity Analysis. This approach identifies specific structural parameters that, when bounded, might make an otherwise intractable problem solvable in polynomial time (Fixed-Parameter Tractable, or FPT).

Table 1: Definitions of parameters used to analyze the complexity of generating explanations.

The authors introduce two primary theoretical tools:

  1. Algorithmic Meta-Theorem: By representing ML models as Boolean Circuits and applying Monadic Second-Order Logic ($MSOE_1$), they prove that many explanation tasks are FPT relative to the circuit's "rank-width."
  2. Hardness Meta-Framework: Through "set-modelling" and "subset-modelling," they establish that explaining certain model classes is as difficult as solving fundamental combinatorial problems like Hitting Set.

Key Findings: The Complexity Landscape

The research reveals a nuanced "complexity landscape" where the topology of a model's logic is a better predictor of explainability than the sheer number of rules it contains.

Decision Trees vs. Decision Sets

Surprisingly, Decision Sets and Lists—often viewed as simpler due to their flat structure—are computationally harder to explain than Decision Trees. While most local explanation tasks for trees are in P, finding subset-minimal contrastive explanations for sets is NP-hard.

The Impact of Ensembles

Ensembling models (e.g., Random Forests) significantly elevates computational complexity. When parameterized by the number of models in the ensemble, many tasks remain tractable, but they quickly become intractable as the internal size of the ensemble elements increases.

Extracted table from page 7 of Explaining Decisions in ML Models: a Parameterized Complexity Analysis (Part I)

Conclusion

This work provides a foundational theoretical map for XAI, proving that the difficulty of explaining a model is deeply linked to its underlying logical structure. By identifying the specific parameters that drive complexity, the authors offer a roadmap for designing models that are not just "transparent" in theory, but truly explainable in practice. Future work will extend this analysis to Binary Decision Diagrams (BDDs) and weighted ensemble methods.

Summary updated

BibTeX
@inproceedings{ordyniak2024explaining,
  author = {Sebastian Ordyniak and Giacomo Paesani and Mateusz Rychlicki and Stefan Szeider},
  title = {{Explaining Decisions in ML Models: a Parameterized Complexity Analysis (Part I)}},
  booktitle = {KR},
  year = {2024},
  doi = {10.24963/kr.2024/53},
}
Figure