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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 13 code samples harvested from 1 repository linked to this paper: 10 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 0 violated, 8 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified. Where Syntology's instrument failed: 2 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 13 samples from 1 repository, 10 ran (8 with no instrument failure; 2 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-24 and 2026-09-25 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

tuneinsight/federated-llms mentioned on GitHubpytorchApache-2.0Syntology: 13 samples, 10 ran (2 instrument-failed) · 3 unverified 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: 10 ran (of which 0 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 0 violated, 8 with no contract checked; 2 where Syntology's instrument failed) · 3 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · our draft was wrong
8ran
3unverified

Licence: 1 of the 13 samples is pointer only, meaning Syntology does not serve that copy's text. For that sample, this paper's copy is under a permissive licence and cleared, but the stored copy of the same code that Syntology serves is not; the licence label's tooltip gives Syntology's recorded reason. 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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

tuneinsight/federated-llms community (archive-listed) 13 samples, 10 ran (2 instrument-failed) · 3 unverified
compute_bleu_score src/privacy_benchmark.py ran Apache-2.0 (permissive) · 0d42872657378ac1 · report fixture: signature df:DataFrame/0/? · returned DataFrame · level recorded 2026-09-25
compute_sigma src/dp.py ran Apache-2.0 (permissive) · 1538a6ee2d50a0f1 · report fixture: signature eps:float/0/float, delta:float/0/float, c2:float/0/float, batch_size:int/0/int, total_samples:int/0/int, num_iterations:int/0/int, rho:float/0/float · returned float · level recorded 2026-09-24
count_PHI_memorization src/privacy_benchmark.py ran Apache-2.0 (permissive) · 3d7b3a79249ce95c · report fixture: signature df:DataFrame/0/?, metadata:list/1/dict · returned tuple · level recorded 2026-09-24
count_exact_prefix_match src/privacy_benchmark.py ran Apache-2.0 (permissive) · 2371ab764f99f368 · report fixture: signature df:DataFrame/0/?, tokenizer:callable/0/? · returned DataFrame · level recorded 2026-09-24
get_auxiliary_dict OpenFedLLM/federated_learning/fed_utils.py ran · our draft was wrong Apache-2.0 (permissive) · 962adc31294b40bf · report fixture: signature fed_args:FedArgs/0/?, global_dict:dict/0/? · returned tuple · level recorded 2026-09-24
get_clients_this_round OpenFedLLM/federated_learning/fed_global.py ran Apache-2.0 (permissive) here; the stored copy is pointer only · 2128b33c10829870 · report fixture: signature fed_args:FedArgs/0/?, round:int/0/int · returned list · level recorded 2026-09-24
get_dataset_this_round OpenFedLLM/federated_learning/split_dataset.py ran Apache-2.0 (permissive) · 9c102ddaa014f4d2 · report fixture: signature dataset:Dataset/0/?, round:int/0/int, fed_args:FedArgs/0/?, script_args:ScriptArgs/0/? · returned Dataset · level recorded 2026-09-24
get_proxy_dict OpenFedLLM/federated_learning/fed_utils.py ran · our draft was wrong Apache-2.0 (permissive) · 38486baf4c608ec4 · report fixture: signature fed_args:FedArgs/0/?, global_dict:dict/0/? · returned tuple · level recorded 2026-09-24
global_aggregate OpenFedLLM/federated_learning/fed_global.py ran Apache-2.0 (permissive) · 8fef5b18a4b5d83b · report fixture: signature fed_args:FedArgs/0/?, global_dict:dict/0/?, local_dict_list:list/1/dict, sample_num_list:dict/0/?, clients_this_round:list/1/int, round_idx:int/0/int, proxy_dict:dict/0/?, opt_proxy_dict:dict/0/?, auxiliary_info:tuple/1/dict · returned tuple · level recorded 2026-09-24
split_dataset in 65 papers OpenFedLLM/federated_learning/split_dataset.py ran Apache-2.0 (permissive) · 60c6c78eb9667d17 · report fixture: signature fed_args:FedArgs/0/?, script_args:ScriptArgs/0/?, dataset:Dataset/0/? · returned list · level recorded 2026-09-24
create_PHI_injection_dataset src/create_dataset.py unverified Apache-2.0 (permissive) · e77bc1b30afa4f86 · report
create_flashcard_dataset src/create_dataset.py unverified Apache-2.0 (permissive) · 940744e0891a1f3c · report
duplicate_PHI_documents src/create_dataset.py 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