Unfolding Local Growth Rate Estimates for (Almost) Perfect Adversarial Detection
Peter Lorenz, Margret Keuper, Janis Keuper
TL;DR
This work tackles the vulnerability of CNNs to adversarial perturbations by introducing a lightweight white-box detector based on an unfolded Local Intrinsic Dimensionality (LID) representation, termed multiLID. By modeling per-neighbor growth-rate features and applying a non-linear classifier (Random Forest), the method achieves near-perfect discrimination between clean and adversarial images across common datasets and architectures. The paper provides extensive ablations on feature-layer choices, neighbor counts, and classifier types, showing that unfolded multiLID features substantially outperform original LID and other detectors. The approach offers a practical, scalable detector that can significantly enhance robustness in real-world deployment, with discussion of limitations and directions for transferability and broader validation.
Abstract
Convolutional neural networks (CNN) define the state-of-the-art solution on many perceptual tasks. However, current CNN approaches largely remain vulnerable against adversarial perturbations of the input that have been crafted specifically to fool the system while being quasi-imperceptible to the human eye. In recent years, various approaches have been proposed to defend CNNs against such attacks, for example by model hardening or by adding explicit defence mechanisms. Thereby, a small "detector" is included in the network and trained on the binary classification task of distinguishing genuine data from data containing adversarial perturbations. In this work, we propose a simple and light-weight detector, which leverages recent findings on the relation between networks' local intrinsic dimensionality (LID) and adversarial attacks. Based on a re-interpretation of the LID measure and several simple adaptations, we surpass the state-of-the-art on adversarial detection by a significant margin and reach almost perfect results in terms of F1-score for several networks and datasets. Sources available at: https://github.com/adverML/multiLID
