ClinDataBench: Benchmarking Large Language Model Agents in Clinical Trial Analysis Dataset Construction
Z. Li, Y. Luo, Y. Feng, J. Xu
Key points
From the paper's conclusion- We introduce ClinDataBench, built on the public CDISC pilot study: an agent receives 22 Study Data Tabulation Model (SDTM) domains, the statistical analysis plan (SAP) and specifications, and must deliver 13 Analysis Data Model (ADaM) datasets, Define-XML metadata and a program that rebuilds them offline.
Abstract
A new drug reaches patients only after the U.S. Food and Drug Administration (FDA) has reviewed its trial evidence, which every application carries as analysis datasets in the Clinical Data Interchange Standards Consortium (CDISC) Analysis Data Model (ADaM) format that programmers derive by hand from raw trial data, a statistical analysis plan (SAP) and dataset specifications. Coding agents built on large language models (LLMs) could take over this work, and a slow-changing industry will adopt them only with evidence of what they get right and wrong. However, work on large language models (LLMs) for CDISC data stops short of evaluating a complete, conformant and reproducible package, and the standard validator checks structure rather than whether each value is derived correctly. We introduce ClinDataBench, built on the public CDISC pilot study: an agent receives 22 Study Data Tabulation Model (SDTM) domains, the statistical analysis plan (SAP) and specifications, and must deliver 13 Analysis Data Model (ADaM) datasets, Define-XML metadata and a program that rebuilds them offline. Agents run in containers whose only network route is their model API, restricting online access to published reference outputs during execution. A host-only evaluator scores conformance under the Pinnacle 21 Community (P21) validator, selected derivations, clean reconstruction and effort separately. We compare three settings: Base, which submits the agent's first package; Self-Refine, which revises it without external validation feedback; and CRITIC, which revises it with the agent's own validator report. In an exploratory pilot with six models, the three closed models and DeepSeek delivered all 13 datasets in every setting and eleven of their twelve packages rebuilt semantically, while two other open-weight models delivered no complete package. Validator findings ranged from 15 to 64 dataset-rule pairs. Four of six CRITIC workflows had usable validator comparisons, and each reduced its finding count. None reduced its failed derivation count. The package with the fewest findings carried none of the 234 efficacy summary records in the form the specifications define, showing that lower validator finding counts do not necessarily indicate more correct derivations.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ClinAgent: AI-assisted methodology for clinical trial data processing and statistical programming.Biology methods & protocols · 2026
- TrialCode Agent: LLM-Assisted Clinical Code-Set Construction for Trial EmulationmedRxiv · 2026
- TrialDesignBench: Benchmarking Language Models for Phase-I Trial Design Against Clinical KnowledgearXiv · 2026
- Leveraging generative AI to transform statistical analysis plan authoring in clinical trialsClinical Trials · 2026
- Automating postmarketing pharmacovigilance with large language model agentsmedRxiv · 2026
- Performance, Failures, and Oversight of a Large Language Model Agent for Clinical Data Analysis: Evaluation Study.Journal of medical Internet research · 2026