Skip to main content
QUICK REVIEW

[Paper Review] Testing Deep Learning Models for Image Analysis Using Object-Relevant Metamorphic Relations

Yongqiang Tian, Shiqing Ma|arXiv (Cornell University)|Sep 6, 2019
Adversarial Robustness in Machine LearningComputer Science48 references5 citations
TL;DR

This paper proposes a metamorphic testing approach to assess whether deep learning models for image analysis rely on object-relevant features in their inferences. By introducing two novel metamorphic relations—object-preserving and object-removing mutations—it quantifies inference reliability using an object-relevancy score, revealing that over 5.3% of top-5 predictions in image classifiers and 8.5% in object detectors are based on irrelevant features, enabling more effective adversarial attacks.

ABSTRACT

Deep learning models are widely used for image analysis. While they offer high performance in terms of accuracy, people are concerned about if these models inappropriately make inferences using irrelevant features that are not encoded from the target object in a given image. To address the concern, we propose a metamorphic testing approach that assesses if a given inference is made based on irrelevant features. Specifically, we propose two novel metamorphic relations to detect such inappropriate inferences. We applied our approach to 10 image classification models and 10 object detection models, with three large datasets, i.e., ImageNet, COCO, and Pascal VOC. Over 5.3% of the top-5 correct predictions made by the image classification models are subject to inappropriate inferences using irrelevant features. The corresponding rate for the object detection models is over 8.5%. Based on the findings, we further designed a new image generation strategy that can effectively attack existing models. Comparing with a baseline approach, our strategy can double the success rate of attacks.

Motivation & Objective

  • To address the critical concern that deep learning models may make inferences based on irrelevant background features rather than target object features.
  • To develop a testing framework that evaluates the object relevancy of model inferences without requiring ground-truth oracles.
  • To quantify the extent to which model predictions depend on object-relevant versus object-irrelevant features in image classification and object detection models.
  • To design a new image generation strategy that exploits model vulnerabilities to improve adversarial attack success rates.
  • To provide a novel, measurable metric—object-relevancy score—for assessing inference reliability in deep learning models for image analysis.

Proposed method

  • Proposes two novel metamorphic relations: MR-1 (object-preserving mutation) and MR-2 (object-removing mutation) to test inference consistency.
  • Applies image mutation operations that preserve or remove the target object while keeping other image regions unchanged.
  • Uses the resulting mutated images to evaluate whether model predictions satisfy the metamorphic relations.
  • Computes an object-relevancy score based on the degree of consistency between original and mutated predictions.
  • Leverages the object-relevancy score to guide a new image generation strategy that increases adversarial attack success rates.
  • Employs metamorphic testing to validate model behavior without requiring retraining or ground-truth labels.

Experimental results

Research questions

  • RQ1To what extent do pre-trained deep learning models for image analysis rely on object-irrelevant features in their predictions?
  • RQ2Can metamorphic testing be effectively used to detect inferences based on irrelevant features in deep learning models?
  • RQ3How can an object-relevancy score be formally defined and computed to quantify the dependence of model predictions on relevant features?
  • RQ4Can the object-relevancy score be used to improve the effectiveness of adversarial attacks on deep learning models?
  • RQ5What is the prevalence of unreliable inferences based on background features across diverse image classification and object detection models?

Key findings

  • Over 5.3% of top-5 correct predictions in image classification models are based on object-irrelevant features, indicating widespread reliance on non-target features.
  • For object detection models, the rate of inferences based on irrelevant features exceeds 8.5%, highlighting a more severe issue in this class of models.
  • The proposed object-relevancy score effectively identifies models that make unreliable inferences based on background or irrelevant image regions.
  • The new image generation strategy, informed by the object-relevancy score, doubles the success rate of adversarial attacks compared to a baseline approach.
  • The findings demonstrate that many widely used pre-trained models are vulnerable to attacks that exploit reliance on irrelevant features.
  • The study reveals that current testing techniques often fail to detect such vulnerabilities, as they do not assess object relevancy in model inferences.

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.