Causal Analysis for Robust Interpretability of Neural Networks

Ola Ahmad, Nicolas Béreux, Vahid Hashemi, Freddy Lécué · DOI

Introduction

Deep Neural Networks (DNNs) have achieved state-of-the-art performance across a variety of complex tasks, yet they remain notoriously difficult to interpret. As these models are increasingly deployed in high-stakes environments like autonomous driving and medical diagnostics, the need for robust interpretability becomes paramount.

Currently, the most prevalent tools for understanding DNNs are attribution or saliency methods (e.g., heatmaps). These methods identify which input pixels correlate with a specific prediction. However, they suffer from two critical flaws: instability and a lack of causal grounding. Saliency maps are often highly sensitive to infinitesimal noise, and more importantly, they highlight correlations rather than the underlying causal logic of the network's internal circuitry. This paper addresses these gaps by proposing a framework based on causal interventions within the model's internal layers.

Methodology: Path Interventions and Causal Graphs

Rather than treating the network as a static mapping from input to output, the authors treat it as a biological system subject to intervention. The core of their approach is the path intervention technique.

Treatment Effect (TE)

The researchers quantify the "causal impact" of specific internal nodes (neurons or filters) by measuring the Treatment Effect (TE). This involves systematically manipulating the weights ($W$) or filters—for instance, by attenuating or blocking the signal—and observing the resulting change in the model's output. A node is considered causally significant if its modification leads to a substantial shift in the predicted class probability.

Top-Down Path Selection

Testing every possible pathway in a deep network would lead to a combinatorial explosion. To make the process computationally tractable, the authors employ a top-down heuristic. They begin at the final output layer (the predicted class) and work backward through the network. At each layer, they identify only the "necessary" nodes that significantly impact the target class, filtering out noisy or distracting neurons that do not contribute to the model's core logic.

Causal Explanatory Graphs

The final output of this process is a task-specific Causal Explanatory Graph. This graph maps the essential internal machinery required for a specific prediction, providing a stable and "repairable" understanding of the model's decision-making process.

Experimental Setup and Results

The authors validated their causal framework across several standard architectures, including LeNet (MNIST), ResNet, MobileNetV2, and ConvNeXt (CIFAR10 and ImageNet).

Stability and Faithfulness

A key metric used to evaluate the explanations is the Lipschitz Estimate, which measures how much an explanation changes when the input is slightly perturbed. The causal explanatory graphs demonstrated significantly lower variance and higher stability compared to gradient-based methods like Integrated Gradients (IG) or RISE. Qualitatively, the causal method produces much cleaner focus on relevant objects compared to the noisy outputs of traditional saliency maps.

Qualitative comparison of interpretability methods on an ImageNet sample.

In Iterative Removal of Features (IROF) tests, the causal explanations proved more "faithful" to the model's actual logic. Furthermore, the authors found that masking just the top 20% of identified "critical" causal neurons caused model accuracy to drop to near zero, confirming that they had successfully isolated the prediction's functional "engine."

Model Repair without Retraining

One of the most significant contributions of this work is the demonstration of model repair. By identifying "noisy" filters that negatively impact performance on specific samples, the authors showed that it is possible to improve a pre-trained model's accuracy simply by masking those filters during inference. In tests using LeNet on MNIST, this approach successfully recovered accuracy on previously misclassified samples without requiring any retraining.

Discussion and Future Work

While the method provides a robust internal map of model logic, the authors acknowledge that human interpretability remains a challenge; a causally important filter may still appear as abstract noise to a human observer. Future research will focus on extracting higher-level human abstractions from these causal paths.

Additionally, while the top-down heuristic improves efficiency, the computational cost of interventions in extremely deep networks remains higher than simple gradient passes. The authors suggest that these causal insights could be transformative for fields like continual learning and few-shot learning, where identifying and preserving critical neurons is essential to prevent catastrophic forgetting.

Summary updated

BibTeX
@misc{ahmad2023causal,
  author = {Ola Ahmad and Nicolas Béreux and Vahid Hashemi and Freddy Lécué},
  title = {{Causal Analysis for Robust Interpretability of Neural Networks}},
  year = {2023},
  eprint = {2305.08950},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.08950},
}
Figure