{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T20:29:42Z","timestamp":1792787382203,"version":"4.5.0"},"reference-count":40,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2021,1,3]],"date-time":"2021-01-03T00:00:00Z","timestamp":1609632000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"FNR","award":["C17\/IS\/11686509\/CODEMATES\/Papadakis"],"award-info":[{"award-number":["C17\/IS\/11686509\/CODEMATES\/Papadakis"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2021,4,30]]},"abstract":"<jats:p>Testing of deep learning models is challenging due to the excessive number and complexity of the computations involved. As a result, test data selection is performed manually and in an ad hoc way. This raises the question of how we can automatically select candidate data to test deep learning models. Recent research has focused on defining metrics to measure the thoroughness of a test suite and to rely on such metrics to guide the generation of new tests. However, the problem of selecting\/prioritising test inputs (e.g., to be labelled manually by humans) remains open. In this article, we perform an in-depth empirical comparison of a set of test selection metrics based on the notion of model uncertainty (model confidence on specific inputs). Intuitively, the more uncertain we are about a candidate sample, the more likely it is that this sample triggers a misclassification. Similarly, we hypothesise that the samples for which we are the most uncertain are the most informative and should be used in priority to improve the model by retraining. We evaluate these metrics on five models and three widely used image classification problems involving real and artificial (adversarial) data produced by five generation algorithms. We show that uncertainty-based metrics have a strong ability to identify misclassified inputs, being three times stronger than surprise adequacy and outperforming coverage-related metrics. We also show that these metrics lead to faster improvement in classification accuracy during retraining: up to two times faster than random selection and other state-of-the-art metrics on all models we considered.<\/jats:p>","DOI":"10.1145\/3417330","type":"journal-article","created":{"date-parts":[[2021,1,3]],"date-time":"2021-01-03T06:09:08Z","timestamp":1609654148000},"page":"1-22","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":107,"title":["Test Selection for Deep Learning Systems"],"prefix":"10.1145","volume":"30","author":[{"given":"Wei","family":"Ma","sequence":"first","affiliation":[{"name":"University of Luxembourg, Luxembourg"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mike","family":"Papadakis","sequence":"additional","affiliation":[{"name":"University of Luxembourg, Luxembourg"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8312-1358","authenticated-orcid":false,"given":"Anestis","family":"Tsakmalis","sequence":"additional","affiliation":[{"name":"University of Luxembourg, Luxembourg"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Maxime","family":"Cordy","sequence":"additional","affiliation":[{"name":"University of Luxembourg, Luxembourg"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yves Le","family":"Traon","sequence":"additional","affiliation":[{"name":"University of Luxembourg, Luxembourg"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2021,1,3]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"n.d. Fashion-MNIST. Retrieved","year":"2019","unstructured":"GitHub. n.d. Fashion-MNIST. Retrieved January 25, 2019 from https:\/\/github.com\/zalandoresearch\/fashion-mnist. GitHub. n.d. Fashion-MNIST. Retrieved January 25, 2019 from https:\/\/github.com\/zalandoresearch\/fashion-mnist."},{"key":"e_1_2_1_2_1","volume-title":"n.d. The CIFAR-10 Dataset. Retrieved","author":"Krizhevsky Alex","year":"2019","unstructured":"Alex Krizhevsky , Vinod Nair , and Geoffrey Hinton . n.d. The CIFAR-10 Dataset. Retrieved January 25, 2019 from https:\/\/www.cs.toronto.edu\/ kriz\/cifar.html. Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. n.d. The CIFAR-10 Dataset. Retrieved January 25, 2019 from https:\/\/www.cs.toronto.edu\/ kriz\/cifar.html."},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/1062455.1062530"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/3128572.3140444"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1109\/SP.2017.49"},{"key":"e_1_2_1_6_1","unstructured":"Reuben Feinman Ryan R. Curtin Saurabh Shintre and Andrew Gardner. 2017. Detecting adversarial samples from artifacts. arXiv:1703.00410  Reuben Feinman Ryan R. Curtin Saurabh Shintre and Andrew Gardner. 2017. Detecting adversarial samples from artifacts. arXiv:1703.00410"},{"key":"e_1_2_1_7_1","volume-title":"Proceedings of the International Conference on Machine Learning. 1050--1059","author":"Gal Yarin","year":"2016","unstructured":"Yarin Gal and Zoubin Ghahramani . 2016 . Dropout as a Bayesian approximation: Representing model uncertainty in deep learning . In Proceedings of the International Conference on Machine Learning. 1050--1059 . Yarin Gal and Zoubin Ghahramani. 2016. Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the International Conference on Machine Learning. 1050--1059."},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/3368089.3409739"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2483760.2483769"},{"key":"e_1_2_1_10_1","volume-title":"Proceedings of the International Conference on Learning Representations. http:\/\/arxiv.org\/abs\/1412","author":"Goodfellow Ian","year":"2015","unstructured":"Ian Goodfellow , Jonathon Shlens , and Christian Szegedy . 2015 . Explaining and harnessing adversarial examples . In Proceedings of the International Conference on Learning Representations. http:\/\/arxiv.org\/abs\/1412 .6572 Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. 2015. Explaining and harnessing adversarial examples. In Proceedings of the International Conference on Learning Representations. http:\/\/arxiv.org\/abs\/1412.6572"},{"key":"e_1_2_1_11_1","unstructured":"Kathrin Grosse David Pfaff Michael T. Smith and Michael Backes. 2018. The limitations of model uncertainty in adversarial settings. arXiv:1812.02606  Kathrin Grosse David Pfaff Michael T. Smith and Michael Backes. 2018. The limitations of model uncertainty in adversarial settings. arXiv:1812.02606"},{"key":"e_1_2_1_12_1","volume-title":"Proceedings of the 34th International Conference on Machine Learning\u2014Volume 70","author":"Guo Chuan","unstructured":"Chuan Guo , Geoff Pleiss , Yu Sun , and Kilian Q. Weinberger . 2017. On calibration of modern neural networks . In Proceedings of the 34th International Conference on Machine Learning\u2014Volume 70 . 1321--1330. Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. 2017. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning\u2014Volume 70. 1321--1330."},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","DOI":"10.5555\/3295222.3295309"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00108"},{"key":"e_1_2_1_15_1","volume-title":"Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI\u201995)","volume":"2","author":"Kohavi Ron","year":"1995","unstructured":"Ron Kohavi . 1995 . A study of cross-validation and bootstrap for accuracy estimation and model selection . In Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI\u201995) , Vol. 2 . 1137--1143. http:\/\/dl.acm.org\/citation.cfm?id=1643031.1643047 Ron Kohavi. 1995. A study of cross-validation and bootstrap for accuracy estimation and model selection. In Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI\u201995), Vol. 2. 1137--1143. http:\/\/dl.acm.org\/citation.cfm?id=1643031.1643047"},{"key":"e_1_2_1_16_1","unstructured":"Alexey Kurakin Ian Goodfellow and Samy Bengio. 2016. Adversarial examples in the physical world. arXiv:1607.02533  Alexey Kurakin Ian Goodfellow and Samy Bengio. 2016. Adversarial examples in the physical world. arXiv:1607.02533"},{"key":"e_1_2_1_17_1","unstructured":"Alexey Kurakin Ian J. Goodfellow and Samy Bengio. 2016. Adversarial machine learning at scale. arXiv:1611.01236  Alexey Kurakin Ian J. Goodfellow and Samy Bengio. 2016. Adversarial machine learning at scale. arXiv:1611.01236"},{"key":"e_1_2_1_18_1","volume-title":"Hinton","author":"LeCun Yann","year":"2015","unstructured":"Yann LeCun , Yoshua Bengio , and Geoffrey E . Hinton . 2015 . Deep learning. Nature 521, 7553 (2015), 436--444. DOI:https:\/\/doi.org\/10.1038\/nature14539 Yann LeCun, Yoshua Bengio, and Geoffrey E. Hinton. 2015. Deep learning. Nature 521, 7553 (2015), 436--444. DOI:https:\/\/doi.org\/10.1038\/nature14539"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1109\/5.726791"},{"key":"e_1_2_1_20_1","unstructured":"Min Lin Qiang Chen and Shuicheng Yan. 2013. Network in network. arXiv:1312.4400  Min Lin Qiang Chen and Shuicheng Yan. 2013. Network in network. arXiv:1312.4400"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/SANER.2019.8668044"},{"key":"e_1_2_1_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/3238147.3238202"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1109\/ISSRE.2018.00021"},{"key":"e_1_2_1_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236024.3236082"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1109\/CVPR.2016.282"},{"key":"e_1_2_1_26_1","volume-title":"Proceedings of the 2016 IEEE European Symposium on Security and Privacy (EuroS8P\u201916)","author":"Papernot N.","unstructured":"N. Papernot , P. McDaniel , S. Jha , M. Fredrikson , Z. B. Celik , and A. Swami . 2016. The limitations of deep learning in adversarial settings . In Proceedings of the 2016 IEEE European Symposium on Security and Privacy (EuroS8P\u201916) . 372--387. N. Papernot, P. McDaniel, S. Jha, M. Fredrikson, Z. B. Celik, and A. Swami. 2016. The limitations of deep learning in adversarial settings. In Proceedings of the 2016 IEEE European Symposium on Security and Privacy (EuroS8P\u201916). 372--387."},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/3132747.3132785"},{"key":"e_1_2_1_28_1","volume-title":"Adversarial Detection through Bayesian Approximations in Deep Learning. Diss","author":"Pinder Thomas","unstructured":"Thomas Pinder . 2018. Adversarial Detection through Bayesian Approximations in Deep Learning. Diss . Lancaster University . Thomas Pinder. 2018. Adversarial Detection through Bayesian Approximations in Deep Learning. Diss. Lancaster University."},{"key":"e_1_2_1_29_1","unstructured":"Jonas Rauber Wieland Brendel and Matthias Bethge. 2017. Foolbox v0.8.0: A Python toolbox to benchmark the robustness of machine learning models. arXiv:1707.04131  Jonas Rauber Wieland Brendel and Matthias Bethge. 2017. Foolbox v0.8.0: A Python toolbox to benchmark the robustness of machine learning models. arXiv:1707.04131"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1016\/0377-0427(87)90125-7"},{"key":"e_1_2_1_31_1","first-page":"I","article-title":"Bayesian GAN","volume":"30","author":"Saatchi Yunus","year":"2017","unstructured":"Yunus Saatchi and Andrew Gordon Wilson . 2017 . Bayesian GAN . In Advances in Neural Information Processing Systems 30 , I . Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Eds.). Curran Associates, 3622--3631. http:\/\/papers.nips.cc\/paper\/6953-bayesian-gan.pdf. Yunus Saatchi and Andrew Gordon Wilson. 2017. Bayesian GAN. In Advances in Neural Information Processing Systems 30, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Eds.). Curran Associates, 3622--3631. http:\/\/papers.nips.cc\/paper\/6953-bayesian-gan.pdf.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"e_1_2_1_32_1","volume-title":"Giannakis","author":"Sheikholeslami Fatemeh","year":"2019","unstructured":"Fatemeh Sheikholeslami , Swayambhoo Jain , and Georgios B . Giannakis . 2019 . Minimum uncertainty based detection of adversaries in deep neural networks. arXiv:1904.02841 Fatemeh Sheikholeslami, Swayambhoo Jain, and Georgios B. Giannakis. 2019. Minimum uncertainty based detection of adversaries in deep neural networks. arXiv:1904.02841"},{"key":"e_1_2_1_33_1","unstructured":"Karen Simonyan and Andrew Zisserman. 2014. Very deep convolutional networks for large-scale image recognition. arXiv:1409.1556  Karen Simonyan and Andrew Zisserman. 2014. Very deep convolutional networks for large-scale image recognition. arXiv:1409.1556"},{"key":"e_1_2_1_34_1","volume-title":"Proceedings of the Conference on Uncertainty in Artificial Intelligence (UAI\u201918)","author":"Smith Lewis","year":"2018","unstructured":"Lewis Smith and Yarin Gal . 2018 . Understanding measures of uncertainty for adversarial example detection . In Proceedings of the Conference on Uncertainty in Artificial Intelligence (UAI\u201918) . 560--569. Lewis Smith and Yarin Gal. 2018. Understanding measures of uncertainty for adversarial example detection. In Proceedings of the Conference on Uncertainty in Artificial Intelligence (UAI\u201918). 560--569."},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.5555\/2627435.2670313"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180220"},{"key":"e_1_2_1_37_1","volume-title":"Proceedings of the 7th International Conference on Learning Representations (ICLR\u201919)","author":"Tsipras Dimitris","year":"2019","unstructured":"Dimitris Tsipras , Shibani Santurkar , Logan Engstrom , Alexander Turner , and Aleksander Madry . 2019 . Robustness may be at odds with accuracy . In Proceedings of the 7th International Conference on Learning Representations (ICLR\u201919) . Dimitris Tsipras, Shibani Santurkar, Logan Engstrom, Alexander Turner, and Aleksander Madry. 2019. Robustness may be at odds with accuracy. In Proceedings of the 7th International Conference on Learning Representations (ICLR\u201919)."},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00126"},{"key":"e_1_2_1_39_1","volume-title":"Hall","author":"Witten Ian H.","year":"2011","unstructured":"Ian H. Witten , Eibe Frank , and Mark A . Hall . 2011 . Data Mining : Practical Machine Learning Tools and Techniques (3rd ed.). Morgan Kaufmann ., San Francisco, CA. Ian H. Witten, Eibe Frank, and Mark A. Hall. 2011. Data Mining: Practical Machine Learning Tools and Techniques (3rd ed.). Morgan Kaufmann., San Francisco, CA."},{"key":"e_1_2_1_40_1","unstructured":"Xiaofei Xie Lei Ma Felix Juefei-Xu Hongxu Chen Minhui Xue Bo Li Yang Liu Jianjun Zhao Jianxiong Yin and Simon See. 2018. DeepHunter: Hunting deep neural network defects via coverage-guided fuzzing. arXiv:1809.01266v3  Xiaofei Xie Lei Ma Felix Juefei-Xu Hongxu Chen Minhui Xue Bo Li Yang Liu Jianjun Zhao Jianxiong Yin and Simon See. 2018. DeepHunter: Hunting deep neural network defects via coverage-guided fuzzing. arXiv:1809.01266v3"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3417330","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3417330","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T16:48:14Z","timestamp":1750178894000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3417330"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,1,3]]},"references-count":40,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2021,4,30]]}},"alternative-id":["10.1145\/3417330"],"URL":"https:\/\/doi.org\/10.1145\/3417330","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"value":"1049-331X","type":"print"},{"value":"1557-7392","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,1,3]]},"assertion":[{"value":"2019-11-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2020-08-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2021-01-03","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}