Only 1 in 8 clinical prediction studies shares code, MIT-led review finds
An MIT and Dana-Farber-led team used large language models to screen nearly 4,000 medical papers and the repositories they link to. Most shared no code at all, and public code often lacked documentation.
A team led by researchers at MIT and Dana-Farber Cancer Institute pointed large language models at nearly 4,000 published clinical prediction studies to answer a deceptively simple question: when a paper says it shares its code, what is actually there? According to the team, only about one in eight studies reported sharing code at all, and among those that did, repository quality ranged from meticulously documented to nearly unusable. The findings, published open access in Nature Medicine, are feeding into TRIPOD-Code, a reporting guideline under development that would spell out what researchers are expected to release.
What the team measured
The study focused on clinical prediction research — papers that develop, update, or validate models estimating patient outcomes such as disease risk. That scope matters. These are the models most likely to end up influencing care decisions, which makes the ability to inspect how they were built and tested a practical safety question rather than an academic nicety.
To assemble a sample, the researchers identified studies citing TRIPOD or TRIPOD+AI, two existing checklists for reporting how prediction models were developed and evaluated, and restricted the set to full texts available in PubMed Central's open-access collection. That produced almost 4,000 papers. An LLM was used to screen them, locate statements about code availability, and extract links; separate software then fetched the linked repositories for assessment.
Crucially, the pipeline did not stop at checking whether a URL resolved. The team says repositories were evaluated against characteristics including completeness of documentation, stated software requirements, and terms of reuse — the kinds of attributes that determine whether another group can actually run the analysis, as opposed to merely looking at it.
Tom Pollard, a research scientist at MIT's Laboratory for Computational Physiology and the Computer Science and Artificial Intelligence Laboratory and a senior author, frames the underlying problem as "researcher degrees of freedom": the accumulated choices about data preparation, model development, and evaluation that shape results but exceed what any methods section can capture. First author Thomas Sounack says the practical obstacle was inconsistency — authors reference and link code in many different ways, so simply determining whether a paper shared code required judgment rather than pattern matching.
The findings
Two gaps emerged. First, code sharing remains uncommon: roughly 12.5 percent of studies reported it. Second, publishing code is not the same as publishing usable code. Sounack describes repositories at both extremes, some extremely well organized and documented, others offering almost no guidance. His working definition of good practice is unglamorous and useful: provide enough information that someone can understand what the code does and run it to reproduce the paper's reported results.
Variation across journals was stark, with sharing rates ranging from zero to more than 70 percent depending on the venue. Practices also differed substantially by country. One detail deserves attention from anyone who believes policy language solves this: the team reports that some journals with low sharing rates nonetheless had written code-sharing policies on the books. Stated requirements, in other words, do not appear to be self-enforcing.
The review also surfaced practices worth copying. Some authors released synthetic datasets so that code could be exercised and inspected in cases where the underlying patient records could not legally or ethically be published. That is a middle path between full data release and a repository nobody can run — and it is one of the few concrete mitigations the announcement identifies for the privacy constraints that make medical research different from most open-source work.
Using LLMs as research instruments, carefully
The methodology is arguably as interesting as the result. Pollard argues the value of LLMs here was handling unstructured information scattered across paper text and repository files rather than sitting in a tidy table, which allowed a far more granular look across a large corpus than manual review would permit.
The team did not treat the model output as ground truth. Two researchers independently reviewed 500 papers and a separate sample of repositories, resolved their disagreements, then compared results against the automated assessments. The reported pattern is instructive: agreement was stronger on concrete, checkable attributes — whether a license file exists — than on softer judgments such as whether documentation is adequate. That is the expected failure mode. Models are reliable at verifying presence or absence and shakier at rendering quality verdicts that human experts themselves dispute.
Because classification errors remain possible, the authors stress the overall patterns rather than treating any individual count as precise. That caveat should travel with the one-in-eight figure whenever it is cited. It is a directional finding about a well-defined slice of the literature — studies citing TRIPOD guidelines, available in one open-access corpus — not a census of medical research.
Several operational details were not disclosed in the announcement: which language model or models were used, the exact number of repositories retrieved beyond "hundreds," the publication date range covered, how the screening prompts were constructed, or what the measured agreement rates between human and automated review actually were. Readers wanting those specifics will need the paper itself, titled "AI-assisted scoping review of code sharing in clinical prediction model research."
Why builders should care
For teams shipping clinical decision-support products, this is a supply-chain story. Published prediction models are routinely used as baselines, starting points, or justification for a design choice. If 87 percent of that literature ships no code, and an uncertain share of the remainder ships code that cannot be run, then reimplementation from a methods section is the default — with every undocumented preprocessing decision silently reinvented along the way.
TRIPOD-Code is the team's proposed answer: an expert-review process to establish consensus on which elements of shared analytical code should be treated as essential. Pollard's stated aim is twofold — practical guidance for researchers and clearer expectations journals can communicate to authors. The gap the review identified between written policies and actual behavior suggests the second half is the harder one. Clinical prediction research also draws together clinicians, statisticians, and computer scientists whose norms around documentation diverge considerably, which is precisely why a consensus artifact may help more than another unenforced mandate.
No timeline for finalizing TRIPOD-Code, no list of participating journals or publishers, and no enforcement mechanism were described in the announcement.
What to watch
- Whether TRIPOD-Code specifies a minimum viable repository — license, environment specification, runnable example, synthetic data where records are restricted — or stops at general principles that journals can interpret loosely.
- Whether any journals adopt the guideline as a submission requirement with actual verification, given the review's finding that existing written policies coincided with low sharing rates.
- Whether LLM-assisted screening with human validation becomes a standard tool for meta-research, and whether reviewers begin demanding reported agreement statistics for the automated steps.
- Whether synthetic datasets gain traction as the default workaround for non-shareable patient records, and how their fidelity is evaluated.
- Whether similar audits get run outside clinical prediction — imaging, genomics, foundation models trained on health data — where the same researcher-degrees-of-freedom problem applies.
Keep reading
More in Policy & Safety →
OpenAI Says It Cut Reasoning-Extraction Attacks to Under 1% — and Wants the Industry to Follow
OpenAI details how it defends chain-of-thought traces from adversarial distillation, reporting attack success rates falling from 54% to 0.2% in internal red-teaming of GPT-6.2 Astra.
6 min read
OpenAI Puts Its Cyber Model Program Inside NATO — and Counts the Tokens
OpenAI says NATO's communications agency, ENISA, CERT Polska and Ukraine's digital ministry are using its Daybreak cyber tooling, with NATO consuming up to 300 billion tokens a month.
5 min read

OpenAI Says Students Are Using AI Faster Than Schools Can Teach Them How
OpenAI's new EMEA education report cites ThinkYoung research finding 79% of surveyed students use AI for schoolwork while only 47% were shown how, and leans on teacher time savings as early evidence.
5 min read