arXiv · 2611.38231
Similar patients make language models predict death less often, not better
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Pengyu Zhan, Shansong Wang, Mojtaba Safari, Mingzhe Hu, Suyang Xi, Xiaofeng Yang. 2026-11-27. Similar patients make language models predict death less often, not better. https://arxiv.science/abs/2611.38231
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.