Introduction
Deep Learning (DL) systems are increasingly integrated into critical infrastructure, yet they remain notoriously difficult to verify. Unlike traditional software with explicit logic paths, a neural network’s behavior is encoded in millions of continuous neuron outputs. This high-dimensional state space makes exhaustive testing impossible. While simple "neuron coverage" (checking if a neuron is simply active or inactive) has been proposed, it fails to account for the synergy between neurons. A vulnerability might only trigger when a specific combination of neurons fires together.
The DeepCT Framework
To address this, we introduce DeepCT, a testing framework that adapts Combinatorial Testing (CT) from traditional software engineering to the domain of Deep Learning. CT is based on the observation that most bugs are triggered by the interaction of a small number of parameters ($t$-way interactions).
Discretization and Coverage Criteria
DeepCT discretizes the continuous state space of ReLU-based networks by treating neurons as binary: "activated" (>0) or "deactivated" (≤0). Based on this, the framework defines several coverage metrics:
- $t$-way Sparse Coverage: Measures the percentage of $t$-sized neuron sets where at least one configuration is covered.
- $t$-way Dense Coverage: A more rigorous metric requiring that all possible activation configurations (e.g., 00, 01, 10, 11 for $t=2$) are exercised.
- $(p, t)$-Completeness: The probability that $t$-way dense coverage reaches a threshold $p$.
Test Generation
DeepCT uses Linear Programming (LP) and the CPLEX solver to generate test cases. The tool seeks the smallest possible input perturbation required to force a specific set of neurons into a target activation state, effectively searching for adversarial vulnerabilities in the interaction space.
Experimental Evaluation
The framework was evaluated using the MNIST dataset and two custom deep neural networks: DNN1 (3 layers, ~55k parameters) and DNN2 (5 layers, ~79k parameters). Both models initially achieved over 97% accuracy on standard test sets.
Key Results
- Coverage Gap: Random testing (adding noise) performed poorly, achieving only 1.18% to 2.28% for 2-way sparse coverage. DeepCT successfully pushed this coverage to over 90%.
- Adversarial Detection: DeepCT identified adversarial examples for images that random testing incorrectly flagged as robust.
- Efficiency: By leveraging CT principles, the framework explored massive state spaces with relatively few tests. For example, covering layer 3 of DNN1 required only ~8,000 tests to reach 93.6% sparse coverage, compared to the billions of theoretical combinations.
Insights and Limitations
A key finding is that systematically covering interactions in the first few layers of a network is often sufficient to detect local robustness issues. However, scalability remains a challenge. Applying LP to massive architectures like ResNet or Transformers is computationally expensive. Future work will explore faster, search-based testing or symbolic execution to handle real-world, large-scale systems.
DeepCT demonstrates that metric-driven, combinatorial approaches provide a much higher level of confidence in DL robustness than random testing alone.
Summary updated