Skip to content
Book Open access

Realistic Counterfactual Explanations via Denial Constraints

Aug 2026 · Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V.2 · pp. 33-44 · 0 citations · 50 references
Computer Science

TL;DR

Algorithmically, explainable AI solutions are combined with ideas from data cleaning to yield CFs, with ideas from data cleaning that are adapted to this unique setting, to transform CFs into realistic ones.

Abstract

In the realm of Explainable AI, classification results are often explained via counterfactuals (CFs for short), which are (ideally small) perturbations to an instance that lead to a change of classification label. Such CFs may serve as explanations for the prediction, pinpointing the features that were important. Existing explainability solutions typically aim at minimizing the distance of CFs from the original instance so that they are specific to it; and/or maximizing the diversity of CFs to cover multiple facets of the reasons underlying the prediction. In this paper, we note that in pursuing these aims, state-of-the-art explainability solutions may (and often do) yield counterfactual explanations that do not correspond to realistic instances. This limits their applicability and usefulness in practice. To remedy this, we combine ideas from Explainable AI with ideas from data management. Specifically, we capture realism of CFs via logical constraints that hold with respect to a dataset of examples (e.g. training set); the class of such constraints that we focus on is that of denial constraints, extensively studied in the context of relational databases. Algorithmically, we then combine explainable AI solutions to yield CFs, with ideas from data cleaning that we adapt to this unique setting, to transform CFs into realistic ones. Extensive experiments across four datasets validate that our solutions achieve realism with relatively minor compromise in terms of distance and diversity. They further validate that the dedicated optimizations that we have developed to speed up the search for CFs are indeed highly effective.

Read PDF

Similar papers

#machine learning Preprint Sep 2026

FCx: An algorithm for finding Feasible Counterfactual Explanations

This approach is the first to efficiently generate CFs that are realistic, low-cost and feasible, and accommodates both hard feasible constraints, specified by domain knowledge users, and soft feasible constraints, inferred automatically via causal inference from the dataset.

Kleopatra Markou, V. Kalogeraki, Dimitrios Gunopulos · 0 citations
#artificial intelligence Preprint Aug 2026

Taking the Whys Seriously: Limitations of Counterfactual Explanations in Justification and Recourse

It is found that an organization's choices on measurement models for feature and labels, business requirements, model validation, and the metric of model success have as much or more impact on the generated counterfactuals as the specifics of the generating method.

Mattia Cerrato, Otto Sahlgren, Xenia Heilmann · 0 citations
2026

Evaluating the Robustness of Counterfactual Generating Methods for Tree-Based Ensembles

Counterfactuals (CFs) are a widely studied approach for explaining machine learning models. They aim to identify a set of minimal and meaningful perturbations in input features required to alter a prediction of a model, thereby offering insights into decision boundaries. For instance, a CF may describe the changes need...

R. Wijethunga, Vinura Galwaduge, A. Sadhu et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Diversified and Perceptible Counterfactual Examples Leveraging Expert Knowledge

A continuous data embedding in this linguistic domain is proposed and exploited to define a variant of DiCE that allows personalisation for the explainee, named DiCEf, and this extension of the DiCE method enables the generation of CFEs that are linguistically perceptible while preserving cost minimality, sparsity, and...

Akram Bensalem, Fahima Djelil, Marie-Jeanne Lesot et al. · 0 citations
#artificial intelligence Preprint Sep 2026

AVCG: A Generalized Variational Framework for Counterfactual Generation under Hypothesis Distributions

The Amortized Variational Counterfactual Generator (AVCG), a generalized optimization framework that formulates counterfactual generation as optimization over an arbitrary distribution of plausible predictive hypotheses rather than a single deterministic predictor, is proposed.

J. Duell, Alejandro Jimenez Rodriguez, Mahault Albarracin · 0 citations
#artificial intelligence Preprint Oct 2026

FlowCF: Sparse Counterfactual Explanations for Mixed-Type Tabular Data using Flow Matching

In the field of Explainable AI (XAI), counterfactual (CF) explanations interpret a model's decision by suggesting the changes to the input that would lead to a more favourable outcome. To be useful in practice, such an explanation should change few features and change them as little as possible, properties known as spa...

Emmanouil Panagiotou, E. Ntoutsi · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.