Abstract
Truly understanding why a vision model makes a prediction requires moving beyond simple correlations to causal reasoning. This paper proposes a framework using "Distributional Causal Graphs" to generate counterfactual scenarios—asking "what if this specific trait were different?"—to pinpoint the exact semantic factors driving a model's output.
Introduction
Most current "explainable AI" (XAI) tools for computer vision rely on saliency maps, which highlight which pixels were important for a prediction. However, pixels are often uninterpretable to humans. We seek to understand high-level concepts: for instance, whether a model classified an individual based on specific facial features or environmental context.
The challenge is that these features are often correlated in observational data. Simply modifying a feature without accounting for the underlying causal structure can result in statistically impossible samples, leading to unpredictable model behavior. This research addresses the gap between observational explanations (what the model sees) and causal explanations (what actually drives the decision).
Methodology: Causal Counterfactuals
The proposed methodology relies on three main components to generate semantically meaningful explanations:
- Distributional Causal Graphs (DCG): Based on Structural Causal Models (SCMs), DCGs use Multilayer Perceptrons to model relationships between latent factors. Unlike previous approaches, a DCG outputs the parameters of a distribution, allowing the model to estimate the likelihood of specific configurations and utilize the reparameterization trick for efficient training.
- Interventions ($do$-calculus): To explain a prediction, the authors perform an intervention by manually setting a latent factor to a specific value (e.g., $do(X_2=x)$).
- Weak-Stability Sampling: This pragmatic approach to counterfactuals keeps non-descendant nodes fixed while resampling causally downstream nodes, ensuring the generated counterfactual remains consistent with the defined causal world.
Experimental Setup
Due to the limitations of current image generation in handling complex causal edits, the approach was validated using a synthetic 3D Shapes Dataset. This dataset contains 480,000 images with six distinct factors: object color, wall color, floor color, shape, scale, and orientation. The authors imposed an artificial causal hierarchy on these factors—such as making "Brightness" dependent on "Floor hue"—to test if the DCG could correctly identify causal drivers versus spurious correlations.
Results and Key Insights
The DCG successfully learned to approximate complex distributions, even in the presence of collider bias. A significant finding was the "Causal Blindness" in current GANs; models trained with adversarial losses often fail to generate rare feature combinations, hindering causal effect estimation. By intervening in the latent space of a causal model, the resulting explanations become semantically charged and human-interpretable.
In a diagnostic test where a classifier failed, 1D intervention analysis demonstrated that only one factor—Floor hue—was capable of flipping the model's prediction to the correct class. This definitively identified the floor color as the cause of the error, a conclusion unreachable via standard saliency methods.
Conclusion and Future Work
While promising, the framework faces a "Generator Gap": the lack of causal image generators that can handle low-probability feature combinations while maintaining image quality and anchoring to the original input. Scaling to real-world datasets remains a challenge, requiring either pre-defined causal knowledge or advanced causal discovery methods. Furthermore, the computational cost of generating numerous counterfactuals remains high compared to traditional gradient-based explanation methods.
Summary updated