LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Engine
Isaku, Erblin, Laaber, Christoph, Sartaj, Hassan, Ali, Shaukat, Schwitalla, Thomas, Nygård, Jan F.
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Apr-9-2024
- Country:
- Asia
- China > Shanghai
- Shanghai (0.04)
- Macao (0.04)
- Middle East > Jordan (0.04)
- Singapore > Central Region
- Singapore (0.04)
- China > Shanghai
- Europe
- Austria > Vienna (0.14)
- Norway
- Eastern Norway > Oslo (0.05)
- Northern Norway > Troms
- Tromsø (0.04)
- North America
- Canada > Ontario
- Toronto (0.04)
- United States
- California > San Francisco County
- San Francisco (0.14)
- Pennsylvania > Allegheny County
- Pittsburgh (0.04)
- Washington > King County
- Seattle (0.04)
- California > San Francisco County
- Canada > Ontario
- South America > Brazil
- Mato Grosso do Sul > Campo Grande (0.04)
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Health & Medicine > Therapeutic Area > Oncology (1.00)
- Technology: