Cloud-based Image Classification Service Is Not Robust To Simple Transformations: A Forgotten Battlefield

Dou Goodman, Tao WeiarXiv 2019

Introduction

While the academic community has focused heavily on sophisticated, gradient-based adversarial attacks, commercial cloud-based computer vision APIs are often perceived as robust due to their "black-box" nature. This research by Goodman and Wei challenges this assumption, identifying a "forgotten battlefield" of simple image transformations that can bypass state-of-the-art classifiers with minimal effort and zero knowledge of model internals.

Simple Transformations: The Low-Cost Threat

The researchers investigated the impact of standard image processing techniques—such as Gaussian noise, rotation, and monochromatization—on industry-leading APIs from Google, Amazon, Microsoft, and Clarifai. These "Simple Transformations" (ST) are computationally inexpensive and require no access to model weights.

Figure 1: Google Cloud Vision API results for an original cat image (a), an image with Gaussian noise (b) misclassified as "flesh", and a monochromatized image (c) misclassified as "rat".

As shown in Figure 1, these basic alterations can lead to drastic misclassifications. A domestic cat is perceived as "flesh" or a "rat" simply by adding noise or stripping color channels. This highlights a significant gap in the robustness of commercial systems against non-optimized perturbations.

The Image Fusion (IF) Attack

Beyond standard transformations, the authors introduce the Image Fusion (IF) attack. This method blends a target object image ($O$) with a background image ($B$) using a transparency factor $\alpha$: $$ADV = \alpha \cdot O + (1-\alpha) \cdot B$$ This attack leverages the way Convolutional Neural Networks (CNNs) process structural information. While humans can easily distinguish the foreground object, the high-frequency signals from the background image can dominate the early feature maps of the CNN, effectively masking the target object's features.

Figure 6: Feature maps of a CNN processing a red-channel monochromatic image, demonstrating how internal representations are disrupted compared to the original input.

Figure 6 illustrates how a simple color-based transformation significantly alters the internal feature activations of a model. In the case of Image Fusion, this disruption is even more pronounced, leading to near-total failure of the classifier as the model fails to extract the correct structural features.

Defensive Strategies

To mitigate these vulnerabilities, the paper proposes a dual-layer defense:

  1. Adversarial Training: Incorporating transformed images (rotated, grayscale, etc.) into the training dataset to improve model generalization.
  2. Image Preprocessing: Implementing denoising filters, such as Gaussian and Median filters, as a front-end to the API to strip away high-frequency noise before classification.

Experimental Results

The evaluation, conducted on a subset of ImageNet, revealed startling vulnerabilities:

  • ST Attack Success: Google, Microsoft, and Clarifai showed nearly 100% vulnerability to simple transformations. Amazon Rekognition was notably more robust, maintaining a ~50% accuracy rate, suggesting the use of internal preprocessing or advanced data augmentation.
  • IF Attack Success: The Image Fusion attack achieved over 98% success across all tested platforms.
  • Defense Efficacy: The proposed hybrid defense (training + filtering) improved the defense rate against ST attacks to over 80%. However, the IF attack remained resilient, with defense rates only reaching approximately 40%.

Conclusion

This study demonstrates that commercial cloud vision services are highly susceptible to "dumb" attacks that do not require complex optimization. While traditional noise-reduction filters and data augmentation provide some protection, structural attacks like Image Fusion represent a significant ongoing challenge for the robustness of deep learning models in production environments.

Summary updated

BibTeX
@misc{goodman2019cloud,
  author = {Dou Goodman and Tao Wei},
  title = {{Cloud-based Image Classification Service Is Not Robust To Simple Transformations: A Forgotten Battlefield}},
  year = {2019},
  eprint = {1906.07997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.07997},
}
Figure