# DeepXplore: Automated Whitebox Testing of Deep Learning Systems

**Authors:** Kexin Pei, Yinzhi Cao, Junfeng Yang, Suman Jana

arXiv: 1705.06640 · 2017-09-26

## TL;DR

DeepXplore is a whitebox testing framework that systematically uncovers corner case errors in deep learning systems using neuron coverage and differential testing, significantly improving testing efficiency and model robustness.

## Contribution

We introduce neuron coverage and a gradient-based search method for automated, systematic testing of DL systems, enabling detection of rare erroneous behaviors without manual labeling.

## Key findings

- DeepXplore finds thousands of incorrect behaviors in DL models within seconds.
- Test inputs generated can improve model accuracy by up to 3%.
- Efficiently tests models trained on datasets like ImageNet and self-driving data.

## Abstract

Deep learning (DL) systems are increasingly deployed in safety- and security-critical domains including self-driving cars and malware detection, where the correctness and predictability of a system's behavior for corner case inputs are of great importance. Existing DL testing depends heavily on manually labeled data and therefore often fails to expose erroneous behaviors for rare inputs.   We design, implement, and evaluate DeepXplore, the first whitebox framework for systematically testing real-world DL systems. First, we introduce neuron coverage for systematically measuring the parts of a DL system exercised by test inputs. Next, we leverage multiple DL systems with similar functionality as cross-referencing oracles to avoid manual checking. Finally, we demonstrate how finding inputs for DL systems that both trigger many differential behaviors and achieve high neuron coverage can be represented as a joint optimization problem and solved efficiently using gradient-based search techniques.   DeepXplore efficiently finds thousands of incorrect corner case behaviors (e.g., self-driving cars crashing into guard rails and malware masquerading as benign software) in state-of-the-art DL models with thousands of neurons trained on five popular datasets including ImageNet and Udacity self-driving challenge data. For all tested DL models, on average, DeepXplore generated one test input demonstrating incorrect behavior within one second while running only on a commodity laptop. We further show that the test inputs generated by DeepXplore can also be used to retrain the corresponding DL model to improve the model's accuracy by up to 3%.

## Full text

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

## Figures

85 figures with captions in the complete paper: https://tomesphere.com/paper/1705.06640/full.md

## References

91 references — full list in the complete paper: https://tomesphere.com/paper/1705.06640/full.md

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