HyConEx: Hypernetwork classifier with counterfactual explanations for tabular data
About
In recent years, there has been a growing interest in explainable AI methods. In addition to making accurate predictions, we also want to understand what the model's decision is based on. One of the fundamental levels of interpretability is to provide counterfactual examples explaining the rationale behind the decision and identifying which features, and to what extent, must be modified to alter the model's outcome. To address these requirements, we introduce HyConEx, a classification model based on deep hypernetworks specifically designed for tabular data. Owing to its unique architecture, HyConEx not only provides class predictions but also delivers local interpretations for individual data samples in the form of counterfactual examples that steer a given sample toward an alternative class. While many explainable methods generate counterfactuals for external models, there have been no interpretable classifiers simultaneously producing counterfactual samples so far. HyConEx achieves competitive performance on several metrics assessing classification accuracy and fulfilling the criteria of a proper counterfactual attack. This makes HyConEx a distinctive deep learning model, which combines predictions and explainers as an all-in-one neural network. The code is available at https://github.com/gmum/HyConEx.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Classification | blood-transfusion | AUROC76.9 | 16 | |
| Classification | Adult | ROC-AUC0.872 | 13 | |
| Counterfactual Explanation Generation | Wine | Validity1 | 9 | |
| Classification | credit-g 31 | AUROC0.799 | 8 | |
| Classification | kc1 1067 | AUROC80.9 | 8 | |
| Classification | vehicle 54 | AUROC94.6 | 8 | |
| Classification | cnae-9 | AUROC99.6 | 8 | |
| Classification | kr-vs-kp 3 | AUROC99.7 | 8 | |
| Classification | MFeat factors | AUROC99.9 | 8 | |
| Classification | sylvine 41146 | AUROC97.9 | 8 |