[Paper Review] Generative causal explanations of black-box classifiers
This paper proposes a generative causal explanation framework for black-box classifiers that learns a disentangled, low-dimensional latent representation to produce both global and local causal explanations. By optimizing a joint objective balancing data fidelity and causal influence via mutual information, the method generates realistic, distribution-compliant counterfactuals that reveal which latent factors causally affect classifier decisions, outperforming saliency maps in interpretability and validity.
We develop a method for generating causal post-hoc explanations of black-box classifiers based on a learned low-dimensional representation of the data. The explanation is causal in the sense that changing learned latent factors produces a change in the classifier output statistics. To construct these explanations, we design a learning framework that leverages a generative model and information-theoretic measures of causal influence. Our objective function encourages both the generative model to faithfully represent the data distribution and the latent factors to have a large causal influence on the classifier output. Our method learns both global and local explanations, is compatible with any classifier that admits class probabilities and a gradient, and does not require labeled attributes or knowledge of causal structure. Using carefully controlled test cases, we provide intuition that illuminates the function of our objective. We then demonstrate the practical utility of our method on image recognition tasks.
Motivation & Objective
- To develop a post-hoc explanation method that provides causal, counterfactual explanations for black-box classifiers without requiring labeled attributes or known causal structure.
- To address the challenge of generating meaningful counterfactuals by ensuring they remain within the data distribution, avoiding implausible or unrealistic perturbations.
- To unify global and local explanation capabilities through a single generative model that learns disentangled latent factors with measurable causal influence on classifier outputs.
- To formalize causal influence using information-theoretic measures, specifically mutual information between latent factors and classifier outputs, within a structural causal model framework.
- To enable practical, interpretable explanations in vision tasks by generating realistic image samples that reflect causal changes in latent factors.
Proposed method
- The method employs a variational autoencoder (VAE) to learn a disentangled, low-dimensional latent representation of input data, enabling control over specific data aspects.
- A joint optimization objective is used that balances data fidelity (reconstruction quality) and causal influence, with the latter measured via mutual information $I(\alpha; Y)$ between latent factors $\alpha$ and classifier outputs $Y$.
- The framework uses a structural causal model (SCM) to formalize the causal relationships, ensuring that changes in latent factors directly affect classifier outputs when they are causally relevant.
- The generative model maps from the learned latent space back to the data space, allowing the synthesis of realistic counterfactual samples that reflect causal changes.
- The method is compatible with any classifier that provides class probabilities and gradients, enabling end-to-end training and explanation generation.
- The optimization is regularized via a hyperparameter $\lambda$ to balance the trade-off between faithful data reconstruction and strong causal influence in the latent space.
Experimental results
Research questions
- RQ1Can a generative model be trained to produce counterfactual explanations that are both realistic and causally meaningful, without relying on labeled attributes or known causal structures?
- RQ2How can causal influence of latent factors on classifier outputs be rigorously quantified and optimized in a black-box setting?
- RQ3To what extent can disentangled latent representations improve the interpretability and expressiveness of post-hoc explanations compared to saliency maps or feature attribution methods?
- RQ4What is the relationship between model capacity (e.g., number of filters in a VAE) and the ability to simultaneously achieve high data fidelity and strong causal influence?
- RQ5Can the method generate both global explanations (via factor manipulation across the data manifold) and local explanations (for individual predictions) using the same framework?
Key findings
- The method successfully learns disentangled latent factors where changes in specific factors (e.g., color) produce measurable, consistent changes in classifier output, while changes in others (e.g., shape) do not, demonstrating causal control.
- With sufficient model capacity (e.g., 64 filters per layer), the generated samples closely resemble training data, and the causal factors align with classifier-relevant aspects, as shown in qualitative results.
- For the 3-class Fashion-MNIST classifier, a mutual information value of $I(\alpha; Y) = 1.03$ nats resulted in a bound on prediction error of $\pi(Y|\alpha) \leq 0.05$, indicating that the causal factors explain at least 95% of the black-box classifier’s behavior.
- Insufficient model capacity (e.g., 8 filters per layer) led to poor data reconstruction and weak correspondence between latent factors and classifier behavior, demonstrating the importance of capacity for valid explanations.
- The framework outperforms saliency maps in interpretability, as it generates realistic, semantically meaningful counterfactuals rather than sparse, noisy attribution maps.
- The method enables both global and local explanations: global via factor-wise manipulation across the latent space, and local via latent codes corresponding to individual inputs.
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.