[Paper Review] Semantics and explanation: why counterfactual explanations produce adversarial examples in deep neural networks
This paper resolves the paradox that counterfactual explanations—valued in explainable AI (XAI) for their human interpretability—are formally equivalent to adversarial examples, which undermine model robustness. It argues that the explanatory power of counterfactuals stems from semantics in hidden layer representations, not just computation, and identifies the lack of reliable semantics in deep neural networks as a core blind spot in XAI research.
Recent papers in explainable AI have made a compelling case for counterfactual modes of explanation. While counterfactual explanations appear to be extremely effective in some instances, they are formally equivalent to adversarial examples. This presents an apparent paradox for explainability researchers: if these two procedures are formally equivalent, what accounts for the explanatory divide apparent between counterfactual explanations and adversarial examples? We resolve this paradox by placing emphasis back on the semantics of counterfactual expressions. Producing satisfactory explanations for deep learning systems will require that we find ways to interpret the semantics of hidden layer representations in deep neural networks.
Motivation & Objective
- To resolve the explanatory divide: why counterfactual explanations are effective for human understanding while equivalent computations produce adversarial examples that break models.
- To argue that the effectiveness of counterfactual explanations depends not on computational structure alone, but on the presence of semantics in hidden representations.
- To identify the absence of reliable semantics in deep neural network hidden layers as a fundamental blind spot in current XAI research.
- To advocate for integrating semantic interpretation of hidden units into existing XAI methods to improve both interpretability and model robustness.
- To examine whether hidden unit representations in DNNs can be meaningfully mapped to human-understandable concepts, and what this implies for explainability.
Proposed method
- Formal equivalence is established between counterfactual explanations (as defined by Wachter et al.) and adversarial example generation, both relying on small, targeted perturbations in input space.
- The paper uses semantic theory from semiotics (Morris, Wittgenstein) to define semantics as the relation between representations and their meanings, distinguishing it from syntactic or pragmatic relations.
- It evaluates existing interpretability techniques—activation maximization, saliency maps, and feature visualization (e.g., Olah et al.)—to assess whether hidden units can be linked to human concepts.
- The analysis draws on empirical findings from visualizing neurons in DNNs (e.g., Olah et al. 2017, 2018), including cases of polysemantic units (e.g., neurons responding to both cats and cars).
- The paper proposes that counterfactual explanations should be generated not in pixel space, but in semantically meaningful directions within the hidden feature space, if such semantics can be discovered.
- It argues that current XAI methods are computationally sufficient but fail because they lack semantic grounding—highlighting the need to discover or construct semantics in hidden representations.
Experimental results
Research questions
- RQ1Why do counterfactual explanations appear effective for human understanding despite being formally equivalent to adversarial examples?
- RQ2What role does semantics play in distinguishing the explanatory power of counterfactuals from the brittleness of adversarial examples?
- RQ3To what extent can hidden layer representations in deep neural networks be mapped to human-understandable concepts (i.e., semantics)?
- RQ4Why has the XAI field prioritized computational methods over semantic interpretation, and what are the consequences of this oversight?
- RQ5Can we generate counterfactual explanations that are both semantically meaningful and robust by operating in the semantic space of hidden representations?
Key findings
- Counterfactual explanations and adversarial examples are formally equivalent: both involve small, targeted perturbations to inputs that shift model predictions.
- The explanatory power of counterfactuals arises not from their computational form but from their semantic content—perturbations that align with human concepts like 'whiskers' or 'sports ball'.
- Empirical evidence shows that while some hidden units in DNNs do correlate with human concepts (e.g., a neuron responding to multiple types of sports balls), such cases are rare and often polysemantic.
- Many hidden units exhibit no discernible semantics, and even when they do, the mapping is fragile and not reliably discoverable with current methods.
- The field’s focus on computational techniques (e.g., saliency maps, feature visualization) has not resolved the core issue: the lack of consistent, interpretable semantics in hidden representations.
- The paper concludes that without discovering or constructing semantics in hidden layers, XAI cannot achieve robust, human-meaningful explanations, even with existing computational tools.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.