SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.03000 · EMNLP · 2024

MedAdapter: Efficient Test-Time Adaptation of Large Language Models Towards Medical Reasoning

Carl Yang, Yuchen Zhuang, Ran Xu, Haotian Sun, Yu Yue, Wenqi Shi, May Wang, Hang Wu

arXiv · PDF · Open in the Atlas

Code that ran

6 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 10 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2405.03000.json · badge: /api/ran/2405.03000.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wshi83/medadapter canonical (classifier label)
classifier basis: census
5 ran · 6 no recorded run
wshi83/MedAdapter community
Papers with Code archive
1 ran · 4 no recorded run
FunctionStatusWhere it lives
bioasq_judge Ran
ran; our contract draft was wrong, not the code
wshi83/medadapter/eval_fn/bioasq_eval.py
pointer only (licence: NONE) · get_code("998b73ea2c529621")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

medmcqa_judge Ran
ran; our contract draft was wrong, not the code
wshi83/medadapter/eval_fn/medmcqa_eval.py
pointer only (licence: NONE) · get_code("fc2923ceeac1f499")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

medqa_judge Ran
ran; our contract draft was wrong, not the code
wshi83/medadapter/eval_fn/medqa_eval.py
pointer only (licence: NONE) · get_code("fd06b5e606986d89")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mmlu_judge Ran
ran; our contract draft was wrong, not the code
wshi83/medadapter/eval_fn/mmlu_eval.py
pointer only (licence: NONE) · get_code("e30a72d4f5561a07")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

prepare_prompts Ran
ran; our contract draft was wrong, not the code
wshi83/MedAdapter/reward_model/orm/orm_guide.py
pointer only (licence: NONE) · get_code("a5c4afa103aa6d76")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/MedAdapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pubmedqa_judge Ran
ran; our contract draft was wrong, not the code
wshi83/medadapter/eval_fn/pubmedqa_eval.py
pointer only (licence: NONE) · get_code("62f83829e4fb5a25")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bioasq_metrics Not yet run
unverified (harvested, no recorded run)
wshi83/medadapter/eval_fn/bioasq_eval.py
pointer only (licence: NONE) · get_code("80b367feb77c593c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

generate Not yet run
unverified (harvested, no recorded run)
wshi83/MedAdapter/reward_model/orm/orm_guide.py
pointer only (licence: NONE) · get_code("7fe7aafc5afb6d9b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/MedAdapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_datasets Not yet run
unverified (harvested, no recorded run)
wshi83/MedAdapter/reward_model/orm/orm_guide.py
pointer only (licence: NONE) · get_code("ee2a47559197dba0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/MedAdapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
wshi83/medadapter/generator/vanilla_trainer.py
pointer only (licence: NONE) · get_code("3ceed634ac6ca1d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_prompts Not yet run
unverified (harvested, no recorded run)
wshi83/MedAdapter/reward_model/orm/orm_guide.py
pointer only (licence: NONE) · get_code("537590c07503fa34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/MedAdapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

medmcqa_metrics Not yet run
unverified (harvested, no recorded run)
wshi83/medadapter/eval_fn/medmcqa_eval.py
pointer only (licence: NONE) · get_code("44cf71f1d0538dbd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

medqa_metrics Not yet run
unverified (harvested, no recorded run)
wshi83/medadapter/eval_fn/medqa_eval.py
pointer only (licence: NONE) · get_code("19fe01ffbad9b874")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

mmlu_metrics Not yet run
unverified (harvested, no recorded run)
wshi83/medadapter/eval_fn/mmlu_eval.py
pointer only (licence: NONE) · get_code("a181c5f5aa10d4e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

orm_guided_generation Not yet run
unverified (harvested, no recorded run)
wshi83/MedAdapter/reward_model/orm/orm_guide.py
pointer only (licence: NONE) · get_code("5954c78296a000d6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/MedAdapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

pubmedqa_metrics Not yet run
unverified (harvested, no recorded run)
wshi83/medadapter/eval_fn/pubmedqa_eval.py
pointer only (licence: NONE) · get_code("f76f5726f4c301f8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wshi83/medadapter when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 1 the same month, 1 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
prepare_prompts
brick of this paper's assembly: helper
2 other papers
1 the same month, 1 later
2405.17888 (2024-05)
Getting More Juice Out of the SFT Data: Reward Learning from Human Demonstration Improves SFT for LLM Alignment
2406.02888 (2024-06)
HYDRA: Model Factorization Framework for Black-Box LLM Personalization

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite their improved capabilities in generation and reasoning, adapting large language models (LLMs) to the biomedical domain remains challenging due to their immense size and privacy concerns. In this study, we propose MedAdapter 1 , a unified post-hoc adapter for test-time adaptation of LLMs towards biomedical applications. Instead of fine-tuning the entire LLM, MedAdapter effectively adapts the original model by fine-tuning only a small BERT-sized adapter to rank candidate solutions generated by LLMs. Experiments on four biomedical tasks across eight datasets demonstrate that MedAdapter effectively adapts both white-box and black-box LLMs in biomedical reasoning, achieving average performance improvements of 18.24% and 10.96%, respectively, without requiring extensive computational resources or sharing data with third parties. MedAdapter also yields enhanced performance when combined with train-time adaptation, highlighting a flexible and complementary solution to existing adaptation methods. Faced with the challenges of balancing model performance, computational resources, and data privacy, MedAdapter provides an efficient, privacy-preserving, cost-effective, and transparent solution for adapting LLMs to the biomedical domain. * Equal contribution. 1 Our implementation of MedAdapter is available at https: //github.com/wshi83/MedAdapter.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2405.03000")
get_code_for_paper("2405.03000")
have("2405.03000")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2405.03000.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2405.03000.svg)](https://syntology.ai/paper/2405.03000)

Connect an agent — have() is free.