Similar patients make language models predict death less often, not better
cs.AI
Submitted: 2026-11-27
Updated: 2026-11-27
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large language models can estimate prognosis from clinical notes without task-specific training, and showing them the notes and outcomes of similar patients…
Abstract
Large language models can estimate prognosis from clinical notes without task-specific training, and showing them the notes and outcomes of similar patients, a strategy known as dynamic few-shot prompting, reportedly improves such predictions. This comparison, however, changes the wording of the prompt, the presence of labelled examples and their similarity to the patient at once, and in-context examples can shift a model's answers through the labels they display. Here we show, in a controlled replication across 11 cancer cohorts (14,164 records; 2,282 deaths) from a publicly accessible single-centre database, that similar patients did not help a language model rank patients by their risk of death within 90 days of discharge. With the retriever of the original method, similar examples were equivalent within the pre-specified margin to random ones, and both lowered discrimination relative to the discharge summary alone; a stronger retriever and a larger model reduced this loss but did not reverse it. Examples nonetheless raised accuracy at the default threshold because the zero-shot prompt over-predicted death and examples made that prediction less frequent, and a threshold fitted to zero-shot scores raised accuracy further. The model's answers followed the number of deaths among the examples shown. Evaluations of retrieval-based prompting therefore need random-example and wording-matched controls and threshold-free metrics.
Related papers
- Beyond Moral Performance: Empirical Assessment of LLMs' Moral Competence Through Judgment Stability
- K12Vista: Exploring the Boundaries of MLLMs in K-12 Education
- A Matter of TASTE: Improving Coverage and Difficulty of Agent Benchmarks
- FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing
- Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations
- VESTA: Visual Exploration with Statistical Tool Agents