Papers › MedAlpaca -- An Open-Source Collection of Medical Conversational AI Models and Training Data

MedAlpaca -- An Open-Source Collection of Medical Conversational AI Models and Training Data

14 Apr 2023arXiv:2304.08247archive 2025-07-28

Tianyu Han, Lisa C. Adams, Jens-Michalis Papaioannou, Paul Grundmann, Tom Oberhauser, Alexander Löser, Daniel Truhn, Keno K. Bressem

As large language models (LLMs) like OpenAI's GPT series continue to make strides, we witness the emergence of artificial intelligence applications in an ever-expanding range of fields. In medicine, these LLMs hold considerable promise for improving medical workflows, diagnostics, patient care, and education. Yet, there is an urgent need for open-source models that can be deployed on-premises to safeguard patient privacy. In our work, we present an innovative dataset consisting of over 160,000 entries, specifically crafted to fine-tune LLMs for effective medical applications. We investigate the impact of fine-tuning these datasets on publicly accessible pre-trained LLMs, and subsequently, we juxtapose the performance of pre-trained-only models against the fine-tuned models concerning the examinations that future medical doctors must pass to achieve certification.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2304.08247")

Code

Syntology Ran 6 of 13 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: community (archive-listed): 13 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

tuneinsight/federated-llms mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 6 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

6ran
7unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from tuneinsight/federated-llms. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_auxiliary_dict tuneinsight/federated-llms/OpenFedLLM/federated_learning/fed_utils.py community (archive-listed) ran Apache-2.0 (permissive) · 962adc31294b40bf · report
get_clients_this_round tuneinsight/federated-llms/OpenFedLLM/federated_learning/fed_global.py community (archive-listed) ran Apache-2.0 (permissive) · 2128b33c10829870 · report
get_dataset_this_round tuneinsight/federated-llms/OpenFedLLM/federated_learning/split_dataset.py community (archive-listed) ran Apache-2.0 (permissive) · 9c102ddaa014f4d2 · report
get_proxy_dict tuneinsight/federated-llms/OpenFedLLM/federated_learning/fed_utils.py community (archive-listed) ran Apache-2.0 (permissive) · 38486baf4c608ec4 · report
global_aggregate tuneinsight/federated-llms/OpenFedLLM/federated_learning/fed_global.py community (archive-listed) ran Apache-2.0 (permissive) · 8fef5b18a4b5d83b · report
split_dataset tuneinsight/federated-llms/OpenFedLLM/federated_learning/split_dataset.py community (archive-listed) ran Apache-2.0 (permissive) · 60c6c78eb9667d17 · report
compute_bleu_score tuneinsight/federated-llms/src/privacy_benchmark.py community (archive-listed) unverified Apache-2.0 (permissive) · 0d42872657378ac1 · report
compute_sigma tuneinsight/federated-llms/src/dp.py community (archive-listed) unverified Apache-2.0 (permissive) · 1538a6ee2d50a0f1 · report
count_PHI_memorization tuneinsight/federated-llms/src/privacy_benchmark.py community (archive-listed) unverified Apache-2.0 (permissive) · 3d7b3a79249ce95c · report
count_exact_prefix_match tuneinsight/federated-llms/src/privacy_benchmark.py community (archive-listed) unverified Apache-2.0 (permissive) · 2371ab764f99f368 · report
create_PHI_injection_dataset tuneinsight/federated-llms/src/create_dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · e77bc1b30afa4f86 · report
create_flashcard_dataset tuneinsight/federated-llms/src/create_dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 940744e0891a1f3c · report
duplicate_PHI_documents tuneinsight/federated-llms/src/create_dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 824e25afa42c807a · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiscriminative Fine-TuningDropoutGPTLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections