Adversarial robustness is the gold standard for measuring the security and quality of machine learning models. However, this research uncovers a deceptive new threat to machine learning security: the Two-faced Attack (TFA). While we typically think of adversarial attacks as attempts to force a model to make a mistake, two-faced attacks are designed to make a vulnerable model look highly successful and robust during its evaluation phase.
The Illusion of Robustness
In safety-critical fields like autonomous driving or medical diagnosis, models must be robust against intentional interference. The standard defense is Adversarial Training (AT)—training the model on "adversarial examples" (inputs with tiny, intentional errors) so it learns to ignore them. Before deployment, these models undergo a verification phase where they are hit with various attacks to measure their "adversarial accuracy."
The authors identify a critical blind spot in this pipeline: what if the data used during the verification phase is itself manipulated?
Unlike standard adversarial examples that aim for misclassification, two-faced examples aim to make a substandard model appear robust. This creates a "wolf in sheep's clothing" scenario for AI safety. A model might pass all its stress tests in the lab with flying colors, only to fail catastrophically once deployed in the real world because its perceived robustness was merely an illusion.
Formulating the Two-Faced Threat
The core of the paper is the mathematical formulation of the Two-faced Example ($x_{tf}$). This is achieved through a bi-level optimization problem:
- The Inner Loop: Find the "worst-case" adversarial perturbation ($t$) that would normally cause the model to fail.
- The Outer Loop: Find a "protective" perturbation ($\delta$) that, when added to the original image, effectively cancels out the effect of the inner perturbation.
Mathematically, it is expressed as: $$x_{tf} = x + \arg \min_{\|\delta\| \leq \epsilon} \max_{\|t\| \leq \epsilon} \mathbb{1}(f_\theta(x + \delta + t) \neq y)$$
To solve this, the authors utilize an alternating version of Projected Gradient Descent (PGD). They also introduce a novel metric called Two-faced Risk to quantify a model's susceptibility to this specific kind of deception.
Key Insights and Alarming Results
The researchers validated their findings across standard computer vision benchmarks (CIFAR-10, CIFAR-100, SVHN, Tiny-ImageNet) and tested various architectures including ResNet-18, WideResNet-28-10, VGG-16, and DenseNet-121. The results serve as a wake-up call for the AI safety community:
- The Robustness Paradox: Surprisingly, models with higher "actual" adversarial robustness tend to be more vulnerable to two-faced attacks. The very features a model learns to become robust are the ones the two-faced attack exploits to create its illusion.
- Deceptive Gains: TFA is incredibly effective at inflating metrics. Across various AT methods (PGD-AT, TRADES, MART), models showed significantly higher "false" robustness under TFA compared to their clean adversarial accuracy. For instance, a model with a true adversarial accuracy of ~51% was manipulated to show an accuracy of over 82%.
- Top-Tier Vulnerability: Even state-of-the-art robust models from the RobustBench leaderboard saw their reported robustness jump from ~60% to over 90% when subjected to TFA.
- Transferability: Two-faced examples crafted for one model can often fool other models. This means an attacker doesn't necessarily need full "white-box" access to the target model to successfully fake its verification scores.
Countermeasures and Future Work
To combat this, the authors propose a simple defense: increasing the perturbation "budget" ($\epsilon$) during adversarial training. By training the model to handle larger perturbations than it will face during verification, they successfully reduced the success rate of TFA.
However, this is a "brute force" fix that comes with trade-offs, such as potential drops in standard accuracy. Furthermore, more sophisticated, adaptive attacks might be able to bypass this simple defense. While the paper establishes a clear relationship between adversarial risk and two-faced risk, a complete theoretical understanding of why this trade-off exists remains an open question.
Ultimately, this research serves as a stern warning: in the high-stakes world of AI deployment, we cannot blindly trust standard robustness metrics. We must verify the verifiers.
Summary updated