LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Engine
Erblin Isaku, Christoph Laaber, Hassan Sartaj, Shaukat Ali, Thomas, Schwitalla, Jan F. Nyg\r{a}rd

TL;DR
This paper explores using large language models to generate tests for a medical rule engine in cancer data registration, revealing their effectiveness and limitations in identifying implementation issues.
Contribution
It introduces LLMeDiff, a novel LLM-based differential testing approach for medical rule engines, demonstrating its effectiveness in uncovering inconsistencies.
Findings
GPT-3.5 performs best in success and robustness
Hallucinates least among tested LLMs
Identified 22 rules with implementation inconsistencies
Abstract
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsArtificial Intelligence in Law
Methods{Dispute@FaQ-s}How to file a dispute with Expedia? · Cosine Annealing · Linear Layer · Layer Normalization · Weight Decay · Dense Connections · Attention Dropout · Linear Warmup With Cosine Annealing · Residual Connection · Dropout
