eXIAA: eXplainable Injections for Adversarial Attack
Leonardo Pesce, Jiawen Wei, Gianmarco Mengaldo
TL;DR
This paper addresses the vulnerability of post-hoc XAI explanations to adversarial manipulation without requiring access to model weights. It introduces eXIAA, a black-box, model-agnostic, one-step attack that selects an attack image from the running-up class, extracts top-$k$ attribution features via a post-hoc method, and injects them into the target image with a weighted blend, maximizing explanation disruption while preserving the predicted class and maintaining perceptual similarity. The approach is evaluated on ImageNet with ResNet-18 and ViT-B16 across Saliency maps, Integrated Gradients, and DeepLIFT SHAP, showing substantial changes in explanations with minimal prediction change and high SSIM. The results reveal a critical vulnerability in current XAI methods, especially for transformer architectures, and motivate the development of more robust, trustworthy explainability techniques, potentially extending to other data modalities and multi-label tasks. Ethical considerations and reproducibility statements accompany the work, with code to be released upon acceptance.
Abstract
Post-hoc explainability methods are a subset of Machine Learning (ML) that aim to provide a reason for why a model behaves in a certain way. In this paper, we show a new black-box model-agnostic adversarial attack for post-hoc explainable Artificial Intelligence (XAI), particularly in the image domain. The goal of the attack is to modify the original explanations while being undetected by the human eye and maintain the same predicted class. In contrast to previous methods, we do not require any access to the model or its weights, but only to the model's computed predictions and explanations. Additionally, the attack is accomplished in a single step while significantly changing the provided explanations, as demonstrated by empirical evaluation. The low requirements of our method expose a critical vulnerability in current explainability methods, raising concerns about their reliability in safety-critical applications. We systematically generate attacks based on the explanations generated by post-hoc explainability methods (saliency maps, integrated gradients, and DeepLIFT SHAP) for pretrained ResNet-18 and ViT-B16 on ImageNet. The results show that our attacks could lead to dramatically different explanations without changing the predictive probabilities. We validate the effectiveness of our attack, compute the induced change based on the explanation with mean absolute difference, and verify the closeness of the original image and the corrupted one with the Structural Similarity Index Measure (SSIM).
