[Paper Review] Zero-Shot Clinical Trial Patient Matching with LLMs
A GPT-4–based zero-shot system evaluates patient eligibility from unstructured notes to match trial criteria, achieving state-of-the-art on the 2018 n2c2 cohort and offering cost-efficient, retrieval-augmented prompting with interpretable justifications.
Matching patients to clinical trials is a key unsolved challenge in bringing new drugs to market. Today, identifying patients who meet a trial's eligibility criteria is highly manual, taking up to 1 hour per patient. Automated screening is challenging, however, as it requires understanding unstructured clinical text. Large language models (LLMs) offer a promising solution. In this work, we explore their application to trial matching. First, we design an LLM-based system which, given a patient's medical history as unstructured clinical text, evaluates whether that patient meets a set of inclusion criteria (also specified as free text). Our zero-shot system achieves state-of-the-art scores on the n2c2 2018 cohort selection benchmark. Second, we improve the data and cost efficiency of our method by identifying a prompting strategy which matches patients an order of magnitude faster and more cheaply than the status quo, and develop a two-stage retrieval pipeline that reduces the number of tokens processed by up to a third while retaining high performance. Third, we evaluate the interpretability of our system by having clinicians evaluate the natural language justifications generated by the LLM for each eligibility decision, and show that it can output coherent explanations for 97% of its correct decisions and 75% of its incorrect ones. Our results establish the feasibility of using LLMs to accelerate clinical trial operations.
Motivation & Objective
- Reduce manual, time-consuming trial eligibility screening by applying zero-shot LLM reasoning to unstructured EHR text.
- Demonstrate state-of-the-art performance on the 2018 n2c2 Cohort Selection benchmark without training data or in-context examples.
- Improve data and cost efficiency through prompting strategies and a two-stage retrieval pipeline.
- Assess interpretability by having clinicians evaluate natural language rationales generated by the LLM for eligibility decisions.
Proposed method
- Evaluate zero-shot performance of GPT-3.5, GPT-4, and open-source LLMs (Llama-2-70b, Mixtral-8x7B) on eligibility assessment.
- Compare prompting strategies: ACAN, ACIN, ICAN, ICIN to determine information load and efficiency.
- Implement a two-stage retrieval pipeline using small embedding models (BGE or MiniLM) for pre-filtering notes before prompting the assessment model.
- Use a structured prompt output (JSON) including Criterion, Medications, Rationale, Decision, Confidence to enable parsing and interpretability.
- Investigate retrieval token-efficiency by feeding top-k retrieved chunks rather than full notes.
- Assess interpretability by clinician review of LLM rationales for correct and incorrect decisions.

Experimental results
Research questions
- RQ1Can zero-shot LLMs accurately assess patient eligibility against free-text trial criteria without fine-tuning?
- RQ2What prompting strategies maximize accuracy while minimizing tokens, cost, and API calls?
- RQ3Does a retrieval-based pre-filtering step reduce token usage without sacrificing performance?
- RQ4Are LLM-generated rationales coherent and clinically useful for human reviewers?
- RQ5How do zero-shot models compare to the prior state-of-the-art on the n2c2 2018 cohort?
Key findings
- GPT-4 achieves state-of-the-art macro-F1 and micro-F1 on the 2018 n2c2 cohort (improving by +6 Macro-F1 and +2 Micro-F1 over prior SOTA) in zero-shot evaluation.
- Prompting strategy matters: increasing criteria definition specificity improves accuracy (e.g., GPT-4 with improved criteria reaches Macro-F1 0.81–0.93 range depending on strategy).
- ACIN prompting (all criteria in one prompt, individual notes) provides best cost-efficiency, maintaining high performance while reducing tokens, API calls, and cost by roughly an order of magnitude versus other strategies.
- A two-stage retrieval pipeline using small embedding models (MiniLM or BGE) can reduce token usage by over a third while surpassing prior state-of-the-art on certain metrics.
- Clinician evaluation shows GPT-4-generated rationales are fully correct 89% of the time when decisions are correct, and 67% (with 8% partial, 25% incorrect) when decisions are incorrect, indicating strong interpretability and useful, though not perfect, explanations.
- Retrieval-based approaches can reduce cost but may incur minor performance gaps compared to feeding full notes; optimal prompting and chunking mitigate this.
- System demonstrates potential for faster, cheaper, scalable clinical trial patient matching without model fine-tuning or in-context examples.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.