Skip to content

When Causal Intervention Meets Adversarial Examples and Image Masking of Deep Neural NetworksWhen Causal Intervention Meets Adversarial Examples and Image Masking for Deep Neural Networks

arXiv· arXiv:1902.03380· ICIP 2019· Chao-Han Huck Yang, Yi-Chieh Liu, Pin-Yu Chen, Xiaoli Ma, Yi-Chang James TsaiGeorgia Institute of Technology, North Ave NW; IBM ResearchIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

The authors propose a visual causal inference framework based on do-calculus, use Expected-CE to measure intervention effects, and claim it is more sensitive to adversarial perturbations than CAM on ChestX-ray14.

Questions
DNNs lack interpretable causal relationships; saliency map methods such as CAM can only establish correlation, and the authors consider that they cannot answer the counterfactual question after masking and are not robust under adversarial attacks.
Methods
The authors propose a visual causal inference framework based on Pearl do-calculus: extract concepts with an autoencoder, use pixel-wise masking and adversarial noise as intervention variables, compute Expected-CE under the Z0 counterfactual setting, and generate the Causal Effect Map.
Experiments and results
On ChestX-ray14, Fashion-MNIST, and ImageNet, masking and adversarial noise interventions cause Expected-CE to decrease relative to Z0; the authors claim CE is sensitive to adversarial perturbations and that CEM can identify adversarial examples better than CAM.
Limitations and future work
The authors state that the CE of Z←X→Y multi-task inference is not obvious; the experiments cover only 4 models and 4 datasets, and the paper does not report the variance of CE, the number of repetitions, or quantitative metrics for adversarial example detection.
Experimental setupVGG19、CheXNet et al. · NIH-ChestX-Ray-14、Fashion-MNIST et al. · Expected-CE、accuracy
Evaluated models
VGG19CheXNetshallow model (2 convolutional layers)VGG16
Benchmarks
NIH-ChestX-Ray-14Fashion-MNISTImageNetbird200
Metrics
Expected-CEaccuracy
AI summaryResearchers propose a causal inference framework for visual reasoning based on do-calculus, computing causal effects (CE) through pixel-level masking and adversarial perturbations, combined with latent space features and perturbation predictions of DNN models. On the Chest X-Ray-14 dataset, CE is robust and competitive compared with conventional methods such as CAM, and can be used to understand DNNs and reason about human-interpretable features such as symptoms. CE has unique properties under adversarial perturbations and is expected to be usable for detecting adversarial examples.

Researchers propose a causal inference framework for visual reasoning based on do-calculus, computing causal effects (CE) through pixel-level masking and adversarial perturbations, combined with latent space features and perturbation predictions of DNN models. On the Chest X-Ray-14 dataset, CE is robust and competitive compared with conventional methods such as CAM, and can be used to understand DNNs and reason about human-interpretable features such as symptoms. CE has unique properties under adversarial perturbations and is expected to be usable for detecting adversarial examples.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Establish a causal inference explanation for DNN vision models based on do-calculus, and examine its sensitivity under masking and adversarial perturbations.

    Core question: how to perform causal-level interpretable inference on DNN vision models, and use causal effects to understand their behavior under input interventions (masking, adversarial perturbations).

    • Problem setting: the authors consider DNNs complex and opaque; in tasks such as healthcare that require human-interpretable features (e.g., clinical symptoms), it is difficult for the model to explain the relationship between input features and predicted output; regulations such as GDPR also require interpretable feature selection.
    • Shortcomings of existing methods: the authors consider that saliency map methods such as CAM/GradCAM can only establish correlation and belong to reverse causation, and cannot answer the counterfactual question of what happens when part of the image is masked; they cite studies stating that CAM struggles to remain robust under gradient adversarial attacks. Regarding adversarial defenses, the authors consider that many defenses were later broken, and that adversarial training struggles to generalize to samples outside the predefined norm.
    • Core idea: use Pearl's do-calculus to introduce intervention into DNN explanation, with pixel-wise masking and adversarial noise as intervention variables, and compute causal effects (CE) in latent space.
    • The paper proposes: a visual causal inference framework covering three causal conditions: single-task, multi-label, and multi-task; proposes the Causal Effect Map (CEM) for visualizing the causal effects of interpretable features, and conducts a case study on ChestX-ray14.
  2. What related research exists?

    Related work falls into three groups: saliency map explanation, adversarial robustness, and causal inference; the authors position this paper as using interventional causal inference to address the shortcomings of the first two.

    Saliency map explanation methods

    • CAM [12]: provides visual explanations by locating gradients; the authors argue that it can only establish correlation and amounts to reverse causation, and cannot answer the counterfactual question of masking.
    • GradCAM [13]: uses gradient information from the penultimate convolutional layer to identify discriminative patterns in the input image; the authors' criticism of CAM-type methods applies equally here.
    • The authors cite [14] to state that CAM is difficult to use as a safe basis for inference under gradient adversarial attacks.

    Adversarial robustness

    • Adversarial training [16]: trains on a mixture of normal and adversarial samples; the authors point out that its limitation is difficulty generalizing to adversarial examples outside predefined norm or distribution constraints.
    • The authors cite [15] to state that many adversarial defense methods were later broken.

    Causal inference

    • Kusner et al. [17]: models bias and fairness as counterfactuals to quantify model bias.
    • Harradon et al. [18]: performs causal learning and explanation on autoencoded activations; this paper's CE definition, loss function, and causal baseline are all reproduced based on that work.
    • Narendra et al. [19]: uses Structural Causal Models to perform inference on deep learning models, including constructing DAGs, transformations, and estimating causal effects with causal inference.

    Positioning: the authors state that this paper differs from the above work in that it uses do-calculus interventions (masking and adversarial noise) to compute CE, addressing the shortcoming that CAM-type methods can only provide correlational explanations, and examines the sensitivity of CE under adversarial settings.

  3. How does the paper address this problem?

    Expected-CE is defined using do-calculus, concepts are extracted with an autoencoder, and masking and adversarial noise are encoded as intervention variables to compute causal effects.

    Overall idea: treat the DNN as a graphical model, use Pearl's do-calculus to intervene on latent-space features, compute the Expected Causal Effect (Expected-CE), and based on this generate an adversarially sensitive Causal Effect Map (CEM).

    Causal theory and Expected-CE

    • Adopts Pearl do-calculus's definition of causal effect: for an atomic intervention do(Xi = x0i) on variable Xi, the causal effect of X on Y is denoted P(y|do(x)).
    • The intervention effect is defined as Effect(xi → xj, Z) = P(xj|do(x′i), ZXi) − P(xj|ZXi), i.e., the difference between the probability after intervention and under counterfactual evidence.
    • Taking the expectation over Xi gives Expected-CE: EXi[Effect] = ∑xi P(Xi=xi|Z) × Effect; the paper computes it under the three causal conditions in Figure 1 (I single-task X→Y, II multi-label X←Y, III multi-task Z←X→Y).

    Encoding of interventions

    • Instead of directly replacing the intervened variable, new variables Fi and links Fi→Xi are added to the graph G, with Fi taking values {do(x0i), idle}, where idle means no intervention.
    • The conditional probability is defined piecewise by the value of Fi: when idle, the original P(xi|pai) is kept; when do(x0i), the probability of xi≠x0i is set to 0 and the probability of xi=x0i is set to 1.
    • The authors claim this augmented causal graph can show the effect of fi changing spontaneously from Fi, rather than merely replacing fi with a constant; masking and adversarial intervention serve as Fi variables, and CE is found under the zero-out counterfactual state Z0.

    Concept extraction: Autoencoder

    • The autoencoder consists of 5 convolutional layers, with two symmetric layers each in the encoder and decoder, and a low-dimensional layer in the middle that integrates dispersed features into concepts.
    • The training loss consists of three parts (following Harradon et al. 2018): interpretability loss, shallow reconstruction loss (L1 norm difference between input and output), deep reconstruction loss (KL divergence between the output distributions of the original network and the network with the autoencoder inserted), with the total loss being the weighted sum of the three terms.

    Two types of intervention methods

    • Pixel-wise masking (PWM): randomly masks 10% of the image area, used to identify the causal relationship between local pixels and DNN output.
    • Adversarial noise: FGSM (single-step gradient sign update), JBSM (saturating a few pixels to maximum/minimum values), BIM (multiple iterations with smaller step size), PGD (projected gradient descent with constraints).

    CEM and experimental setup

    • CEM weights each pixel using the CE activation weights from Eqn. 1, generating adversarially sensitive causal effect maps for specific class classification.
    • Adversarial setup: maximum L∞ perturbation strength ε=0.3, 10 iteration steps.
  4. What experiments did the paper conduct?

    Expected-CE is computed on ChestX-ray14, Fashion-MNIST, and ImageNet under interventions such as Z0, PWM, and FGSM, and qualitatively compared with CAM.

    Experimental setup

    • Models tested: CheXNet (modified DenseNet121, ChestX-ray14, accuracy 85.08% reproduced by the authors); VGG16 (ImageNet pretrained, top-1 accuracy 86%); VGG19 (bird200 reproduction validation); 2-layer convolutional shallow model (Fashion-MNIST, accuracy 89.6%).
    • Datasets: NIH-ChestX-Ray-14 (frontal chest radiographs, up to 14 chest disease labels); Fashion-MNIST (28×28 grayscale images, 70,000 images, 10 classes); ImageNet 2012 (1.2M training, 50,000 validation, 1,000 classes); bird200 (numerical validation).
    • Intervention methods: Z0 (zero-out counterfactual baseline), Fi=PWM (randomly masking 10% of the area), Fj=FGSM/BIM/JBSM/PGD adversarial noise.
    • Adversarial parameters: L∞ perturbation ε=0.3, 10 iteration steps.
    • Metrics: Expected-CE (Eqn. 2); classification accuracy.
    • Reproduction validation: VGG19 on bird200 with intervention on layer 18 feature 2 gives Expected-CE of 7.6341×10−3, which the authors claim is sufficient to validate the method.

    Main results

    Expected-CE of CheXNet on ChestX-ray14 (according to Table 1, Table 2):

    Swipe horizontally to read the table

    Level, NodeZ0Fi=PWMFj=FGSMFj=BIMFj=JBSMFj=PGD
    3,44.5076×10−37.2356×10−7not reportednot reportednot reportednot reported
    6,52.843×10−31.2154×10−5not reportednot reportednot reportednot reported
    6,103.1939×10−39.0066×10−6not reportednot reportednot reportednot reported
    8,53.1939×10−31.1536×10−5not reportednot reportednot reportednot reported
    10,71.3775×10−2-1.1506×10−5-5.6129×10−64.3435×10−57.7548×10−5-3.9605×10−6
    • The authors claim PWM causes Expected-CE to decrease, indicating that pixel-level perturbations reduce causal importance inference.
    • The authors observe numerical differences in Expected-CE under the four gradient adversarial attacks, among which FGSM has a larger negative causal effect, and on this basis use FGSM to evaluate general datasets in Section 4.2.

    Validation on general datasets

    Expected-CE on Fashion-MNIST (Table 3) and ImageNet (Table 4):

    Swipe horizontally to read the table

    DatasetL,NZ0Fi=PWMFj=FGSM
    Fashion-MNIST2,34.9543×10−4-1.8947×10−5-8.0042×10−6
    Fashion-MNIST2,72.4600×10−4-4.1068×10−5-2.5742×10−5
    ImageNet3,24.2027×10−46.0993×10−5-5.1834×10−5
    ImageNet9,108.9322×10−37.2438×10−5-2.8862×10−4
    ImageNet13,66.7643×10−42.3943×10−6-6.8749×10−5
    • The authors claim that on both datasets Expected-CE decreases relative to Z0 under masking and adversarial noise, similar to the CheXNet results, and consider the framework to be general.

    Qualitative comparison with CAM (Figure 3)

    • The authors compare CAM and CEM on ChestX-ray14: Figure 3 presents CAM and CEM visualizations for symptom labels such as Effusion, Infiltration, and Pneumonia under original and adversarial classes.
    • The authors claim adversarial noise is difficult to detect via CAM (especially for datasets with similar visual patterns such as clinical patterns), whereas CEM is more sensitive to adversarial settings; in Figure 3 only the heatmaps of the two methods are arranged side by side, and details of the heatmap differences cannot be read from the text conversion.

    Other analyses

    • Y→X masking: masking a known symptom generates a negative Expected-CE of −1.624×10−4, which the authors claim provides a basis for inference.
    • Z←X→Y multi-task: zero-out activating nodes of additional features (pulmonary disease labels suggested by pulmonologists), the authors claim the CE of this multi-task inference is not obvious.
  5. What are some points that can be further explored?

    The authors do not have a dedicated limitations section; the experiments cover 4 models and 4 datasets, and do not report the variance of CE or quantitative metrics for adversarial detection.

    Limitations and future directions noted by the authors

    • The authors state that the CE of Z←X→Y multi-task inference is not obvious (Section 4.1).
    • In the conclusion, the authors state that CE is highly sensitive to adversarial perturbations and can be used to identify adversarial examples, but they do not provide quantitative detection experiments; this is an application prospect proposed by the authors rather than a verified result (5. Conclusion).
    • The paper does not specifically discuss limitations (there is no Limitations section).

    Experimental coverage

    • The models tested are CheXNet (DenseNet121), VGG16, VGG19, and a 2-layer convolutional shallow model, 4 in total.
    • The datasets are NIH-ChestX-Ray-14, Fashion-MNIST, ImageNet, and bird200, 4 in total.
    • Adversarial interventions test only four gradient attacks: FGSM, BIM, JBSM, and PGD, and compare the four attacks only on the CheXNet L=10, N=7 row (Table 2); Fashion-MNIST and ImageNet test only FGSM.
    • The adversarial parameters are fixed at L∞ ε=0.3 with 10 iterations; the paper does not report the number of repetitions, variance, or statistical tests for Expected-CE.
    • The comparison with CAM is only the qualitative visualization in Figure 3, and the paper does not report quantitative metrics for adversarial example detection (such as detection rate or AUC).
  6. Summarize the main content of the paper

    Proposes an Expected-CE visual causal inference framework based on do-calculus, validates intervention sensitivity on 3 datasets, and claims it outperforms CAM.

    A paper on causal interpretability of DNN vision models, proposing to explain model inference using the intervention idea of Pearl do-calculus.

    • Problem: the authors consider that saliency map methods such as CAM can only establish correlation, cannot answer counterfactual questions, and are not robust under adversarial attacks; DNNs lack interpretable causal relationships in scenarios such as healthcare.
    • Method: extract concepts with an autoencoder, encode pixel-wise masking (randomly masking 10% of the area) and adversarial noise (FGSM/BIM/JBSM/PGD) as intervention variables, compute Expected-CE under the Z0 counterfactual setting, and generate the Causal Effect Map (CEM).
    • Main results: the highest Expected-CE of CheXNet on ChestX-ray14 under Z0 is 1.3775×10−2 (L=10, N=7, Table 1), and after PWM and FGSM interventions it drops to -1.1506×10−5 and -5.6129×10−6 respectively; on Fashion-MNIST and ImageNet, masking and FGSM interventions likewise cause Expected-CE to decrease relative to Z0 (Table 3, 4).
    • Authors' conclusion: the authors claim CE is a competitive and robust metric for understanding DNNs, is sensitive to adversarial perturbations, and is promising for identifying adversarial examples; the comparison with CAM is qualitative visualization (Figure 3), and the CE of the multi-task condition Z←X→Y is not obvious.
Read originalICIP 2019