Key points
- The controlled replication covered 11 cancer cohorts, 14,164 records and 2,282 deaths from a single-centre database.
- With the original method's retriever, similar examples performed equivalently to random ones, and both made risk ranking worse than the discharge summary alone.
- Examples raised accuracy at the default cutoff only by making the model predict death less often; a refitted cutoff did better.
- The model's answers tracked how many deaths appeared among the examples it was shown.
A new preprint reports that showing a large language model the records of similar patients did not make it better at judging which cancer patients were most likely to die soon after leaving the hospital. The study has not yet been peer-reviewed. It takes a second look at a prompting strategy that earlier work had reportedly found helpful for this kind of prediction.
Large language models are AI systems trained on vast amounts of text, and the researchers note they can estimate a patient's outlook from clinical notes without being trained specifically for that job. The strategy under test, called dynamic few-shot prompting, goes a step further: before asking about a new patient, it shows the model the notes and outcomes of comparable patients.
The researchers point out that the original comparison changed several things at once: the wording of the prompt, whether labelled examples were included, and how closely those examples matched the patient. They also note that examples placed in a prompt can nudge a model's answers through the outcome labels they carry. To pull these factors apart, the team repeated the comparison under controlled conditions in 11 cancer cohorts. The data came from a publicly accessible single-centre database and covered 14,164 records and 2,282 deaths. The model was asked to predict death within 90 days of discharge.
With the original method's retriever, the tool that picks which examples to show, similar examples performed equivalently to random ones within a margin set in advance. Both made the model worse at ranking patients by risk than the discharge summary alone. A stronger retriever and a bigger model shrank that loss but did not reverse it.
The examples did raise accuracy at the default cutoff, but only because the model predicted death too often without them, and the examples made it do so less. Refitting the cutoff to the model's example-free scores raised accuracy even more. The model's answers also followed how many deaths appeared among the examples it was shown. Based on these results, the authors argue that studies of retrieval-based prompting should compare against random examples and prompts with matched wording, and should rely on metrics that do not depend on a cutoff.
Why it matters
The authors say evaluations of retrieval-based prompting need random-example and wording-matched controls, along with metrics that do not depend on a threshold. Without them, apparent gains in clinical prediction may be misleading.
What we don't know yet
The work is a preprint that has not been peer-reviewed, and its data come from 11 cancer cohorts drawn from a single publicly accessible single-centre database.
Terms in this story
- Few-shot prompting
- Giving a language model a few worked examples inside its prompt before asking it to handle a new case.
- Retriever
- A tool that searches a collection of records and picks which ones to show the model as examples.
- Discharge summary
- A clinical note written when a patient leaves the hospital, describing their stay and condition.
Sources and verification
DexScience articles are produced with AI assistance and an automated fact-check against the linked sources. Spotted an error? Tell us and we will correct it openly.


