TL;DR
While Local Intrinsic Dimensionality (LID) was recently proposed as a powerful tool for detecting adversarial examples, this research reveals its significant blind spots. The authors demonstrate that LID-based defenses struggle against attacks with varying confidence levels and are largely ineffective against black-box transfer attacks, particularly those using $L_1$-based distortions.
What Problem Does This Paper Address?
Deep Neural Networks (DNNs) are notoriously fragile; small, intentional perturbations (adversarial examples) can trick them into making confident, incorrect predictions. To defend against this, researchers try to find a "signature" that distinguishes adversarial examples from natural data.
A recent promising approach suggested that adversarial examples reside in different "subspaces" than normal data, characterized by their Local Intrinsic Dimensionality (LID). LID measures how many dimensions are needed to describe the data manifold around a specific point. If adversarial examples "pop out" of the natural data manifold into higher-dimensional spaces, LID should theoretically catch them. This paper investigates whether LID is truly a robust signature or if it can be easily bypassed by more sophisticated or realistic attack scenarios.
Methods
The authors evaluate LID's performance using a Maximum Likelihood Estimator (MLE) that calculates the distance between a sample and its $k$-nearest neighbors in the hidden layers of a DNN. They then train a logistic regression classifier on these LID features to distinguish between normal, noisy, and adversarial images.
They test this detector against two main types of attacks:
- C&W ($L_2$): A standard, powerful attack that minimizes $L_2$ distortion.
- EAD (Elastic-net Attack): A more generalized attack that incorporates $L_1$ distortion. $L_1$ attacks often produce "sparser" perturbations that can be more transferable between models.
The study focuses on two challenging scenarios:
- Oblivious Attacks with Varying Confidence: The attacker doesn't know a defense is in place but varies the "confidence" parameter ($\kappa$) of the attack. High-confidence attacks push the misclassification further away from the decision boundary.
- Black-Box Transfer Attacks: Adversarial examples are crafted on one model (the source) and then tested against the target model protected by LID.
Key Insights and Ideas
- The "Confidence" Sensitivity: LID is extremely sensitive to the confidence level ($\kappa$) used during the attack. If a detector is trained to catch low-confidence attacks, it often fails to see high-confidence ones, and vice versa.
- Ensembles Make it Worse: One might assume training a detector on an "ensemble" of different confidence levels would make it more robust. Surprisingly, the authors found the opposite: training on a mix of confidence levels actually degraded performance compared to training on a single level.
- The Transferability Blind Spot: LID is remarkably ineffective against transfer attacks. Even when the detector is trained using the exact same attack parameters used to craft the transferred examples, it fails to characterize the adversarial subspaces effectively.
- $L_1$ vs. $L_2$ Distortion: Attacks using $L_1$ distortion (like EAD) are significantly harder for LID to detect than standard $L_2$ attacks. This suggests that $L_1$-based adversarial examples inhabit subspaces that LID simply doesn't capture well.
Key Results
The empirical results highlight severe vulnerabilities in the LID defense mechanism across both MNIST and CIFAR-10 datasets.
Detection Failure on Oblivious Attacks: At low confidence ($\kappa=0$), the LID detector caught ~89% of C&W attacks on CIFAR-10 but only ~43% of EAD attacks. This discrepancy highlights LID's weakness against $L_1$-based perturbations.
Transfer Attack Vulnerability: The defense breaks down even further under black-box transfer attacks. On MNIST, when the attack confidence $\kappa$ was set to 40, the detection rate for EAD dropped to roughly 31%.
More alarmingly, the "post-detection" classification rate (the accuracy of the model on samples the detector didn't catch) was less than 1%. This means that the undetected attacks were almost 100% successful at fooling the underlying model.
Ensemble Performance: Training the LID detector on an ensemble of confidence levels ($\kappa \in \{0, 10, 20, 30, 40\}$) resulted in AUC scores and detection rates consistently below 45% and 85%, respectively—significantly worse than detectors tuned to a specific $\kappa$.
Limitations and Future Work
The paper primarily serves as a "red team" evaluation, highlighting the limitations of LID rather than proposing a new defense. The authors conclude that LID has limited capability in characterizing the subspaces of transferable adversarial examples.
Future work is needed to find more invariant properties of adversarial subspaces—signatures that remain consistent regardless of attack confidence or whether the attack was "transferred" from another model. The failure of LID in these settings suggests that the geometry of adversarial subspaces is more complex than a simple dimensionality metric can capture.
Summary updated