medRxivPreprintOpen accesshealth informatics

Reproducible variability: assessing human vs. AI discordance in attempting to reproduce the same observational study

J. Walonoski, C. W. Eng, A. S. Johal, A. Bennett, M. Fleming, Y. Chern

Observational

Key points

From the paper's conclusion
  • We tested whether an artificial intelligence (AI) agent, given that same description, reproduces a cohort definition more faithfully and consistently than those teams.

Abstract

Objective: Previously, nine expert teams given a published study and identical code sets produced nine substantially different cohorts, prompting the conclusion that analytic code cannot be reliably generated from natural-language description. We tested whether an artificial intelligence (AI) agent, given that same description, reproduces a cohort definition more faithfully and consistently than those teams. Materials and Methods: Against a claims database of 35.9 million patients, we executed 27 independent reproductions of that published glucagon-like peptide-1 receptor agonist cohort definition: the nine published human definitions re-implemented deterministically (Arm A); nine independent AI agent runs given the source paper as published (Arm B); and nine given a rewrite that removed its internal contradictions (Arm C). All arms received identical frozen code sets. Agreement with a reference cohort was quantified by the Jaccard index. Results: Agents in Arm B achieved a median Jaccard index of 0.450 versus 0.259 for the human definitions, median pairwise agreement of 0.492 versus 0.149, and a 5.06-fold versus 32.0-fold size spread. Agent variation resolved almost entirely onto two criteria reported differently in the source main text and supplement. In Arm C, median agreement and median pairwise agreement both reached 1.000. Discussion: Changing only the analyst strongly trended towards improvement in fidelity, with every agent run more self-consistent than every human team. Changing the specification resulted in exact fidelity and self-consistency. Irreproducibility arose from both specification quality and inter-analyst variation. Conclusion: AI agents were more consistent than human teams when translating published natural-language descriptions into code.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Reproducible variability: assessing human vs. AI discordance in attempting to reproduce the same observational study — Science Skim