arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.09668cs.CLcs.SE
收藏

超越测试者的偏见:利用LLM和知识库引导模型测试

Beyond Testers' Biases: Guiding Model Testing with Knowledge Bases using LLMs

Carnegie Mellon University(卡内基梅隆大学);Carnegie Mellon Software Engineering Institute(卡内基梅隆软件工程研究所)

Chenyang Yang, Rishabh Rustogi, Rachel Brower-Sinning, Grace A. Lewis, Christian Kästner, Tongshuang Wu

AI总结:

针对模型测试中测试需求识别被忽视的问题,提出Weaver工具,利用LLM生成知识库并交互推荐概念,帮助测试者超越偏见,发现更多样化的测试概念和失败用例。

摘要:

当前的模型测试工作大多集中在创建测试用例上。识别要测试什么是一个在很大程度上被忽视且支持不足的步骤。我们提出了Weaver,一个交互式工具,支持需求获取以引导模型测试。Weaver使用大型语言模型生成知识库,并从中交互式地推荐概念,允许测试者获取需求以进行进一步测试。Weaver为测试者提供丰富的外部知识,并鼓励测试者系统地探索超越自身偏见的多样化概念。在一项用户研究中,我们表明,使用Weaver时,NLP专家和非专家都识别出了更多且更多样化的值得测试的概念。他们共同为零样本ChatGPT的立场检测发现了超过200个失败的测试用例。我们的案例研究进一步表明,Weaver可以帮助从业者在真实世界环境中测试模型,在这些环境中,开发者使用LLM定义更细致的应用场景(例如,代码理解和转录摘要)。

英文摘要:

Current model testing work has mostly focused on creating test cases. Identifying what to test is a step that is largely ignored and poorly supported. We propose Weaver, an interactive tool that supports requirements elicitation for guiding model testing. Weaver uses large language models to generate knowledge bases and recommends concepts from them interactively, allowing testers to elicit requirements for further testing. Weaver provides rich external knowledge to testers and encourages testers to systematically explore diverse concepts beyond their own biases. In a user study, we show that both NLP experts and non-experts identified more, as well as more diverse concepts worth testing when using Weaver. Collectively, they found more than 200 failing test cases for stance detection with zero-shot ChatGPT. Our case studies further show that Weaver can help practitioners test models in real-world settings, where developers define more nuanced application scenarios (e.g., code understanding and transcript summarization) using LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑