Concept-Based Masking: A Patch-Agnostic Defense Against Adversarial Patch Attacks

Ayushi Mehrotra, Derek Peng, Dipkamal Bhusal, Nidhi Rastogi
10/5/2025
cs.CVcs.AI

No official code found. Best implementation: ayushimehrotra/concept-masked-defense (0 stars, last commit 2025-08-17).

Abstract

Adversarial patch attacks pose a practical threat to deep learning models by forcing targeted misclassifications through localized perturbations, often realized in the physical world. Existing defenses typically assume prior knowledge of patch size or location, limiting their applicability. In this work, we propose a patch-agnostic defense that leverages concept-based explanations to identify and suppress the most influential concept activation vectors, thereby neutralizing patch effects without explicit detection. Evaluated on Imagenette with a ResNet-50, our method achieves higher robust and clean accuracy than the state-of-the-art PatchCleanser, while maintaining strong performance across varying patch sizes and locations. Our results highlight the promise of combining interpretability with robustness and suggest concept-driven defenses as a scalable strategy for securing machine learning models against adversarial patch attacks.

View on arXivView PDF

Code Implementations(1)

Code for "Concept-Based Masking: A Patch-Agnostic Defense Against Adversarial Patch Attacks" submitted to Reliable ML from Unreliable Data Workshop at NeurIPS 2025

00Python, Jupyter NotebookAug 17, 20251 years ago

Similar Papers

Cite this paper

@article{mehrotra2025conceptbased,
  title  = {Concept-Based Masking: A Patch-Agnostic Defense Against Adversarial Patch Attacks},
  author = {Ayushi Mehrotra and Derek Peng and Dipkamal Bhusal and Nidhi Rastogi},
  year   = {2025},
  eprint = {2510.04245},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.04245v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.04245.svg)](https://codeofpaper.com/paper/2510.04245)

Discussion