NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Evolutionary Algorithm for Black-Box Adversarial Attack Against Explainable Methods

Phoenix Neale Williams, Jessica Schrouff, Lea GoetzTMLR 2025

Abstract

The explainability of deep neural networks (DNNs) remains a major challenge in developing trustworthy AI, particularly in high-stakes domains such as medical imaging. Although explainable AI (XAI) techniques have advanced, they remain vulnerable to adversarial perturbations, underscoring the need for more robust evaluation frameworks. Existing adversarial attacks often focus on specific explanation strategies, while recent research has introduced black-box attacks capable of targeting multiple XAI methods. However, these approaches typically craft pixel-level perturbations that require a large number of queries and struggle to effectively attack less granular XAI methods such as Grad-CAM and LIME. To overcome these limitations, we propose a novel attack that generates perturbations using semi-transparent, RGB-valued circles optimized via an evolutionary strategy. This design reduces the number of tunable parameters, improves attack efficiency, and is adaptable to XAI methods with varying levels of granularity. Extensive experiments on medical and natural image datasets demonstrate that our method outperforms state-of-the-art techniques, exposing critical vulnerabilities in current XAI systems and highlighting the need for more robust interpretability frameworks.

Introduction

Deep Neural Networks (DNNs) are increasingly deployed in medical imaging, yet their "black-box" nature presents significant trust and safety concerns. To mitigate this, Explainable AI (XAI) methods like Grad-CAM, SHAP, and Saliency maps are used to generate attribution maps—heatmaps indicating the features most influential to a model's decision. However, the reliability of these explanations is under threat from adversarial attacks. If an attacker can manipulate an input to cause misclassification while preserving a seemingly valid explanation, the perceived trustworthiness of the system is compromised. Current black-box attacks often rely on pixel-level perturbations, which are computationally expensive and frequently fail against coarse-grained XAI methods.

Methodology: EvoAttack

We introduce EvoAttack, a query-efficient black-box adversarial attack that departs from traditional pixel-level noise. Instead, EvoAttack constructs perturbations using a set of $N$ semi-transparent, RGB-valued circles.

Search Space Reduction

By optimizing geometric primitives rather than individual pixels, EvoAttack significantly reduces the dimensionality of the search space. For a standard ImageNet image (224x224x3), a pixel-level attack involves over 150,000 variables. In contrast, EvoAttack optimizes only 7 parameters per circle (coordinates, radius, RGB values, and transparency). With 100 circles, the search space is reduced to just 700 dimensions, facilitating faster convergence and higher query efficiency.

Evolutionary Strategy

The attack employs a (1+1)-Evolutionary Strategy (ES). In each iteration, a "child" perturbation is generated by applying small Gaussian mutations to the parameters of the current "parent" circles. The child replaces the parent if it more effectively achieves the adversarial objective—either distorting the explanation or inducing misclassification—while remaining within a predefined visibility constraint ($l_\infty$ norm).

Comparison of adversarial perturbations generated by EvoAttack, SAFARI, and NES. EvoAttack utilizes geometric primitives (circles) to reduce search space and adapt to different XAI granularities.

Experimental Setup

The effectiveness of EvoAttack was evaluated on several high-stakes medical datasets and the standard ImageNet benchmark:

  • HAM10000: Dermatology images for skin lesion classification.
  • Br35h: Brain MRI scans for tumor detection.
  • COVID-QU-Ex: Chest X-rays for respiratory disease diagnosis.
  • ImageNet: Natural image classification.

The attack targeted a wide range of XAI methods, including SHAPLEY, Saliency, Input x Gradient, DeepLIFT, Grad-CAM, Grad-CAM++, and LIME.

Key Results and Discussion

EvoAttack consistently outperformed state-of-the-art black-box methods (Square Attack, NES, and SAFARI) across various datasets and XAI techniques.

The Granularity Gap

A key finding is the "granularity gap." Previous attacks using fine-grained pixel noise struggled against coarse XAI methods like Grad-CAM. By using tunable geometric shapes, EvoAttack can match the granularity of the target XAI method, making it uniquely effective at distorting both high-resolution and low-resolution attribution maps.

Task 1: Misclassification with Preserved Explanation

In Task 1, the goal is to cause the model to misclassify an image while keeping the explanation similar to the original. EvoAttack achieved high Pearson Correlation Coefficients (PCC > 0.7) in this task, meaning a clinician might be presented with a "correct-looking" heatmap for a fundamentally wrong diagnosis. This highlights a dangerous "false sense of security" provided by current XAI methods.

Task 1 results on skin lesion images. EvoAttack induces misclassification while maintaining high explanation similarity (PCC), potentially misleading users into trusting incorrect model outputs.

Robustness of XAI Methods

The study allowed for a ranking of XAI robustness. Input x Gradient emerged as the most resilient to manipulation, while LIME and Grad-CAM++ were found to be highly susceptible. Interestingly, adversarial training yielded mixed results; while it improved robustness for some methods, it exacerbated vulnerabilities in others, suggesting that defending explanations is a distinct and complex challenge.

Conclusion

EvoAttack exposes critical vulnerabilities in current XAI frameworks, particularly in medical contexts where interpretability is paramount. By utilizing a shape-based evolutionary strategy, the attack demonstrates that even coarse-grained explanations can be precisely manipulated. Future work will explore more advanced hyperparameter tuning and "decision-only" attack scenarios where model probabilities are unavailable.

Summary updated

BibTeX
@article{williams2025evolutionary,
  author = {Phoenix Neale Williams and Jessica Schrouff and Lea Goetz},
  title = {{An Evolutionary Algorithm for Black-Box Adversarial Attack Against Explainable Methods}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=MlUP5Euj6S},
}
Figure