Skip to main content
QUICK REVIEW

[Paper Review] ReLAX: Reinforcement Learning Agent eXplainer for Arbitrary Predictive Models

Ziheng Chen, Fabrizio Silvestri|arXiv (Cornell University)|Oct 22, 2021
Explainable Artificial Intelligence (XAI)Computer Science7 citations
TL;DR

ReLAX introduces a model-agnostic counterfactual explanation method using deep reinforcement learning with a discrete-continuous hybrid action space to generate sparse, feasible, and optimal counterfactuals for any black-box predictive model. It outperforms existing baselines in sparsity, scalability, and generalization across classification and regression tasks, and successfully recommends real-world public health interventions for reducing COVID-19 mortality risk.

ABSTRACT

Counterfactual examples (CFs) are one of the most popular methods for attaching post-hoc explanations to machine learning (ML) models. However, existing CF generation methods either exploit the internals of specific models or depend on each sample's neighborhood, thus they are hard to generalize for complex models and inefficient for large datasets. This work aims to overcome these limitations and introduces ReLAX, a model-agnostic algorithm to generate optimal counterfactual explanations. Specifically, we formulate the problem of crafting CFs as a sequential decision-making task and then find the optimal CFs via deep reinforcement learning (DRL) with discrete-continuous hybrid action space. Extensive experiments conducted on several tabular datasets have shown that ReLAX outperforms existing CF generation baselines, as it produces sparser counterfactuals, is more scalable to complex target models to explain, and generalizes to both classification and regression tasks. Finally, to demonstrate the usefulness of our method in a real-world use case, we leverage CFs generated by ReLAX to suggest actions that a country should take to reduce the risk of mortality due to COVID-19. Interestingly enough, the actions recommended by our method correspond to the strategies that many countries have actually implemented to counter the COVID-19 pandemic.

Motivation & Objective

  • To address the limitations of existing counterfactual generation methods that are model-specific, gradient-dependent, or neighborhood-reliant, which hinder generalization and scalability.
  • To develop a model-agnostic framework capable of generating optimal, sparse, and feasible counterfactuals for complex black-box models across both classification and regression tasks.
  • To formulate counterfactual generation as a sequential decision-making problem solvable via deep reinforcement learning with a hybrid action space.
  • To demonstrate practical utility by generating actionable policy recommendations for reducing COVID-19 mortality risk in real-world countries.

Proposed method

  • Formulate counterfactual generation as a sequential decision-making task where an agent selects features and change magnitudes to transform an input into a counterfactual with minimal perturbation.
  • Define a hybrid action space combining discrete actions (selecting which feature to modify) and continuous actions (setting the magnitude of change), enabling precise and feasible edits.
  • Use deep reinforcement learning with a hierarchical curiosity-driven exploration strategy to optimize the agent’s policy for maximizing reward, balancing prediction shift and proximity to the original instance.
  • Implement two variants: ReLAX-Global, which learns a generalized policy from a full training set, and ReLAX-Local, which fine-tunes a personalized policy via transfer learning for individual instances.
  • Constrain the agent to modify only actionable features and enforce plausible change directions (e.g., increasing nurse ratios, decreasing obesity rates) to ensure real-world feasibility.
  • Treat the black-box model as a reward function evaluator, allowing the method to be agnostic to model architecture or internal structure.

Experimental results

Research questions

  • RQ1Can a deep reinforcement learning agent effectively generate sparse and feasible counterfactuals for arbitrary black-box models without relying on model internals or local neighborhoods?
  • RQ2How does the performance of ReLAX compare to existing counterfactual generation baselines in terms of sparsity, proximity, and scalability across diverse tabular datasets?
  • RQ3Can ReLAX generate counterfactuals that yield meaningful, actionable, and empirically valid recommendations in real-world decision-making scenarios?
  • RQ4To what extent does the hybrid discrete-continuous action space improve the quality and feasibility of generated counterfactuals compared to prior methods?

Key findings

  • ReLAX outperforms all baseline methods across all standard metrics on five public tabular datasets, achieving superior performance in sparsity, proximity, and diversity of counterfactuals.
  • The average number of features modified per counterfactual is 1.67, with an average L1-norm proximity of 1.18, indicating highly sparse and close counterfactuals.
  • ReLAX-Local, fine-tuned via transfer learning, achieves better performance than ReLAX-Global on individual instance explanations, demonstrating the effectiveness of personalized policy adaptation.
  • The counterfactuals generated for high-risk countries suggest five key actionable changes: reducing death rate, unemployment, urban population rate, and obesity prevalence, and increasing nurse ratio per 10,000 people.
  • These recommendations align with actual policies adopted during the COVID-19 pandemic, such as U.S. efforts to recruit foreign nurses and public health strategies targeting obesity-related risks.
  • The XGBoost model used as the target black-box classifier achieved 85% accuracy on the test set, validating the robustness of the underlying predictive task.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.