DiCE-Extended: A Robust Approach to Counterfactual Explanations in Machine Learning

Volkan Bakir, Polat Goktas, Sureyya Akyuz
4/26/2025
cs.AIcs.LGcs.NE

No official code found. Best implementation: interpretml/DiCE (1,518 stars, MIT, last commit 2025-07-13).

Abstract

Explainable artificial intelligence (XAI) has become increasingly important in decision-critical domains such as healthcare, finance, and law. Counterfactual (CF) explanations, a key approach in XAI, provide users with actionable insights by suggesting minimal modifications to input features that lead to different model outcomes. Despite significant advancements, existing CF generation methods often struggle to balance proximity, diversity, and robustness, limiting their real-world applicability. A widely adopted framework, Diverse Counterfactual Explanations (DiCE), emphasizes diversity but lacks robustness, making CF explanations sensitive to perturbations and domain constraints. To address these challenges, we introduce DiCE-Extended, an enhanced CF explanation framework that integrates multi-objective optimization techniques to improve robustness while maintaining interpretability. Our approach introduces a novel robustness metric based on the Dice-Sørensen coefficient, enabling stability under small input variations. Additionally, we refine CF generation using weighted loss components (lambda_p, lambda_d, lambda_r) to balance proximity, diversity, and robustness. We empirically validate DiCE-Extended on benchmark datasets (COMPAS, Lending Club, German Credit, Adult Income) across multiple ML backends (Scikit-learn, PyTorch, TensorFlow). Results demonstrate improved CF validity, stability, and alignment with decision boundaries compared to standard DiCE-generated explanations. Our findings highlight the potential of DiCE-Extended in generating more reliable and interpretable CFs for high-stakes applications. Future work could explore adaptive optimization techniques and domain-specific constraints to further enhance CF generation in real-world scenarios

View on arXivView PDF

Code Implementations(1)

interpretml/DiCECommunity72%
MIT

Generate Diverse Counterfactual Explanations for any machine learning model.

1,518233PythonMay 2, 20191 years agoMIT
counterfactual-explanationsdeep-learningexplainable-aiexplainable-mlinterpretable-machine-learning+2 more

Similar Papers

Cite this paper

@article{bakir2025diceextended,
  title  = {DiCE-Extended: A Robust Approach to Counterfactual Explanations in Machine Learning},
  author = {Volkan Bakir and Polat Goktas and Sureyya Akyuz},
  year   = {2025},
  eprint = {2504.19027},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.19027v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.19027.svg)](https://codeofpaper.com/paper/2504.19027)

Discussion