KMed-31B Technical Report

LLM SFT NLP CLFDTG AI Systems and Hardware MCPKD
2026年11月21日
我们提出了KMed-31B,这是一种面向本地化部署、可在有限硬件资源上运行的医学大语言模型;其基于一个开源权重的基础模型,经专门的后训练(post-training)优化而成。针对多样化的医学任务开展后训练仍面临巨大挑战,因为提升某类任务性能往往会导致其他任务性能下降。我们认为,这一现象源于不同任务在“期望输出形式”和“可用反馈类型”两方面存在本质差异:医学问答与诊断预测任务具有明确的标准答案,而临床问诊任务则不存在唯一正确回答,其质量评估依赖于多维度评分量表(rubrics)。为此,我们依据上述两个维度,将医学训练任务划分为四类;针对每一类任务,我们分别训练一名专家模型(specialist),并为其配备与其反馈机制相匹配的奖励函数;最终,借助“多教师在线策略增量蒸馏”(Multi-teacher On-policy Delta Distillation, MOPD²)方法,将四名专家模型的知识整合至单一学生模型中。针对临床问诊任务,我们构建了“合成健康对话”(Synthetic Health Dialogue)数据集——这是一个模拟真实医患交互的对话语料库,涵盖普通公众用户与临床医生之间的咨询对话,其中所涉患者病例覆盖基层医疗中常见各类临床表现。相较于其基础模型,KMed-31B在非思维链(non-thinking)模式下,将HealthBench Hard基准分数从22.95显著提升至41.87,HealthBench Professional基准分数从37.92提升至50.20;在思维链(thinking)模式下,两项指标更分别跃升至51.48与59.18(原为23.80与41.97);与此同时,其在四项医学多选题基准测试上的得分均保持稳定或略有提升。在所有参与对比的模型(包括闭源商用模型)中,KMed-31B取得了最高的未经调整(unadjusted)HealthBench Hard得分;而在HealthBench Professional上,其得分亦超越所有参与对比的开源权重模型——其中不乏参数量超其十倍以上的竞品模型。此外,我们将同一套训练范式迁移应用于另一基础模型Qwen3.8-27B,同样成功提升了其在HealthBench两项指标上的表现。本文详尽阐述了整套训练范式、数据构建方法及各项超参数设置,旨在为有本地化部署需求的医疗机构提供可复现、可定制的技术路径,助力其基于开源权重基础模型自主开发专业医学大模型。
We present KMed-31B, a medical large language model post-trained from an open-weight model for on-premises deployment with limited hardware. Post-training a model for diverse medical tasks remains difficult, because improving one kind of task can lower performance on another. We attribute this to differences between tasks in expected output and available feedback. Medical question answering and diagnosis prediction have reference answers, whereas clinical inquiry has no single correct response and is judged with rubrics. We therefore divide medical training tasks into four categories by these two properties, train one specialist per category with a reward that its feedback supports, and integrate the specialists into a single student with Multi-teacher On-policy Delta Distillation (MOPD$^2$). For clinical inquiry, we build Synthetic Health Dialogue, a simulated corpus of consultations with lay users and clinicians whose patient cases span common clinical presentations in primary care. Relative to its base model, KMed-31B raises HealthBench Hard from 22.95 to 41.87 and HealthBench Professional from 37.92 to 50.20 in non-thinking mode, and from 23.80 to 51.48 and from 41.97 to 59.18 in thinking mode, while its scores on four multiple-choice medical benchmarks are maintained or slightly improved. KMed-31B has the highest unadjusted HealthBench Hard score among the compared models, including proprietary ones, and scores higher on HealthBench Professional than every open-weight model we compare, including models with more than ten times as many total parameters. Applied to another base model, Qwen3.8-27B, the same training recipe also raises both HealthBench scores. We describe the training recipe, data construction, and settings in detail so that institutions requiring on-premises deployment can develop medical models from open-weight foundations.
许愿