Introduction
Adversarial "transfer attacks"—where an attack designed for one AI model successfully fools another—have long been a staple of laboratory research. However, many academic assumptions about these attacks do not hold when applied to real-world Machine Learning as a Service (MLaaS) platforms. This study bridges the gap by testing 36,000 adversarial examples against major platforms including AWS, Google, Baidu, and Aliyun. The findings challenge several established myths, revealing that factors like $L_2$ perturbation size and "natural" classification hardness are far more critical for success than model similarity or complex iterative algorithms.
The Challenge of Real-World MLaaS
In controlled environments, researchers often assume knowledge of the target model’s training data or architecture. Real-world MLaaS platforms, however, are black boxes that present unique hurdles:
- Label Inconsistency: Local models and cloud APIs often use different label sets (e.g., "baseball" vs. "sports").
- Multiple Returns: Cloud APIs typically return the top 5 labels with confidence scores, making the definition of a "successful" attack more complex than in a single-label classification setting.
Methodology
The researchers developed a systematic pipeline to evaluate transfer attacks across diverse settings. They trained 180 local surrogate models using popular architectures like ResNet, VGG, and Inception. Nine representative attack algorithms were tested, ranging from simple single-step methods (FGSM) to complex iterative ones (PGD, C&W). The evaluation utilized a subset of ImageNet for object classification and the Adience dataset for gender classification.
To analyze the results, the authors introduced "Misclassification Rate" and "Matching Rate" metrics, supported by a manually constructed equivalence dictionary to map disparate label sets. They utilized Hierarchical Ordinary Least Squares (OLS) regression to isolate the individual contributions of variables such as model depth and attack algorithm to the overall success rate.
Key Insights: Debunking Lab Myths
The study's most significant contribution is the refinement of laboratory-based conclusions when faced with real-world constraints.
- $L_2$ Norm Dominance: While academic focus is often on the $L_\infty$ norm, this study found that the $L_2$ norm (total perturbation energy) is a much stronger predictor of transfer success.
- Algorithm Transferability: Contrary to expectations, complex iterative attacks like PGD often overfit the local surrogate model. Simple, single-step attacks like FGSM frequently transfer better because they identify more general directions of vulnerability.
- Surrogate Complexity: The relationship between model complexity and transferability is non-monotonic. There is a "sweet spot" for depth and parameters that varies by task, debunking the idea that simpler models are always superior surrogates.
Results and Implications
The empirical results show that targeted attacks—previously thought to be nearly impossible to transfer—can achieve significantly positive success rates in the wild. Furthermore, the "logit gap" ($\kappa$ value) used in labs is less representative of transferability than the gap between posterior probabilities (softmax outputs) in real settings.
The study suggests that industry practitioners should shift their focus. Rather than relying on standard academic benchmarks, they should use FGSM and $L_2$-heavy perturbations as a more realistic "stress test" for the robustness of cloud-based vision models.
Conclusion
By moving beyond the laboratory, this research provides a more accurate picture of adversarial risks in the MLaaS ecosystem. It highlights the importance of $L_2$ perturbations and simple attack vectors, providing a new baseline for both attackers and defenders in real-world computer vision settings.
Summary updated