Abstract
The existence of adversarial attacks on machine learning models imperceptible to a human is still quite a mystery from a theoretical perspective. In this work, we introduce two notions of adversarial attacks: natural or on-manifold attacks, which are perceptible by a human/oracle, and unnatural or off-manifold attacks, which are not. We argue that the existence of the off-manifold attacks is a natural consequence of the dimension gap between the intrinsic and ambient dimensions of the data. For 2-layer ReLU networks, we prove that even though the dimension gap does not affect generalization performance on samples drawn from the observed data space, it makes the clean-trained model more vulnerable to adversarial perturbations in the off-manifold direction of the data space. Our main results provide an explicit relationship between the $\ell_2$, $\ell_\infty$ attack strength of the on/off-manifold attack and the dimension gap.
Introduction
Despite achieving superhuman performance in various domains, neural networks remain notoriously fragile. Tiny, human-imperceptible perturbations—adversarial attacks—can flip a model's prediction from "dog" to "church." This paper addresses the theoretical mystery of why these "unnatural" or "off-manifold" attacks exist.
The authors propose that while data might be represented in a high-dimensional "ambient" space (e.g., thousands of pixels), the actual information resides on a much lower-dimensional "intrinsic" manifold. Because models are trained only on data from this manifold, they lack guidance in the vast off-manifold regions. This "dimension gap" allows attackers to find shortcuts across the model's estimated decision boundary without altering features recognizable to humans.
Methodology
The researchers combine rigorous mathematical proofs with empirical validation:
- Theoretical Framework: Analysis of 2-layer ReLU networks trained with gradient descent. Using KKT conditions from maximum margin problems, they decompose network weights into "authentic" components (signal from the manifold) and "volatile" components (existing only in off-manifold space).
- Isometric Transformations: To isolate the effect of the dimension gap, the authors used "padding" on MNIST images. By adding gray borders, they increased the ambient dimension ($D$) while keeping the intrinsic dimension ($d$) constant.
- Resolution Scaling: On ImageNet, image resolution served as a surrogate for the dimension gap, comparing models trained on 64x64 vs. 320x320 versions of the same data.
Key Insights: The Extrapolation Trap
Neural networks excel at interpolating on the data manifold but struggle with extrapolation. The "Estimated Decision Boundary" (EDB) aligns well with the "Oracle" (human) boundary where data exists but wanders wildly in the empty off-manifold space.
Further insights include:
- Resolution as a Double-Edged Sword: Increasing resolution increases the ambient dimension. If no new useful features are added, the model becomes more vulnerable.
- Vanishing $\ell_\infty$ Budgets: Theoretically, as the dimension gap grows, the $\ell_\infty$ strength required for an off-manifold attack asymptotically approaches zero.
- Adversarial Training: This technique effectively "fills" the off-manifold space around the data, reducing the effective dimension gap.
Key Results
The study validates its theory across several benchmarks, including MNIST, Fashion-MNIST, CIFAR-10, and a binary subset of ImageNet.
- Theoretical Proof: Theorem 4.2 establishes that the perturbation strength needed for misclassification decreases as the dimension gap ($g = D - d$) increases.
- Empirical Validation: In MNIST padding experiments, increasing the ambient dimension $D$ consistently lowered the $\ell_2$ and $\ell_\infty$ attack thresholds required to drop accuracy to 10%.
- ImageNet Resolution: Models trained on 320x320 images were significantly more vulnerable to PGD attacks than those on 64x64 images, despite the intrinsic dimension of the task remaining constant.
- Intrinsic Dimension Estimation: For MNIST, while the ambient dimension is 784, the intrinsic dimension is estimated at ~13-15, highlighting a massive gap.
Conclusion
While empirical results on ResNet-18 suggest generalization, the formal proofs are currently limited to 2-layer ReLU networks. Future work could extend these theories to deeper architectures and explore the impact of "noisy" manifolds or different regularization strategies on the dimension gap.
Summary updated