Motivated by the success of traditional software testing, numerous diversity measures have been proposed for testing deep neural networks (DNNs). In this study, we propose a shift in perspective, advocating for the consideration of DNN testing as directed testing problems rather than diversity-based testing tasks. We note that the objective of testing DNNs is specific and well-defined: identifying inputs that lead to misclassifications. Consequently, a more precise testing approach is to prioritize inputs with a higher potential to induce misclassifications, as opposed to emphasizing inputs that enhance "diversity."
We derive six directed metrics for DNN testing. Furthermore, we conduct a careful analysis of the appropriate scope for each metric, as applying metrics beyond their intended scope could significantly diminish their effectiveness. Our evaluation demonstrates that (1) diversity metrics are particularly weak indicators for identifying buggy inputs resulting from small input perturbations, and (2) our directed metrics consistently outperform diversity metrics in revealing erroneous behaviors of DNNs across all scenarios.
Rethinking Testing for LLM Applications: Characteristics, Challenges, and a Lightweight Interaction Protocol
Singapore Management University Singapore;Capital Normal University Beijing China;Tianjin University Tianjin China;Wuhan University China;CSIRO's Data61 \& Australian National University Australia;Nanyang Technological University Singapore;Singapore Management University;Capital Normal University;Tianjin University;Wuhan University;CSIRO's Data61 \& Australian National University;Nanyang Technological University
本文针对 LLM 应用的非确定性与多层架构,分析传统测试与 AI 安全分析的脱节及六大挑战,提出四类协作策略、闭环质量保障框架和轻量级 AICL 智能体交互协议。
University of Calgary(卡尔加里大学);University College London(伦敦大学学院);University of Otago(奥塔哥大学);Federal Rural University of Pernambuco(伯南布哥联邦农村大学);Radboud University(拉德堡德大学)
Detecting Non-Optimal Decisions of Embodied Agents via Diversity-Guided Metamorphic Testing
National Supercomputing Center(国家超算中心);School of Computer(计算机学院);Singapore Management University(新加坡国立大学);College of Information Engineering(信息工程学院);School of Computer Science and Technology(计算机科学与技术学院);College of Computing and Data Science(计算与数据科学学院)