Abstract
The adversarial risk of a machine learning model has been widely studied. Most previous works assume that the data lies in the whole ambient space. We propose to take a new angle and take the manifold assumption into consideration. Assuming data lies in a manifold, we investigate two new types of adversarial risk, the normal adversarial risk due to perturbation along normal direction, and the in-manifold adversarial risk due to perturbation within the manifold. We prove that the classic adversarial risk can be bounded from both sides using the normal and in-manifold adversarial risks. We also show with a surprisingly pessimistic case that the standard adversarial risk can be nonzero even when both normal and in-manifold risks are zero. We finalize the paper with empirical studies supporting our theoretical results. Our results suggest the possibility of improving the robustness of a classifier by only focusing on the normal adversarial risk.
Introduction
Adversarial attacks—tiny, imperceptible perturbations that cause misclassification—have highlighted a significant vulnerability in modern machine learning models. A persistent challenge in this field is the "robustness-accuracy trade-off," where increasing a model's resistance to attacks often degrades its performance on clean data.
This paper, presented at AISTATS 2022 by Wenjia Zhang and colleagues, investigates this trade-off through the lens of the manifold assumption. This assumption posits that high-dimensional data, such as natural images, actually resides on a lower-dimensional manifold embedded within the ambient space. By decomposing adversarial risk into geometric components relative to this manifold, the authors reveal why models fail and suggest a path toward robustness without the typical accuracy penalty.
Decomposing Adversarial Risk
The core contribution of this work is a theoretical framework that decomposes Standard Adversarial Risk ($R_{adv}$) into three primary components:
- In-manifold Risk ($R^{in}_{adv}$): Vulnerability to perturbations that remain within the data manifold. These represent "semantic" changes, such as altering the fundamental shape of a digit.
- Normal Risk ($R^{nor}_{adv}$): Vulnerability to perturbations perpendicular to the manifold. These are "non-semantic" changes that move the data point into the "empty" ambient space where no real data exists.
- Nearby-Normal-Risk (NNR): A novel interaction term representing cases where a point is individually safe from normal and in-manifold attacks, but a nearby point on the manifold is highly vulnerable to a normal attack.
The authors provide a formal proof (Theorem 1) that standard adversarial risk is upper-bounded by the sum of these three components. This decomposition suggests that the robustness-accuracy trade-off is primarily driven by in-manifold risk, which is inherently tied to the model's standard error.
Empirical Validation on Synthetic Manifolds
To validate these geometric properties, the authors utilized synthetic datasets where the manifold and its normal/tangential directions are mathematically well-defined. These include:
- 2D Unit Circle: A 1D manifold in 2D space with both single and double decision boundaries.
- 3D Plane: A 2D manifold ($x_3 = 0$) in 3D space with class boundaries defined by sine waves.
These controlled environments allowed for the explicit calculation of normal and tangential perturbations, confirming that the proposed theoretical upper bound holds across various classifiers.
Key Insights: The "Pessimistic Case" and Robustness
A surprising finding is the existence of a "pessimistic case" where a model exhibits zero in-manifold and zero normal risk, yet still possesses high standard adversarial risk. This occurs due to the NNR term: if the decision boundary "tilts" in the ambient space, it can create vulnerabilities just a tiny distance away from the data manifold.
To achieve true robustness without sacrificing accuracy, the model's decision boundary should ideally be perpendicular to the data manifold. The authors propose Normal Direction Adversarial Training, which specifically trains models against off-manifold perturbations. Empirical results show that this method encourages perpendicular decision boundaries, significantly reducing adversarial risk while maintaining high standard accuracy.
Conclusion
This geometric perspective provides a new mathematical tool for analyzing model robustness. While currently demonstrated on synthetic data, the findings suggest that focusing on normal (off-manifold) adversarial risk is a promising avenue for building robust models. Future work will focus on estimating normal directions for complex, high-dimensional real-world datasets using generative models like GANs or VAEs.
Summary updated