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

Wenqi Shi, Ran Xu, Yuchen Zhuang, Yue Yu, Haotian Sun +3 more
5/5/2024
cs.CLcs.AI

No official code found. Best implementation: wshi83/MedAdapter (36 stars, last commit 2024-12-26).

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 corporate privacy. In this work, we propose MedAdapter, 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 demonstrate that MedAdapter effectively adapts both white-box and black-box LLMs in biomedical reasoning, achieving average performance improvements of 25.48% and 11.31%, respectively, without requiring extensive computational resources or sharing data with third parties. MedAdapter also yields superior 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.

View on arXivView PDF

Code Implementations(1)

wshi83/MedAdapterCommunity100%

[EMNLP'24] MedAdapter: Efficient Test-Time Adaptation of Large Language Models Towards Medical Reasoning

363Shell, PythonSep 22, 20241 years ago
adaptationblack-boxehrlarge-language-modelsllm

Cite this paper

@article{shi2024medadapter,
  title  = {MedAdapter: Efficient Test-Time Adaptation of Large Language Models towards Medical Reasoning},
  author = {Wenqi Shi and Ran Xu and Yuchen Zhuang and Yue Yu and Haotian Sun and Hang Wu and Carl Yang and May D. Wang},
  year   = {2024},
  eprint = {2405.03000},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.03000v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.03000.svg)](https://codeofpaper.com/paper/2405.03000)

Discussion