Skip to main content
QUICK REVIEW

[Paper Review] Explaining Deep Learning Models using Causal Inference

Tanmayee Narendra, Anush Sankaran|arXiv (Cornell University)|Nov 11, 2018
Adversarial Robustness in Machine LearningComputer Science18 references28 citations
TL;DR

This paper proposes a causal inference framework using Structural Causal Models (SCMs) to explain convolutional neural networks (CNNs) by quantitatively ranking filter importance through counterfactual interventions. It constructs a one-time causal abstraction of CNNs—without retraining—to predict performance changes when filters are set to zero, achieving up to 92.4% accuracy in SCM predictions on CIFAR-10.

ABSTRACT

Although deep learning models have been successfully applied to a variety of tasks, due to the millions of parameters, they are becoming increasingly opaque and complex. In order to establish trust for their widespread commercial use, it is important to formalize a principled framework to reason over these models. In this work, we use ideas from causal inference to describe a general framework to reason over CNN models. Specifically, we build a Structural Causal Model (SCM) as an abstraction over a specific aspect of the CNN. We also formulate a method to quantitatively rank the filters of a convolution layer according to their counterfactual importance. We illustrate our approach with popular CNN architectures such as LeNet5, VGG19, and ResNet32.

Motivation & Objective

  • To address the opacity of deep learning models by providing a principled, causal framework for interpreting CNN behavior.
  • To overcome limitations of existing saliency-based methods that cannot answer 'what-if' or counterfactual questions about model components.
  • To enable quantitative ranking of filter importance in CNNs without retraining the model after interventions.
  • To validate the causal abstraction using model accuracy as a metric, ensuring fidelity to the original DNN's behavior.
  • To demonstrate the framework’s utility in model compression, transfer learning, and hyperparameter prediction without retraining.

Proposed method

  • Construct a Structural Causal Model (SCM) as an abstraction over a CNN’s filter responses, using the Frobenius norm of feature maps as a sufficient statistic.
  • Use linear regression to approximate structural equations in the SCM, modeling the relationship between filter responses and model accuracy.
  • Perform counterfactual interventions by setting the Frobenius norm of a specific filter to zero and measuring the resulting accuracy drop.
  • Rank filters by their impact on accuracy: lower accuracy post-intervention indicates higher filter importance.
  • Validate the SCM by comparing its predicted accuracy drop to the actual drop observed in the original DNN after filter removal.
  • Use binary transformation and Frobenius norm transformation to explore different abstraction levels, favoring the latter due to better performance.

Experimental results

Research questions

  • RQ1How can causal inference be used to explain the influence of individual filters in a CNN on model predictions?
  • RQ2Can a Structural Causal Model (SCM) accurately predict the performance drop when a filter is removed from a CNN without retraining?
  • RQ3What is the relative importance of filters across different layers in CNNs like VGG19, ResNet32, and LeNet5?
  • RQ4How do different transformation methods (e.g., binary vs. Frobenius norm) affect the fidelity of the causal abstraction?
  • RQ5Can the learned SCM be used to predict model behavior under structural changes, such as pruning or hyperparameter tuning, without retraining?

Key findings

  • The SCM achieved a test accuracy of 0.924 on the CIFAR-10 dataset for the VGG19 model, indicating strong fidelity to the original DNN.
  • The Frobenius norm transformation outperformed binary transformation, which yielded accuracy below random chance due to excessive information loss.
  • Filters in later layers (e.g., Conv2D 9) showed higher sensitivity to removal, with top-ranked filters like 309, 162, and 373 in VGG19 causing significant accuracy drops.
  • The method successfully ranked filters by importance using accuracy drop as a metric, with the least important filters causing minimal performance degradation.
  • The framework enables prediction of model performance after structural changes—such as filter removal—without retraining, demonstrating utility in model compression and hyperparameter search.
  • The approach generalizes across architectures, successfully applied to LeNet5, VGG19, and ResNet32 with consistent performance on CIFAR-10.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.