Generalizability vs. Counterfactual Explainability Trade-Off

Fabiano Veglianti, Flavio Giorgi, Fabrizio Silvestri, Gabriele Tolomei
5/29/2025
cs.LG

No confident code implementation found for this paper.

Abstract

In this work, we investigate the relationship between model generalization and counterfactual explainability in supervised learning. We introduce the notion of $\varepsilon$-valid counterfactual probability ($\varepsilon$-VCP) -- the probability of finding perturbations of a data point within its $\varepsilon$-neighborhood that result in a label change.

Show full abstract

We provide a theoretical analysis of $\varepsilon$-VCP in relation to the geometry of the model's decision boundary, showing that $\varepsilon$-VCP tends to increase with model overfitting. Our findings establish a rigorous connection between poor generalization and the ease of counterfactual generation, revealing an inherent trade-off between generalization and counterfactual explainability. Empirical results validate our theory, suggesting $\varepsilon$-VCP as a practical proxy for quantitatively characterizing overfitting.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{veglianti2025generalizability,
  title  = {Generalizability vs. Counterfactual Explainability Trade-Off},
  author = {Fabiano Veglianti and Flavio Giorgi and Fabrizio Silvestri and Gabriele Tolomei},
  year   = {2025},
  eprint = {2505.23225},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.23225v1}
}

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/2505.23225.svg)](https://codeofpaper.com/paper/2505.23225)

Discussion