Skip to main content
QUICK REVIEW

[Paper Review] How to Manipulate CNNs to Make Them Lie: the GradCAM Case

Tom J. Viering, Ziqi Wang|arXiv (Cornell University)|Jul 25, 2019
Adversarial Robustness in Machine LearningComputer Science34 references14 citations
TL;DR

This paper demonstrates that GradCAM, a popular CNN explanation method, can be manipulated by adversarially modifying model weights and architecture to generate arbitrary explanations while preserving model accuracy. The key contribution is a proof-of-concept that GradCAM is not robust to model-level manipulation, exposing critical security vulnerabilities in explainable AI for high-stakes domains like medicine.

ABSTRACT

Recently many methods have been introduced to explain CNN decisions. However, it has been shown that some methods can be sensitive to manipulation of the input. We continue this line of work and investigate the explanation method GradCAM. Instead of manipulating the input, we consider an adversary that manipulates the model itself to attack the explanation. By changing weights and architecture, we demonstrate that it is possible to generate any desired explanation, while leaving the model's accuracy essentially unchanged. This illustrates that GradCAM cannot explain the decision of every CNN and provides a proof of concept showing that it is possible to obfuscate the inner workings of a CNN. Finally, we combine input and model manipulation. To this end we put a backdoor in the network: the explanation is correct unless there is a specific pattern present in the input, which triggers a malicious explanation. Our work raises new security concerns, especially in settings where explanations of models may be used to make decisions, such as in the medical domain.

Motivation & Objective

  • To investigate the robustness of GradCAM explanations under model-level manipulation rather than input-level perturbations.
  • To demonstrate that adversarial modifications to CNN weights and architecture can generate any desired GradCAM explanation.
  • To evaluate whether GradCAM satisfies fundamental sanity checks, such as implementation invariance, under model manipulation.
  • To explore the feasibility of combining model and input-level attacks, such as backdoor triggers, to subvert explanations.
  • To raise awareness of security risks in explainable AI, especially in safety-critical applications like healthcare.

Proposed method

  • Adversarially modify CNN weights and architecture to redirect GradCAM attention to any desired region of the input image.
  • Use gradient-based GradCAM to generate saliency maps based on the final convolutional layer's gradients with respect to the predicted class.
  • Train modified models to maintain near-identical accuracy to the original network on ImageNet (ILSVRC2012 validation set).
  • Introduce a backdoor mechanism where a specific input pattern (e.g., a sticker) triggers a malicious explanation, while normal inputs retain correct explanations.
  • Measure explanation fidelity using L1 distance between desired and actual GradCAM heatmaps.
  • Validate robustness by comparing model predictions and GradCAM outputs across multiple manipulation types (constant, smiley, random, backdoor).

Experimental results

Research questions

  • RQ1Can GradCAM explanations be manipulated by altering the model’s weights and architecture without changing the model’s prediction accuracy?
  • RQ2Does GradCAM satisfy the axiom of implementation invariance when the model is adversarially modified?
  • RQ3Can a backdoor be embedded in a CNN such that GradCAM produces a correct explanation for clean inputs but a malicious one when a trigger is present?
  • RQ4How sensitive are GradCAM explanations to architectural and weight-level changes, and what is the impact on explanation fidelity?
  • RQ5Are other gradient-based explanation methods similarly vulnerable to model-level manipulation?

Key findings

  • The modified models (T1–T4) maintained near-identical accuracy to the original network, with ||yo − yn||∞ < 0.00001 across all variants on the ILSVRC2012 validation set.
  • Despite minimal changes in model output, GradCAM explanations could be manipulated to match any desired target, with ||ĨT − Ĩn||1 < 0.01 for all manipulation types.
  • The backdoor variant (T4) produced the correct explanation for clean inputs and a malicious explanation for trigger-present inputs, with L1 distance of 0.00006.
  • The study demonstrates that GradCAM fails to satisfy the implementation invariance axiom, as identical predictions do not yield identical explanations when the model is manipulated.
  • The results indicate that GradCAM relies on unverified assumptions about model parameters and architecture, making it vulnerable to adversarial model tampering.
  • The authors suggest that similar attacks may extend to other gradient-based explanation methods, especially those relying on ∂y/∂x.

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.