模型增强的LLM驱动VUI测试方法用于VPA应用
Model-Enhanced LLM-Driven VUI Testing of VPA Apps
AI总结:
本文提出Elevate框架,利用大语言模型增强基于模型的VUI测试,通过从VPA应用输出中提取状态并生成上下文相关输入来逐步构建行为模型,在4,000个Alexa技能上相比Vitas实现了15%的状态空间覆盖率提升。
摘要:
围绕语音个人助理(VPA)(如Amazon Alexa)蓬勃发展的生态系统,推动了VPA应用的迅速增长。例如,最大的应用市场Amazon技能商店托管了超过200,000个应用。尽管这些应用广受欢迎,但应用发布的开放性和应用获取的便捷性也引发了关于安全性、隐私和质量的重大担忧。因此,人们提出了各种测试方法来系统地检查VPA应用的行为。为了解决VPA应用缺乏可见用户界面的固有问题,测试过程中采用了两种策略,即聊天机器人式测试和基于模型的测试。前者在扩展搜索空间方面往往缺乏有效指导,而后者在解释对话语义以构建精确且全面的应用行为模型方面存在不足。在这项工作中,我们介绍了Elevate,一个模型增强的大语言模型(LLM)驱动的VUI测试框架。Elevate利用LLM在自然语言处理方面的强大能力,弥补基于模型的VUI测试过程中的语义信息损失。它通过提示LLM从VPA应用的输出中提取状态并生成与上下文相关的输入来运行。在与应用的自动交互过程中,它逐步构建行为模型,这有助于LLM生成极有可能发现新状态的输入。Elevate通过创新技术将LLM与行为模型连接起来,例如将行为模型编码到提示中,以及根据上下文相关性选择LLM生成的输入。Elevate在4,000个真实世界的Alexa技能上与最先进的测试工具Vitas进行了基准对比。在所有类型的应用上,它实现了比Vitas高15%的状态空间覆盖率,并在效率上表现出显著提升。
英文摘要:
The flourishing ecosystem centered around voice personal assistants (VPA), such as Amazon Alexa, has led to the booming of VPA apps. The largest app market Amazon skills store, for example, hosts over 200,000 apps. Despite their popularity, the open nature of app release and the easy accessibility of apps also raise significant concerns regarding security, privacy and quality. Consequently, various testing approaches have been proposed to systematically examine VPA app behaviors. To tackle the inherent lack of a visible user interface in the VPA app, two strategies are employed during testing, i.e., chatbot-style testing and model-based testing. The former often lacks effective guidance for expanding its search space, while the latter falls short in interpreting the semantics of conversations to construct precise and comprehensive behavior models for apps. In this work, we introduce Elevate, a model-enhanced large language model (LLM)-driven VUI testing framework. Elevate leverages LLMs' strong capability in natural language processing to compensate for semantic information loss during model-based VUI testing. It operates by prompting LLMs to extract states from VPA apps' outputs and generate context-related inputs. During the automatic interactions with the app, it incrementally constructs the behavior model, which facilitates the LLM in generating inputs that are highly likely to discover new states. Elevate bridges the LLM and the behavior model with innovative techniques such as encoding behavior model into prompts and selecting LLM-generated inputs based on the context relevance. Elevate is benchmarked on 4,000 real-world Alexa skills, against the state-of-the-art tester Vitas. It achieves 15% higher state space coverage compared to Vitas on all types of apps, and exhibits significant advancement in efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。