[Paper Review] Concolic Testing for Deep Neural Networks
This paper presents the first concolic testing framework for deep neural networks (DNNs), combining concrete execution and symbolic analysis to systematically generate test inputs that maximize coverage of structural and robustness properties. The method achieves high coverage of neuron activation, Lipschitz continuity, and adversarial examples—demonstrating superior performance over random testing in discovering minimal-perturbation adversarial inputs.
Concolic testing combines program execution and symbolic analysis to explore the execution paths of a software program. This paper presents the first concolic testing approach for Deep Neural Networks (DNNs). More specifically, we formalise coverage criteria for DNNs that have been studied in the literature, and then develop a coherent method for performing concolic testing to increase test coverage. Our experimental results show the effectiveness of the concolic testing approach in both achieving high coverage and finding adversarial examples.
Motivation & Objective
- To address the lack of systematic testing methods for deep neural networks (DNNs) in safety- and security-critical applications.
- To overcome the limitations of random testing and symbolic execution alone in exploring high-dimensional DNN input spaces.
- To develop a concolic testing approach that integrates concrete execution with symbolic analysis to guide test generation toward unmet coverage criteria.
- To evaluate the method on diverse coverage criteria, including neuron coverage, Lipschitz continuity, and adversarial example detection.
- To demonstrate the effectiveness of concolic testing in discovering minimal-perturbation adversarial examples and achieving high coverage.
Proposed method
- The method uses a parameterized set of coverage requirements expressed in Quantified Linear Arithmetic over Rationals (QLAR).
- It alternates between concrete execution to identify test inputs close to satisfying a given coverage requirement and symbolic analysis to generate a new input that satisfies it.
- For each unsatisfied requirement, the algorithm selects a test input from the current suite that is nearest to satisfying it, then uses symbolic execution to refine it into a satisfying input.
- The process is iterated until a desired coverage threshold is reached, with test inputs incrementally added to the test suite.
- A robustness oracle is applied to detect adversarial examples by checking for small input perturbations that change classification outputs.
- The framework is implemented in the DeepConcolic tool and supports multiple distance metrics (e.g., L∞, L0, L1, L2) for adversarial example detection.
Experimental results
Research questions
- RQ1Can concolic testing be effectively adapted to deep neural networks to improve test coverage?
- RQ2How does concolic testing compare to random test generation in discovering adversarial examples with minimal perturbations?
- RQ3To what extent can concolic testing achieve high coverage across diverse coverage criteria, including Lipschitz continuity and neuron activation patterns?
- RQ4Can the method detect adversarial examples that are robust to different distance metrics, such as L∞ and L0?
- RQ5Does concolic testing provide a scalable and coherent approach to testing DNNs across multiple structural and robustness properties?
Key findings
- DeepConcolic achieved high coverage across multiple criteria, including neuron coverage (NC), with 99.9% coverage on MNIST and 99.8% on CIFAR-10.
- The method discovered adversarial examples with minimal perturbations: 1/255 ≈ 0.0039 in L∞ norm and 1 pixel in L0 norm, indicating high precision in adversarial example detection.
- For Lipschitz constant testing, concolic testing covered a range of [0.01, 10.38], significantly outperforming random testing, which only reached a maximum of 3.23 and concentrated in [0.01, 2].
- On average, concolic testing found adversarial examples with an average L∞ distance of 0.0039, demonstrating its ability to locate minimal-perturbation attacks.
- The number of adversarial examples found varied substantially with the distance metric, highlighting the importance of using multiple metrics in coverage criteria.
- The method showed strong performance in detecting adversarial examples for both MNIST and CIFAR-10 models, with robustness checks confirming high detection efficacy.
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.