LLMs在差分测试核心中的应用:以医学规则引擎为例的案例研究
LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Engine
AI总结:
本研究提出LLMeDiff方法,利用大型语言模型为医学规则引擎GURI生成测试并进行差分测试,发现GPT-3.5幻觉最少且最鲁棒,并揭示了22条规则实现不一致的问题。
摘要:
挪威癌症登记处(CRN)使用自动化癌症登记支持系统(CaReSS)来支持核心癌症登记活动,即数据采集、数据整理以及为各类利益相关者生成数据产品和统计数据。GURI是CaReSS的核心组件,负责使用医学规则验证传入的数据。这些医学规则由医学专家根据医学标准、法规和研究手动实现。由于大型语言模型(LLMs)已经基于包括这些文档在内的大量公共信息进行了训练,它们可以被用于为GURI生成测试。因此,我们提出了一种基于LLM的测试生成和差分测试方法(LLMeDiff)来测试GURI。我们使用四种不同的LLMs、两个医学规则引擎实现以及58条真实医学规则进行了实验,以调查LLMs生成测试时的幻觉、成功率、时间效率和鲁棒性,以及这些测试发现GURI中潜在问题的能力。我们的结果显示,GPT-3.5产生的幻觉最少,成功率最高,并且总体上最鲁棒;然而,其时间效率最差。我们的差分测试揭示了22条医学规则中存在实现不一致的问题(例如,关于处理规则版本的问题)。最后,我们基于这些结果为从业者和研究人员提供了见解。
英文摘要:
The Cancer Registry of Norway (CRN) uses an automated cancer registration support system (CaReSS) to support core cancer registry activities, i.e, data capture, data curation, and producing data products and statistics for various stakeholders. GURI is a core component of CaReSS, which is responsible for validating incoming data with medical rules. Such medical rules are manually implemented by medical experts based on medical standards, regulations, and research. Since large language models (LLMs) have been trained on a large amount of public information, including these documents, they can be employed to generate tests for GURI. Thus, we propose an LLM-based test generation and differential testing approach (LLMeDiff) to test GURI. We experimented with four different LLMs, two medical rule engine implementations, and 58 real medical rules to investigate the hallucination, success, time efficiency, and robustness of the LLMs to generate tests, and these tests' ability to find potential issues in GURI. Our results showed that GPT-3.5 hallucinates the least, is the most successful, and is generally the most robust; however, it has the worst time efficiency. Our differential testing revealed 22 medical rules where implementation inconsistencies were discovered (e.g., regarding handling rule versions). Finally, we provide insights for practitioners and researchers based on the results.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。