Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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.

Patryk Marsza{\l}ek, Kamil Ksi\k{a}\.zek, Oleksii Furman, Ulvi Movsum-zada, Przemys{\l}aw Spurek, Marek \'Smieja• 2025

Related benchmarks

TaskDatasetResultRank
Classificationblood-transfusion
AUROC76.9
16
ClassificationAdult
ROC-AUC0.872
13
Counterfactual Explanation GenerationWine
Validity1
9
Classificationcredit-g 31
AUROC0.799
8
Classificationkc1 1067
AUROC80.9
8
Classificationvehicle 54
AUROC94.6
8
Classificationcnae-9
AUROC99.6
8
Classificationkr-vs-kp 3
AUROC99.7
8
ClassificationMFeat factors
AUROC99.9
8
Classificationsylvine 41146
AUROC97.9
8
Showing 10 of 29 rows

Other info

Follow for update