LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Engine
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.
Tue 16 JulDisplayed time zone: Brasilia, Distrito Federal, Brazil change
09:00 - 10:30 | Opening Day2 + Keynote2 + AIware for Domain-specific ApplicationsLate Breaking Arxiv Track / Main Track at Mandacaru Chair(s): Jie M. Zhang King's College London | ||
09:00 5mDay opening | Opening for day 2 Main Track | ||
09:05 45mKeynote | Semantic-Aware AI: Elevating the Future of Software Development Main Track Baishakhi Ray Columbia University, New York; AWS AI Lab | ||
09:50 10mPaper | SolMover: Smart Contract Code Translation Based on Concepts Main Track Rabimba Karanjai University of Houston, Lei Xu Kent State University, Weidong Shi University of Houston DOI | ||
10:00 5mPaper | The Art of Programming: Challenges in Generating Code for Creative Applications Main Track Michael Cook King’s College London DOI | ||
10:05 5mPaper | Neuro-Symbolic Approach to Certified Scientific Software Synthesis Main Track Hamid Bagheri University of Nebraska-Lincoln, Mehdi Mirakhorli Rochester Institute of Technology, Mohamad Fazelnia University of Hawaii at Manoa, Ibrahim Mujhid University of Hawaii at Manoa, Md Rashedul Hasan University of Nebraska-Lincoln DOI | ||
10:10 5mPaper | LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Engine Late Breaking Arxiv Track Erblin Isaku Simula Research Laboratory, and University of Oslo (UiO), Christoph Laaber Simula Research Laboratory, Hassan Sartaj Simula Research Laboratory, Shaukat Ali Simula Research Laboratory and Oslo Metropolitan University, Thomas Schwitalla Cancer Registry of Norway, Jan F. Nygård Cancer Registry of Norway Pre-print | ||
10:15 15mLive Q&A | Session Q&A and topic discussions Main Track |