# Testing DNN Image Classifiers for Confusion & Bias Errors

**Authors:** Yuchi Tian, Ziyuan Zhong, Vicente Ordonez, Gail Kaiser, Baishakhi Ray

arXiv: 1905.07831 · 2020-02-13

## TL;DR

This paper introduces DeepInspect, a testing approach for DNN image classifiers that detects class confusion and bias errors, revealing numerous issues in popular models and emphasizing the need for rigorous testing before deployment.

## Contribution

The paper presents a novel technique for automatically detecting class-level confusion and bias errors in DNN image classifiers, addressing limitations of existing per-image testing methods.

## Key findings

- DeepInspect achieved up to 100% precision in detecting confusion errors.
- It found hundreds of classification mistakes in popular models.
- Many errors indicated significant confusion or bias issues.

## Abstract

Image classifiers are an important component of today's software, from consumer and business applications to safety-critical domains. The advent of Deep Neural Networks (DNNs) is the key catalyst behind such wide-spread success. However, wide adoption comes with serious concerns about the robustness of software systems dependent on DNNs for image classification, as several severe erroneous behaviors have been reported under sensitive and critical circumstances. We argue that developers need to rigorously test their software's image classifiers and delay deployment until acceptable. We present an approach to testing image classifier robustness based on class property violations.   We found that many of the reported erroneous cases in popular DNN image classifiers occur because the trained models confuse one class with another or show biases towards some classes over others. These bugs usually violate some class properties of one or more of those classes. Most DNN testing techniques focus on per-image violations, so fail to detect class-level confusions or biases.   We developed a testing technique to automatically detect class-based confusion and bias errors in DNN-driven image classification software. We evaluated our implementation, DeepInspect, on several popular image classifiers with precision up to 100% (avg.~72.6%) for confusion errors, and up to 84.3% (avg.~66.8%) for bias errors. DeepInspect found hundreds of classification mistakes in widely-used models, many exposing errors indicating confusion or bias.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1905.07831/full.md

## Figures

29 figures with captions in the complete paper: https://tomesphere.com/paper/1905.07831/full.md

## References

94 references — full list in the complete paper: https://tomesphere.com/paper/1905.07831/full.md

---
Source: https://tomesphere.com/paper/1905.07831