Introduction
In the ongoing effort to maintain online safety, there is a constant cat-and-mouse game between content moderators and malicious actors. To post prohibited content, attackers often "obfuscate" images—applying patterns, overlays, or geometric distortions that a human can easily see through, but which cause automated AI filters to fail.
Historically, the machine learning research community has focused on adversarial examples: tiny, imperceptible perturbations constrained by $L_p$-norms. However, these do not represent the drastic, visible modifications seen in the wild. Existing robustness benchmarks, such as ImageNet-C, focus on "natural" corruptions like fog or camera blur, leaving a significant gap in evaluating how models handle intentional, human-intelligible, yet machine-confusing obfuscations.
This paper introduces a new benchmark designed to test how well image classifiers handle these "adversarial obfuscations." The findings reveal that while modern architectures scale better against these threats, traditional adversarial training designed for "invisible" noise actually makes models less robust to visible attacks.
The Obfuscation Benchmark
To simulate real-world evasion tactics, the authors developed a suite of 22 diverse obfuscation transforms. These are categorized into color changes, geometric transformations, compositions, overlays, and machine-learning-based effects (such as style transfer).
To rigorously evaluate model generalization, the researchers split these transforms into two sets:
- 19 Training Obfuscations: Used to determine if models can learn to be robust when exposed to these modifications during training.
- 3 Hold-out Obfuscations: (ColorPatternOverlay, LowContrastTriangles, and PerspectiveComposition) Used as the primary test of "unseen" robustness.
Because fine-grained classification (e.g., distinguishing between 100 specific dog breeds) is difficult even for humans under heavy obfuscation, the authors mapped ImageNet classes to 16 super-classes (e.g., "Bird," "Car," "Dog"). To pass the benchmark, a model must correctly classify an image under all hold-out obfuscations, simulating a persistent adversary who tries multiple tricks until one succeeds.
Key Findings
The authors benchmarked 38 pretrained models, including ResNets, Big Transfer (BiT), ConvNext, Vision Transformers (ViTs), and CLIP, revealing several critical insights:
- The $L_p$ Robustness Trade-off: One of the most striking findings is that traditional adversarial training (designed to defend against imperceptible noise) actually reduces robustness to visible obfuscations. This suggests that current "robust" models overfit to specific high-frequency noise patterns that do not exist in real-world, macro-level obfuscations.
- Patch-based Architectures Win: Models like ViT and ConvNext significantly outperformed older architectures like ResNet. The authors hypothesize that their "patchified" input processing makes them naturally more resilient to local distortions and overlays.
- Scaling is a Reliable Lever: Increasing model parameters and pretraining on larger datasets (like ImageNet-21k) consistently improved robustness, even when the models had never seen the obfuscations during training. The ViT-B8 model performed the best overall among pretrained models.
- CLIP's "Natural" Advantage: Zero-shot CLIP models performed surprisingly well on specific hold-outs like "PerspectiveComposition." This is likely because their massive, diverse pretraining data included similar "natural" obfuscations, such as photos of screens or framed images.
- The Generalization Gap: While training on the 19 "known" obfuscations improved performance on other benchmarks like ImageNet-C, models still struggled to generalize to the 3 hold-out types. This highlights a persistent "creativity gap" between known training data and novel attacks.
Limitations and Future Directions
While this benchmark provides a crucial step forward, the current obfuscations are "static"—they do not adapt based on the specific model being attacked. Future work could explore adaptive obfuscations that use gradient information to find the most effective mask for a specific classifier.
Additionally, the transforms are currently applied regardless of image content. Developing "content-aware" obfuscations (e.g., specifically targeting and hiding a person's face) would present a more challenging and realistic next step. Finally, expanding this benchmark beyond the object-centric, single-label nature of ImageNet to multi-label scenes or object detection tasks will better reflect the complex needs of real-world content moderation.
Summary updated