TrialAgentBench: Evaluating AI Agents for Clinical-Trial Analysis and Long-Horizon Drug-Development Decisions
Organizations: University of Oxford
Abstract
Clinical drug development is a long-horizon, high-stakes process requiring sequential decisions based on information that costs money and time to acquire. AI agents have demonstrated capabilities for scientific analysis, but there is no established way to evaluate them on these decisions, as real trials are expensive, involve people, and never reveal the counterfactual. We introduce TrialAgentBench, a benchmark for evaluating AI agents on clinical trial analysis and drug development decision-making using simulated trials where the truth is known, embedded within the data records of a fictional drug sponsor. We publicly release nearly 3,500 tasks, varying from analysing a single trial to managing multi-phase programmes with budget and time constraints. We score each analysis by rerunning its code on new trials, and each programme by the value its decisions achieve. Across 24 closed- and open-weight models, the strongest agents can analyse raw, messy trial records to within 6% of a process-aware analysis, even when an assumption is violated, with 95% confidence intervals containing the true effect 94--95% of the time. Over the prior year, the best model improved from 19% above this analysis, with serious misses on 15% of tasks, to 3.5% and 1%. What limits them is decision-making from evidence under uncertainty: when to correct, what evidence to buy, when to stop. The strongest agents are overly careful, correcting on 83% of tasks with equal recording errors, where it is unnecessary. On drug programmes, the best agent has substantial headroom, reaching 48% of the value an oracle achieves against 58% for a rule-based developer, with others falling 24 to 66% short. Model generations show ongoing improvements in handling data and evidence, with substantial variation. The strongest models can act as competent analysts, but do not yet make reliable long-horizon decisions.
Figures & tables
| TrialEval: analyse a trial | TrialDev: develop a drug | |
|---|---|---|
| Public tasks | 420 tasks on 17 clinical questions, each at 5 context levels, from raw records to clean tables | 3,072 tasks on 384 programmes |
| Main evaluation | 84 tasks, raw records and no analysis plan, 24 models | 128 programmes at the generous budget, 10 models |
| Clinical scope | Childbirth safety to metastatic cancer, including heart failure, kidney disease and diabetes | Atopic dermatitis, chronic obstructive pulmonary disease, migraine and rheumatoid arthritis |
| Design | Individual and cluster randomisation, stepped-wedge rollout, group-sequential stopping, non-inferiority, treatment changes | 3 or 5 candidates, each at a standard and an intensified regimen; early safety, exploration and confirmation phases |
| Outcomes | Risks, event rates, time free of events, and scores at irregular visits | Benefit and harm over time, valued over the drug’s market lifetime |
| Size | 52 to 114,000 participants, at 3 to 400 sites | Frozen pool of 64,000 participants; 10–100, 30–1,500 or 300–3,000 per arm by phase |
| TrialEval | TrialDev | ||||||
| Model | Average error (95% interval) | Serious misses, % | Interval coverage, % | Value, % of oracle (95% interval) | Approved, % of programmes | Study cost, RBD | Finished, % |
| Sonnet 5.5 | 0.93 (0.90–0.97) | 1 | 94 | 29 (14 to 40) | 45 | 1.4 | 100 |
| Opus 5.5 | 0.93 (0.90–0.97) | 1 | 95 | 48 (30 to 62) | 71 | 1.5 | 100 |
| Fable 5.1 | 0.94 (0.90–0.98) | 0 | 95 | – | – | – | – |
| Opus 5 | 0.95 (0.91–0.99) | 1 | 94 | – | – | – | – |
| GPT-6 Astra | 0.95 (0.93–0.98) | 4 | 95 | 14 ( 1 to 26) | 45 | 2.5 | 100 |
Appendix figures & tables42 assets
Supplementary material from the paper’s appendix.
Appendix
| Term | Meaning |
|---|---|
| World | One simulated setting that fixes the population, the true effect, the trial design, and its size; any number of trials can be drawn from it |
| True effect | The prespecified comparison of complete outcomes with every simulated participant on treatment versus control; known without an estimator |
| Replication trial | A new simulated trial from the same world: new participants and new recording errors, the same true effect |
| Standard error | How much an estimate would typically change if the same trial were rerun with new participants; errors and effects are reported in these units |
| Error | Absolute distance between an estimate and the true effect, in standard errors of a trial of that size; average error adjusts for task difficulty |
| Serious miss | A task on which an agent’s error is at least half a standard error above the process-aware analysis |
| Clinical question | Trial design | Summary measure and time point | Randomised |
|---|---|---|---|
| Childbirth in maternity units: postpartum safety pathway vs usual care, on severe haemorrhage, laparotomy for bleeding or death from bleeding | Stepped-wedge cluster-randomised | Risk difference by day 42 | 114,000 |
| Chronic heart failure after hospitalisation: remote management vs usual care, on the number of heart-failure hospitalisations | Parallel group | Rate ratio through day 365 | 320 |
| Chronic heart failure: device-guided vs standard care, on heart-failure hospitalisation | Parallel group | Risk difference by day 548 | 676 |
| Chronic kidney disease: intensive management vs usual care, on kidney failure or death | Parallel group, with a fixed testing sequence | Difference in restricted mean event-free time through day 1095 | 580 |
| Chronic kidney disease: kidney-protection therapy vs usual care, on albuminuria | Parallel group, repeated measurements at irregular visits | Mean difference at day 365 | 128 |
| Long-term-care residents: vaccination vs usual programme, on laboratory-confirmed respiratory infection | Parallel cluster-randomised | Risk difference by day 180 | 7,680 |
| Choice | What it means | Limit |
|---|---|---|
| Phase | The stage of development. Early safety is a small study of harm, exploration compares candidates and regimens, and confirmation is the larger study that the approval review uses | Each candidate and regimen needs study results from the phase before |
| Arms | Which candidate and regimen pairs to test against a shared control group | 1–6 pairs, each sized separately |
| Size per arm | How many participants to enrol in each arm | Early safety 10–100, exploration 30–1,500, confirmation 300–3,000; at most 8,000 per study and 16,000 per programme |
| Sites | How many hospitals or clinics recruit participants | From 2 up to the whole network, which has 88, 115, 139 or 338 sites depending on the programme |
| Follow-up | How long each participant is observed | A shorter and a longer option per phase |
| Schedules | When participants attend assessment and safety visits. Fewer visits cost less and show less | Any days from the brief’s visit grid up to the follow-up; in migraine, days 28, 56, 84, 168 and 336 after enrolment |
| Phase | Set-up | Per site | Per screened | Per enrolled | Per participant-day | Per visit | Start-up, close-out (days) |
|---|---|---|---|---|---|---|---|
| Early safety | US$1.0M | US$50,000 | US$1,000 | US$12,000 | US$60 | US$1,500 | 60, 14 |
| Exploration | US$2.0M | US$75,000 | US$1,500 | US$10,000 | US$40 | US$600 | 90, 30 |
| Confirmation | US$4.0M | US$100,000 | US$2,000 | US$12,000 | US$40 | US$800 | 120, 45 |
| Clinical programme | Endpoint | Typical benefit | Price of harm | Sites | Budgets (constrained, lean, generous) |
|---|---|---|---|---|---|
| Atopic dermatitis | Eczema Area and Severity Index | 10 points | US$20.8M | 115 | US$32M, 53M, 120M |
| COPD | Annual moderate or severe exacerbations | 0.25 exacerbations a year | US$15.6M | 338 | US$58M, 138M, 314M |
| Migraine | Monthly migraine days | 2 days per 28 | US$12.5M | 88 | US$34M, 48M, 109M |
| Rheumatoid arthritis | Disease Activity Score in 28 joints | 1.0 point | US$20.8M | 139 | US$39M, 61M, 139M |
| Setting | What it changes |
|---|---|
| Standard information | Cohort 2,400 or 3,600 (3 or 5 candidates); standard dropout; 98% of endpoint visits; measurement error 0.10 |
| High information | Cohort 3,200 or 4,800; half the dropout; all endpoint visits; no measurement error |
| Limited measurement | Cohort 1,600 or 2,400; 1.5 times the dropout; 97% of visits; measurement error 0.15 |
| Higher attrition | Same cohort (2,400 or 3,600) and measurement error (0.10) as standard information; 1.25 times the dropout; 97% of visits |
| Measured confounding with overlap | The effect can be recovered from the starting cohort with adjustment |
| Limited overlap | Recorded factors strongly drive who receives which treatment (channelling), so few participants are comparable and weighting loses effective sample size |
| Analysis | No record problem | Unequal recording errors | Equal recording errors | All |
|---|---|---|---|---|
| Process-aware analysis | 0.81 (0%) | 1.08 (0%) | 0.98 (0%) | 0.90 (0%) |
| Test-then-correct | 0.81 (0%) | 1.32 (19%) | 1.01 (0%) | 0.95 (4%) |
| Never corrected | 0.81 (0%) | 1.75 (62%) | 0.94 (0%) | 1.02 (12%) |
| Always corrected | 0.81 (0%) | 1.08 (0%) | 1.17 (0%) | 0.95 (0%) |
| Plan’s primary analysis | 0.81 (0%) | 1.42 (31%) | 0.98 (0%) | 0.97 (6%) |
| True effect | Benefit units | Yearly profit | Worth if advanced on day 0 | On day 1,500 | On day 2,190 |
|---|---|---|---|---|---|
| 1 fewer migraine day per 28 days | 0.5 | US$125M | US$957M | US$570M | US$437M |
| 2 fewer migraine days per 28 days | 1 | US$250M | US$1,913M | US$1,141M | US$875M |
| 3 fewer migraine days per 28 days | 1.5 | US$375M | US$2,870M | US$1,711M | US$1,312M |
| Rule | Action |
|---|---|
| 1. Budget | REQUIRE total cost of the plan within budget. Compare feasible plans by expected return after costs and delay. |
| 2. Rank | FOR each candidate: estimate its association from the starting cohort, adjust it with the fitted model, compute expected yearly profit after harm. SORT candidates by this profit. |
| 3. Plan exploration | FOR each plan (leading candidates, participants per arm, sites): average over the results it could return, the update each would cause and the later stop-or-confirm decision; subtract study costs. IF no affordable, timely plan has expected net value above 0: STOP on day 0. ELSE choose the highest. |
| 4. Run studies | RUN early safety (20 participants per arm; allowed minimum 10), THEN the chosen exploration study. Standard regimens only; one results release per study; no adaptations. |
| 5. Update | COMBINE the starting association, the fitted model and the exploration result. KEEP the candidate with the highest expected yearly profit after harm. |
| 6. Confirm | FOR each design (follow-up, size, sites) within the remaining budget: expected net value = probability of passing review value if approved study and time costs. IF the best is not above 0: STOP. ELSE run it. |
| Failure | Serious misses | Share, % | Models | Tasks |
|---|---|---|---|---|
| Correction with equal errors | 66 | 34 | 20 | 9 |
| No usable answer | 48 | 24 | 11 | 31 |
| Correction attempted with unequal errors, still far from the truth | 41 | 21 | 18 | 9 |
| No correction with unequal errors | 26 | 13 | 9 | 7 |
| Valid script that fails on replication trials | 9 | 5 | 7 | 8 |
| No record problem, far from the truth | 6 | 3 | 6 | 6 |
| Model | C1 | C2 | C3 | C4 | C5 |
|---|---|---|---|---|---|
| Sonnet 5.5 | 0.94 | – | 1.01 | – | 0.93 |
| Haiku 5.5 | 1.14 | 1.16 | 0.97 | 1.04 | 1.11 |
| GPT-6 Luna | 1.17 | 1.08 | 1.18 | 1.15 | 1.19 |
| Developer | Value, % | Clinical value, pts | Cost of harm, pts | Studies | Arms | Partic. | Cost, US$M | Result releases | Turns | Adv., % | Appr., % | Intens., % | Right cand., % |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Opus 5.5 | 48 | 158.1 | 80.4 | 3.2 | 4.3 | 1406 | 79 | 3.7 | 36 | 80 | 71 | 54 | 71 |
| Kimi K3 | 34 | 102.3 | 37.1 | 3.1 | 3.8 | 1653 | 80 | 3.3 | 51 | 68 | 51 | 45 | 64 |
| Sonnet 5.5 | 29 | 90.2 | 33.8 | 2.7 | 3.6 | 1491 | 72 | 2.7 | 26 | 61 | 45 | 32 | 53 |
| GPT-6 Sol | 25 | 102.2 | 28.8 | 3.8 | 3.5 | 2388 | 121 | 6.2 | 78 | 69 | 47 | 36 | 69 |
| GPT-6 Astra | 14 | 81.0 | 20.0 | 3.6 | 5.3 | 2474 | 131 | 5.6 | 87 | 53 | 45 | 28 | 43 |
| Haiku 5.5 | 11 | 54.5 | 24.0 | 2.8 | 2.3 | 928 | 42 | 2.8 | 37 | 43 | 29 | 24 | 41 |
| Ending | Points (95% interval) |
|---|---|
| Both approved | 7.5 (4.2 to 11.3) |
| RBD approved; agent advanced, not approved | 10.4 (7.6 to 13.7) |
| RBD approved; agent stopped | 15.3 (11.7 to 19.4) |
| Agent approved; RBD not | 4.9 ( 9.0 to 1.1) |
| Neither approved | 3.4 (2.0 to 5.2) |
| Agent unfinished | 9.2 (6.9 to 11.5) |
| Prices | Rule-based developer | Opus 5.5 | Opus 5.5 gap, points (95% interval) | Rank correlation with brief’s prices |
|---|---|---|---|---|
| Brief’s prices | 57.7 | 48.0 | 9.7 ( 26.9 to 6.3) | 1.00 |
| Profit halved, or cost doubled | 46.5 | 23.1 | 23.4 ( 47.5 to 2.9) | 0.60 |
| Profit doubled, or cost halved | 61.7 | 56.9 | 4.8 ( 20.1 to 9.1) | 0.91 |
| Price of harm halved | 57.1 | 75.4 | 18.3 (5.5 to 30.7) | 0.91 |
| Price of harm doubled | 59.7 | 49.0 | 108.7 ( 176.1 to 63.9) | 0.38 |
| TrialEval measure | Value | Clinical value | Cost of harm | Study cost | Approvals |
|---|---|---|---|---|---|
| Average error | 0.64 ( 0.82 to 0.33) | 0.64 ( 0.83 to 0.43) | 0.48 ( 0.77 to 0.25) | 0.55 ( 0.78 to 0.33) | 0.61 ( 0.84 to 0.43) |
| Serious misses | 0.72 ( 0.85 to 0.33) | 0.72 ( 0.87 to 0.39) | 0.61 ( 0.81 to 0.26) | 0.57 ( 0.84 to 0.27) | 0.70 ( 0.88 to 0.41) |
| Coverage | 0.03 ( 0.39 to 0.44) | 0.01 ( 0.28 to 0.48) | 0.32 ( 0.53 to 0.26) | 0.15 ( 0.05 to 0.59) | 0.04 ( 0.27 to 0.50) |
| Mean own error | Programmes | Agents, % of oracle | Rule-based developer, % of oracle | Agent minus RBD, US$M |
|---|---|---|---|---|
| 0.11 | 232 | 23 (6 to 35) | 82 (73 to 90) | 160 |
| 0.24 | 232 | 21 (5 to 32) | 71 (61 to 81) | 169 |
| 0.49 | 231 | 12 ( 4 to 25) | 63 (52 to 73) | 165 |
| 2.84 | 232 | 32 (14 to 45) | 33 (7 to 57) | 7 |
| Model | TrialEval all-item % (95% CI) | Completed | Family | Strict | Same-estimand | TrialDev score (95% CI) | Complete | Stop timing right |
|---|---|---|---|---|---|---|---|---|
| GPT-5.4 | 38.2 (33.7–42.7) | 400 | 215/400 | 24.50 | 26.50 | 0.429 (0.389–0.471) | 60 | 23% |
| Gemini 3.1 Pro Preview | 30.5 (26.3–34.6) | 374 | 155/374 | 21.50 | 23.75 | 0.348 (0.297–0.398) | 51 | 25% |
| GLM-5.1 | 25.4 (21.5–29.7) | 263 | 132/263 | 19.75 | 20.75 | 0.138 (0.082–0.197) | 17 | 32% |
| Opus 4.7 | 25.2 (21.2–29.3) | 392 | 201/392 | 14.75 | 16.50 | 0.417 (0.381–0.454) | 60 | 27% |
| Qwen3.6 Plus | 15.6 (12.3–19.0) | 116 | 76/116 | 13.75 | 13.75 | 0.081 (0.033–0.135) | 9 | 45% |
| Kimi K2.6 | 13.1 (9.9–16.4) | 106 | 56/106 | 10.00 | 10.25 | 0.252 (0.190–0.316) | 31 | 47% |
Long-Horizon Agent Evaluation
Long-Horizon Agent Evaluation measures whether AI agents can plan, act, remember, and stay reliable across extended tasks and changing environments.
See all 391 papers