AI agents reproduced the same observational cohort more faithfully than human teams
A new medRxiv preprint tests a problem that sits at the center of modern observational research: whether two competent analysts can read the same natural-language methods section and arrive at the same patient cohort. The answer here was often no. Investigators revisited a published glucagon-like peptide-1 receptor agonist cohort definition using a claims database of 35.9 million patients and ran 27 independent reproductions across three arms: nine human re-implementations of the published definitions, nine independent AI agent runs using the original paper, and nine AI agent runs using a rewritten version that removed internal contradictions. Every arm used identical frozen code sets, so differences in output traced to interpretation rather than tooling.
The core message is stark.
Against a reference cohort, the AI agents generated a median Jaccard index of 0.450, compared with 0.259 for the human definitions. Median pairwise agreement also favored the agents, at 0.492 versus 0.149, while the spread in cohort size was 5.06-fold for AI and 32.0-fold for humans. In practical terms, the human teams were not just farther from the reference cohort; they were also much less aligned with one another. For reproducibility science, that kind of spread signals brittle specification rather than ordinary analytic noise.
Internal contradictions in the source text drove most of the discordance
The most useful detail in the abstract is where the variation collapsed. Agent variation resolved almost entirely around two criteria that were reported differently in the main text and supplement. In other words, the AI did not wander randomly through the methods section; it picked up on ambiguity embedded in the source itself and propagated that ambiguity into the code. When the same cohort definition was rewritten to remove those contradictions, Arm C reached a median agreement and median pairwise agreement of 1.000. Exact fidelity emerged only after the specification became internally coherent.
This matters because claims databases are highly sensitive to small shifts in operational definitions. A single exclusion window, diagnosis requirement, or medication timing rule can change who enters the cohort and who does not. In a setting like GLP-1 receptor agonist research, such definitional drift can alter estimated treatment prevalence, baseline risk, and downstream outcome attribution. Discordance at the cohort-construction stage is not a bookkeeping issue; it can change the patient population before any model is fit or any effect estimate is calculated.
Better analyst performance did not erase the role of the protocol
The preprint does not present AI as a substitute for sound epidemiologic writing. Instead, it shows two separate failure modes: weak specification and analyst-dependent interpretation. Changing only the analyst strongly trended toward better fidelity, and every agent run was more self-consistent than every human team run. Yet the agents still depended on the quality of the underlying description. Once the ambiguous specification was repaired, reproducibility improved to perfect agreement, which points to the text itself as a primary determinant of analytic stability.
That sequence is important for anyone building, reviewing, or reusing observational code. Natural-language methods sections often compress complex logic into prose that appears precise to the original author but leaves room for divergent implementation. Human analysts supply context, but they also bring judgment, assumptions, and local conventions. AI agents can amplify consistency when the instructions are coherent, but they can also faithfully reproduce ambiguity if the source remains internally inconsistent. The study therefore maps a two-part problem: specification quality on one side, and interpreter variability on the other.
Why cohort reproducibility is a real clinical methods problem
The preprint sits in the growing field of clinical informatics and reproducible analytics, but its implications reach beyond computational aesthetics. Observational studies increasingly inform pharmacovigilance, comparative effectiveness research, and health system policy. When cohort definitions drift, estimates of benefit and harm can drift with them. For medications such as GLP-1 receptor agonists, where prescribing patterns intersect with diabetes, obesity, cardiovascular risk, and large claims datasets, the shape of the analytic cohort determines the frame of the entire study.
There is also a bedside consequence, even if indirect. Clinicians who rely on observational evidence assume that the exposed and unexposed groups were built from the same logic every time the study is rerun. This preprint shows how easily that assumption can fail when methods are written in prose that leaves room for contradictory interpretation. A reported effect size can look stable while the underlying cohort shifts underneath it.
Commercial interest and preprint status shape how the findings should be read
The competing interest statement is unusually direct. The AI system evaluated in Arms B and C is a commercial product of Medeloop, and all authors are employees with equity stakes. That creates a clear financial interest in a favorable result. The manuscript also remains a preprint and has not been certified by peer review. Those two facts do not invalidate the work, but they do frame the result as an early methods signal rather than settled evidence.
The data infrastructure is still notable. The analysis used a HIPAA-deidentified claims source, and the authors report that no patient-level data left the analytic environment. They also deposited aggregate artifacts, agreement matrices, code sets, and figure-generation scripts in a public repository, making the work reproducible from aggregate outputs. For a study centered on reproducibility, that level of transparency is central to the claim.
The paper ultimately argues that AI agents can be more consistent than human teams when translating a published natural-language protocol into executable code. The larger lesson is less flattering to the field: reproducibility breaks first at the level of the written specification, and no analyst, human or machine, can fully rescue a contradictory methods section without rewriting it.
- • Journal Preprint DOI 10.64898/2026.11.25.26369008: https://doi.org/10.64898/2026.11.25.26369008