Skip to main content
QUICK REVIEW

[Paper Review] Google's Cloud Vision API Is Not Robust To Noise

Hossein Hosseini, Baicen Xiao|arXiv (Cornell University)|Apr 16, 2017
Adversarial Robustness in Machine LearningComputer Science16 references11 citations
TL;DR

This paper demonstrates that Google's Cloud Vision API is highly vulnerable to input noise, as adding minimal impulse or Gaussian noise can cause the API to misclassify images entirely, despite human observers perceiving the original content. The key finding is that applying a simple noise filter before processing restores the API's accuracy, suggesting that robustness can be achieved without retraining the underlying model.

ABSTRACT

Google has recently introduced the Cloud Vision API for image analysis. According to the demonstration website, the API "quickly classifies images into thousands of categories, detects individual objects and faces within images, and finds and reads printed words contained within images." It can be also used to "detect different types of inappropriate content from adult to violent content." In this paper, we evaluate the robustness of Google Cloud Vision API to input perturbation. In particular, we show that by adding sufficient noise to the image, the API generates completely different outputs for the noisy image, while a human observer would perceive its original content. We show that the attack is consistently successful, by performing extensive experiments on different image types, including natural images, images containing faces and images with texts. For instance, using images from ImageNet dataset, we found that adding an average of 14.25% impulse noise is enough to deceive the API. Our findings indicate the vulnerability of the API in adversarial environments. For example, an adversary can bypass an image filtering system by adding noise to inappropriate images. We then show that when a noise filter is applied on input images, the API generates mostly the same outputs for restored images as for original images. This observation suggests that cloud vision API can readily benefit from noise filtering, without the need for updating image analysis algorithms.

Motivation & Objective

  • To evaluate the robustness of Google Cloud Vision API under adversarial noise perturbations.
  • To investigate whether noise can deceive the API into generating incorrect labels or failing to detect objects, faces, or text.
  • To determine if preprocessing with noise filtering can restore the API’s performance on corrupted inputs.
  • To assess whether noise filtering offers a practical, plug-and-play solution to improve robustness without modifying the model.

Proposed method

  • The study uses impulse noise and Gaussian noise to perturb images from ImageNet and Faces94 datasets.
  • Noise is applied at varying densities (e.g., 10% to 20% impulse noise) to test the threshold at which the API's output diverges from the original.
  • A weighted-average filter is applied to restore noisy images, simulating a preprocessing defense.
  • A low-pass filter is used for Gaussian noise-corrupted images to assess restoration effectiveness.
  • The API’s output labels are compared across original, noisy, and restored images to evaluate label consistency.
  • Performance is evaluated using PSNR to quantify image restoration quality and label similarity to measure robustness.

Experimental results

Research questions

  • RQ1Can adding noise to images cause the Google Cloud Vision API to generate completely incorrect labels while preserving human readability?
  • RQ2What level of noise (impulse or Gaussian) is required to consistently deceive the API across diverse image types?
  • RQ3Does applying a noise filter to corrupted inputs restore the API’s original labeling accuracy?
  • RQ4Can noise filtering serve as a practical, model-agnostic defense to improve robustness without retraining the vision model?

Key findings

  • Adding an average of 14.25% impulse noise to ImageNet images is sufficient to deceive the Google Cloud Vision API into generating unrelated labels.
  • For face images, an average of 23.8% impulse noise density is required to deceive the API, indicating higher sensitivity in facial recognition tasks.
  • The API fails to detect text in noisy images even when the text remains readable to humans, demonstrating vulnerability in text recognition.
  • When a noise filter is applied before processing, the API generates labels that are mostly identical to those of the original images, indicating effective restoration of functionality.
  • Restored images achieve PSNR values of 33.16 dB, 37.26 dB, and 40.05 dB relative to the original, showing high visual fidelity.
  • The results confirm that noise filtering is a viable, plug-and-play countermeasure that restores API performance without requiring model updates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.