Stability-Aware Prompt Optimization for Clinical Data Abstraction
Arinbjörn Kolbeinsson, Daniel Timbie, Sajjan Narsinghani, Sanjay Hariharan
TL;DR
The paper addresses the sensitivity of clinical LLMs to prompt wording and the need to treat prompt design and uncertainty jointly. It proposes a dual-objective prompt optimization loop that balances $J(P) = \lambda_{\text{perf}} F(P) + \lambda_{\text{stab}} S(P)$ by optimizing both task performance and stability across paraphrase variants. Across MedAlign applicability/correctness and MS subtype tasks with open and proprietary models, the study shows that higher accuracy does not guarantee stability, that stable predictions tend to be more confident, and that explicitly optimizing for stability reduces flip rates in most cases, sometimes with modest accuracy costs. These findings suggest stability should be incorporated into clinical AI validation and deployment to enhance reliability across teams and prompts, acting as a practical trust signal in production systems like CHARM.
Abstract
Large language models used for clinical abstraction are sensitive to prompt wording, yet most work treats prompts as fixed and studies uncertainty in isolation. We argue these should be treated jointly. Across two clinical tasks (MedAlign applicability/correctness and MS subtype abstraction) and multiple open and proprietary models, we measure prompt sensitivity via flip rates and relate it to calibration and selective prediction. We find that higher accuracy does not guarantee prompt stability, and that models can appear well-calibrated yet remain fragile to paraphrases. We propose a dual-objective prompt optimization loop that jointly targets accuracy and stability, showing that explicitly including a stability term reduces flip rates across tasks and models, sometimes at modest accuracy cost. Our results suggest prompt sensitivity should be an explicit objective when validating clinical LLM systems.
