一句话:通过大规模实证研究揭示分布外数据感知对深度学习测试及分布感知对抗重训练的影响
深度学习软件在工业应用中日益普及,但其对分布外(OOD)数据缺乏统计保证,导致测试中发现的“错误”可能只是模型无法处理的异常样本,而非真正的模型缺陷。该文首次开展大规模实证研究,覆盖451种实验配置、42个深度神经网络和120万条测试数据,系统考察OOD感知对深度学习测试的影响,并分析系统进入生产环境后的后果,评估分布感知对抗重训练的有效性。结果表明,在测试与增强阶段引入数据分布感知,相比不感知分布的对抗重训练,效果最高提升21.5%。
As Deep Learning (DL) is continuously adopted in many industrial applications, its quality and reliability start to raise concerns. Similar to the traditional software development process, testing the DL software to uncover its defects at an early stage is an effective way to reduce risks after deployment. According to the fundamental assumption of deep learning, the DL software does not provide statistical guarantee and has limited capability in handling data that falls outside of its learned distribution, i.e., out-of-distribution (OOD) data. Although recent progress has been made in designing novel testing techniques for DL software, which can detect thousands of errors, the current state-of-the-art DL testing techniques usually do not take the distribution of generated test data into consideration. It is therefore hard to judge whether the "identified errors" are indeed meaningful errors to the DL application (i.e., due to quality issues of the model) or outliers that cannot be handled by the current model (i.e., due to the lack of training data). Tofill this gap, we take the first step and conduct a large scale empirical study, with a total of 451 experiment configurations, 42 deep neural networks (DNNs) and 1.2 million test data instances, to investigate and characterize the impact of OOD-awareness on DL testing. We further analyze the consequences when DL systems go into production by evaluating the effectiveness of adversarial retraining with distribution-aware errors. The results confirm that introducing data distribution awareness in both testing and enhancement phases outperforms distribution unaware retraining by up to 21.5%.