Skip to main content
Lippincott Open Access logoLink to Lippincott Open Access
. 2025 Jun 9;9:e2500071. doi: 10.1200/CCI-25-00071

Enhancing Patient-Trial Matching With Large Language Models: A Scoping Review of Emerging Applications and Approaches

Hongyu Chen 1, Xiaohan Li 1, Xing He 2,3, Aokun Chen 1, James McGill 4, Emily C Webber 5,6, Hua Xu 7, Mei Liu 1, Jiang Bian 2,3,✉
PMCID: PMC12169815  NIHMSID: NIHMS2078121  PMID: 40489722

Abstract

PURPOSE

Patient recruitment remains a major bottleneck in clinical trial execution, with inefficient patient-trial matching often causing delays and failures. Recent advancements in large language models (LLMs) offer a promising avenue for automating and improving this process. This scoping review aims to provide a comprehensive synthesis of the emerging applications of LLMs in patient-trial matching.

METHODS

A comprehensive search was conducted in PubMed, Web of Science, and OpenAlex for literature published between December 1, 2022, and December 31, 2024. Studies were included if they explicitly integrated LLMs into patient-trial matching systems. Data extraction focused on system architectures, patient data processing, eligibility criteria processing, matching techniques, evaluation metrics, and performance.

RESULTS

Of the 2,357 studies initially identified, 24 met the inclusion criteria. The majority (21/24) were published in 2024, highlighting the rapid adoption of LLMs in this domain. Most systems used patient-centric matching (17/24), with OpenAI's generative pretrained transformer models being the most commonly used LLM. Core components of these systems included eligibility criteria processing, patient data processing, and matching, with some incorporating retrieval algorithms to enhance computational efficiency. LLM-integrated approaches demonstrated improved accuracy and scalability in patient-trial matching, although challenges such as performance variability, interpretability, and reliance on synthetic data sets remain significant.

CONCLUSION

LLM-based patient-trial matching systems present a transformative opportunity to enhance the efficiency and accuracy of clinical trial recruitment. Despite current limitations related to model generalizability, explainability, and data constraints, future advancements in hybrid modeling strategies, domain-specific fine-tuning, and real-world data set integration could further optimize LLM-based trial matching. Addressing these challenges will be crucial to realizing the full potential of LLMs in streamlining patient recruitment and accelerating clinical trial execution.

BACKGROUND

Clinical trials, particularly randomized controlled trials, are widely regarded as the gold standard for evaluating the effectiveness and safety of health care interventions.1,2 Notably, as the second leading cause of death worldwide, the number of cancer trials has increased tremendously,3 in the pursue of more effective and safe treatment strategies. Recruitment of sufficient eligible participants within the planned time frame remains one of the most significant challenges in clinical trials,4 especially for cancer trials.5 Studies indicate that 86% of clinical trials fail to complete recruitment within their targeted timelines.6 Furthermore, difficulties in participant accrual are frequently cited as the primary reason for clinical trial termination, as highlighted in numerous investigations into trial discontinuation.7-9 Insufficient recruitment not only diminishes the scientific value of a clinical trial—for instance, when sample sizes are too small to reject the null hypothesis—but also increases financial burdens by prolonging study durations and escalating costs.10

One of the key challenges in addressing this issue is the difficulty in identifying patients with suitable clinical trials.11 With the growing availability of electronic health records (EHRs), patient-trial matching based on trial eligibility criteria and patients' EHRs has become more prevalent.12,13 Patient-trial matching tasks can generally be categorized into two14: (1) a trial-to-patient (or trial-centric) approach, matching a single trial to a pool of potential patients15 by parsing trial criteria into structured queries to efficiently search patient databases16; and (2) a patient-to-trial (or patient-centric) approach, matching an individual patient to a list of potential trials for which they may be eligible,17 helping patients explore options aligned with their medical profile.14 Clinical trials have become integral to cancer care, especially when standard treatment options are limited. The National Comprehensive Cancer Network emphasizes that “the best management for any patient with cancer is within a clinical trial,” highlighting their importance in providing access to cutting-edge therapies and expert care.18 Regardless of the purpose (ie, trial-to-patient v patient-trial), under-the-hood, patient-trial matching involves parsing trial criteria into queries and searching the patient databases. Historically, the eligibility criteria of cancer trials have been more complex than those of other trials, and this complexity has steadily increased,19 creating broader issues such as trial generalizability.20,21 Currently, parsing eligibility criteria into database queries is predominantly manual and labor-intensive, leading to inefficiencies and being prone to human error,22 although some research has explored methods to automate this process.

Machine learning (ML) and natural language processing (NLP) are increasingly being adopted to streamline patient-trial matching.11,23 A common approach applies NLP techniques to transform eligibility criteria into structured data elements, which can then be converted into executable queries for clinical data warehouses focused on structured EHR data, including our previous work in this area.16,24,25 In addition, NLP methods can process unstructured patient notes—where approximately 80% of clinical patient information resides26—by extracting key data elements and reformatting them into structured formats to improve trial filtering.27 Furthermore, some studies leverage contextual embeddings to represent both eligibility criteria and patient information, enabling semantic similarity searches that match patients to trials based on contextual meaning rather than exact textual alignment.28,29 Although these conventional approaches have demonstrated effectiveness in patient-trial matching, they have significant limitations. Many ML and NLP models are domain-specific, often tailored to specific medical conditions, data formats, or institutional settings, which limits their generalizability. Additionally, these models often require large, high-quality annotated data sets, which poses a significant challenge to scalability. These issues are further compounded by the vast diversity of clinical trials and data heterogeneity across EHR systems.

Recent advancements in large language models (LLMs) present a transformative opportunity for patient-trial matching. For instance, Datta et al30 developed AutoCriteria, an information extraction system that uses LLMs to extract detailed eligibility criteria from free-text clinical trial protocols across diverse diseases, such as cancer, Alzheimer's disease, steatohepatitis, and inflammatory bowel diseases, eliminating the need for manual annotations. Similarly, Park et al31 introduced Criteria2Query 3.0, which leverages OpenAI's generative pretrained transformer (GPT)-4 to improve the parsing of free-text eligibility criteria to generate structured query language (SQL) queries and provides reasoning prompts to explain these queries and their standardized concepts. Specifically in oncology, Gupta et al32 reframed patient-trial matching as a question-answering task with the PRISM pipeline, an end-to-end solution that matches patients to cancer trials using LLM. They also fine-tuned a custom model called OncoLLM. Originally developed for traditional information retrieval systems, dense similarity–based and other retrieval techniques have been widely adopted in the LLM field as Retrieval-Augmented Generation (RAG) to provide relevant contextual information.33 Jin et al22 introduced TrialGPT, a system designed to retrieve relevant trials, make detailed criterion-level predictions with explainable outputs, and aggregate these into trial-level matching scores using LLMs. This approach enhances flexibility, scalability, and explainability, offering a robust framework for patient-trial matching in complex and diverse health care data settings.

Despite significant advancements, there remains a critical gap in the literature. Kantor et al23 recently reviewed studies on processing clinical trial eligibility criteria using ML and NLP. Nevertheless, their review does not address how EHR data are processed for the patient-matching problem and has limited focus on LLMs. No comprehensive review currently captures the rapidly evolving applications and innovative approaches for enhancing patient-trial matching using LLMs. To fill this gap, we present a scoping review of the scientific literature on the use of LLMs for patient-trial matching, aiming to (1) provide a comprehensive overview of state-of-the-art approaches and (2) identify key challenges, limitations, and opportunities.

METHODS

Research Questions

This scoping review examines the current implementation of LLM-integrated patient-trial matching systems, identifies knowledge gaps, and highlights new opportunities in the field. To achieve this, the following research questions are posed:

  1. What are the key components of patient-trial matching systems that incorporate LLMs?

  2. How are LLMs applied within these components, and how is their performance evaluated?

  3. What limitations exist in current LLM-based approaches, and what opportunities can future research pursue to address these challenges?

Search Strategy

Our literature search primarily used PubMed, Web of Science, and OpenAlex. We adhered to the Preferred Reporting Items for Systematic Reviews and Meta-Analyses for Scoping Reviews (PRISMA-ScR)34 guidelines to ensure a comprehensive and systematic approach. Our review focused on studies published between December 1, 2022 (the release date of ChatGPT) and December 31, 2024. To facilitate the review process, we used Covidence, a Web-based collaboration software platform that streamlines the production of systematic and other literature reviews.35 The search query logic is structured as follows: studies must include either (1) trial matching terms, such as patient-trial matching, cohort selection, or cohort ascertainment, OR (2) trial-related terms (eg, trial, clinical trial, clinical study, or criteria) combined with matching-related terms (eg, matching, recruitment, accrual, screening, eligibility, selection, or enrollment). Additionally, all studies must also include LLM terms, such as Large Language Model, LLM, GPT, or ChatGPT. The keywords for the scoping review are shown in Table 1. The search queries are in the Data Supplement (Table S1).

TABLE 1.

The Keywords for the Scoping Review

Terms Keywords
Trial matching Patient-trial matching, cohort selection, cohort ascertainment
Trial trial*, criteria, clinical trial*, clinical stud*
Matching matching, recruitment, accrual, pre-screening, screening*, identif, find*, eligible, selection, admission, enlistment, acceptance, registration, registered, participat*, patient*, recruit*, enroll*, select*, prescreen*, e-screen*, eligibility
LLM Large Language Model*, LLM, LLMs, Pre-trained Language Model, GPT3*, GPT4*, GPTs, GPT, BERT, ChatGPT*, Generative Pre-trained Transformer

NOTE. Asterisk (*) denotes a wildcard for fuzzy searching.

Abbreviations: BERT, Bidirectional Encoder Representations from Transformers; LLMs, large language models.

Inclusion and Exclusion Eligibility Criteria

We established specific inclusion and exclusion criteria to ensure relevance and quality, focusing on studies that introduce comprehensive patient-trial matching systems—that is, studies must provide an end-to-end solution from criteria parsing to matching patients to trials. The inclusion criteria are (1) studies must explicitly focus on patient-trial matching systems, and (2) studies must investigate the use of LLMs in any component of the trial matching process, including tasks such as eligibility criteria extraction, patient data analysis, or the matching process. The exclusion criteria are (1) studies without full-text availability, (2) nonresearch articles (eg, letters, commentaries, or editorials), (3) studies that do not provide a comprehensive trial matching system, (4) studies that exclusively use Bidirectional Encoder Representations from Transformers (BERT)–based models (as this review focuses on generative models after ChatGPT), and (5) publications not in English. These criteria ensure a focused and rigorous review of recent evolution of LLMs in clinical trial matching.

Article Screening Process

The abstract and full-text screening process followed a systematic approach to ensure consistency and rigor in study selection. Two reviewers (H.C. and X.L.) independently evaluated the titles and abstracts of all identified studies against the inclusion and exclusion criteria. A second round of full-text screening then confirmed the relevance and quality of the selected studies. Any discrepancies or disagreements during the screening process were resolved through consultation with a third reviewer (X.H.).

Data Extraction

The data extraction process included articles that passed the full-text screening. During this phase, we iteratively refined our data extraction guidelines to ensure accuracy and consistency. Key aspects were extracted from the included articles to address the research questions comprehensively. The Data Supplement (Table S2) summarizes the extracted data elements, the rationale behind their inclusion, and their relevance to the specific research questions.

RESULTS

Search Process and Screening Results

Figure 1 presents the PRISMA-ScR diagram illustrating the literature selection process. The initial search yielded 2,357 papers, with the majority sourced from OpenAlex (1,334), followed by Web of Science (542) and PubMed (481). After removing 754 duplicate records, 1,603 papers proceeded to the screening stage. In all, 1,567 papers were excluded after title and abstract screening, resulting in 35 papers for full-text review. The interannotator agreement measured by Cohen's kappa was 0.748. During the full-text review, 12 papers were excluded, primarily for not providing a comprehensive trial matching system (nine papers). Additional reasons for exclusion included full-text inaccessibility, no results reported, and only using BERT-based models, each contributing to the exclusion of one paper. Finally, 24 papers were included in this scoping review. The complete data extraction is provided in the Data Supplement (Table S3).

FIG 1.

FIG 1.

The PRISMA diagram depicts the number of records identified, included and excluded, and the reasons for exclusion. BERT, Bidirectional Encoder Representations from Transformers; PRISMA, Preferred Reporting Items for Systematic Reviews and Meta-Analyses for Scoping Reviews.

Publication Trends and LLM Adoption in Patient-Trial Matching

The application of LLMs to patient-trial matching is a rapidly evolving area of research. Most papers (21 of 24) were published in 2024, with gray literature accounting for half (12 of 24) of the included papers. The majority of systems focused on patient-centric matching (17 studies), whereas some studies explored trial-centric matching (six studies) and one32 addressed both.

OpenAI's GPT models36-39 were the most frequently adopted LLMs, appearing in 19 studies, followed by LLaMA40,41 models (six studies). Other models such as GLM,42 Phi,43 Qwen,44 Mistral,45 and Mixtral,46 were also used. Additionally, domain-specific LLMs, including MedLlama47 and Meditron,48 were investigated in some studies. Prompt engineering techniques dominated model development and deployment, including zero-shot, few-shot, and chain-of-thought prompting. Although fine-tuning was less prevalent, it signals an emerging trend toward model customization for clinical applications. One study49 assembled a large-scale data set of 793,279 trial documents and 1,113,207 trial-related scientific papers, pretraining and instruction tuning a foundation model for clinical trial–related tasks.

Key Components of Patient-Trial Matching Systems Incorporating LLMs

As is shown in Figure 2, patient-trial matching systems typically consist of three core components: (1) an eligibility criteria processing module, (2) a patient data processing module, and (3) a matching module. Some studies incorporate a retrieval module (eg, via traditional information retrieval methods such as BM25 or similarity-based approaches including using LLM-based embeddings)—a key component of more recent RAG design patterns—to narrow down potential patients or trials before the final matching module, helping to mitigate high computational costs.

FIG 2.

FIG 2.

Popular components of patient-trial matching system. The icons were designed by Freepik.50

Clinical Trial Eligibility Criteria Processing Module

The eligibility criteria processing module transforms the original criteria to prepare them for the matching process. In this scoping review, 12 studies did not process eligibility criteria at all, allowing raw criteria to proceed directly to the matching module. When implemented, this module typically involves three key techniques: eligibility criteria parsing, medical concept normalization, and rephrasing. Among the other 12 studies, the number of clinical trials analyzed ranged from as few as 151 to as many as 105,600.52

Eligibility criteria parsing.

Eligibility criteria parsing was used in four studies to identify key eligibility phrases, structured components, and logical relationships within free-text criteria. Clinical concepts, such as disease and chemicals, were commonly extracted. Although some studies did not report evaluation metrics, those that did assessed extraction performance using precision, recall, and F1 score. For example, Criteria2Query 3.031 used LLMs to extract medical concepts from eligibility criteria, achieving a precision of 0.862, recall of 0.922, and F1 score of 0.891. Wong et al53 reported a precision of 0.578, recall of 0.737, and F1 score of 0.648 for histological criteria extraction; a precision, recall, and F1 score of 0.725 for biomarker extraction; and a precision of 0.273, recall of 0.324, and F1 score of 0.296 for logical relationship extraction.

Medical concept normalization.

The extracted information was often normalized using standardized vocabularies such as International Classification of Diseases (ICD) codes for diseases and conditions, Logical Observation Identifiers Names and Codes for laboratory tests, and RxNorm for medications. The Unified Medical Language System (UMLS) 54 is often used as references for concept normalization algorithms.55 Some studies31 have also mapped the concepts to the Observational Medical Outcomes Partnership (OMOP) vocabulary system to enable downstream queries of EHR data in the OMOP Common Data Model (CDM). Evaluation metrics for normalization include precision, recall, and F1 score.

Rephrasing.

Instead of converting eligibility criteria to structured data, nine studies rephrased them into simplified, independent units while preserving semantic integrity, among which five studies used LLMs. These units took various forms, including criteria,52,56 questions,32,57 and criteria with external definitions.58 Rephrasing accuracy was typically assessed through human evaluation, with one study32 reporting an accuracy of 97% for question generation and 89% for Boolean logic.

Patient Data Processing Module

The patient data processing module prepares patient profiles by transforming characteristics from structured and unstructured data sources into simplified, standardized formats, addressing the complexity of clinical notes and EHR variability. As shown in Figure 3, synthetic patient case descriptions were the most frequently used data source for patient-trial matching, appearing in 10 studies, followed closely by clinical notes (nine studies). Synthetic patient answers to structured questionnaires designed to assess eligibility were examined in three studies, whereas manually generated descriptions from published case reports were used in two studies.59,60 Less common data sources included claim data (one study56) and structured EHR data (two studies31,53). Notably, two studies61,62 combined different data types: one used questionnaires with clinical notes, and the other integrated case descriptions with questionnaires. One study used EHRs incorporating both structured and unstructured data (ie, clinical notes).53

FIG 3.

FIG 3.

The common processing flow for different data types. EHR, electronic health record.

Due to privacy and security concerns, access to large-scale public data sets was limited, with 12 studies relying on in-house data sets. The most frequently referenced public data sets were SIGIR 2016,63 TREC 2021,64 TREC 2022,17 and TREC 202365 (used in eight studies), along with the n2c2 201815 data set (five studies). However, although data sets like SIGIR and TREC offer scale, their reliance on synthetic patient case descriptions and simulated questionnaires raises concerns about evaluation validity compared with real-world data. Patient sample sizes ranged from 10 to 1,891, with most studies analyzing fewer than 200 patients.

Twelve studies directly used raw patient data without any processing as input, including four studies using synthetic patient case descriptions, three using clinical notes, two using questionnaires,57,62 one using EHR,31 two using case reports,59,60 and one using claim data.56 Patient data were preprocessed in the rest 12 studies, primarily focusing on normalization and structuring of patient data from EHRs and other health records. The techniques used included chunking, information extraction, normalization/expansion, and rephrasing. These techniques varied based on patient data formats, and the following sections discuss them accordingly.

Synthetic patient case descriptions.

In the TREC 202164 and TREC 202217 Clinical Trial Track challenges, synthetic patient case descriptions were created by individuals with medical training in the form of an admission note. Five studies extracted key information, such as diagnoses, from these descriptions to facilitate subsequent matching steps. Among these, one study used the taxonomic structure of Systematized Nomenclature of Medicine–Clinical Terminology (SNOMED CT)66 to normalize and expand the extracted terms67 to further improve the matching accuracy. Another study68 used an LLM to rephrase keywords into queries that can be used for subsequent retrieval.

Patient answers to eligibility questionnaires.

For patient answers to eligibility questionnaires, one study used expert-generated question-answer pairs directly as input. Another study leveraged LLM to assist patients in answering LLM-generated questionnaires derived from trial criteria.57 Additionally, a study used question-answer pairs from TREC 2023 using LLM to rephrase and normalize synonyms while expanding keywords into explanatory paragraphs to mimic other data set formats.61

Electronic health records.

Real-world EHRs contain both structured, coded (eg, ICDs) and unstructured data (eg, physician notes, radiology reports). In a study using both data types,53 unstructured data were transformed into structured formats via information extraction and then integrated with structured data. In contrast, most studies relied solely on clinical notes, which are rich in narrative details but often exceed LLMs' context window, making direct input challenging. To address LLM input length limitations, chunking was used in four studies to segment lengthy clinical notes into manageable units before matching. Although most studies used fixed-size chunking, one study32 explored LLM-assisted chunking to preserve semantic coherence, achieving an accuracy of 63.35% but with high computational costs. Another study55 focused on extracting and normalizing information into standardized vocabularies for better matching. However, evaluation of patient data processing was limited, with most assessments relying on downstream matching performance.

Retrieval Module

Resembling an RAG system, retrieving relevant patients or trials was widely used in nine studies to reduce the cost and execution time in the subsequent matching (ie, generation) step. These methods typically consist of queries, keys, and relevant information, with similarity scores calculated between keys and queries. The query represents the information request, whereas the key serves as an identifier to locate relevant information. Retrieval approaches were classified as either patient-centric (patient data as queries) or trial-centric (trial criteria as queries), with trial-centric approaches being more common (seven studies compared with two for patient-centric approaches). Commonly used retriever includes dense similarity–based retriever, which represents semantic meaning using dense vectors, and other methods that process raw text inputs. Typical dense similarity–based algorithm includes cosine similarity and dense retriever.69 In contrast, methods such as Cross-Encoder,70,71 BM25,72 Relevance model 373 (RM3), and Sparse Lexical and Expansion Model74 operate directly on raw text inputs. Some frameworks integrate hybrid approaches that combine dense similarity–based methods with nondense retrieval methods, such as MedCPT75 and Facebook's artificial intelligence (AI) Similarity Search similarity.76 These algorithms were implemented independently, in hybrid configurations, or sequentially (re-ranking). Although most retrievers (four studies22,61,67,77) using nondense retrieval methods, dense similarity–based methods require embedding keys and queries as vectors. The most commonly used embedding model was OpenAI's Ada embedding-based model78 (three studies), whereas two other studies52,79 used BERT-based models. In addition, one study use LLM to generate non-SQL queries for retrieving related trials based on metadata52 before applying similarity-based methods.

Retrieval performance was evaluated using metrics including Normalized Discounted Cumulative Gain at rank 1000 (NDCG@1000), NDCG@10, Precision at rank 10 (P@10), Reciprocal Rank (RR), and Recall@500.

Matching Module

The matching module applies logical comparisons between trial eligibility criteria and patient data to identify eligible candidates or trials. Figure 4 illustrates four main paradigms for LLM-based matching:

  1. Direct LLM-based matching (Fig 4A). This is the most straightforward approach, where LLMs are prompted with eligibility criteria and patient data to generate either a categorical result (Eligible/Not Eligible) or a continuous similarity score between the trial and the patient.

  2. Decomposed criteria matching (Fig 4B). Eligibility criteria are decomposed into multiple simplified, independent units. LLMs are then prompted to evaluate each unit-patient pair, and unit-level results are aggregated into a final decision using predefined algorithms or LLMs.

  3. Embedding-based matching (Fig 4C). LLMs generate separate embeddings for eligibility criteria and patient data. These embeddings are then processed using traditional algorithms or neural networks that produce predictions (ie, eligible or ineligible).

  4. Keyword-based matching (Fig 4D). LLMs extract keywords from criteria and patient data. By matching these keywords, the system determines the patient-trial eligibility.

FIG 4.

FIG 4.

General architectures of matching components. (A) Matching patients and trials through a single question; (B) matching patients and trials using a series of decomposed questions; (C) generating embeddings as representations for patients or trials to predict matching outcomes; (D) directly matching patients and trials based on extracted keywords. The icons were designed by Freepik.50 BERT, Bidirectional Encoder Representations from Transformers; KD, Kawasaki disease; LLMs, large language models.

Figure 5 summarizes the common techniques and workflow used in the matching module after processing eligibility criteria and patient data. The matching results can either (1) classify patients as eligible or ineligible for a trial or (2) produce an ordered list of candidate trials or patients, ranked by a score reflecting the degree of match between patient and trial. Matching techniques varied across studies and included embedding, exact matching, classification, ensembling, and filtering/scoring.

FIG 5.

FIG 5.

Common techniques and flows in the matching module. The matching results can be either a class (ie, eligible or not) or a ranking. Matching can occur in a single step or multiple steps. Single-step approaches include executing a query (query), using a neural network to classify based on embeddings (embedding), classifying with an LLM (classification), or scoring with LLMs or retrieval algorithms (scoring). Multistep methods involve a combination of processes such as classification, scoring, and retrieval (retrieval); ensembling multiple classification results for a single sample (ensembling); aggregating unit-level predictions to derive patient-trial–level outcomes (aggregation); and performing exact keyword matching between eligibility criteria and patient profiles (exact matching). LLMs, large language models.

On the basis of the granularity of trial criteria applied in the matching process, there are two levels of matching: (1) trial-level direct matching, in which whether the patient meets all criteria for a trial is determined in one step, and (2) criterion-level matching with result aggregation, in which the patient's eligibility is determined for each criterion first and then the results are aggregated to determine the final eligibility for the trial.

Trial-level direct matching.

Six studies49,57,59,60,77,79 generated final classifications, determining whether a patient met all trial criteria, by directly using patient data and the entire set of eligibility criteria. This approach, known as LLM-based classification, is illustrated in Figure 4A, where LLMs are prompted with eligibility criteria and patient data to generate a categorical result (ie, eligible v not eligible). Some studies incorporated an Unknown/Unrelated class to reduce hallucinations.49,77

In another study,56 an embedding-based classification method was used. This approach involved generating fixed-shaped vector embeddings, which capture the semantic meaning of the text, using a BERT-based model. These embeddings were then used to train a convolutional neural network to classify whether a patient matched a given trial.

Additionally, two studies applied a retrieval-based scoring approach using retrieval algorithms such as BM25 and RM3 to generate relevance scores between trial eligibility criteria and patient data. The final matching result was determined based on a specific threshold.68,80

Finally, in an LLM-based scoring method, one study61 guided LLMs to return scores ranging from 0 to 1 to estimate the degree of matching. When predicting scores, performance can be evaluated using the area under the receiver operating characteristics and the area under the recall-precision curve.

Criterion-level matching with result aggregation to trial-level matching results.

Exact keyword matching–based classification was used in one study, where normalized keywords extracted from eligibility criteria and patient data were directly matched to make the classification.53

In another approach, query language generation–based classification involved prompting LLMs to generate SQL queries based on extracted information.31 Each SQL query was generated for a single criterion and then applied to the patient database to retrieve eligible patients. Patients retrieved through this process were deemed as Eligible for the specific criterion. The generated SQL queries were manually reviewed and executed on a patient database using the OMOP CDM to confirm their validity. The most common errors in SQL query generation were logical errors (eg, switching the values between two different lab measurements), followed by missing or mismatched concepts.

LLM-based classification for criterion-level matching was applied in 12 studies. These methods typically involved prompting LLMs to generate categorical results (ie, Eligible v Not Eligible v Unknown) for patients based on a single eligibility criterion. To mitigate hallucinations, one study81 used an ensemble approach, where the LLM generated five independent predictions, which were then aggregated to a final result.

Evaluation metrics for classification include accuracy, recall, precision, specificity, F1 score, negative predictive value, and Matthews correlation coefficient. Four studies using the n2c2 data set lacked trial-level ground truth and only evaluated criterion-level performance.

Two approaches were commonly used to aggregate criterion-level results into trial-level matching:

  1. Scoring and Ranking: Four studies22,32,67,82 developed rules to compute trial-level scores, such as calculating the percentage of matched criteria from criterion-level classifications to rank patient-trial pairs. One study22 used LLM to aggregate criterion-level results into trial-level scores. Ranking metrics included NDCG@10, P@10, and RR.

  2. Direct Classification: Three studies53,58,81 used rule-based methods for trial-level classification, requiring that all inclusion criteria be met and no exclusion criteria be violated based on criterion-level results. Additionally, one study83 used LLMs to aggregate results for trial-level classification.

Reported Limitations of Current LLM-Based Approaches and Future Research Opportunities

The most commonly reported limitations in the reviewed studies included the following: (1) limited sample sizes (six studies), (2) interpretability challenges (five studies), (3) difficulties in handling complex criteria (five studies), (4) reliance on closed-source LLMs (five studies), (5) lack of sophisticated evaluation metrics (five studies), (6) only focus on a single data type (four studies), (7) loss of nuanced context (four studies), (8) variability in performance (three studies), (9) hallucinations (one study84), and (10) issues related to cost and latency (one study61).

DISCUSSION

This scoping review explores the transformative potential of LLMs in enhancing patient-trial matching systems. Our analysis offers a comprehensive overview of key components, limitations, and opportunities for future research.

Patient-trial matching systems leveraging LLMs typically consist of three core components: (1) eligibility criteria processing, (2) patient data processing, and (3) matching module. LLMs can be integrated into these modules at different stages, each addressing specific challenges.

In the eligibility criteria processing module, LLMs facilitate extracting, normalizing, and rephrasing clinical trial eligibility criteria, improving compatibility with the target patient data. Advanced models like GPT-4 and MedLlama exhibit high precision in extracting key entities, including diseases and biomarkers commonly used as eligibility criteria, with F1 scores often exceeding 0.85.

The patient data processing module tackles the complexity of structured and unstructured patient data. LLMs can be pivotal in extracting relevant features, normalizing terminologies, and generating concise patient summaries. Techniques such as chunking, particularly for lengthy clinical notes, and keyword extraction help keep data within model input limits while preserving critical information needed for matching.

The matching module uses LLMs for direct classification, scoring, or embedding-based similarity measures. LLMs are used to generate categorical eligibility decisions, continuous matching scores, or semantic embeddings to enable precise patient-trial alignment. Hybrid model approaches, combining retrieval-based techniques with LLM-driven classification, enhance accuracy and computational efficiency.

Despite promising results, LLM-based patient-trial matching systems face several limitations that hinder their widespread adoption:

  1. Limited data diversity and generalizability—Many studies rely on synthetic data sets and small sample sizes, restricting generalizability to real-world scenarios. Furthermore, many studies focus on a single data type, leading to loss of nuanced context and reduced generalizability across different clinical scenarios.

  2. Complexity of the problem space and technical challenges—Current models struggle with logical inconsistencies and nuanced patient contexts, particularly when processing complex eligibility criteria. LLMs often fail to understand and apply logical relationships, leading to errors in data extraction and patient-trial matching.

  3. Lack of robust validation and performance variability—The absence of sophisticated, real-world data sets limits the ability to validate models in diverse clinical environments. Hallucinations and variability in model outputs also raise concerns about reliability and clinical applicability. Additionally, inconsistent performance across data sets raises questions about the robustness and reliability of these systems in real-world applications.

  4. Interpretability issues—LLMs often function as black boxes, making it difficult to interpret their decision-making processes, which can undermine clinical trust and adoption. Recent developments in DeepSeek-R1 have made significant strides in improving model interpretability, particularly through its impressive reasoning skills; nevertheless, significant gaps remain.85

  5. Limitations of existing metrics and lack of standardized evaluation metrics—Current evaluation methods often fail to capture critical aspects such as interpretability, fairness, and context-awareness, all essential for practical deployment in clinical environments. The absence of sophisticated, standardized benchmarks makes it difficult to compare performance across studies.

  6. High computational costs and latency—The resource-intensive nature of LLM deployment limits its feasibility for real-time clinical applications. These issues pose additional barriers, particularly in resource-constrained health care environments where efficiency and cost-effectiveness are critical.

  7. Privacy and security concerns—These challenges complicate the development of comprehensive, publicly available data sets, posing a barrier to broader research efforts. More broadly, privacy and security concerns related to LLMs themselves further limit enthusiasm for their adoption in real-world applications.

  8. Reliance on closed-source, proprietary LLMs—Raises concerns about transparency, reproducibility, and adaptability in diverse health care settings.

Addressing these limitations requires a multifaceted research approach:

  • Developing diverse, real-world data sets that reflect the complexity of clinical settings will improve model generalizability and robustness. Efforts should ensure data privacy and security to facilitate broader data sharing and collaboration.

  • Establishing composite evaluation metrics that incorporate interpretability, robustness, fairness, and context-awareness will enable more meaningful comparisons across studies and enhance the reliability of performance assessments.

  • Developing advanced explainable AI techniques and robust model architectures will improve the transparency and reliability of LLM-based systems, fostering greater clinical trust and adoption.

  • Exploring hybrid approaches that combine the strengths of LLMs with traditional computational techniques can optimize performance, reduce computational costs, and improve efficiency. For instance, embedding-based retrieval coupled with prefiltering techniques could enhance matching accuracy while maintaining computational efficiency. Fine-tuning domain-specific LLMs and integrating multimodal data sources can enhance model adaptability to diverse clinical contexts, improving performance across patient populations and trial types. Research should also focus on optimizing LLM architectures to reduce computational costs and latency, making them more feasible for real-time clinical applications.

LLMs hold significant potential to revolutionize patient-trial matching by improving the efficiency, accuracy, and scalability of clinical trial recruitment. However, to fully realize this potential, future research must address current limitations related to data quality, model interpretability, and computational demands. By advancing methodologies and integrating innovative technologies, LLM-based systems can enhance patient access to clinical trials, ultimately improving health care outcomes and accelerating medical research.

In conclusion, this review underscores the transformative potential of LLMs in advancing patient-trial matching systems. By enhancing the structuring of eligibility criteria, improving patient data processing, and enabling more precise and efficient matching algorithms, LLMs offer significant opportunities to streamline clinical trial recruitment processes. Despite these advancements, critical challenges remain, particularly concerning data limitations, model interpretability, performance variability, and computational demands. Addressing these challenges through developing robust, real-world data sets, establishing standardized evaluation metrics, and adopting hybrid computational approaches will be pivotal. Future research should prioritize the integration of explainable AI methodologies and domain-specific model fine-tuning to ensure greater transparency, scalability, and fairness. Ultimately, leveraging the full capabilities of LLMs holds the promise of creating more effective, equitable, and accessible clinical trial recruitment systems, thereby accelerating medical research and improving patient outcomes globally.

James McGill

Employment: Lilly

Leadership: Lilly

Stock and Other Ownership Interests: Lilly

Consulting or Advisory Role: Paratus Sciences Corporation, PromiseBio, Iterative Health

Research Funding: Lilly

Travel, Accommodations, Expenses: Versiti

Emily C. Webber

Leadership: Indiana University Health

Travel, Accommodations, Expenses: American Board of Preventative Medicine

Hua Xu

Stock and Other Ownership Interests: More Health, Melax Tech Inc

Consulting or Advisory Role: IMO Inc

Patents, Royalties, Other Intellectual Property: Software license income from University of Texas Health Science Center at Houston

No other potential conflicts of interest were reported.

SUPPORT

Supported by the National Institutes of Health (NIH)/National Institute on Aging (NIA) under grant numbers R01AG084236 and R01AG080991, awarded to Jiang Bian, PhD as a multiple Principal Investigator.

*

H.C., X.L. and X.H. contributed equally to this work as co-first authors.

AUTHOR CONTRIBUTIONS

Conception and design: Xiaohan Li, Xing He, Aokun Chen, Hua Xu, Jiang Bian

Collection and assembly of data: Hongyu Chen, Xiaohan Li, Xing He, Jiang Bian

Data analysis and interpretation: Hongyu Chen, Xiaohan Li, Xing He, James McGill, Emily C. Webber, Mei Liu, Jiang Bian

Manuscript writing: All authors

Final approval of manuscript: All authors

Accountable for all aspects of the work: All authors

AUTHORS' DISCLOSURES OF POTENTIAL CONFLICTS OF INTEREST

The following represents disclosure information provided by authors of this manuscript. All relationships are considered compensated unless otherwise noted. Relationships are self-held unless noted. I = Immediate Family Member, Inst = My Institution. Relationships may not relate to the subject matter of this manuscript. For more information about ASCO's conflict of interest policy, please refer to www.asco.org/rwc or ascopubs.org/cci/author-center.

Open Payments is a public database containing information reported by companies about payments made to US-licensed physicians (Open Payments).

James McGill

Employment: Lilly

Leadership: Lilly

Stock and Other Ownership Interests: Lilly

Consulting or Advisory Role: Paratus Sciences Corporation, PromiseBio, Iterative Health

Research Funding: Lilly

Travel, Accommodations, Expenses: Versiti

Emily C. Webber

Leadership: Indiana University Health

Travel, Accommodations, Expenses: American Board of Preventative Medicine

Hua Xu

Stock and Other Ownership Interests: More Health, Melax Tech Inc

Consulting or Advisory Role: IMO Inc

Patents, Royalties, Other Intellectual Property: Software license income from University of Texas Health Science Center at Houston

No other potential conflicts of interest were reported.

REFERENCES


Articles from JCO Clinical Cancer Informatics are provided here courtesy of Wolters Kluwer Health

RESOURCES