AI Reveals Hidden Gaps in Code Sharing for Medical Research

MIT and Dana-Farber used LLMs to scan nearly 4,000 medical papers, revealing information gaps in code sharing.
A study led by MIT and the Dana-Farber Cancer Institute used LLMs to systematically scan nearly 4,000 medical research papers and hundreds of code repositories to examine code sharing in medical research. The key innovation is treating LLMs as information-extraction tools to identify code mentions, hosting locations, and links to conclusions across full texts, enabling a full-sample census rather than small-scale sampling. The core finding is not whether code exists but an information gap: even public code cannot be reviewed or reused without key processing steps, dependency information, or data documentation. The work demonstrates the feasibility of LLMs as tools for auditing research infrastructure and offers an actionable path for scaling reproducibility review.
Reproducibility in medical research has always been a thorny problem. When a paper is published, whether the code is publicly available and how complete that release is directly determines whether other researchers can verify the results. A new study led by MIT and the Dana-Farber Cancer Institute used large language models (LLMs) to systematically scan nearly 4,000 medical research papers and hundreds of code repositories, attempting to answer a seemingly simple question that has long lacked systematic data: how much code do medical studies actually share, and what is the quality of that sharing?

Using LLMs to Conduct a "Code Census"
Traditionally, understanding code-sharing practices in a field requires manually reading papers one by one and extracting information by hand—extremely costly and difficult to scale. The key methodological innovation of this study lies in using LLMs as information-extraction tools to process full paper texts in batches, automatically identifying whether code is mentioned, where the code is hosted, and how the code corresponds to the paper's conclusions.
The research team processed nearly 4,000 studies and hundreds of code repositories. At this scale, systematic cross-comparison would be nearly impossible by hand, but automated LLM extraction makes a "full-sample census" possible rather than relying on small-scale sampling estimates. This is also a notable feature that distinguishes the study from previous reproducibility surveys.
Reproducibility is a basic norm of scientific research, referring to the ability of independent researchers to obtain the same or statistically consistent results based on the materials, data, and code disclosed in a paper. In computationally intensive research (such as medical image analysis, genomics, and statistical modeling for clinical trials), code is often the key link between raw data and paper conclusions, so code sharing is regarded as an important prerequisite for reproducibility. A related concept is "replicability," which refers to whether a study can reach consistent conclusions when re-conducted with new data. In recent years, multiple surveys have shown that the reproducibility crisis in the life sciences and medicine is particularly prominent, with missing code, unclear dependency versions, and unfixed random seeds being common obstacles—this is precisely the real-world context for such systematic review studies.
LLMs as information-extraction tools differ from the common conversational generation use case: researchers typically provide the full paper text and structured extraction instructions (for example, "Does it mention a code link?" "What code-hosting platform is used?"), have the model output standardized fields, and then compare the results with a manually annotated gold standard to calculate metrics such as accuracy and recall. Compared with traditional rule-based extraction using keywords or regular expressions, LLMs are better able to handle academic text with diverse phrasing and dispersed locations; however, their limitation is that they may produce "hallucinations," inventing repository addresses or conclusions that do not exist. Therefore, sampled manual verification, confidence thresholds, or multi-model cross-validation are needed. This "LLM-as-annotator" paradigm has spread rapidly in bibliometrics and meta-research over the past two years.
What Was Found: An Information Gap, Not Simple Absence
The core issue revealed by the study is an "information gap"—that is, the information needed to review and reuse published research is incomplete. This is more subtle than "whether code exists." A paper may claim that its code is publicly available, but the repository may lack key processing steps, dependency descriptions, or data documentation, making it impossible for others to actually run it.
In other words, there is a distance between the "existence" of code and the "usability" of code. The study points precisely to this distance: even when code is shared, enabling external researchers to independently review and reuse it still requires a more complete set of information standards. For high-stakes research fields such as medicine, the impact of this gap is especially direct, because it concerns whether research conclusions can be independently verified.
The usability of a code repository usually depends on several often-overlooked elements: the runtime environment and dependency versions (such as requirements.txt or conda environment files), data acquisition and preprocessing scripts, random seeds and hyperparameter settings, and clear usage instructions in the README. Even if a repository is public, external researchers will struggle to reproduce results if these elements are missing. Relevant practical standards in academia include the FORCE11 software citation principles, the FAIR data principles (findable, accessible, interoperable, and reusable), and the growing number of journals requiring a "reproducibility statement" or code availability statement. Because medicine involves patient privacy and data-use agreements, code sharing is often separated from data sharing, which further amplifies the risk of information gaps.
Implications for AI-Assisted Research Evaluation
Another layer of value in this work lies in its methodological demonstration. Here, LLMs are not used to generate content but as detection tools for "research infrastructure"—using machine scale to examine normative issues in scientific communication. As the number of papers continues to grow, manual review of reproducibility is becoming increasingly unsustainable, and automated extraction offers a feasible supplementary path.
Of course, the accuracy of LLM extraction depends on the model's ability to understand academic text, and the study itself also needs to validate the extraction results. Nevertheless, this work advanced by the MIT and Dana-Farber team provides a concrete example of "using AI to examine research norms from before the AI era."
Conclusion
The scan of nearly 4,000 medical studies and hundreds of code repositories shows that there is still clear room for improvement in the transparency of code sharing, and the problem is often not whether code is shared but whether the shared information is sufficient to support review and reuse. The involvement of LLMs makes such systematic checks scalable for the first time.
One-line Summary
MIT and Dana-Farber used LLMs to scan nearly 4,000 medical papers, revealing information gaps in code sharing.
Paragraph Summary
A study led by MIT and the Dana-Farber Cancer Institute used large language models to systematically scan nearly 4,000 medical research papers and hundreds of code repositories, systematically examining code-sharing practices in medical research. The key methodological innovation is treating LLMs as information-extraction tools to batch-identify whether papers mention code, where it is hosted, and how it corresponds to conclusions, thereby enabling a full-sample census rather than small-scale sampling. The core problem found is not "whether code exists" but an "information gap": even when code is public, external researchers still cannot review or reuse it if key processing steps, dependency descriptions, or data documentation are missing. The work also demonstrates the feasibility of LLMs as detection tools for research infrastructure, offering an actionable path for scaling reproducibility review.
Related articles
When AI Starts Blogging: Scott Aaronso…
When AI Starts Blogging: Scott Aaronson's Kitchen Wine Experiment
Scott Aaronson shares a kitchen wine AI writing experiment on his blog, sparking Hacker News debate. This analysis explores the authenticity gap in AI-generated blog content, transparency disputes, and implications for content creators.

Amazon Loses Recall Case: Liability for 400,000 Dangerous Products Established
A U.S. court ruled Amazon is a distributor, not a logistics provider, and must recall over 400,000 dangerous products. This analysis examines the ruling's impact on platform liability boundaries and e-commerce compliance.

Google Familiar Faces Comes to Walmart's Budget Cameras
Google Familiar Faces facial recognition now supports Walmart's Onn outdoor and floodlight cameras at $35 and $77, but requires a Google Home Premium subscription.