Enabling Regional Explainability by Automatic and Model-agnostic Rule Extraction

Yu Chen, Tianyu Cui, Alexander Capstick, Nan Fletcher-Lloyd, Payam M. BarnaghiarXiv 2024

Abstract

In Explainable AI, rule extraction translates model knowledge into logical rules, such as IF-THEN statements, crucial for understanding patterns learned by black-box models. This could significantly aid in fields like disease diagnosis, disease progression estimation, or drug discovery. However, such application domains often contain imbalanced data, with the class of interest underrepresented. Existing methods inevitably compromise the performance of rules for the minor class to maximise the overall performance. As the first attempt in this field, we propose a model-agnostic approach for extracting rules from specific subgroups of data, featuring automatic rule generation for numerical features. This method enhances the regional explainability of machine learning models and offers wider applicability compared to existing methods. We additionally introduce a new method for selecting features to compose rules, reducing computational costs in high-dimensional spaces. Experiments across various datasets and models demonstrate the effectiveness of our methods.

Introduction

As machine learning models become increasingly complex, the need for transparency—especially in high-stakes fields like medicine and finance—has never been greater. Rule extraction is a cornerstone of Explainable AI (XAI), offering human-readable logical statements (e.g., "IF Blood Sugar > 120, THEN Predict Diabetes") that allow domain experts to verify model logic.

However, traditional rule extraction methods face two significant challenges. First, they typically focus on "global" explanations, attempting to describe the entire model's behavior. In imbalanced datasets, this often leads to the "Minority Class Compromise," where the logic governing rare but critical events is ignored to maximize overall accuracy. Second, handling continuous numerical data usually requires manual "binning" or discretization, which can be arbitrary and fail to capture complex feature interactions.

To address these gaps, we introduce AMORE (Automatic and Model-agnostic Regional Rule Extraction). AMORE shifts the focus from global to regional explainability, ensuring that rare events are explained with high precision without requiring manual data preprocessing.

Conceptual overview of regional rule extraction from a black-box model to provide human-interpretable insights.

The AMORE Framework

AMORE is designed to be model-agnostic, meaning it can extract rules from any architecture, from simple Logistic Regression to complex Graph Neural Networks (GNNs). The framework operates through three primary stages:

1. Feature Selection

To maintain computational efficiency in high-dimensional spaces, AMORE identifies the most influential features for a specific target subgroup. It utilizes attribution methods like Integrated Gradients for differentiable models, or SHAP and LIME for non-differentiable ones, to rank features based on their impact on the model’s regional decisions.

2. Automatic Rule Generation

Unlike traditional methods that rely on pre-defined categories, AMORE employs a histogram-based search to identify optimal intervals for numerical features. It searches for "peak" density ratios where the target class is most prevalent and iteratively expands these ranges to maximize the probability of the target outcome.

3. Probabilistic Decomposition

Real-world data involves complex interactions between variables. AMORE uses the chain rule of conditional probability to decompose multi-feature interactions into a sequence of simpler, rule-based operations. This allows the system to generate multi-step rules that reflect how features work together rather than in isolation.

The rule generation process showing how intervals are selected and conditioned across multiple features to maximize target probability.

Experimental Results

We validated AMORE across five diverse tasks, including tabular diabetes data, time-series sepsis prediction, molecular toxicity graphs, and image classification (MNIST and Brain Tumor MRI). To evaluate performance, we introduced a Fitness metric that balances "Support" (the number of samples covered) and "Confidence" (the accuracy of the rule).

Key findings include:

  • Superior Accuracy: In diabetes prediction, AMORE achieved a 99.3% confidence level, vastly outperforming the Decision Tree baseline of 51.5%.
  • Scalability: In sepsis prediction involving nearly 10,000 features, AMORE successfully extracted high-fitness rules, demonstrating its capability in high-dimensional temporal data.
  • Latent Space Explainability: For image-based models, AMORE was applied to the model's internal latent representations. This allowed the extraction of rules based on high-level concepts learned by the model, such as identifying specific regions in an MRI scan that the model associates with "normal" brain function.

Conclusion and Future Work

AMORE provides a robust solution for regional explainability, particularly in contexts where data is imbalanced and features are continuous. By focusing on specific subgroups, it provides more precise and trustworthy explanations than global alternatives.

Current limitations include the need for hyperparameter tuning (minimum support and maximum rule length) via grid search. Future research will focus on automating this tuning process and extending the framework to capture dynamic temporal patterns, such as the rate of change in a patient's vital signs over time.

Summary updated

BibTeX
@misc{chen2024enabling,
  author = {Yu Chen and Tianyu Cui and Alexander Capstick and Nan Fletcher-Lloyd and Payam M. Barnaghi},
  title = {{Enabling Regional Explainability by Automatic and Model-agnostic Rule Extraction}},
  year = {2024},
  eprint = {2406.17885},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.17885},
}
Figure