一句话:将变异模糊测试用于DNN训练数据增强,借遗传搜索提升鲁棒性并加速训练。
深度神经网络对输入数据的微小扰动十分脆弱。作者类比程序合成与修复中因规约不完整导致的过拟合问题,提出将软件测试中的变异模糊测试重用于DNN训练数据增强,以提升鲁棒性。该方法把数据增强形式化为优化问题,用遗传搜索为每个输入生成最适合训练的变体,同时识别可跳过增强的实例以加速训练。作者实现Sensei与Sensei-SA两个工具,并在5个流行图像数据集、15个DNN模型上评估。实验表明,Sensei相比当时最新方法在每个模型上均提升鲁棒准确率,最高提升11.9%,平均提升5.5%;Sensei-SA在仍提升鲁棒准确率的同时将平均训练时间减少25%。
Deep neural networks (DNN) have been shown to be notoriously brittle to small perturbations in their input data. This problem is analogous to the over-fitting problem in test-based program synthesis and automatic program repair, which is a consequence of the incomplete specification, i.e., the limited tests or training examples, that the program synthesis or repair algorithm has to learn from. Recently, test generation techniques have been successfully employed to augment existing specifications of intended program behavior, to improve the generalizability of program synthesis and repair. Inspired by these approaches, in this paper, we propose a technique that re-purposes software testing methods, specifically mutation-based fuzzing, to augment the training data of DNNs, with the objective of enhancing their robustness. Our technique casts the DNN data augmentation problem as an optimization problem. It uses genetic search to generate the most suitable variant of an input data to use for training the DNN, while simultaneously identifying opportunities to accelerate training by skipping augmentation in many instances. We instantiate this technique in two tools, Sensei and Sensei-SA, and evaluate them on 15 DNN models spanning 5 popular image data-sets. Our evaluation shows that Sensei can improve the robust accuracy of the DNN, compared to the state of the art, on each of the 15 models, by upto 11.9% and 5.5% on average. Further, Sensei-SA can reduce the average DNN training time by 25%, while still improving robust accuracy.
DOI 原文 ·
@inproceedings{paperbot5637,
title = {Fuzz testing based data augmentation to improve robustness of deep neural networks},
author = {Xiang Gao and Ripon K. Saha and Mukul R. Prasad and Abhik Roychoudhury},
booktitle = {ICSE},
year = {2020},
doi = {10.1145/3377811.3380415}
}