一句话:提出首个因果感知的DNN覆盖率准则CC,用因果推断量化测试套件并提供优化,优于已有准则。
现有深度神经网络测试覆盖率准则多基于神经元、层或路径/迹的激活模式,难以刻画一个神经元对后续神经元的影响,也无法表示神经元作为原因与结果如何共同决定预测。本文提出首个因果感知的DNN覆盖率准则CC,通过因果推断量化测试套件为测试DNN提供了多少新的因果关联。针对在DNN上执行标准因果推断的理论与实践障碍,作者利用DNN领域知识设计多项优化,使CC实用且高效。在多样真实输入以及对抗样本、后门输入等对抗输入上,实验表明CC以适中开销在不同设置下优于已有DNN覆盖率准则。
Deep neural network (DNN) testing approaches have grown fast in recent years to test the correctness and robustness of DNNs. In particular, DNN coverage criteria are frequently used to evaluate the quality of a test suite, and a number of coverage criteria based on neuron-wise, layer-wise, and path-/trace-wise coverage patterns have been published to date. However, we see that existing criteria are insufficient to represent how one neuron would influence subsequent neurons; hence, we lack a concept of how neurons, when functioning as causes and effects, might jointly make a DNN prediction. Given recent advances in interpreting DNN internals using causal inference, we present the first causality-aware DNN coverage criterion, which evaluates a test suite by quantifying the extent to which the suite provides new causal relations for testing DNNs. Performing standard causal inference on DNNs presents both theoretical and practical hurdles. We introduce CC (causal coverage), a practical and efficient coverage criterion that integrates a set of optimizations using DNN domain-specific knowledge. We illustrate the efficacy of CC using diverse, real-world inputs and adversarial inputs, such as adversarial examples (AEs) and backdoor inputs. We demonstrate that CC outperforms previous DNN criteria under various settings with moderate cost.