arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.23801cs.CLcs.IR
收藏

领域微调与检索增强生成在医学多选问答中的比较:在4B参数规模下的受控比较

Domain Fine-Tuning vs. Retrieval-Augmented Generation for Medical Multiple-Choice Question Answering: A Controlled Comparison at the 4B-Parameter Scale

Department of Information Science and Applied Artificial Intelligence(信息科学与应用人工智能系)

Avi-ad Avraam Buskila

AI总结:

研究比较了领域微调与检索增强生成在医学多选问答中的效果,发现领域微调在多数投票准确率上优于通用模型,而检索增强生成未显著提升性能。

摘要:

部署小型开源大语言模型(LLM)进行医学问答的实践者面临设计选择:投资领域微调模型,或保持通用模型并在推理时通过检索增强生成(RAG)注入领域知识。我们通过固定模型大小、提示模板、解码温度、检索流程和评估协议,仅改变(i)模型是否经过领域适应(Gemma 3 4B vs. MedGemma 4B,均为4位量化并通过Ollama服务)和(ii)是否将从医学知识库检索的段落插入提示。我们对这四个2x2设计的细胞在完整的MedQA-USMLE 4选项测试集(1,273个问题)上进行了评估,每个问题有三次重复(15,276次LLM调用)。领域微调在多数投票准确率上比通用4B基线高出6.8个百分点(53.3% vs. 46.4%,McNemar p < 10^-4)。RAG在MedMCQA解释上未在两种模型中产生统计显著提升,且在领域微调模型中点估计略为负值(-1.9 pp,p = 0.16)。在该规模和此基准上,编码在权重中的领域知识优于在上下文中的领域知识。我们发布了完整的实验代码和JSONL追踪以支持复制。

英文摘要:

Practitioners deploying small open-weight large language models (LLMs) for medical question answering face a recurring design choice: invest in a domain-fine-tuned model, or keep a general-purpose model and inject domain knowledge at inference time via retrieval-augmented generation (RAG). We isolate this trade-off by holding model size, prompt template, decoding temperature, retrieval pipeline, and evaluation protocol fixed, and varying only (i) whether the model has been domain-adapted (Gemma 3 4B vs. MedGemma 4B, both 4-bit quantized and served via Ollama) and (ii) whether retrieved passages from a medical knowledge corpus are inserted into the prompt. We evaluate all four cells of this 2x2 design on the full MedQA-USMLE 4-option test split (1,273 questions) with three repetitions per question (15,276 LLM calls). Domain fine-tuning yields a +6.8 percentage-point gain in majority-vote accuracy over the general 4B baseline (53.3% vs. 46.4%, McNemar p < 10^-4). RAG over MedMCQA explanations does not produce a statistically significant gain in either model, and in the domain-tuned model the point estimate is slightly negative (-1.9 pp, p = 0.16). At this scale and on this benchmark, domain knowledge encoded in weights dominates domain knowledge supplied in context. We release the full experiment code and JSONL traces to support replication.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑