一句话:提出 SADL——基于输入相对训练数据意外程度的深度学习系统测试充分性准则,并用于指导测试与再训练。
深度学习系统在安全关键领域应用广泛,但传统测试依赖人工标注数据,现有基于神经元激活的覆盖率准则粒度不足,且评估多局限于与对抗样本的相关性。本文提出面向深度学习系统的测试充分性准则 SADL,从系统相对于训练数据的行为差异出发,将输入对模型而言的“意外程度”作为充分性度量:好的测试输入应相对训练数据足够意外但不过分异常。作者在从简单图像分类器到自动驾驶平台的多种 DL 系统上评估,表明按 surprise 系统化采样输入,并通过再训练,可将对抗样本上的分类准确率最高提升 77.5%。
Deep Learning (DL) systems are rapidly being adopted in safety and security critical domains, urgently calling for ways to test their correctness and robustness. Testing of DL systems has traditionally relied on manual collection and labelling of data. Recently, a number of coverage criteria based on neuron activation values have been proposed. These criteria essentially count the number of neurons whose activation during the execution of a DL system satisfied certain properties, such as being above predefined thresholds. However, existing coverage criteria are not sufficiently fine grained to capture subtle behaviours exhibited by DL systems. Moreover, evaluations have focused on showing correlation between adversarial examples and proposed criteria rather than evaluating and guiding their use for actual testing of DL systems. We propose a novel test adequacy criterion for testing of DL systems, called Surprise Adequacy for Deep Learning Systems (SADL), which is based on the behaviour of DL systems with respect to their training data. We measure the surprise of an input as the difference in DL system's behaviour between the input and the training data (i.e., what was learnt during training), and subsequently develop this as an adequacy criterion: a good test input should be sufficiently but not overtly surprising compared to training data. Empirical evaluation using a range of DL systems from simple image classifiers to autonomous driving car platforms shows that systematic sampling of inputs based on their surprise can improve classification accuracy of DL systems against adversarial examples by up to 77.5% via retraining.