Abstract
Commercial Machine Learning as a Service (MLaaS) platforms are often perceived as highly robust "black boxes." This study investigates the resilience of Google’s Cloud Vision API against simple, non-adversarial noise. By applying impulse and Gaussian noise to standard datasets, we demonstrate that even moderate levels of corruption—often imperceptible or easily ignored by humans—can lead to significant classification errors and detection failures. We further show that simple spatial filtering can effectively mitigate these vulnerabilities.
Introduction
Most machine learning research is conducted using high-quality, noise-free datasets. However, real-world deployment is inherently messy; sensors produce thermal noise, lenses accumulate debris, and adversarial actors may intentionally corrupt data to bypass automated filters. This paper addresses the critical gap in the robustness of commercial, proprietary ML APIs, specifically investigating whether systems like Google Cloud Vision are resilient to common real-world imperfections.
Methodology
The researchers employed a straightforward, iterative black-box attack using two types of common image noise: Impulse (Salt-and-Pepper) and Gaussian noise. The procedure involved starting with a clean image and incrementally increasing noise density by 5% until the API's top label changed to an unrelated category or it failed to detect a face or text.
The study evaluated the API across three distinct tasks:
- General Object Labeling: 100 images from ImageNet.
- Face Detection: Images from the Faces94 dataset.
- Optical Character Recognition (OCR): Custom-generated text images.
Key Results and Insights
The findings reveal a significant gap between human and machine perception. While humans possess an inherent "low-pass filter" that allows them to ignore high-frequency noise, Convolutional Neural Networks (CNNs) are often overly sensitive to these pixel-level changes.
- ImageNet Vulnerability: On average, only 14.25% impulse noise was required to deceive the API. At 35% noise, the attack success rate reached 100%. For instance, a clear image of a teapot was mislabeled as "Biology" once noise was introduced.
- Detection Failures: Face detection failed at an average of 23.8% noise, while OCR consistently failed at 35% noise, even when the text remained perfectly legible to human researchers.
Mitigation and Conclusion
Because users of MLaaS cannot retrain proprietary models, they must rely on preprocessing. The authors demonstrate that "denoising" via standard spatial filters (like weighted-average filters) is a highly effective, low-cost defense. Applying these filters successfully restored API performance, allowing the system to correctly identify objects that were previously mislabeled due to noise.
While this 2017 study highlights significant vulnerabilities, it also suggests that cloud providers could improve service reliability by integrating automatic noise-filtering layers as a standard front-end feature. Future work should explore whether modern iterations of these APIs have incorporated more robust training techniques to close this perception gap.
Summary updated