用基于决策的变形测试揭示隐藏的DNN缺陷
Unveiling Hidden DNN Defects with Decision-Based Metamorphic Testing
摘要:
当代DNN测试工作经常使用变形测试(MT)进行。一般来说,事实上的MT框架使用语义保留突变来改变DNN输入图像,并确定DNN是否可以产生一致的预测。然而,我们发现DNN可能依赖于错误的决策(DNN输入上的某些组件)来进行预测,这可能仍然会偶然保留输出。现有的MT框架会忽略这种DNN缺陷。然而,错误的决定可能会导致对现实生活中可能存在的各种图像的连续错误预测。这项研究旨在揭示由不正确的DNN决策引起的隐藏DNN缺陷的普遍性(但保留一致的DNN预测)。为此,我们定制和优化了现代可解释AI(XAI)技术,以识别表示DNN进行预测的输入图像中的区域的视觉概念。然后,我们扩展了现有的基于MT的DNN测试框架,以检查DNN在测试输入及其突变输入上做出的决策的一致性。我们的评估表明,现有的MT框架忽略了由错误决策引起的大量DNN缺陷。我们进行人体评估,以证明我们发现的有效性并阐明其特征。通过DNN基于决策的变形关系的镜头,我们重新审视现有MT框架提出的变形转换的有效性。我们总结了这项研究的经验教训,可以为未来的DNN测试提供见解和指导。
英文摘要:
Contemporary DNN testing works are frequently conducted using metamorphic testing (MT). In general, de facto MT frameworks mutate DNN input images using semantics-preserving mutations and determine if DNNs can yield consistent predictions. Nevertheless, we find that DNNs may rely on erroneous decisions (certain components on the DNN inputs) to make predictions, which may still retain the outputs by chance. Such DNN defects would be neglected by existing MT frameworks. Erroneous decisions, however, would likely result in successive mis-predictions over diverse images that may exist in real-life scenarios. This research aims to unveil the pervasiveness of hidden DNN defects caused by incorrect DNN decisions (but retaining consistent DNN predictions). To do so, we tailor and optimize modern eXplainable AI (XAI) techniques to identify visual concepts that represent regions in an input image upon which the DNN makes predictions. Then, we extend existing MT-based DNN testing frameworks to check the consistency of DNN decisions made over a test input and its mutated inputs. Our evaluation shows that existing MT frameworks are oblivious to a considerable number of DNN defects caused by erroneous decisions. We conduct human evaluations to justify the validity of our findings and to elucidate their characteristics. Through the lens of DNN decision-based metamorphic relations, we re-examine the effectiveness of metamorphic transformations proposed by existing MT frameworks. We summarize lessons from this study, which can provide insights and guidelines for future DNN testing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。