[Paper Review] Symbolic Execution for Deep Neural Networks
DeepCheck translates ReLU-based neural networks into imperative code and uses lightweight symbolic execution to identify important pixels and generate 1-pixel and 2-pixel adversarial attacks on MNIST.
Deep Neural Networks (DNN) are increasingly used in a variety of applications, many of them with substantial safety and security concerns. This paper introduces DeepCheck, a new approach for validating DNNs based on core ideas from program analysis, specifically from symbolic execution. The idea is to translate a DNN into an imperative program, thereby enabling program analysis to assist with DNN validation. A basic translation however creates programs that are very complex to analyze. DeepCheck introduces novel techniques for lightweight symbolic analysis of DNNs and applies them in the context of image classification to address two challenging problems in DNN analysis: 1) identification of important pixels (for attribution and adversarial generation); and 2) creation of 1-pixel and 2-pixel attacks. Experimental results using the MNIST data-set show that DeepCheck's lightweight symbolic analysis provides a valuable tool for DNN validation.
Motivation & Objective
- Motivate safety and security validation of deep neural networks in safety-critical applications.
- Address validation challenges due to opaque decision processes and high-dimensional inputs.
- Propose a practical symbolic-execution-based framework (DeepCheck) for DNN analysis.
- Enable attribution via important pixel identification and generation of minimal adversarial attacks (1-pixel and 2-pixel).
Proposed method
- Translate a feed-forward ReLU network into an imperative program that mirrors its behavior.
- Apply symbolic/concolic execution to explore paths and accumulate path conditions.
- Compute path-conditioned linear expressions for inputs to identify pixel importance.
- Use three importance metrics (abs, co, coi) to rank input pixels by influence on the predicted label.
- Synthesize adversarial inputs by constraining a subset of pixels and solving path conditions with an SMT solver (e.g., Z3).
- Evaluate the approach on MNIST to demonstrate important-pixel attribution and 1-/2-pixel attacks.
Experimental results
Research questions
- RQ1Can symbolic execution identify important input pixels that explain a DNN's decision?
- RQ2Can symbolic execution discover reliable 1-pixel and 2-pixel adversarial attacks on images?
- RQ3How do important pixels relate to pixels that can be attacked, and can coi-based prioritization improve attack discovery?
Key findings
- Symbolic execution can identify important pixels that explain the classifier’s decisions on MNIST images.
- 1-pixel attacks are found for several digits by targeting attackable pixels within the top important pixels.
- 2-pixel attacks are discoverable by focusing on top important pixels and can include pixels not attackable by 1-pixel attacks.
- The coi metric often captures attackable pixels within the top 5–10% of pixels, enabling efficient attack discovery.
- For 9 of 10 digits, a 2-pixel attack is found by checking combinations among the top-4 important pixels (no more than 6 pairs).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.