On Robustness of LLMs in Healthcare: A Combinatorial Testing Approach to Prompt Perturbations

Emir Mujić, Iulia Nica, Franz Wotawa

Emir Mujić: Graz University of Technology, Institute of Software Engineering and Artificial Intelligence, Graz, Austria · Iulia Nica: Graz University of Technology, Institute of Software Engineering and Artificial Intelligence, Graz, Austria · Franz Wotawa: Graz University of Technology, Institute of Software Engineering and Artificial Intelligence, Graz, Austria

There is growing interest and practical use of large language models in domains such as software engineering and healthcare. In the latter, answer correctness is of particular interest to prevent harm. Any outcome of a large language model for a medical query must be correct and robust, meaning small wording changes or query bugs do not affect the outcome. In this paper, we focus on robustness and introduce a testing methodology for large language models that explicitly introduces faults in queries. Furthermore, we suggest combinatorial testing to detect interactions among query perturbations that cause a large language model to produce a different outcome. In addition to outlining the foundations of the proposed methodology, we conducted an initial experimental evaluation using real clinical prompts. The experimental evaluation showed that our approach can produce different and sometimes incorrect answers when using large language models.

Keywords: Large Language Models, Robustness, Prompt Perturbation, Combinatorial Testing, Healthcare, Clinical Safety

Pages: 950–955

DOI: 10.70314/is.2026.aihc.145

Download PDF