mlsanityData to 14 Oct 2026

Class-Aware Reinforcement Learning for Counterfactual Explanation Generation

arXiv 2607.27905 ↗First posted 30 Jul 2026cs.LG cs.AIcited by 0

On the map: Deep reinforcement learning methods → Interpretable and logic-guided RL

Abstract (arXiv)

Counterfactual explanations (CFEs) enhance the interpretability of black-box models by generating alternative instances with adjusted feature values that achieve a contrastive outcome. Reinforcement learning (RL) offers a promising approach for CFE generation, enabling efficient exploration of counterfactual instances while ensuring control over key metrics like validity, sparsity, and proximity. Previous studies have formulated RL states exclusively using features derived from the predictors in the supervised dataset. This study explores the impact of including an instance's predicted class, alongside features derived from the predictors, in the RL state representation for generating CFEs. The hypothesis is that class-awareness enhances exploration efficiency and improves policy optimality. We compare the proposed class-aware RL method with the class-blind RL method, which is similar but excludes the instance's class information from the state representation. The comparison was conducted using seven datasets from diverse domains, varying in size. The results show that during training, class-aware RL offers benefits in terms of convergence speed, reward optimization, and episode length reduction. Moreover, it generates significantly more valid CFEs compared to class-blind RL. Finally, the instance's class-based feature consistently ranks among the most influential predictors in RL's action-selection, as shown by the SHAP and LIME values, underscoring the significance of class-awareness in RL for CFE generation. The impact is heightened clarity, faster learning, improved validity, and more effective counterfactual generation across diverse datasets.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Interpretable and logic-guided RL, one of 15 directions in Deep reinforcement learning methods. Builds on 24 of its 43 references that are in the map. First posted on arXiv 30 Jul 2026.

Builds on

24 of 43 references.

References · 24

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  3. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  4. 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,089
  5. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 614
  6. 2019FACE: Feasible and Actionable Counterfactual Explanationscited by 233
  7. 2016Understanding Neural Networks through Representation Erasurecited by 224
  8. 2019The What-If Tool: Interactive Probing of Machine Learning Modelscited by 207
  9. 2020Multi-Objective Counterfactual Explanationscited by 157
  10. 2021NICE: An Algorithm for Nearest Instance Counterfactual Explanationscited by 62
  11. 2018Interpretable Credit Application Predictions With Counterfactual Explanationscited by 43
  12. 2021GeCo: Quality Counterfactual Explanations in Real Timecited by 32
12 more
  1. 2021ReLAX: Reinforcement Learning Agent eXplainer for Arbitrary Predictive Modelscited by 25
  2. 2022VCNet: A self-explaining model for realistic counterfactual generationcited by 20
  3. 2023Provably Robust and Plausible Counterfactual Explanations for Neural Networks via Robust Optimisationcited by 20
  4. 2021Counterfactual Explanations as Interventions in Latent Spacecited by 18
  5. 2021CARE: Coherent Actionable Recourse based on Sound Counterfactual Explanationscited by 17
  6. 2021CounterNet: End-to-End Training of Prediction Aware Counterfactual Explanationscited by 17
  7. 2021Model-agnostic and Scalable Counterfactual Explanations via Reinforcement Learningcited by 15
  8. 2024A Survey of Explainable Artificial Intelligence (XAI) in Financial Time Series Forecastingcited by 14
  9. 2021DisCERN:Discovering Counterfactual Explanations using Relevance Features from Neighbourhoodscited by 10
  10. 2021Counterfactual Explanation with Multi-Agent Reinforcement Learning for Drug Target Predictioncited by 8
  11. 2024TABCF: Counterfactual Explanations for Tabular Data Using a Transformer-Based VAEcited by 8
  12. 2020Explaining Deep Graph Networks with Molecular Counterfactualscited by 6

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Counterfactual Explanations for Continuous Action Reinforcement Learning
  2. 2024ACTER: Diverse and Actionable Counterfactual Sequences for Explaining and Diagnosing RL Policies
  3. 2026Explaining Reinforcement Learning Decisions in Self-adaptive Systems
  4. 2024No Dtrain: Model-Agnostic Counterfactual Explanations Using Reinforcement Learning
  5. 2024Enhancing RL Safety with Counterfactual LLM Reasoning
  6. 2024Explaining Reinforcement Learning: A Counterfactual Shapley Values Approach
  7. 2024SAFE-RL: Saliency-Aware Counterfactual Explainer for Deep Reinforcement Learning Policies
  8. 2024Semifactual Explanations for Reinforcement Learning