Abstract
Participant recruitment based on unstructured medical texts such as clinical notes and radiology reports has been a challenging yet important task for the cohort establishment in clinical research. Recently, Large Language Models (LLMs) such as ChatGPT have achieved tremendous success in various downstream tasks thanks to their promising performance in language understanding, inference, and generation. It is then natural to test their feasibility in solving the cohort recruitment task, which involves the classification of a given paragraph of medical text into disease label(s). However, when applied to knowledge-intensive problem settings such as medical text classification, where the LLMs are expected to understand the decision made by human experts and accurately identify the implied disease labels, the LLMs show a mediocre performance. To this end, we propose to use a knowledge graph as auxiliary information to guide the LLMs in making predictions. Moreover, to further boost the LLMs adapt to the problem setting, we apply a chain-of-thought (CoT) sample selection strategy enhanced by reinforcement learning, which selects a set of CoT samples given each individual medical report. Experimental results and various ablation studies show that our few-shot learning method achieves satisfactory performance compared with fine-tuning strategies and gains superb advantages when the available data is limited.
1. Introduction
Recruiting eligible participants for clinical trials is a critical bottleneck in medical research. While Electronic Medical Records (EMRs) contain the necessary data, much of it is trapped in "unstructured" text—clinical notes and radiology reports filled with jargon, abbreviations, and complex formatting. While general-purpose Large Language Models (LLMs) like ChatGPT are impressive, they often struggle with "knowledge-intensive" medical tasks. They lack specific domain expertise and frequently fail to utilize the broader context of medical relationships—for example, recognizing that "cardiomegaly" is a specific manifestation of heart disease.
CohortGPT addresses this gap by bridging the divide between general linguistic ability and the specialized medical reasoning required for accurate cohort recruitment. By integrating domain-specific knowledge and optimized reasoning examples, CohortGPT enables LLMs to identify eligible participants from unstructured reports with high precision, even when labeled data is scarce.
2. Methodology: The CohortGPT Framework
The authors introduce CohortGPT, which enhances standard LLMs through two primary innovations: static prompting from explicit knowledge and dynamic prompting via reinforcement learning.
2.1 Knowledge-Guided Static Prompting
Instead of feeding the LLM a raw medical report, CohortGPT provides a "cheat sheet" derived from a medical Knowledge Graph (KG). This graph maps the hierarchical relationships between various medical findings and diseases.
While the knowledge is structured hierarchically (as seen in the figure above), the researchers tested several ways to format this for the LLM. They found that "KG-as-Rule" was the most effective method. By converting the graph into human-readable rules (e.g., "Rule #3: Cardiomegaly (2) is related to heart disease"), the model can more easily follow medical logic compared to processing raw tree structures or triplets.
2.2 Dynamic Prompting via Reinforcement Learning
LLMs perform significantly better when provided with examples (Few-Shot Learning) and instructed to "think step-by-step" (Chain-of-Thought or CoT). However, the selection of these examples is crucial. CohortGPT utilizes a Policy Model enhanced by Reinforcement Learning (RL) to dynamically select the most helpful CoT samples from a candidate pool for every specific report it analyzes. Unlike standard retrieval methods that pick examples based on text similarity, the RL-based policy learns to select examples that specifically maximize the accuracy of the final prediction.
3. Experimental Results and Insights
The framework was evaluated on two gold-standard benchmarks: the IU-RR Dataset (3,955 radiology reports) and the MIMIC-CXR Dataset (a subset of 1,808 samples).
Key Findings:
- Superior Few-Shot Performance: On the IU-RR dataset with very limited training data (185 samples), CohortGPT (using ChatGPT) achieved an F1-score of 0.69, vastly outperforming fine-tuned domain models like BioBERT (0.44) and BioGPT (0.25).
- GPT-4 Dominance: When integrated with GPT-4, the framework reached an F1-score of 0.81 in the same low-data setting.
- The "Goldilocks" Zone: Performance improves as more examples (k-shots) are added, but only up to a point (typically 5–8 samples). Beyond this, the prompt becomes too complex, and the LLM's performance begins to degrade.
- Efficiency: CohortGPT allows researchers to build highly accurate recruitment tools without the need for thousands of manually labeled reports, which are expensive and time-consuming to produce.
4. Discussion and Future Work
While CohortGPT excels in low-data scenarios, the authors acknowledge that traditional fine-tuning of smaller models can eventually catch up if a massive amount of labeled data (thousands of samples) is available. Additionally, as medical knowledge graphs grow, managing prompt length within LLM context limits remains a challenge.
Future research directions include extending CohortGPT to other medical NLP tasks such as automated diagnosis and treatment optimization. There is also significant potential in deploying these frameworks using open-source LLMs (like LLaMA) to ensure data privacy within hospital environments.
Summary updated