Alignment of Large Language Models in Solving Medical Ethical Dilemmas ====================================================================== * Vera Sorin * Benjamin S. Glicksberg * Panagiotis Korfiatis * Jeremy D. Collins * Mei-Ean E. Yeow * Megan Brandeland * Girish N. Nadkarni * Eyal Klang ## Abstract Deontology and utilitarianism are two philosophical approaches to ethical decision-making, often illustrated by the well-known “Trolley” dilemma. We evaluated fourteen large language models (LLMs), including GPT-o1-preview and DeepSeek-R1-Distill-Llama, across five medical versions of this dilemma. While some models adhered to established ethical standards, others showed inconsistencies. All models occasionally favored a utilitarian approach over a deontological approach, with some reaching up to 80% of decisions. In certain instances, LLMs endorsed actions that would uniformly be considered unethical, such as amputating a limb without consent. These findings raise concerns about the real-world risks of using LLMs in clinical decision-making, particularly regarding patient autonomy and safety, and highlight the need for further investigation into how these models align with current medical ethical standards. ## INTRODUCTION Medical ethics navigate dilemmas in healthcare, balancing professional duties, moral principles, and public interest. Established principles in Western biomedical ethics guide decision making, but sometimes intersect with quality of life considerations, cultural beliefs and moral philosophy (1). In moral philosophy, two main approaches guide decisions: *deontology* and *utilitarianism* (2). *Deontology* judges actions based on duty and rules. *Utilitarianism* evaluates actions by their consequences (3). While both approaches shape healthcare ethics, utilitarian reasoning is rarely applied to *individual* patient care. The rapid rise of generative-AI presents opportunities and challenges in healthcare. Before these algorithms are adopted, their ethical alignment must be understood. The aim of this study was to assess how large language models (LLMs) respond to medical versions of the “Trolley” dilemma (details on the Trolley Dilemma are provided in the **Supplement)**. ## METHODS We designed prompts based on five medical versions of the “Trolley” dilemma from the literature. The cases included hypothetical scenarios by philosophers Peter Unger and Judith Jarvis Thomson, and more realistic scenarios like mass vaccination (4–6) (**eFigure 1, eTable 1**). Each scenario contrasted deontological and utilitarian approaches. We tested 14 LLMs (**eTable 2**). The prompt required a definitive yes or no response. **eTable 3** details the exact prompts. Each model was tested ten times per dilemma, generating 50 responses per model and a total of 700 prompts. Default model parameters were used. Each prompt was presented in a new instance. We aggregated the proportion of “yes” (utilitarian) and “no” (deontological) responses, calculated 95% confidence intervals, and used Chi-square tests to compare distributions across model. ## RESULTS Across the five ethical dilemmas, the proportion of responses supporting a utilitarian approach varied. GPT-4-8k and Gemma models were the least utilitarian, prioritizing the utilitarian approach in 20% of cases, while Qwen-2-7B reached 80% (p < 0.001). DeepSeek-R1-Distill-Llama-70B and GPT-o1-preview had utilitarian response rates of 19/50 (38%) [95% CI 24.6%–51.4%] and 22/50 (44.0%) [95% CI 30.2%–57.8%], respectively. **Table 1** details the overall proportions per model. Results per model and dilemma are demonstrated in **Figure 1** and the full results across all runs are detailed in **eTable 4**. Detailed examples of GPT-o1-preview and DeepSeek’s reasoning can be found in the **Supplement**.  [Figure 1.](http://medrxiv.org/content/early/2025/02/14/2024.09.18.24313931/F1) Figure 1. Proportions of Utilitarian Responses for Larger (a) and for Smaller (b) LLMs View this table: [Table 1.](http://medrxiv.org/content/early/2025/02/14/2024.09.18.24313931/T1) Table 1. Overall Proportion of Utilitarian vs. Deontological Responses Across LLMs ## DISCUSSION The results raise concerns about how LLMs navigate medical ethics. Some models inconsistently favored utilitarian decisions, even when violating key ethical principles. This is particularly concerning as LLMs, when integrated in healthcare, may subtly influence clinical decision-making, either by shaping a clinician’s perception without their awareness or by being directly consulted with. Some LLMs repeatedly endorsed giving morphine in doses that would cause death to a terminally-ill suffering patient. This raises the question: can this be considered to align with the doctrine of double effect or an endorsement of euthanasia? The nature of AI’s “intent” remains undefined, and ethically is not the same as human intent. It is unclear whether the doctrine of double effect can apply to AI-driven decisions. We will need to better understand how LLMs handle medical ethics as they evolve. Bias in training data may reinforce majority viewpoints, disadvantaging minorities. Given the diversity of human ethical perspectives, and the lack of universal consensus, it is uncertain who will define the policies for LLM-based decisions. Limitations of this study include a focus on a narrow set of dilemmas and simplified prompts, which do not capture real-world complexity. To conclude, for humans, certain actions are considered impermissible regardless of potential benefits. LLMs do not always recognize this. We need to consider how LLMs can influence medical decision making, how ethical guidelines for LLMs are established, and how we can ensure that ethical norms are not compromised. ## Supporting information Supplement [[supplements/313931_file03.docx]](pending:yes) ## Data Availability All data produced in the present work are contained in the manuscript ## Footnotes * Results were updated to include DeepSeek-R1-Distill-Llama, Figure 1 was added, text was revised throughout. * Received September 18, 2024. * Revision received February 13, 2025. * Accepted February 14, 2025. * © 2025, Posted by Cold Spring Harbor Laboratory The copyright holder for this pre-print is the author. All rights reserved. The material may not be redistributed, re-used or adapted without the author's permission. ## References 1. 1.Beauchamp TL. The ‘four principles’ approach to health care ethics. Principles of health care ethics. 2007;29:3–10. 2. 2.Conway P, Gawronski B. Deontological and utilitarian inclinations in moral decision making: a process dissociation approach. J Pers Soc Psychol. 2013;104(2):216–35. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.1037/a0031021&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=23276267&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2025%2F02%2F14%2F2024.09.18.24313931.atom) 3. 3.Gray K, Schein C. Two minds vs. two philosophies: Mind perception defines morality and dissolves the debate between deontology and utilitarianism. Review of Philosophy and Psychology. 2012;3(3):405–23. 4. 4.Thomson JJ. Killing, letting die, and the trolley problem. Monist. 1976;59(2):204–17. [CrossRef](http://medrxiv.org/lookup/external-ref?access_num=10.5840/monist197659224&link_type=DOI) [PubMed](http://medrxiv.org/lookup/external-ref?access_num=11662247&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2025%2F02%2F14%2F2024.09.18.24313931.atom) 5. 5.Unger PK. Living high and letting die: our illusion of innocence: Oxford University Press; 1996. 138–47 p. 6. 6.Rosenbaum L. Trolleyology and the Dengue Vaccine Dilemma. N Engl J Med. 2018;379(4):305–7. [PubMed](http://medrxiv.org/lookup/external-ref?access_num=29898371&link_type=MED&atom=%2Fmedrxiv%2Fearly%2F2025%2F02%2F14%2F2024.09.18.24313931.atom)