Prompt-engineering improves clinical safety of large language models for opioid equipotency conversion
Marton, T.; Corpman, D.; Lai, L.; Gabriel, R. A.; Chen, Y.
Show abstract
BackgroundLarge language models (LLMs) are increasingly used in medical education and clinical decision-making, but their reliability in high-risk medication dosing remains unclear. Opioid rotation is a common task requiring precise calculations where errors may result in overdose or inadequate pain relief. MethodsThirteen LLMs were tested using an API-based framework to ensure independent queries across trials. First, fictional clinical scenarios were tested to simulate real-world clinical situations involving opioid rotation; to test the effects of changes in wording, scenarios were revised into 4 "vignettes" showing the same clinical situation. Next, opioid pairs were tested with a random-dose paradigm across a clinically-pertinent range (5-120 mg daily morphine equivalents). LLM outputs were compared with expected values derived from reference standards. Accuracy was assessed using predefined safety thresholds: tight accuracy (0.85-1.15x expected dose) and broad accuracy (0.6-1.7x). We tested models naively and with prompts augmented with reference tables and unit explanations. ResultsNaive models generally exhibited low tight-range accuracy across opioid pairs. For any given opioid pair, each model would consistently produce similar incorrect conversion ratios despite wide variability across opioid pairs and language models. Vignette wording changes accounted for 76% of within-scenario response variance. Reference-based prompt augmentation significantly improved performance, with over half of models achieving high proportions of conversions within tight accuracy for morphine-equivalent conversions. ConclusionsWhile commercial LLMs demonstrated variable accuracy in the native state, prompt augmentation significantly improved their performance.
Matching journals
The top 6 journals account for 50% of the predicted probability mass.
Similar papers in this journal
- DrugWAS: Leveraging drug-wide association studies to facilitate drug repurposing for COVID-19 92%
- Algorithmic identification of treatment-emergent adverse events from clinical notes using large language models: a pilot study in inflammatory bowel disease 92%
- Assessment of the acute effects of 2C-B vs psilocybin on subjective experience, mood and cognition 90%
Similar papers in this journal
- Savor the flavor — a randomized double-blind study on taste-enhanced placebo analgesia in healthy volunteers 91%
- A Framework to Quantify Disparities in Pharmacogenomic Treatment Concordance and Drug Response Outcomes 91%
- Risk assessment of drug-induced Long QT Syndrome for some COVID-19 repurposed drugs 90%
Similar papers in this journal
Similar papers in this journal
- Assessing ChatGPT’s Mastery of Bloom’s Taxonomy using psychosomatic medicine exam questions 91%
- COHD-COVID: Columbia Open Health Data for COVID-19 Research 91%
- Optimal policy determination in sequential systemic and locoregional therapy of oropharyngeal squamous carcinomas: A patient-physician digital twin dyad with deep Q-learning for treatment selection 90%
"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.