ReLAX: Reinforcement Learning Agent Explainer for Arbitrary Predictive Models

Ziheng Chen, Fabrizio Silvestri, Jia Wang, He Zhu, Hongshik Ahn, Gabriele Tolomei

TL;DR

This paper introduces ReLAX, a novel model-agnostic method for generating counterfactual explanations using deep reinforcement learning. ReLAX treats explanation generation as a sequential decision-making problem, allowing it to explain any black-box model efficiently and produce more interpretable, actionable insights, as demonstrated by its application to COVID-19 mortality risk reduction.

What Problem Does This Paper Address?

Machine learning models, especially complex ones like deep neural networks, often operate as "black boxes," making it difficult to understand why they make certain predictions. Counterfactual explanations (CFs) aim to address this by identifying the minimal changes to an input that would alter the model's prediction. However, existing CF generation methods often rely on specific model internals (making them not model-agnostic), require access to gradients, or are computationally inefficient for large datasets and complex models. This limits their practical applicability for explaining arbitrary predictive models.

Methods

The core innovation of ReLAX is framing the counterfactual explanation generation as a sequential decision-making problem, solvable with deep reinforcement learning (DRL).

  • Model-Agnostic Approach: ReLAX treats the predictive model being explained as an opaque "environment." The DRL agent interacts with this environment by taking actions (modifying input features) and receiving rewards based on whether the prediction changes and how "close" the modified instance is to the original.
  • Sequential Decision-Making: The process is modeled as a Markov Decision Process (MDP). The agent's state includes the current modified instance and a record of which features have been altered. Actions involve selecting a feature to modify and determining the magnitude of the change.
  • Discrete-Continuous Hybrid Action Space: To handle feature selection (discrete) and magnitude adjustment (continuous), ReLAX employs a hierarchical DRL approach.
  • Curiosity-Driven Exploration: To overcome the sparse reward problem inherent in DRL, ReLAX incorporates a hierarchical curiosity-driven exploration mechanism. This encourages the agent to explore novel states and actions, leading to more effective learning.
  • Two Variants:
    • RELAX-GLOBAL: Learns a generalized policy for generating CFs across a dataset.
  • RELAX-LOCAL: Fine-tunes a pre-trained GLOBAL policy for generating CFs for a specific target instance, leveraging transfer learning.

Datasets

The paper evaluates ReLAX on five public tabular datasets:

  • Breast Cancer
  • Diabetes
  • Sonar
  • Wave
  • Boston Housing (for regression)

Additionally, a new dataset was created for the COVID-19 mortality risk case study, comprising 17 country-level demographic features from 156 countries.

Key Insights and Ideas

  • DRL as a Universal Explainer: Framing CF generation as a DRL problem provides a powerful, model-agnostic way to explain arbitrary black-box models, overcoming limitations of gradient-based or model-specific methods.
  • Actionable and Interpretable CFs: By optimizing for both prediction change and minimal feature perturbation (sparsity), ReLAX generates CFs that are more likely to be feasible and human-interpretable.
  • Efficiency Gains: ReLAX demonstrates significant improvements in generation time compared to existing model-agnostic baselines, making it scalable for larger datasets.
  • Robustness to Model Complexity: ReLAX's performance is shown to be robust to variations in the target model's architecture (e.g., MLP size), unlike some other methods that rely on model internals.
  • Practical Impact: The COVID-19 case study highlights how ReLAX can translate complex model insights into concrete, actionable policy recommendations that align with real-world strategies.

Key Results

  • ReLAX consistently outperforms existing CF generation baselines (including model-specific and model-agnostic methods) across multiple standard evaluation metrics: Validity, Proximity, and Sparsity.
  • RELAX-GLOBAL and RELAX-LOCAL achieve a better sparsity-validity trade-off than baselines.
  • ReLAX generates valid CFs that are approximately 40% sparser than state-of-the-art techniques.
  • ReLAX achieves this with up to 42% less CF generation time compared to other model-agnostic methods.
  • Pretraining RELAX-GLOBAL significantly reduces the CF generation time for RELAX-LOCAL.
  • In the COVID-19 case study, ReLAX suggested five main changes to reduce mortality risk, including decreasing death rate, unemployment rate, and urban population, and increasing nurse rate, which are sensible and align with observed country strategies.

Limitations and Future Work

  • Non-tabular Data: The current ReLAX framework is designed for tabular data. Future work aims to extend it to other data modalities like images.
  • Comparison with Non-CF Methods: The authors suggest comparing ReLAX against non-counterfactual explanation approaches like SHAP and LIME.
  • Actionability Constraints: While ReLAX considers actionability, further research could explore more sophisticated ways to incorporate domain-specific constraints into the explanation generation process.

Summary updated

BibTeX
@inproceedings{chen2022relax,
  author = {Ziheng Chen and Fabrizio Silvestri and Jia Wang and He Zhu and Hongshik Ahn and Gabriele Tolomei},
  title = {{ReLAX: Reinforcement Learning Agent Explainer for Arbitrary Predictive Models}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  doi = {10.1145/3511808.3557429},
}
Figure