NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Grading Trial Eligibility Criteria by Who They Leave Out

Clinical trials set strict rules for who may enroll. These rules routinely exclude the old, the frail, and patients with many illnesses, and the trial's result then fails to hold for the patients who actually receive the drug. Language models are now used to write these eligibility rules. A second language model, acting as an automated grader (an "LLM judge"), scores each draft rule, but it scores clinical relevance against historical protocols. The grader therefore rewards whatever past trials did, including the exclusions that caused the problem. We propose a different grader. It reads a trial's eligibility text and predicts which real-world patients the trial would shut out, and in particular how badly it under-represents the patients at highest risk of poor outcomes. We check those predictions against the answer computed directly from electronic health records (EHRs, the longitudinal clinical data hospitals keep on each patient).

The core claim is that an LLM judge for trial design should be scored against a measurable population quantity, not against physician agreement on plausibility. Such a judge can then serve as a design-time auditor in the common case where the trial designer has no EHR access. The opportunity is concrete. Machine-learning trial emulation on about 153,000 oncology patients found that the real-world shortfall in trial benefit comes almost entirely from the high-risk group. In that group, median overall survival on treatment was on average 62% lower than in the trials, and the treatment benefit was 5.7 months shorter (Evaluating generalizability of oncology trial results to real-world patients using machine learning-based trial emulations). If a judge can read protocol text and flag which criteria remove that group, it can steer criteria generators away from repeating it.

Core Claim and What Is New

Existing judges in this space grade text against text. CTBench's ListMatch-LM uses GPT-4o to decide whether a predicted baseline feature means the same thing as a reference feature, reaching Cohen's kappa of 0.78–0.85 with experts (CTBench). EC-RAFT uses Gemini-1.5-Flash to rate generated criteria for clinical relevance on a 0–3 scale, with 90.26% Spearman correlation to a physician (EC-RAFT). Both papers motivate this proposal because they show LLM judges can track expert opinion on trial text. Both also leave the generalizability question untouched. EC-RAFT's retrieval corpus and its judge are anchored to past protocols, so high scores may simply mean "looks like a typical restrictive trial." CReSE names the same "template trap" of copying historical criteria, but its contrastive embeddings only measure similarity between criteria and trial titles (CReSE). TrialTranslator, on the other side, measures the gap quantitatively but never reads protocol text; it works only on engineered tabular variables.

Our contribution joins these at the point where neither works. The judge predicts a quantity that EHR data can verify. The main target is the high-risk representation ratio:

$$R = \frac{P(\text{high risk} \mid \text{eligible})}{P(\text{high risk})}$$

Here "high risk" means the top prognostic tertile assigned by a survival model trained on the EHR cohort, as in TrialTranslator, and "eligible" means meeting the trial's criteria in that cohort. $R = 1$ means the trial admits high-risk patients in proportion to their share of the population. Values near zero mean the trial effectively studies only healthier patients. The judge also predicts the overall eligible fraction and, for each criterion, how much it lowers $R$. No paper in our file reports any prediction of $R$, or anything like it, from protocol text. We found no reported result on Lacuna for text-based prediction of trial representativeness.

Research Program

The first step builds ground truth. We take interventional trials in the four advanced cancers covered by TrialTranslator (non-small cell lung, breast, prostate, colorectal), drawn from the ClinicalTrials.gov records used in the EC-RAFT benchmark. For each trial we translate every criterion into an executable cohort filter over a Flatiron-style oncology EHR. Each translation is reviewed by a clinical informaticist, and criteria that cannot be computed are flagged rather than dropped. We train a gradient boosting survival model on the same EHR to assign risk tertiles, reusing TrialTranslator's recipe and its top predictors (weight change, age, albumin). From these pieces we compute $R$, the eligible fraction, and each criterion's leave-one-out effect on $R$ for every trial. This yields several hundred labeled trials rather than the 11 emulated RCTs.

The second step builds the judge. It sees only the protocol text (title, summary, criteria), never the EHR. Its prompt breaks the task into parts. For each criterion, the judge first names the patient characteristic being restricted. It then estimates what fraction of real-world patients with this cancer fail the criterion, and whether failures are concentrated among high-risk patients. Finally it combines these estimates into trial-level numbers. The step-by-step structure is the key ingredient. The judge must commit to checkable intermediate numbers rather than a single holistic Likert score, which addresses the concern that LLM judges produce confident-sounding intuition without real analysis (Articulate Intuition or Genuine Analysis?). We test two variants. The first is zero-shot. The second is calibrated: a small set of labeled training trials, from earlier years and different cancers than the test set, is used for few-shot examples and for a monotone recalibration of the judge's outputs.

The third step uses the judge. We run EC-RAFT-style generation for held-out trials and rerank the candidate criteria sets by a combined score of relevance and predicted $R$. The oracle EHR computation then tells us whether representativeness actually improved. A small physician panel checks that relevance and safety did not degrade. The same data lets us test, rather than assume, the claim that relevance judges reward restrictive designs: we correlate EC-RAFT-style relevance scores with oracle $R$.

Baselines

The naive reference point is a counting heuristic. It predicts $R$ from the number of exclusion criteria plus keyword rules for the criteria oncologists already know are restrictive: performance-status cutoffs, age caps, organ-function thresholds, and brain metastases. This reference matters because it may capture most of the signal. It is fit on the same training trials, with the same calibration step the judge receives.

The strongest existing LLM-judge baseline is the EC-RAFT evaluation protocol. It uses the same judge model, given a rubric rewritten to ask for a 0–3 generalizability rating instead of relevance. This is what a practitioner would build today. Its published credibility is 90.26% Spearman agreement with a physician on relevance, as reported by EC-RAFT. We run it with the same backbone model, the same few-shot budget, and order-swapped repeated passes, given the positional bias documented for medical LLM judges (A Benchmark for Long-Form Medical Question Answering).

The strongest non-LLM learned baseline is a regressor that predicts $R$ from criteria text. It is built on CReSE-style contrastive biomedical embeddings and trained on exactly our training labels.

The ablation removes the per-criterion breakdown and keeps everything else fixed. It is the same backbone and the same few-shot examples, but the judge outputs trial-level numbers directly.

The upper reference is the oracle itself. Separately, we score an automated LLM translation of the criteria into EHR filters, which shows how much of the gap a data-holder could close without human review. Beating a baseline means a statistically higher Spearman correlation between predicted and oracle $R$ on held-out trials, tested with bootstrap intervals over trials, together with lower calibration error on the eligible fraction.

Why not just…?

Why not just compute representativeness directly from the EHR? When the data and a reliable criteria-to-filter translation exist, that is the right answer, and we treat it as the oracle. The judge exists for the setting where neither is available: most trial designers and most generator training loops have no EHR access. Even with access, many criteria, such as investigator-judged "adequate organ function," resist exact translation. The automated-translation reference measures how often that matters. If automated translation alone recovers oracle $R$ nearly everywhere, the honest conclusion is that the contribution reduces to translation, and we will say so.

Why not just count restrictive keywords? This is a real threat, because oncology's worst exclusions are well known. The heuristic baseline settles it. If the heuristic matches the judge within the bootstrap interval, the LLM adds nothing for trial-level ranking. In that case the remaining value would lie only in per-criterion attribution, which we evaluate separately against the leave-one-out oracle effects.

Why not just ask a strong LLM for a generalizability rating? Holistic ratings are where LLM judges are most prone to verbosity and surface-level reasoning, and the rewritten-rubric baseline tests this directly. The ablation then isolates whether the advantage, if any, comes from committing to per-criterion population fractions.

Why not just train a text regressor on the EHR labels? With a few hundred labeled trials, a supervised embedding model may compete well within the four training cancers. We expect it to degrade when tested on a held-out cancer type and on later trial years, where the judge's medical knowledge should transfer. Both splits are part of the evaluation.

Decisive Checks

The main test is held-out Spearman correlation between predicted and oracle $R$, split by trial start year and by cancer type, comparing the step-by-step judge against all four baselines. A second test uses no EHR labels at all. For the 100 CT-Pub trials whose published Table 1 reports the enrolled population (CTBench), we check whether the judge's predicted enrolled age and performance-status distributions match what was actually reported. A third test is descriptive only, given its sample of 11. For the RCTs that TrialTranslator emulated, we check whether a lower predicted $R$ goes with a larger real-world survival shortfall. Finally, the reranking experiment tests whether the judge is useful in practice. A positive result would be raising oracle $R$ by a clinically meaningful margin while the physician-rated relevance of reranked criteria stays within the noise of EC-RAFT's original outputs.