A Geometric View of Counterfactual Behavior: Interaction of Boundary Proximity and Local Support

Ioanna Gemou, Matteo Gamba, Randall Balestriero, Ritambhara Singh
6/2/2026
cs.LG

No confident code implementation found for this paper.

Abstract

Counterfactual explanations seek small, semantically meaningful changes to an input that alter a model's prediction, and are widely used to interpret and audit machine learning systems. In modern vision, language, and multimodal systems, pretrained encoders map inputs to representation spaces, and downstream classifier heads impose decision boundaries within those spaces.

Show full abstract

As a result, the feasibility and distance of nearby counterfactuals depend on boundary placement relative to the data. Yet models with similar predictive performance can differ substantially in whether such changes are achievable and how far representations must move. This work examines this variation using a standardized local search probe across several pretrained encoders and linear classifier heads. Results show that despite similar predictive performance, models differ substantially in their counterfactual behavior. Under fixed representations, varying only the classifier head alters counterfactual outcomes while leaving predictive performance largely unchanged. This variation is explained by the interaction of decision-boundary proximity and local data support, which jointly determine whether prediction changes are both feasible and lie in regions supported by the data, and can also improve counterfactual search within fixed models. Together, these findings identify counterfactual behavior as a distinct dimension beyond predictive performance and show that it can be altered without changing accuracy, with implications for model selection, robustness, and the reliability of counterfactual methods.

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{gemou2026geometric,
  title  = {A Geometric View of Counterfactual Behavior: Interaction of Boundary Proximity and Local Support},
  author = {Ioanna Gemou and Matteo Gamba and Randall Balestriero and Ritambhara Singh},
  year   = {2026},
  eprint = {2606.04209},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.04209v1}
}

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

Discussion